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";

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";

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'}
	}

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;
	}
}
}

