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 selecteddiv="div_seven";
//var selecteddiv1 ="seven";

var selecteddiv="div_six";
var selecteddiv1 ="six";

function highlight(id) 
{
	var divs = "div_" + 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 = '0066FF'");
			window.document.all.line.bgColor = '0066FF';
			}
	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 (id == 'six')
		{eval(id + ".bgColor = 'f38b02'");
			window.document.all.line.bgColor = 'f38b02';
			}
	}
	else if (whichversion() == 'NS4')
	{
	
	}
}

function unhighlight(id) {

	if (whichversion() == 'IE4')
	{
	eval(id + ".bgColor = 'black'");
	}
	if (whichversion() == 'NS4')
	{
	}	
}

function highlight1(id) 
{
	if (whichversion() == 'IE4')
	{
	var id1 = "div_" + id;
	eval(id1 + ".bgColor = 'black'");
	substr = id.substring(0,3);
	
	if (substr == 'one')
		{
	window.document.all.line.bgColor = '716a75';
	window.document.all.one.bgColor = '716a75';
		}
	else if (substr == 'two')
		{
	window.document.all.line.bgColor = '7077a2';
	window.document.all.two.bgColor = '7077a2';
		}
	else if (substr == 'thr')
		{
	window.document.all.line.bgColor = '0066FF';
	window.document.all.three.bgColor = '0066FF';
		}	
	else if (substr == 'fou')
		{
	window.document.all.line.bgColor = 'E75252';
	window.document.all.four.bgColor = 'E75252';
		}
	else if (substr == 'fiv')
		{
	window.document.all.line.bgColor = '81a765';
	window.document.all.five.bgColor = '81a765';
		}
	else if (substr == 'six')
		{
	window.document.all.line.bgColor = 'f38b02';
	window.document.all.six.bgColor = 'f38b02';
		}
	}
	if (whichversion() == 'NS4')
	{
	}
}

function unhighlight1(id) {
	if (whichversion() == 'IE4')
	{
	var id1 = "div_" + id;
	substr = id.substring(0,3);
	
	if (substr == 'one')
	{eval(id1 + ".bgColor = '716a75'");}

	if (substr == 'two')
	{eval(id1 + ".bgColor = '7077a2'");}

	if (substr == 'thr')
	{eval(id1 + ".bgColor = '0066FF'");}

	if (substr == 'fou')
	{eval(id1 + ".bgColor = 'E75252'");}
	
	if (substr == 'fiv')
	{eval(id1 + ".bgColor = '81a765'");}	
	if (substr == 'six')
	{eval(id1 + ".bgColor = 'f38b02'");}

	}
	if (whichversion() == 'NS4')
	{
	}
}

var tohidenext="item0";

//hidediv function copied from other js file

function hidediv() 
{
	if (whichversion() == 'IE4')
	{
		window.document.all(selecteddiv).style.visibility='hidden';
    	window.document.all(selecteddiv1).bgColor = 'black';
   		window.document.all.line.bgColor = 'white';
	}
	else if (whichversion() == 'NS4')
	{
	}
}

function show(division)
	{
	var division1="item" + 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'
		if(screen.availwidth>800)
			{
			status.left="360"}
		}
		}
	}

var tohidenext1="itemair0";

function show1(division)
	{
	var division1="itemair" + division;
		
	if (whichversion() == "NS4")
	{
	window.document.layers[tohidenext1].visibility='hide';
	tohidenext1=division1;
	
	var status=document.layers[division1];
		if(status.visibility=='hide')
			{status.visibility='show';}
		else status.visibility='hide'}

	else if (whichversion() == "IE4")
	{
	window.document.all[tohidenext1].style.visibility='hidden';
	tohidenext1=division1;
	var status=document.all[division1].style;
	if(status.visibility=='visible')
			{status.visibility='hidden'}
		else status.visibility='visible'}
	}
	
