No3 = (parseInt(navigator.appVersion) > 3) ? 1:0;
nav6 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5) ? 1 : 0;
layer = 0;
if (No3)
{
	if(document.layers)
	{
		layer = "document.layers['L'+menu]";
	}
	else if (document.all && !(document.getElementById))
	{
		layer = "document.all['L'+menu].style";
	}
	else if(document.getElementById)
	{
		layer = "document.getElementById('L'+menu).style";
	}
}
var timer;

function Show() 
{ 
	if(layer) 
	{
		if(timer)
		{
			clearTimeout(timer);
			for(menu=0; menu<Layer.length; menu++) 
			{ 
				if(Layer[menu]) 
				{ 
					eval(layer).visibility = "hidden"; 
				} 
			}
		}
		for(i=0; i<arguments.length; i++) 
		{
			menu=arguments[i]; 
			eval(layer).visibility = "visible"; 
		}
	} 
}
function Hide() 
{ 
	timer = setTimeout("Show()", 500); 
}

function SwapImg(imgName, imgSrc)
{
	document.images[imgName].src = "images/"+imgSrc+".gif"
}
function writeTopLevel()
{	
document.write(
	'<table width="170" bgcolor="000000" cellspacing="1" cellpadding="5"><tr><td><img src="/images-new/circle.gif" width="15" height="15"></td><td><a href="Javascript:void(0)" onMouseOver="Show(1)" onMouseOut="Hide(1)" class="nav">About Seishin Judo</a></td></tr>'+
	'<tr><td width="15"><img src="/images-new/circle.gif" width="15" height="15"></td><td><a href="/training.htm" class="nav">Training</a></td>'+
	'<tr><td width="15"><img src="/images-new/circle.gif" width="15" height="15"></td><td><a href="Javascript:void(0)" onMouseOver="Show(3)" onMouseOut="Hide(3)" class="nav">Club Information</a></td></tr>'+
	'<tr><td width="15"><img src="/images-new/circle.gif" width="15" height="15"></td><td><a href="/gallery.htm"  class="nav">Photo Gallery</a></td></tr>'+
	'<tr><td width="15"><img src="/images-new/circle.gif" width="15" height="15"></td><td><a href="/Downloads.htm"  class="nav">Downloads</a></td></tr>'+
	'<tr><td width="15"><img src="/images-new/circle.gif" width="15" height="15"></td><td><a href="Javascript:void(0)" onMouseOver="Show(5)" onMouseOut="Hide(5)" class="nav">About Judo</a></td></tr>'+
	'<tr><td width="15"><img src="/images-new/circle.gif" width="15" height="15"></td><td><a href="/links.htm" class="nav">Links</a></td></tr>'+
	'<tr><td width="15"><img src="/images-new/circle.gif" width="15" height="15"></td><td><a href="/contact.htm" class="nav">Contact Us</a></td></tr>'+
	'<tr><td width="15"><img src="/images-new/circle.gif" width="15" height="15"></td><td ><a href="/index.html" class="nav">Home</a></td></tr></table>'
	);
}
hovercolor   = "yellow";	// color name/code
bgcolor      = "#84692B";	// color name/code
arrow_pic    = "images/drill-blu.gif"; // url of arrow picture for submenus

function LayerSpecs(Left,Top,Width) 
{
	if(No3) 
	{
		if(!document.layers) 
		{ 
			Top+=7; Left+=2; Width-=6; 
		}
		this.left  = Left;
		this.top   = Top;
		this.info  = "";
		T=0;
		for(i=3; i<arguments.length; i++) 
		{
			if (document.layers) 
			{ 
				this.info += "<LAYER bgColor='#000000'  WIDTH="+Width+" POSITION=RELATIVE TOP="+T+">&nbsp;"+arguments[i]+"</LAYER>";
			}
			else if(nav6)
			{ 
				this.info += "<TR bgcolor='#000000'><TD WIDTH="+Width+"><SPAN style='margin:0.3em'>"+arguments[i]+"</SPAN></TD></TR>"; 
			}
			else
			{ 
				this.info += "<TR bgcolor='#000000'><TD WIDTH="+Width+">"+arguments[i]+"</TD></TR>"; 
			}
			T+=20;
		}
	}
} 

