function message()
{
alert("This alert box was called");
}


function windowOpener(location) { 
   var myWindow=window.open("http://www.google.com", "displayWindow","menubar=1,scrollbars=1,resizable=0,location=0,status=0,width=800,height=500") 
 myWindow.focus(); } 


function openWin(url, w, h) 
{ 
var winprop = "width=" + w + ",height=" + h; 
openwin = window.open(url,'',winprop); 
} 


/* ORIGINAL STUFF BELOW */


var banner=[
"/theater/images/header1.jpg",
"/theater/images/header2.jpg",
"/theater/images/header3.jpg",
"/theater/images/header4.jpg",
"/theater/images/header5.jpg",
];

var random=Math.floor(banner.length*Math.random());
document.write("<style type=\"text/css\">");
document.write("#header {");
document.write(' background:url("' + banner[random] + '") no-repeat top left;');
document.write(" }");
document.write("<\/style>");

//this loads js files into the header - ryan
function loadjs(fName){
var fLink=document.createElement('script');
fLink.setAttribute("language", "JavaScript");
fLink.setAttribute("type","text/javascript");
fLink.setAttribute("src", fName);

if (typeof fLink!="undefined");
document.getElementsByTagName("head")[0].appendChild(fLink);

}
//load the needed js

loadjs("/lib/js/jquery-1.3.2.min.js");
loadjs("/theatre/lib/js/jquery.tools.min.js");
loadjs("/theatre/lib/js/noorda.js");
