function recall()
{
	var h=(!document.all)?window.innerHeight:document.body.clientHeight;
	var l= (!document.all)?window.innerWidth:document.body.clientWidth;
	if (h<480) {
		document.getElementById("main").style.top='0px';
		document.getElementById("main").style.marginTop='0px';
	}
	else
	{
		document.getElementById("main").style.top='50%';
		document.getElementById("main").style.marginTop='-240px';
	}
	if (l<798) {
		document.getElementById("main").style.left='0px';
		document.getElementById("main").style.marginLeft='0px';
	}
	else
	{
		document.getElementById("main").style.left='50%';
		document.getElementById("main").style.marginLeft='-399px';
	}
}

function recall3()
{
	var h=(!document.all)?window.innerHeight:document.body.clientHeight;
	var l= (!document.all)?window.innerWidth:document.body.clientWidth;
	var h1=document.getElementById("main").clientHeight;
	var l1=document.getElementById("main").clientWidth;
	var tp=(h-h1)/2;
	var lp=(l-l1)/2;
	if (tp<0) tp=0;
	if (lp<0) lp=0;
	document.getElementById("main").style.top=tp+ 'px';
	document.getElementById("main").style.left=lp+ 'px';
}

function recall2()
{
	var h=(!document.all)?window.innerHeight:document.body.clientHeight;
	var l= (!document.all)?window.innerWidth:document.body.clientWidth;
	var h1=document.getElementById("main").clientHeight;
	var l1=document.getElementById("main").clientWidth;
	var tp=(h-h1)/2;
	var lp=(l-l1)/2;
	if (tp<0) tp=0;
	if (lp<0) lp=0;
	document.getElementById("main").style.top=tp+ 'px';
	document.getElementById("main").style.left=lp+ 'px';
	
	document.getElementById("sub1").style.top=tp+141+'px';
	document.getElementById("sub2").style.top=tp+162+'px';
	document.getElementById("sub3").style.top=tp+183+'px';
	document.getElementById("sub4").style.top=tp+204+'px';
	
	document.getElementById("sub1").style.left=lp+135+ 'px';
	document.getElementById("sub2").style.left=lp+135+ 'px';
	document.getElementById("sub3").style.left=lp+135+ 'px';
	document.getElementById("sub4").style.left=lp+135+ 'px';
}

function show(name,path)
{
	document.getElementById("flech"+name).src=path+'images/fleche1.gif';
	document.getElementById("div"+name).style.backgroundColor='#9ABFF7';
	if (name=='4')
	{
		document.getElementById("div"+name).style.backgroundImage='url('+path+'images/coinbas.gif)';
		document.getElementById("div"+name).style.backgroundPosition='Bottom Right';
		document.getElementById("div"+name).style.backgroundRepeat='no-repeat';
	}
	else
		document.getElementById("sub"+name).style.display="block";
}

function swapoffall()
{
	document.getElementById("s11").style.backgroundColor="#9ABFF7";
	document.getElementById("s12").style.backgroundColor="#9ABFF7";
	
	document.getElementById("s14").style.backgroundColor="#9ABFF7";
	
	document.getElementById("s21").style.backgroundColor="#9ABFF7";
	document.getElementById("s22").style.backgroundColor="#9ABFF7";
	document.getElementById("s23").style.backgroundColor="#9ABFF7";
	
	document.getElementById("s31").style.backgroundColor="#9ABFF7";
	document.getElementById("s32").style.backgroundColor="#9ABFF7";
	document.getElementById("s33").style.backgroundColor="#9ABFF7";
	document.getElementById("s34").style.backgroundColor="#9ABFF7";
	document.getElementById("s35").style.backgroundColor="#9ABFF7";
}

function swapon(obj)
{
 	swapoffall();
	obj.style.backgroundColor="#00188F";
	
}

function swapoff(obj)
{
	obj.style.backgroundColor="#9ABFF7";
	
}

function hide(path)
{
	document.getElementById("sub1").style.display="none";
	document.getElementById("sub2").style.display="none";
	document.getElementById("sub3").style.display="none";
	document.getElementById("sub4").style.display="none";
	document.getElementById("flech1").src=path+'images/fleche2.gif';
	document.getElementById("flech2").src=path+'images/fleche2.gif';
	document.getElementById("flech3").src=path+'images/fleche2.gif';
	document.getElementById("flech4").src=path+'images/fleche2.gif';
	document.getElementById("div1").style.backgroundColor='';
	document.getElementById("div2").style.backgroundColor='';
	document.getElementById("div3").style.backgroundColor='';
	document.getElementById("div4").style.backgroundColor='';
	document.getElementById("div4").style.backgroundImage='';
}