<!--

function findPosX(id)
{
  var curleft = 0;

 obj=document.all[id];
  while (obj.offsetParent)
  {
   curleft += obj.offsetLeft
   obj = obj.offsetParent;
  }
 return curleft;
}

function findPosY(id)
{
 var curtop = 0;
 obj=document.all[id];
  while (obj.offsetParent)
  {
   curtop += obj.offsetTop
   obj = obj.offsetParent;
  }
 return curtop;
}

function makeMenu(obj){
	this.css=eval('document.all.'+obj+'.style');
	this.x=this.css.pixelLeft; this.y=this.css.pixelTop;
	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 init(){
	oMenu=new Array();
	var x=findPosX("pos")+5;
	var y=findPosY("pos");
x=+178;
	for (i=1;i<=3;i++)
	{
		oMenu[i]=new makeMenu(eval("'imgAct'+i"));
		oMenu[i].moveIt(x,y);
		x+=116;
	}
}

function initall()
{
if(ready) init()
}

// динамические функции
// показывает слой
function show_lay(num)
{
	if(ready)
	{
		for (i=1;i<=(oMenu.length-1);i++)
		{
			oMenu[i].hideIt();
		}
		oMenu[num].showIt();
	}
}

//скрывает все динамические элементы
function hide_all()
{
	if(ready)
	{
		for (i=1;i<=(oMenu.length-1);i++)
		{
			oMenu[i].hideIt();
		}
	}

}


function ref(url){
if(ready) eval("window.location='"+url+"'");
}

function check()
{
if(!ready) return;
whichEl = event.srcElement;
while ((whichEl.id.indexOf("imgAct") == -1)&&(whichEl.id.indexOf("imgPass") == -1)){
	whichEl = whichEl.parentElement;
	if (whichEl == null) { 
		for(i=1; i<=3; i++){
			hide_all();
			}
		return true;
		}
	}
return true;
}

onresize=initall;
document.onmouseover=check;

//-->