var mMenu=new Array("home","bio","creations","exhibitions","contact","guestbook")
// var zMenu=new Array("HOME","BIOGRAPHY","CREATIONS","EXHIBITIONS","CONTACT","GUESTBOOK")
var vhome
function top(path){
document.write("<td background="+path+"images/top.jpg style=background-repeat:no-repeat width=1024 height=106px valign=top>"+
"<table cellpadding=0 cellspacing=0>"+
"<tr>"+
"<td width=185></td>"+
"<td width=650 align=right class=smtxt><a href="+path+">HOME</a> | <a href="+path+"account/>LOGIN</a></td>"+
"<td width=185></td>"+
"</tr>"+
"</table>"+
"</td>")
}

function btnhome(path){
document.write("<a href='../'><img src="+path+"images/home.jpg border=0 title='Go to Home Page'></a>")
}
		
function footer(path){			
document.write("<tr>"+
"<td background="+path+"images/footer.jpg style=background-repeat:no-repeat width=1024 height=93px>"+
"<table cellpadding=0 cellspacing=0>"+
"<tr>"+
"<td width=185px></td>"+
"<td width=650px align=center class=txt>Copyright@www.kinmaungyin.com|All rights reserved | 2007~2011, Powered by:: <img src="+path+"images/im.jpg align=texttop></td>"+
"<td width=185px></td>"+
"</tr>"+
"</table>"+
"</td>"+
"</tr>")}

function btnhover(flag,call)
{
	if (vhome==1){
	for(i=1;i<mMenu.length;i++)
	{	if (i==call){
		if (flag==1){
		document.all[mMenu[i]].src="./images/btn_"+mMenu[i]+"_o.jpg"
		}else{
		document.all[mMenu[i]].src="./images/btn_"+mMenu[i]+".jpg"
		} }
	}//end for
	}else
	{	
	for(i=1;i<mMenu.length;i++)
	{	if (i==call){
		if (flag==1){
		document.all[mMenu[i]].src="../images/btn_"+mMenu[i]+"_o.jpg"
		}else{
		document.all[mMenu[i]].src="../images/btn_"+mMenu[i]+".jpg"
		} }
	}//end for
	}
}
function menu(path,call)
{	
    if (call==0){vhome=1;}
	for(i=1;i<mMenu.length;i++)
	{
		if (i==call)
		{	
		document.write("<img src="+path+"images/btn_"+mMenu[i]+"_o.jpg border=0 name="+mMenu[i]+">&nbsp;&nbsp;")
        }else
        {
        document.write("<a href="+path+""+mMenu[i]+"><img src="+path+"images/btn_"+mMenu[i]+".jpg border=0 name="+mMenu[i]+" onmouseover=btnhover('1',"+i+") onmouseout=btnhover('0',"+i+")></a>&nbsp;&nbsp;")
        }
    }//end for
}       
