if (document.images) {

 calendaron = new Image();
 calendaron.src = "/images/menu_calendar_on.gif";

 calendaroff = new Image();
 calendaroff.src = "/images/menu_calendar_off.gif";

 ticketingon = new Image();
 ticketingon.src = "/images/menu_ticketing_on.gif";

 ticketingoff = new Image();
 ticketingoff.src = "/images/menu_ticketing_off.gif";

 patronon = new Image();
 patronon.src = "/images/menu_patron_on.gif";

 patronoff = new Image();
 patronoff.src = "/images/menu_patron_off.gif";

 supporton = new Image();
 supporton.src = "/images/menu_support_on.gif";

 supportoff = new Image();
 supportoff.src = "/images/menu_support_off.gif";

 abouton = new Image();
 abouton.src = "/images/menu_about_on.gif";

 aboutoff = new Image();
 aboutoff.src = "/images/menu_about_off.gif";

 contactuson = new Image();
 contactuson.src = "/images/menu_contactus_on.gif";

 contactusoff = new Image();
 contactusoff.src = "/images/menu_contactus_off.gif";

 homeon = new Image();
 homeon.src = "/images/menu_home_on.gif";

 homeoff = new Image();
 homeoff.src = "/images/menu_home_off.gif";

 }

function EmailPage() {
LeftPosition = (screen.width) ? (screen.width-450)/2 : 0;
TopPosition = (screen.height) ? (screen.height-250)/2 : 0;
OpenWin = 
this.open("/emailpage.php?page="+location.href,"EmailWindow","toolbar=no,width=450,height=250,left="+LeftPosition+",top="+TopPosition+",directories=no,status=no,scrollbars=no,resize=no,menubar=no")
}

function viewvideo(video) {
OpenWin = this.open('/events/video.php?id='+video,"VideoWindow","toolbar=no,width=310,height=300,directories=no,status=no,scrollbars=no,resize=no,menubar=no")
}

function viewseatphoto(photo) {
OpenWin = this.open('/ticketing/view.php?id='+photo,"SeatWindow","toolbar=no,width=533,height=400,directories=no,status=no,scrollbars=no,resize=no,menubar=no")
}

function viewseatingchart(photo,width,height) {
OpenWin = this.open('/ticketing/viewchart.php?id='+photo,"SeatWindow","toolbar=no,width="+width+",height="+height+",directories=no,status=no,scrollbars=no,resize=no,menubar=no")
}

var UniqueID = 1234 // Make each link open in a new window
var newWinOffset = 0 // Position of first pop-up

function PlayerOpen(soundfiledesc,soundfilepath) { 
PlayWin = window.open('',UniqueID,'width=320,height=190,top=' + newWinOffset +',left=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');
PlayWin.focus(); 

var winContent = "<html><head><title>" + soundfiledesc + "</title></head><body bgcolor='#DDDFCC'><link href='/inc/style.css' rel='stylesheet' type='text/css'>"; 
winContent += "<p class=title>" + soundfiledesc + "</p>";

winContent += "<OBJECT width='300' height='42'>"; 
winContent += "<param name='SRC' value='" + soundfilepath + "'>";
winContent += "<param name='AUTOPLAY' VALUE='true'>"; 
winContent += "<param name='CONTROLLER' VALUE='true'>";
winContent += "<param name='BGCOLOR' VALUE='#DDDFCC'>"; 
winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='300' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='DDDFCC'></EMBED>";
winContent += "</OBJECT>"; 

winContent += "<p style='font-size:12px;font-family:Verdana,sans-serif;text-align:center'><a href='" + soundfilepath +"'>Download this file</a> <SPAN style='font-size:10px'>(right-click or Option-click)</SPAN></p>";
winContent += "<FORM><DIV align='center'><INPUT type='button' class='submit' value='Close Window' onclick='javascript:window.close();' class='button'></DIV></FORM>"; 
winContent += "</BODY></HTML>"; 

PlayWin.document.write(winContent); 
PlayWin.document.close(); // "Finalizes" new window 
UniqueID = UniqueID + 1 // newWinOffset = newWinOffset + 20 // subsequent pop-ups will be this many pixels lower 
} 
