// JavaScript Document
var lastMenu='0';
//
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function menuOver(id)
{
	if(lastMenu!='0')
	{
		menuOut(lastMenu);
	}
	//
	var obj = MM_findObj('inner'+id);
	if(obj!=null)
	{
		lastMenu=id;
		obj.style.display = 'block';
	}
}

function menuOut(id)
{
	var obj = MM_findObj('inner'+id);
	if(obj!=null)
	{
		obj.style.display = 'none';
	}
	lastMenu='0';
}

function clickItem(id)
{
	var obj = MM_findObj('item'+id);
	if(obj!=null)
	{
		if(obj.style.display=='block')
		{
			obj.style.display = 'none';
		}
		else
		{
			obj.style.display = 'block';
		}
	}
}

function clickPage(id)
{
	var obj = MM_findObj('contentPage'+id);
	if(obj!=null)
	{
		obj.style.display = 'block';
	}
	//
	var obj = MM_findObj('contentPage'+(3-parseInt(id)));
	if(obj!=null)
	{
		obj.style.display = 'none';
	}
}

function posFlash()
{
	var obj = MM_findObj('flashHolder');
	var hh = parseInt(document.body.clientHeight - 21 - 35);
	if(hh < 450)
	{
		hh = 450;
	}
	obj.style.height = hh + 'px';
	//alert(obj.style.height);
}
