//dimehoteles.com 2007

function ShowWaiter() {
	try{
		var x,y;
		var test1 = document.body.scrollHeight;
		var test2 = document.body.offsetHeight
		if (test1 > test2) // all but Explorer Mac
		{
			x = document.body.scrollWidth;
			y = document.body.scrollHeight;
		}
		else // Explorer Mac;
			 //would also work in Explorer 6 Strict, Mozilla and Safari
		{
			x = document.body.offsetWidth;
			y = document.body.offsetHeight;
		}
		
		document.getElementById('courtain').style.height=y;	
		document.getElementById('courtain').style.width=x;	

		document.getElementById('courtain').style.visibility='visible';	
	}
	catch(e){}

	/*try{
		document.getElementById('flashwaiter').Rewind();
		document.getElementById('flashwaiter').Play();
	}
	catch(e){}*/

	try{
//		document.doreservation.selfoc.focus();
		
		document.getElementById('waiter').style.visibility='visible';
		
		HideCombos();
	}
	catch(e){}


	try{
	//	document.doreservation.selfoc.focus();
		
		document.getElementById('inlinewaiterbox').style.display='inline';
		
	}
	catch(e){}

	try{
		setTimeout('IEWaiter()', 300);  //iexplorer 6 bug >:(
	}
	catch(e){}

	try{
	//	window.scrollTo(0,0) ;
	}
	catch(e){}

}

function IEWaiter() {
	try{
		document.images["waiterloader"].src = "/Images/waiter-loader.gif";
	}
	catch(e){}	

	try{
		document.images["waiterloader2"].src = "/Images/waiter-loader.gif";
	}
	catch(e){}	
}

function HideCombos(){  //iexplorer 6 bug >:(
    if(!window.attachEvent) return false;
    var selects = document.getElementsByTagName('select');
    for( var i=0; i<selects.length; i++ ){
        selects[i].style.visibility = 'hidden';
    }
}

function ShowCombos(){  //iexplorer 6 bug >:(
    if(!window.attachEvent) return false;
    var selects = document.getElementsByTagName('select');
    for( var i=0; i<selects.length; i++ ){
        selects[i].style.visibility = 'visible';
    }
}