Layer = new Array();
arrow = "<IMG SRC='"+arrow_pic+"' WIDTH=6 HEIGHT=10 BORDER=0 ALT=''>";


//////////////////////////////////////////////

//	Create Your layers below by typing:
//	 Layer[incrementing number] = new LayerSpecs(Left Position, Top Position, Width, List of Links Seperated by Commas)
//	 If a layer has a sublayer, add onMouseOver=Show(Layer Number to Open, Current Layer, Any Layers Opened before the current layer (seperated by commas)

Layer[1] =	new LayerSpecs(140,133,100,
			'<A class="nav" href="/Word_bruce.htm" onMouseOver="Show(1)">Introduction</A>',
			'<A class="nav" href="/ethospage.html" onMouseOver="Show(1)">Ethos</A>',
			'<A class="nav" href="/Seishin.html" onMouseOver="Show(1)">Meaning</A>',
			'<A class="nav" href="/badgepage.html" onMouseOver="Show(1)">Badge</A>',
			'<A class="nav" href="/coachpage.html" onMouseOver="Show(1)">Instructors</A>'

);

Layer[2] =	new LayerSpecs(120,395,140,
			'<A class="nav" href="/iaido/MainPage.html" onMouseOver="Show(2)">What is Iaido</A>',
			'<A class="nav" href="/iaido/iaido_training_times.html" onMouseOver="Show(2)">Training Times</A>',
			'<A class="nav" href="/iaido/iaido_terminology.htm" onMouseOver="Show(2)">Iaido Terminology</A>',
			'<A class="nav" href="/iaido/coachpage.html" onMouseOver="Show(2)">Instructors</A>'
	

);

Layer[3] =	new LayerSpecs(140,187,100,
			'<A class="nav" href="/news-page.html" onMouseOver="Show(3)">News</A>',
			'<A class="nav" href="/results-page.html"  onMouseOver="Show(3)">Results</A>',
			'<A class="nav" href="/calendar-page.html"  onMouseOver="Show(3)">Calendar</A>'
);


Layer[4] =	new LayerSpecs(100,420,120,
			'<A class="nav" HREF="/dnbk/history.htm">History</A>',
			'<A class="nav" HREF="/dnbk/seishin-dnbk.htm" >DNBK Seishin</A>',
			'<A class="nav" HREF="/dnbk/events.htm" >Events</A>'

);

Layer[5] =	new LayerSpecs(115,265,140,
			'<A class="nav" HREF="/judo-history.htm" >History of Judo</A>',
			'<A class="nav" HREF="/what_is_judo.htm" >What is Judo </A>',
			'<A class="nav" HREF="/judo-terminology.htm" >Terminology</A>',
			'<A class="nav" HREF="/judo-techniques.htm" >Techniques of Judo</A>'
);


j = (Layer[0]) ? 0:1;

for(i=j; i<Layer.length; i++) 
{
	if(No3)
	{
		if(document.layers) 
		{ 
			document.write("<LAYER onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L"+i+"' POSITION=ABSOLUTE VISIBILITY=HIDDEN BGCOLOR='#00cc33' TOP="+Layer[i].top+" LEFT="+Layer[i].left+">"+Layer[i].info+"</LAYER>"); 
		}
		else
		{
			document.write("<DIV onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L"+i+"' style='position:absolute; visibility:hidden; background:"+bgcolor+"; top:"+Layer[i].top+"; left:"+Layer[i].left+";'><TABLE cellspacing='1' cellpadding='3'>"+Layer[i].info+"</TABLE></DIV>"); 		
		}
	}
}
