<!--
var n =0;
var ie = 0;
var nie = 0;
var browser=0;
var tOut;
coords_x=new Array();
coords_y=new Array();

coords_x[1]=87;
coords_y[1]=105;
coords_x[2]=242;
coords_y[2]=105;
coords_x[3]=306;
coords_y[3]=105;
coords_x[4]=375;
coords_y[4]=105;
coords_x[5]=173;
coords_y[5]=105;
coords_x[6]=547;
coords_y[6]=105;

function winop(imgurl, width, height)
{
    title = "foto";
    im = window.open('', 'win','top=40,left=40,width='+width+',height='+height+', scrollbars=no, menu=no,status=yes,resizable=no');
    im.focus();
    im.document.open ("text/html");
    im.document.write ('<html><title>'+title+'</title><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#ffffff><img src='+imgurl+' width='+width+' height='+height+'></body></html>');
    im.document.close ();
}

function makeMenu(obj){
	if (n) this.css=eval('document.'+obj);
	if (ie) this.css=eval('document.all.'+obj+'.style');
		else if (nie) this.css=eval('document.getElementById("'+obj+'").style');
		
	if (n) {this.x=this.css.left; this.y=this.css.top;}
	if (ie) {this.x=this.css.pixelLeft; this.y=this.css.pixelTop;}
		else if (nie) {this.x=this.css.left; this.y=this.css.top;}	
	this.hideIt=b_hideIt;	this.showIt=b_showIt; this.moveIt=b_moveIt											
	return this
}

function b_showIt(){this.css.visibility="visible"}
function b_hideIt(){this.css.visibility="hidden"}
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x; this.css.top=this.y}

function initall()
{
	/*
n = (document.layers) ? 1:0;
ie = (document.all) ? 1:0;
*/
n=0; ie=0;
nie = (document.getElementById) ? 1:0;
browser=nie || ((n || ie) && parseInt(navigator.appVersion)>=4);

if(browser) init()
//alert(browser);
}

function init(){
	oMenu=new Array();
		
	for (i=1;i<=6;i++)
	{
		oMenu[i]=new makeMenu(eval("'divMenu'+i"));
		// layi -  ,     
		/*
		var x=findPosX(eval("'lay'+i"))+50;
		var y=findPosY(eval("'lay'+i"));
		*/
		var x=coords_x[i];
		var y=coords_y[i];
		oMenu[i].moveIt(x,y);
	}
}

function show_menu(num)
{
	if(browser)
	{
		for (i=1;i<=(oMenu.length-1);i++)
		{
			oMenu[i].hideIt();
		}
		oMenu[num].showIt();
	}
}

//   
function hide_all()
{
	if(browser)
	{
		for (i=1;i<=(oMenu.length-1);i++)
		{
			oMenu[i].hideIt();
		}
	}

}

//   

function time_out(num)
{
	tOut = eval('setTimeout("oMenu['+num+'].hideIt()", 300)')
}

//   

function clear_timeout()
{
	clearTimeout(tOut);
}
//-->