function maintain() 
{
	if (whichversion() == 'IE4')
	{
	if (idstore == 'one')
		{eval(idstore + ".bgColor = '716a75'");
			window.document.all.line.bgColor = '716a75';
			}
	else if (idstore == 'two')
		{eval(idstore + ".bgColor = '7077a2'");
			window.document.all.line.bgColor = '7077a2';
			}
	else if (idstore == 'three')
		{eval(idstore + ".bgColor = '0066FF'");
			window.document.all.line.bgColor = '0066FF';
			}
	else if (idstore == 'four')
		{eval(idstore + ".bgColor = 'E75252'");
			window.document.all.line.bgColor = 'E75252';
			}
	else if (idstore == 'five')
		{eval(idstore + ".bgColor = '81a765'");
			window.document.all.line.bgColor = '81a765';
			}
	else if (idstore == 'six')
		{eval(idstore + ".bgColor = 'f38b02'");
			window.document.all.line.bgColor = 'f38b02';
			}
	}
	else if (whichversion() == 'NS4')
	{
	}
}

function load()
{
if (screen.availwidth<=640) {

if (whichversion() == "NS4")
	{
	}
	else if (whichversion() == "IE4")
	{
window.document.all('div_one').style.left = 10;
window.document.all('div_two').style.left = 84;
window.document.all('div_three').style.left = 360;
window.document.all('div_four').style.left = 223;
window.document.all('div_five').style.left = 391;
window.document.all('div_six').style.left = 533;
	}
}
else if (screen.availwidth<=800) {
if (whichversion() == "NS4")
	{
	}
	else if (whichversion() == "IE4")
	{
window.document.all('div_one').style.left = 79;
window.document.all('div_two').style.left = 155;
window.document.all('div_three').style.left = 420;
window.document.all('div_four').style.left = 243;
window.document.all('div_five').style.left = 461;
window.document.all('div_six').style.left = 556;
	}
} 

else {
	if (whichversion() == "NS4")
	{
	}
	else if (whichversion() == "IE4")
	{
	window.document.all('div_one').style.left = 192;
	window.document.all('div_two').style.left = 268;
	window.document.all('div_three').style.left = 535;
	window.document.all('div_four').style.left = 374;
	window.document.all('div_five').style.left = 571;
	window.document.all('div_six').style.left = 715;
	}
}
}

function swap(id) 
{
	if (whichversion() == 'IE4')
	{
		eval(id + ".bgColor = '#716a75'");
    	window.document.all(selecteddiv).style.visibility='hidden';
    	if (selecteddiv != 'div_three')
    	{
    	window.document.all(selecteddiv1).bgColor = 'black';
   		}
   		window.document.all.line.bgColor = '#f38b02';
	}
	else if (whichversion() == 'NS4')
	{
	}
}

function swap1(id1) 
{
	if (whichversion() == 'IE4')
	{
		eval(id1 + ".bgColor = '#f38b02'");
	}
	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)
		 {
			for (var i=0; i<50; i++) {
				itemid = "item" + i;
				window.document.layers[itemid].left = 190;
				}
				
			}
			
			else if (screen.availWidth<=800) 
					{
			for (var i=0; i<50; i++) {
				itemid = "item" + i;
				window.document.layers[itemid].left = 265;
				}
	
				}
				else 
				{

			for (var i=0; i<50; i++) {
				itemid = "item" + i;
				window.document.layers[itemid].left = 380;
				}
	
				}

			}

		else if (whichversion() == "IE4")
		{
		if (screen.availwidth<=640)
			{
			for (var i=0; i<50; i++) {
				itemid = "item" + i;
			window.document.all(itemid).style.left = 180;
				}
			}	
		else if (screen.availwidth<=800) 
			{
			for (var i=0; i<50; i++) {
				itemid = "item" + i;
			window.document.all(itemid).style.left = 265;
				}
			}
		else 
			{
			
			for (var i=0; i<50; i++) {
			
				itemid = "item" + i;
			window.document.all(itemid).style.left = 378;
                   
				}
			}
		}
}

