// all scripts in this file have been modified from their original format
var subdomain = "classic-events3/";
window.onload = startmovie


function startmovie() {
     myAudioPlayer       = getPageAudioMovieObject();
            
     
     if (myAudioPlayer) {
        myAudioPlayer.Play();
     }    
}
  
var locationStr = document.location + " ";

var fileStr = locationStr.indexOf("file");

if (fileStr == 0) {
  document.write('<link rel="stylesheet" href="styles/non-hidden.css">'); 
  subdomain = "";
} else {
  subdomain = "/" + subdomain;
  document.write('<link rel="stylesheet" href="styles/hidden.css">'); 
}

info_handle = new Object;
info_ID = 0;

function info(w,h,t,l, url) {
  var loc = 'width=' + w + ',height=' + h + ',top=' + t + ',left=' + l;
  info_handle = window.open(url,"info",",,,,toolbar,scrollbars,resizable," + loc);
  if(parseInt(navigator.appVersion) >= 4){info_handle.window.focus();}
}


function bookmark(){
  if (document.all) {
    window.external.AddFavorite(document.location.href,document.title)
  }
}

function makeHomePage() {
	if (document.all){
	  document.body.style.behavior='url(#default#homepage)';
      document.body.setHomePage(document.location);
	}
}

function getRelativeLocation() {
   	navRoot = document.getElementById("header");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if ((node.nodeName=="PARAM" || node.nodeName=="param") && (node.name == "base" || node.name == "BASE")) {
			  //alert ("returning " + node.value);
			  return node.value;
			}
	    }
}  

function getPageAudioMovieObject() {
   if (navigator.appName.indexOf("Microsoft Internet")!=-1) {
     return window.miniPlayer;
   } else {
     return window.document.miniPlayer; 
   }     
}

function setWidth() {
	var winW = 630, winH = 460;
	var leftW = 0, rMargin = 0;
	var totalWidth;

	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
 	 		winW = window.innerWidth;
 	 		winH = window.innerHeight;
			totalWidth = winW - 45;
 		}
 		if (navigator.appName.indexOf("Microsoft")!=-1) {
 	 		winW = document.body.offsetWidth;
 	 		winH = document.body.offsetHeight;
			totalWidth = winW - 55;
 		}
	}
	leftW = document.getElementById("left_menu").offsetWidth;
	document.getElementById('top_banner').style.width= totalWidth;
	var contentWidth = totalWidth - leftW;
	document.getElementById('content_area').style.width= contentWidth;
}
