/********************************************************
 *  Warhammer Realm War									*
 *														*
 *  RvR Overview Scripts & Functions					*
 ********************************************************/

/**
 * campaignPopup takes a server id and opens a new window that
 * displays the campaign status for that server
 * 
 * @param server - Id of the server to display campaign status for
 */
function campaignPopup(server)
{
	window.name="WarParent";
	window.open("RvRPopup.war?server="+server,"WARRvRPopup"+server,"status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=0,height=326,width=622");
}

/**
 * toggleMovingCampaignDetails toggles the status hover of
 * a moving campaign zone displayed in the top overview
 * box accompanying the city statuses.
 * 
 * @param layer - Id of the zone layer to display a hover for
 * @param status - String on/off status of current hover
 */
function toggleMovingCampaignDetails(layer, status)
{
	var currentLayer = document.getElementById(layer + "-hover");
	
	if(status == "on")
		currentLayer.style.display = "block";
	else
		currentLayer.style.display = "none";
}