var ie=(document.all)?1:0;
var hide=-1;
var isMozilla=false;
var bDom = document.getElementById?1:0;
var bVersion=navigator.appVersion;
isMozilla=(bDom&&parseInt(bVersion)>=5)?1:0;
opera=window.opera?1:0;

var isMozilla=false;
var bDom = document.getElementById?1:0;
var bVersion=navigator.appVersion;
isMozilla=(bDom&&parseInt(bVersion)>=5)?1:0;

if(ie)
{
	var menu_x=(screen.width==800)?[42,42]:[42,42];
}
else{
	var menu_x=(screen.width==800)?[43,43]:[43,43];
}
if(ie)
{

	var menu_y=(screen.width==800)?[461,401]:[461,401];
}
else{
	var menu_y=(screen.width==800)?[455,388]:[455,388];
}
	
//	if(ie)
//	{
//		var menu_x=[143,143];
//		var menu_y=[461,401];
//	}
//	else
//	{
//		var menu_x=[143,143];
//		var menu_y=[455,388];
//	}

	
	var str="";
	str+="<style>\n";
	str+="a.menu{font-family:arial; font-size:12px; color:#C0BFBF; text-decoration:underline;}\n";
	str+="a.menu:hover{font-family:arial; font-size:12px; color:#000000; text-decoration:none;}\n";
	if(ie)
	{
		str+="#Mmenu0{filter:alpha(opacity=100); position:absolute;top:" + menu_y[0] +  "px;left:" + menu_x[0] + "px;visibility:hidden;z-index:10;}\n"; 
		str+="#Mmenu1{filter:alpha(opacity=100); position:absolute;top:" + menu_y[1] +  "px;left:" + menu_x[1] + "px;visibility:hidden;z-index:10;}\n"; 
	}
	else
	{
		str+="#Mmenu0{position:absolute;top:" + menu_y[0] +  "px;left:" + menu_x[0] + "px;visibility:hidden;}\n";
		str+="#Mmenu1{position:absolute;top:" + menu_y[1] +  "px;left:" + menu_x[1] + "px;visibility:hidden;}\n";
	}
	str+="</style>";
	document.write (str);

	function mout(x){
		
	}

	function hideall(){
		for(i=0;i<=1;i++) { 
			if(ie) eval("Mmenu"+i +".style.visibility='hidden';");
			else if (isMozilla){
				var objMDiv = document.getElementById("Mmenu"+i);
				objMDiv.style.visibility="hidden";
			}
			else  document.layers[i].visibility="hide";
			}
	}

	function menu(x){
		hideall();
		temp=x;
		if(ie) eval("Mmenu"+ x +".style.visibility='visible';");
		else if (isMozilla){
				var objMDiv = document.getElementById("Mmenu"+ x);
				objMDiv.style.visibility="visible";
			}
		else  document.layers[x].visibility="show";
	}
	
	document.write ("<div id='Mmenu0' >");
	document.write ("<table cellpadding=4 cellspacing=1 border=0>");
	document.write ("<tr>");
	document.write ("<td><a id='a9' href='javascript:show_menu(9)' class='square1'></a></td>");
	document.write ("<td><a id='a10' href='javascript:show_menu(10)' class='square1'></a></td>");
	document.write ("<td><a id='a11' href='javascript:show_menu(11)' class='square1'></a></td>");
	document.write ("<td><a id='a12' href='javascript:show_menu(12)' class='square1'></a></td></tr>");
	document.write ("</table>");
	document.write ("</div>");
	
	document.write ("<div id='Mmenu1'>");
	document.write ("<table cellpadding=4 cellspacing=1 border=0 >");
	document.write ("<tr>");
	document.write ("<td><a id='a13' href='javascript:show_menu(13)' class='square1'></a></td></tr>");
	document.write ("</table>");
	document.write ("</div>");


function show_menu(arg)
	{
	document.getElementById("website").src='website/web_image'+arg+'.jpg';
	for(i=6;i<=14;i++)
		{
			//if ((i!=9) && (i!=11) && (i!=12) && (i!=13))
			if(document.getElementById('a'+i)){
			  document.getElementById('a'+i).style.backgroundColor='';
			}
		}
	document.getElementById('a'+arg).style.backgroundColor='#CC6633';

	}

function show(arg)
	{
		document.getElementById("website").src='website/web_image'+arg+'.jpg';
	}

