// JavaScript Document

function cg(ai,rt){
		tr=parseInt(rt);
	if(tr>=10){
	
	ai.src='images/over_'+tr+'.jpg';
	}else{
	ai.src='images/over_0'+tr+'.jpg';
	}
	
}	
function rg(ai,rt){
	tr=parseInt(rt);
	if(tr>=10){
	ai.src='images/top_'+tr+'.jpg';
	}else{
	ai.src='images/top_0'+tr+'.jpg';
	}
	
	}

function showsubmenu(at){
var aa;
var menu1;
var menu2;
var menu3;
var menu5;
var menu6;
aa=document.getElementById("menu"+at);
var img;
img = at+4;
if(img==5)
	{
		cg(document.getElementById('Img1'),5);
	}
else
{
rg(document.getElementById('Img1'),5);
}


if(img==6)
	{
		cg(document.getElementById('Img2'),6);
	}
else
{
rg(document.getElementById('Img2'),6);
}

if(img==7)
	{
		cg(document.getElementById('Img3'),7);
	}
else
{
rg(document.getElementById('Img3'),7);
}

if(img==9)
	{
		cg(document.getElementById('Img5'),9);
	}
else
{
rg(document.getElementById('Img5'),9);
}

if(img==10)
	{
		cg(document.getElementById('Img6'),10);
	}
else
{
rg(document.getElementById('Img6'),10);
}
if(aa.style.display=='none'){
	aa.style.display='block';

}
}

function hidesubmenu(at){
var aa;
aa=document.getElementById("menu"+at);

var img;
var menu1;
var menu2;
var menu3;
var menu5;
var menu6;
img = at+4;
if(img==5)
	{
	
rg(document.getElementById('Img1'),5);
}
if(img==6)
	{
	
rg(document.getElementById('Img2'),6);
}
if(img==7)
	{
	
rg(document.getElementById('Img3'),7);
}
if(img==8)
	{
	
rg(document.getElementById('Img4'),8);
}
if(img==9)
	{
	
rg(document.getElementById('Img5'),9);
}
if(img==10)
	{
	
rg(document.getElementById('Img6'),10);
}
if(aa.style.display=='block'){
	aa.style.display='none';
}
}
