function whichversion(){
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	condition1 = (browserName.indexOf("Netscape") >=0 ) && browserVer >= 4 ;
	condition2 = (browserName.indexOf("Explorer") >= 0) && browserVer >= 4;
	thisbrowser = "";
	if (condition2 == true ) thisbrowser =  "IE4";
	if (condition1 == true ) thisbrowser =  "NS4";
	return thisbrowser;
}

var tohidenext="hotel0";

function show(division)
	{
	var division1="hotel" + division;
		
	if (whichversion() == "NS4")
	{
	window.document.layers[tohidenext].visibility='hide';
	tohidenext=division1;
	var status=document.layers[division1];
		if(status.visibility=='hide')
			{status.visibility='show'}
		else status.visibility='hide'}

	else if (whichversion() == "IE4")
	{
	window.document.all(tohidenext).style.visibility='hidden';
	tohidenext=division1;
	var status=document.all[division1].style;
	if(status.visibility=='visible')
			{status.visibility='hidden'}
		else status.visibility='visible'}
	}


var idstore = "1"

function highlight(id) 
{

	var divs = "div_" + id;
	idstore = id
	
	if (whichversion() == 'IE4')
	{
	window.document.all(divs).style.visibility='visible';
	
	
	window.document.all(selecteddiv).style.visibility='hidden';
	window.document.all(selecteddiv1).bgColor = 'black';
	
	if (divs == selecteddiv)
	{
		window.document.all(divs).style.visibility='visible';
	}
	
	selecteddiv=divs;
	selecteddiv1=id;	
	
	if (id == 'one')
		{eval(id + ".bgColor = '716a75'");
			window.document.all.line.bgColor = '716a75';
			}
	else if (id == 'two')
		{eval(id + ".bgColor = '7077a2'");
			window.document.all.line.bgColor = '7077a2';
			}
	else if (id == 'three')
		{eval(id + ".bgColor = 'f38b02'");
			window.document.all.line.bgColor = 'f38b02';
			}
	else if (id == 'four')
		{eval(id + ".bgColor = 'E75252'");
			window.document.all.line.bgColor = 'E75252';
			}
	else if (id == 'five')
		{eval(id + ".bgColor = '81a765'");
			window.document.all.line.bgColor = '81a765';
			}
	}
	else if (whichversion() == 'NS4')
	{
	
	}
}

function unhighlight(id) {

	if (whichversion() == 'IE4')
	{

	//eval(id + ".bgColor = 'black'");
	//window.document.all.line.bgColor = 'black';
	//eval("three.bgColor = 'black'");
	//window.document.all.line.bgColor = 'black';
	}
	if (whichversion() == 'NS4')
	{
	}	
	
}

function swap(id) 
{
	if (whichversion() == 'IE4')
	{
		eval(id + ".bgColor = '#716a75'");
    	window.document.all(selecteddiv).style.visibility='hidden';
    	
    	window.document.all(selecteddiv1).bgColor = 'black';
   		
   		window.document.all.line.bgColor = 'black';
	}
	else if (whichversion() == 'NS4')
	{
	}
}

function swap1(id1) 
{
	if (whichversion() == 'IE4')
	{
		eval(id1 + ".bgColor = '#333399'");
	}
	else if (whichversion() == 'NS4')
	{
	}
}

	
function hidediv() 
{
	if (whichversion() == 'IE4')
	{
		window.document.all(selecteddiv).style.visibility='hidden';
    	window.document.all(selecteddiv1).bgColor = 'black';
   		window.document.all.line.bgColor = 'black';
   		//eval("three.bgColor = 'black'");
	}
	else if (whichversion() == 'NS4')
	{
	}
}

function swap2(id) 
{

	if (whichversion() == 'IE4')
	{
		eval(id + ".bgColor = '#333399'");
		window.document.all(selecteddiv).style.visibility='hidden';
    	window.document.all(selecteddiv1).bgColor = 'black';
   		window.document.all.line.bgColor = 'black';
	}
	
	else if (whichversion() == 'NS4')
	{
	
	}
}

function swap3(id1) 
{

	if (whichversion() == 'IE4')
	{
		eval(id1 + ".bgColor = '#716a75'");
	}
	
	else if (whichversion() == 'NS4')
	{
	
	}
}
function gomenu()
		{
			optindex=document.qform.qs.selectedIndex;
			govalue=document.qform.qs.options[optindex].value;
			window.location.href=govalue;
		}

function load1()
{
		if (whichversion() == "NS4")
			{
				if (screen.availWidth <= 640)
				 {
				 window.document.layers['hotel0'].left = 180;
				 window.document.layers['hotel1'].left = 180;
				 window.document.layers['hotel2'].left = 180;
				 window.document.layers['hotel3'].left = 180;
				 window.document.layers['hotel4'].left = 180;
				 window.document.layers['hotel5'].left = 180;
				 window.document.layers['hotel6'].left = 180;
				 window.document.layers['hotel7'].left = 180;
				 window.document.layers['hotel8'].left = 180;
				 }
			
			    else if (screen.availWidth <= 800) 
				 {
				 window.document.layers['hotel0'].left = 250;
				 window.document.layers['hotel1'].left = 250;
				 window.document.layers['hotel2'].left = 250;
				 window.document.layers['hotel3'].left = 250;
				 window.document.layers['hotel4'].left = 250;
				 window.document.layers['hotel5'].left = 250;
				 window.document.layers['hotel6'].left = 250;
				 window.document.layers['hotel7'].left = 250;				 
				 window.document.layers['hotel8'].left = 250;				 
				 }
			
				else 
				 {
				 window.document.layers['hotel0'].left = 373;
				 window.document.layers['hotel1'].left = 378;
				 window.document.layers['hotel2'].left = 378;
				 window.document.layers['hotel3'].left = 378;
				 window.document.layers['hotel4'].left = 378;
				 window.document.layers['hotel5'].left = 378;
				 window.document.layers['hotel6'].left = 378;
				 window.document.layers['hotel7'].left = 378;				
				 window.document.layers['hotel8'].left = 378;				
				 }
			}

		else if (whichversion() == "IE4")
		   {
				if (screen.availwidth<=640)
				{
				window.document.all('hotel0').style.left = 180;
				window.document.all('hotel1').style.left = 180;
				window.document.all('hotel2').style.left = 180;
				window.document.all('hotel3').style.left = 180;
				window.document.all('hotel4').style.left = 180;
				window.document.all('hotel5').style.left = 180;
				window.document.all('hotel6').style.left = 180;
				window.document.all('hotel7').style.left = 180;				
				window.document.all('hotel8').style.left = 180;				
				}	

				else if (screen.availwidth<=800) 
				{
				window.document.all('hotel0').style.left = 240;
				window.document.all('hotel1').style.left = 240;
				window.document.all('hotel2').style.left = 240;
				window.document.all('hotel3').style.left = 240;
				window.document.all('hotel4').style.left = 240;
				window.document.all('hotel5').style.left = 240;
				window.document.all('hotel6').style.left = 240;
				window.document.all('hotel7').style.left = 240;
				window.document.all('hotel8').style.left = 240;
				}

				else 
				{
				window.document.all('hotel0').style.left = 353;
				window.document.all('hotel1').style.left = 353;
				window.document.all('hotel2').style.left = 353;
				window.document.all('hotel3').style.left = 353;
				window.document.all('hotel4').style.left = 353;
				window.document.all('hotel5').style.left = 353;
				window.document.all('hotel6').style.left = 353;
				window.document.all('hotel7').style.left = 353;
				window.document.all('hotel8').style.left = 353;
				}
			}
}


