// This is the code for the navigation bar
var submenu=new Array()
//no List
submenu[0]=''

submenu[1]=''
submenu[1]+='<a href="aboutenP.shtml">About Us</a> |'
submenu[1]+='<a href="aboutjp.shtml"><img src="Images/nihongo.gif" border="0"></a>'

submenu[3]=''
submenu[3]+='<a href="amvs.shtml">AMVs</a> |'
submenu[3]+='<a href="artshow.shtml">Art Show</a> |'
submenu[3]+='<a href="cosplay.shtml">Cosplay</a> |'
submenu[3]+='<a href="banquet.shtml">Guest Breakfast</a>'

submenu[4]=''
submenu[4]+='<a href="volunteer.shtml">Volunteer</a>'

submenu[5]=''
submenu[5]+='<a href="press.shtml">Press</a> |'
submenu[5]+='<a href="ads.shtml">Advertise With Us</a>'

function dropmenu(menuNo){
	var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""
	clear_delayhide()
	thecontent=(menuNo==-1)? "" : submenu[menuNo]
	if (document.getElementById||document.all)
		menuobj.innerHTML=thecontent
	else if (document.layers){
		menuobj.document.write(thecontent)
		menuobj.document.close()
	}
}

function resetit(e){
var delay_hide=500
var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("dropmenu(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("dropmenu(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

// open popup news window
function newsWindow(URL)
{
	window.open(URL,"mywindow","width=500,height=400,left = 262,top = 134");
}
//redirect to open parent and close news popup
function toParent(url)
{
	opener.location.href = url;
	self.close();
}
