function openMenu(menuId) {
		
		if(navigator.appName == "Netscape") {
			var left = window.innerWidth / 2 - 280;
			if(document.getElementById('Menu' + menuId))
				document.getElementById('Menu' + menuId ).style.left = left;
		} else {
			var left = document.body.clientWidth / 2 - 280;
			if(document.all.item('Menu'+ menuId ))
				document.all.item('Menu'+ menuId ).style.left = left;
		}

		for(i = 1; i <= 7; i++) 
			if(document.getElementById('Menu'+i)) {
				var menu = document.getElementById('Menu'+i);
				if(menu.style)
					menu = menu.style;
	
				if(i == menuId)
					menu.visibility = 'visible';
				else 
					menu.visibility = 'hidden';
		}
	}
			
	delayed = setTimeout("", 1);
	clearTimeout(delayed);
	
	function delayMenu() {
		delayed = setTimeout("hideMenu()", 500)
	}
		
	function freeze() {
		clearTimeout(delayed);
	}
		
	function hideMenu() {
		for(i = 1; i <= 7; i++)
		if(document.getElementById('Menu'+i)){
			if(document.getElementById('Menu'+i).style)
				document.getElementById('Menu'+i).style.visibility = 'hidden';
			else
				document.getElementById('Menu'+i).visibility = 'hidden';
		}
	}
	
            function MM_swapImgRestore() {
              var i, x, a = document.MM_sr; 
			  for(i=0; a && i < a.length && (x=a[i]) && x.oSrc; i++)
				  x.src = x.oSrc;
            }
            
            function MM_swapImage() {
				var i, j = 0, x, a = MM_swapImage.arguments; 
				document.MM_sr = new Array; 
			  	for(i = 0; i < (a.length-2); i+=3)
					if ((x = MM_findObj(a[i])) != null) {
						document.MM_sr[j++] = x; 
						if(!x.oSrc) x.oSrc = x.src; 
						x.src = a[i+2];
					}
            }
            
            function hhmsubmit(targ,selObj,restore){
				eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
            if (restore) 
				selObj.selectedIndex=0;
            }
            
			
            function opensesame(theURL,winName,features) {
              window.open(theURL,winName,features);
            }
			
			function resize(height) {
				window.parent.document.getElementById('sisus').style.height = height;
			}
			
			
			
			function opensesame2(theURL,winName,features) {
              window.open(theURL,winName,features);
            }            
			
			
			
			function MM_findObj(n, d) {
				var p,i,x;  
				if(!d) d=document; 
					if((p=n.indexOf("?"))>0&&parent.frames.length) {
						d=parent.frames[n.substring(p+1)].document; 
						n=n.substring(0,p);
					}
				if(!(x=d[n])&&d.all) x=d.all[n]; 
					for (i=0;!x&&i<d.forms.length;i++) 
						x=d.forms[i][n];
				for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
					x=MM_findObj(n,d.layers[i].document);
			if(!x && document.getElementById) 
				x=document.getElementById(n); 
			
			return x;
			
			}
			
			
			
			function MM_preloadImages() { //v3.0
              var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
                var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
                if (a[i].indexOf("##")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
            }
            
            function MM_swapImgRestore() { //v3.0
              var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
            }
            
            function MM_swapImage() { //v3.0
            	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
			if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
            }
            
            function hhmsubmit(targ,selObj,restore){ //v3.0
            	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
            if(restore) selObj.selectedIndex=0;
            }
            
            function opensesame(theURL,winName,features) { //v2.0
            	window.open(theURL,winName,features);
            }            
            //-->
			function opensesame2(theURL,winName,features) { //v2.0
            	window.open(theURL,winName,features);
            }  
			
function Win_description() {
  this.url = "tarkennus.htm";
  this.width = 300;
  this.height = 180;
  this.top = 200;
  this.left = 400;
  this.scrollbars = "No";
}

function Win_program() {
  this.width = 600;
  this.height = 460;
  this.top = 40;
  this.left = 40;
  this.scrollbars = "Yes";
}

function Win_alacarte() {
  this.width = 650;
  this.height = 580;
  this.top = 5;
  this.left = 5;
  this.scrollbars = "Yes";
}

function Win_holyday() {
  this.width = 600;
  this.height = 360;
  this.top = 40;
  this.left = 40;
  this.scrollbars = "Yes";
  //window.open(u, "", 'width=, height=",top=,left=,scrollbars=Yes');
}

function Win_connect() {
  this.url = "kulkuyhteydet.htm";
  this.width = 700;
  this.height = 560;
  this.top = 40;
  this.left = 40;
  this.scrollbars = "Yes";
}

function Win400x560() {
  this.width = 400;
  this.height = 560;
  this.top = 40;
  this.left = 40;
  this.scrollbars = "Yes";
  
}

//window.open(u, "", 'width=, height=",top=,left=,scrollbars=');

var w_description = new Win_description();
var w_holiday = new Win_holyday();
var w_program = new Win_program();
var w_alacarte = new Win_alacarte();
var w_conn = new Win_connect();
var w400x560 = new Win400x560();

function openWin(w, url) {
  if (w.url) u = w.url 
    else u = url;    
  win = window.open(u, "", "width=" + w.width + ", height=" + w.height + ",top=" + w.top + ",left=" + w.left + ",scrollbars=" + w.scrollbars);
}

function drawCloseButton(text, altLink, altText) {
  if (self.opener) {
    document.write('<div align="center"><a class="button" href="JavaScript:window.close()">' + text + '</a> </div>');
  } else {
    document.write('<div align="center"><a class="button" href="' + altLink + '">' + altText + '</a></div>');
  }
}


	function orderMenu() {
		
		if(document.layers) {
			
			var left = window.innerWidth / 2 - 280;
			var top = 215;
			
			for(i=1;i<8;i++) 
			if(document.layers('Menu' + i))
				{
				
				document.layers('Menu' + i).top = top;
				document.layers('Menu' + i).left = left;
				
				if(i < 4)
					top = top + 46;
				else if(i==4)
					top = top - 108;
				else if(i==5)
					top = top + 122;
				else if(i==6)
					top = top + 20;
			}
		
		} else 
			if(document.all) {
			
			var left = document.body.clientWidth / 2 - 280;
			var top = 300;
			
			for(i=1;i<8;i++) 
				if(document.all.item('Menu' + i))
				{
				
				document.all.item('Menu' + i).style.top = top;
				document.all.item('Menu' + i).style.left = left;
				
				if(i < 4)
					top = top + 46;
				else if(i==4)
					top = top - 108;
				else if(i==5)
					top = top + 122;
				else if(i==6)
					top = top + 20;
			}
		}
		
		else {
			var left = window.innerWidth / 2 - 280;
			
			var top = 290;
			
			for(i=1;i<8;i++) 
			if(document.getElementById('Menu' + i))
				{
				
				document.getElementById('Menu' + i).style.top = top;
				document.getElementById('Menu' + i).style.left = left;
				
				if(i < 4)
					top = top + 46;
				else if(i==4)
					top = top - 108;
				else if(i==5)
					top = top + 122;
				else if(i==6)
					top = top + 20;
			}
					
		
	}
	
	}