
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
function ajaxpage(url, containerid, menuid){




//menu before select
var cmenu = document.getElementById("currentmenu").value;

if(cmenu=="home")
{
document.getElementById("home").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('home.html', 'rightcolumn' ,'home');\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Home','','images/header_10_hover.gif',1)\"><img src=\"images/header_10.gif\" alt=\"Home\" name=\"Home\" width=\"123\" height=\"55\" border=\"0\" id=\"Home\" /></a> ";
}


if(cmenu=="bios")
{
document.getElementById("bios").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('bios.html', 'rightcolumn' ,'bios');\"  onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Bios','','images/header_11_hover.gif',1)\"><img src=\"images/header_11.gif\" alt=\"Bios\" name=\"Bios\" width=\"104\" height=\"55\" border=\"0\" id=\"Bios\" /></a>  ";
}

if(cmenu=="video")
{
document.getElementById("video").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('video.html', 'rightcolumn' ,'video');\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Video','','images/header_12_hover.gif',1)\"><img src=\"images/header_12.gif\" alt=\"Video\" name=\"Video\" width=\"119\" height=\"55\" border=\"0\" id=\"Video\" /></a> ";
}

if(cmenu=="schedule")
{
document.getElementById("schedule").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('schedule.html', 'rightcolumn' ,'schedule');\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Schedule','','images/header_13_hover.gif',1)\"><img src=\"images/header_13.gif\" alt=\"Schedule\" name=\"Schedule\" width=\"155\" height=\"55\" border=\"0\" id=\"Schedule\" /></a> ";
}

if(cmenu=="photos")
{
document.getElementById("photos").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('photos.html', 'rightcolumn' ,'photos');\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Photos','','images/header_14_hover.gif',1)\"><img src=\"images/header_14.gif\" alt=\"Photos\" name=\"Photos\" width=\"132\" height=\"55\" border=\"0\" id=\"Photos\" /></a> ";
}

if(cmenu=="contactus")
{
document.getElementById("contactus").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('contactus.html', 'rightcolumn' ,'contactus');\"  onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Contact Us','','images/header_15_hover.gif',1)\"><img src=\"images/header_15.gif\" alt=\"Contact Us\" name=\"Contact Us\" width=\"174\" height=\"55\" border=\"0\" id=\"Contact Us\" /></a> ";
}



// menu current select

if(menuid=="home")
{
document.getElementById("currentmenu").value = "home"
document.getElementById("home").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('home.html', 'rightcolumn' ,'home');\" ><img src=\"images/header_10_hover.gif\" alt=\"Home\" name=\"Home\" width=\"123\" height=\"55\" border=\"0\"></a>";
}

if(menuid=="bios")
{
document.getElementById("currentmenu").value = "bios"
document.getElementById("bios").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('bios.html', 'rightcolumn' ,'bios')\" ><img src=\"images/header_11_hover.gif\" alt=\"Bios\" name=\"Bios\" width=\"104\" height=\"55\" border=\"0\"></a>";

}

if(menuid=="video")
{
document.getElementById("currentmenu").value = "video"
document.getElementById("video").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('video.html', 'rightcolumn' ,'video');\" ><img src=\"images/header_12_hover.gif\" alt=\"VIDEO\" name=\"VIDEO\" width=\"119\" height=\"55\" border=\"0\"></a>";
}

if(menuid=="schedule")
{
document.getElementById("currentmenu").value = "schedule"
document.getElementById("schedule").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('schedule.html', 'rightcolumn' ,'schedule');\" ><img src=\"images/header_13_hover.gif\" alt=\"Schedule\" name=\"Schedule\" width=\"155\" height=\"55\" border=\"0\"></a>";
}


if(menuid=="photos")
{
document.getElementById("currentmenu").value = "photos"
document.getElementById("photos").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('photos.html', 'rightcolumn' ,'photos');\" ><img src=\"images/header_14_hover.gif\" alt=\"Photos\" name=\"Photos\" width=\"132\" height=\"55\" border=\"0\"></a>";
}

if(menuid=="contactus")
{
document.getElementById("currentmenu").value = "contactus"
document.getElementById("contactus").innerHTML = "<a href=\"javascript:void(0)\"  onClick=\"ajaxpage('contactus.html', 'rightcolumn' ,'contactus');\" ><img src=\"images/header_15_hover.gif\" alt=\"Contact Us\" name=\"Contact Us\" width=\"174\" height=\"55\" border=\"0\"></a>";
}
	 
	
	
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
}
page_request.open('GET', url, true)
page_request.send(null)
}

function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
else
document.getElementById(containerid).innerHTML="<table height='200' cellpadding='0' cellspacing='0' align='center'><tr><td><center><img src='images/loading-thickbox.gif'> <br>Please wait....</center></td></tr></table>";
}

function loadobjs(){
if (!document.getElementById)
return
for (i=0; i<arguments.length; i++){
var file=arguments[i]
var fileref=""
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
if (file.indexOf(".js")!=-1){ //If object is a js file
fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", file);
}
else if (file.indexOf(".css")!=-1){ //If object is a css file
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", file);
}
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
}
}

// JavaScript Document