var intlMenuVisible = false;

var intlMenuButtonOn = new Image();
var intlMenuButtonOff = new Image();
intlMenuButtonOn.src = "templates/images/international_button_on.gif";
intlMenuButtonOff.src = "templates/images/international_button.gif";


function getElement(id, style) {
	var ret = null;
	if(document.getElementById)
		ret = document.getElementById(id);
	else
		ret = document.all[id];
	return (style && ret != null) ? ret.style : ret;
}

function toggleInternationalMenu() {   
	var layer = getElement("intlmenu", true);
	var button = document.images["intlbutton"];
	if(layer == null || button == null)
		return;
	layer.visibility = (intlMenuVisible) ? 'hidden' : 'visible';
	button.src = (intlMenuVisible) ? intlMenuButtonOff.src : intlMenuButtonOn.src;
	intlMenuVisible = !intlMenuVisible;
}

function changeCity(city)
{
     //var sURL = unescape(window.location.pathname);
     document.cookie = 'metrocity='+city+'; expires=Fri, 3 Aug 2010 20:47:11 UTC; path=/';
     window.location.href = "http://www.metronews.ca/home.aspx";  
}


