		var winHandler = null;
		
 		function popUp(url){
 			mapWin= window.open(url, 'otherWin','width=400,height=300,screenX=100,screenY=40,left=100,top=40,scrollbars=yes,status=yes,location=no,resizable=yes,');
			mapWin.focus();
 		}
		function popUpPic(url){
 			mapWin= window.open(url, 'otherWin','width=580,height=430,screenX=100,screenY=40,left=100,top=40,scrollbars=yes,status=yes,location=no,resizable=yes,');
			mapWin.focus();
 		}
 		
 		function popUpPicExt(pictureName){
	 		var objImg = document.getElementById(pictureName);
			var picSrc = objImg.src;
			var picWidth = objImg.width +20;
			var picHeight = objImg.height + 30;
			//var picName = objImg.alt;
			if (winHandler != null)
			{
 				winHandler.close();
			}
		winHandler = window.open(picSrc, 'otherWin','width=' + picWidth + ',height=' + picHeight + ',screenX=100,screenY=40,scrollbars=no,status=no,location=no,resizable=no,');
		winHandler.focus();
		}
 		
 		function GetElementById(ename)
		{
			var obj;

			if (document.all)
				{
				eval("obj = document.all[\"" + ename + "\"]");
				}
			else if (document.layers)
			{		
				eval("obj = document.layers[\"" + ename + "\"]");
			}
			else if (document.getElementById)
			{	
				eval ("obj = document.getElementById (\"" + ename + "\")");		
			}
			else	
				obj =  undefined;

			return obj;
		}
		
		function setCookie(name, value, expires, path, domain, secure) {
			var curCookie = name + "=" + escape(value) +
				((expires) ? "; expires=" + expires.toGMTString() : "") +
				((path) ? "; path=" + path : "") +
				((domain) ? "; domain=" + domain : "") +
				((secure) ? "; secure" : "");
			document.cookie = curCookie;
		}
		
		function getCookie(name) {
			var dc = document.cookie;
			var prefix = name + "=";
			var begin = dc.indexOf("; " + prefix);
			if (begin == -1) {
				begin = dc.indexOf(prefix);
				if (begin != 0) return null;
			} else
				begin += 2;
			var end = document.cookie.indexOf(";", begin);
			if (end == -1)
				end = dc.length;
			return unescape(dc.substring(begin + prefix.length, end));
		}
		
		function deleteCookie(name, path, domain) {
			if (getCookie(name)) {
				document.cookie = name + "=" +
				((path) ? "; path=" + path : "") +
				((domain) ? "; domain=" + domain : "") +
				"; expires=Thu, 01-Jan-70 00:00:01 GMT";
			}
		}
		
		function ManageSubMenus()
		{
			if (getCookie("trSponsorship") == null)
			{
				GetElementById("trSponsorship").style.display='none';
			}
			else
			{
				GetElementById("trSponsorship").style.display="";	
			}
			
			if (getCookie("trShop") == null)
			{
				GetElementById("trShop").style.display='none';
			}
			else
			{
				GetElementById("trShop").style.display="";	
			}		
		}
		
		function ManageSponsorshipSubMenu(){
 		if (GetElementById("trSponsorship").style.display=="")
 			{
 				GetElementById("trSponsorship").style.display='none';	
 				deleteCookie("trSponsorship",null,null);
 			}
 			else
 			{
 				GetElementById("trSponsorship").style.display="";
 				setCookie("trSponsorship","true", null, null, null, null);
 			}
 		}
 		
 		function ManageShopSubMenu(){
 		if (GetElementById("trShop").style.display=="")
 			{
 				GetElementById("trShop").style.display='none';	
 				deleteCookie("trShop",null,null);
 			}
 			else
 			{
 				GetElementById("trShop").style.display="";
 				setCookie("trShop","true", null, null, null, null);
 			}
 		}
		
		
	
		function LoadGallery(pictureName,imageFile)
		{
		if (document.all)
		{
			document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
			document.getElementById(pictureName).filters.blendTrans.Apply();
		}
		document.getElementById(pictureName).src = imageFile;
		if (document.all)
		{
			document.getElementById(pictureName).filters.blendTrans.Play();
		}
		}

 		
