// JScript File

window.onresize = SetPosition;
window.onload = init;
var mtop = 95;
var ltop = 177;
var src = "http://www.isartech.com/bywar/";
var IE = false; Nav = false;

function init()
{
	if (navigator.appName=="Netscape")
	{
		Nav = true;
	}
	else
	if (navigator.appName=="Microsoft Internet Explorer")
	
	{
		IE = true;
	}
	SetPosition();
}

function GetWidth()
{
	if (Nav)
	{
		return document.width;
	}
	else
	if (IE)
	{
		return document.body.clientWidth;
	}
}

function GetHeight()
{
	if (Nav)
	return document.documentElement.scrollHeight;
	else
	if (document.body.scrollHeight > document.body.clientHeight)
		return document.body.scrollHeight;
	else
		return document.body.clientHeight;
}

function SetPosition()
{
	var width = GetWidth();
	var height = GetHeight();
	if (width < 779)
		width = 779;

	var menu = width / 2 - 263;
	var l1 = width / 2 - 279;
	var l2 = width / 2 - 160;
	var l3 = width / 2 - 50;
	var l4 = width / 2 - 26;
	var l5 = width / 2 + 124;
	var lang = width - 147;
	var langlist = width - 73;

		document.getElementById('menu').style.left = menu + "px";
		document.getElementById('list1').style.left = l1 + "px";
		document.getElementById('list2').style.left = l2 + "px";
		document.getElementById('list3').style.left = l3 + "px";
		document.getElementById('list4').style.left = l4 + "px";
		document.getElementById('list5').style.left = l5 + "px";
		document.getElementById('lang').style.left = lang + "px";
		document.getElementById('langlist').style.left = langlist + "px";
		document.getElementById('owner').style.top = GetHeight() - 30 + "px";
}

function showmn(menuid,imageid)
{
	document.getElementById(menuid).style.visibility = "visible";
	changimg1(imageid);
}

function changimg1(image)
{
	document.getElementById(image).src = src + "images/" + image + "2.jpg";
}

function hidemn(menuid,imageid)
{
	document.getElementById(menuid).style.visibility = "hidden";
	changimg2(imageid);
}

function changimg2(image)
{
	document.getElementById(image).src = src + "images/" + image + "1.jpg";
}

