/*
            JavaScript functions for Golf With Shannon

                 Matthew Kneisler - 20 December 2007
*/

var today = new Date();

startList = function() 
{
	if (document.all&&document.getElementById) 	
	{
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
		   	}
		}
 	}
}

function loadTwo(iframe1URL, iframe2URL) 
{ 
	parent.vid_frame.location.href=iframe1URL;
//	parent.logo_frame.location.href=iframe2URL;
} 


function showButton(titleName, pageName)
{
	var	data ="";
//    data += "<td width='120' height='15'>";
//    data += "?";
 //   data += "</td>";
    data += "<td width='120' height='15'>";
    data += " <a href="+pageName+">"+titleName+" </a>";
    data += "</td>";
	
	document.write(data);
}

function showMenuMain()
{
	document.write("<table class='tableMenu' cellpadding='2' cellspacing='0'>");
	row(1);
	showButton(" ",		" "); 
	showButton("Home",					"index.htm"); 
	showButton("Body Type",				"bodytype.htm"); 
	showButton("Speaking",				"speaking.htm"); 
	showButton("Teaching",				"teaching.htm"); 
	showButton("Media",					"media.htm"); 
	showButton("Future",				"future.htm"); 
	showButton("Gallery",				"gallery.htm"); 
	showButton("Products",				"products.htm"); 
	showButton("News",					"news.htm"); 
	showButton("Bio",					"bio.htm"); 
	row(3);
	document.write("</table>");
}

function row(type)
{
	switch (type)
	{
	case 1:
		document.write("<tr>");
		break;
	case 2:
		document.write("</tr>");
		document.write("<tr>");
		break;
	case 3:
		document.write("</tr>");
		break;
	}
}

function showFooter()
{
	data = "";
	
	data += "<center>";
	data += "<font face='Arial' size='2'>"
	data += "<a href='index.htm'>Home</a> |"
	data += "<a href='contact.htm'>Contact Us</a></font><p>"
	data += "<font face='Arial' size='1'>&copy; 1998-";
	data += today.getFullYear();
	data += " Golf With Shannon. All rights reserved.<//font><//p>";
	data += "<//center>";
	data += "<//font>";
	
	document.write(data);
}

