<!--
// all popup calls are of the form javascript:openPopup(url,type)
// url=literal string for http:, or relative path/file
// type=the name of the variable that defines the window features and size (F1,F2,F3,F4,Full)
//Photo pop-ups "javascript:openPopup('../images/photos/151st/151_full/img01full.jpg',F1)

//Universal Popup Window Features, without size
var Scroll="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top=0,left=0,"
var LocStatScroll="toolbar=0,location=1,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,,top=0,left=0,"
var ToolLocScroll="toolbar=1,location=1,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,top=0,left=0,"
//Size Specs
var F1=Scroll+"width=730,height=550"//photo popup, landscape
var F2=Scroll+"width=550,height=730"//photo popup, portrait 
var F3=Scroll+"width=580,height=540"//cd and lable popups
var F4=Scroll+"width=330,height=320" //performance schedule popup
var F5=Scroll+"width=40,height=10"
var Full=ToolLocScroll+"width=790,height=480"//Full Window

//Begin popup CODE
var _type=""
var _url=""
var Url=""
var Specs=""
//Non-editable variables
var WinRef = null    // use this when referring to pop-up window
var WinCount = 0
var WinName = "Window"
function openPopup(URL,TYPE)
{
 _url=URL
 _type=TYPE
WinName = "Window" + WinCount++ //incremented name for each popup
Url=_url
Specs=_type
closePopup() 
WinRef = window.open(Url,WinName,Specs);
}
//The closePopup function is also called in the body tag of any document that
//uses this popup script. It closes the popup window on document unload.
//Example: <body onUnload="closePopup()"
function closePopup()    // close previously opened popups
{
if (navigator.appName != "Microsoft Internet Explorer" 
|| parseInt(navigator.appVersion) >=4) //don't close if IE3 or earlier
if(WinRef != null) if(!WinRef.closed) WinRef.close()
}
function play()
{
	window.open("leadsheets/he_is_the_rock.mp3","Music_Window","toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0,top=0,left=0,width=400,height=10");
}
//-->