//-- variable to make window object
var popMe;
//var URL = "about:blank";

//-- pop window - standard
function openMe( URL )
{
	openMe_ex( URL, 1, 1, 1 );

/*if ( popMe)
	{ popMe.close();	}
	
popMe = window.open( URL,"", "scrollbars=1,resizable=1,status=1,width=750,height=475,left=50,top=25");
*/

return false;
}


//-- pop window - standard
function openMe_ex( URL, scroll, resize, status )
{
  var attributes = "";
  
  attributes += "width=750";
  attributes += ",height=475";
  attributes += ",left=50";
  attributes += ",top=25";
  attributes += ",scrollbars=" + scroll;
  attributes += ",resizable=" + resize;
  attributes += ",status=" + status;

 if ( popMe)
	{ popMe.close();	}
	
 popMe = window.open( URL,'', attributes);

 return false;
}


//-- pop window - standard
function openMe_expand( URL )
{
  
  var attributes = "";
  var wide = screen.width-80;
  var high = screen.height-200;

	var browser = new String(navigator.userAgent);
	browser = browser.toLowerCase();
	var IE = browser.indexOf("msie",0);
	//-- IE throwing error on resize function
	
	if(IE == -1) //-- browser is not IE
	  { attributes += "width=" + screen.width;
		attributes += ",height=" + screen.height;
		attributes += ",left=0";
		attributes += ",top=0";
	  }
	else
	 {  attributes += "width=" + wide;
		attributes += ",height=" + high;
		attributes += ",left=40";
		attributes += ",top=40";
	  }
  
  attributes += ",scrollbars=1";
  attributes += ",resizable=1";
  attributes += ",status=1";
  attributes += ",location=1";
  attributes += ",menubar=1";


  if ( popMe )
  {  
    if ( navigator.CustomTag != null )
      { //navigator.CustomTag = 'popMe'; }
        popMe.close();  }
  }
	
  popMe = window.open( URL,'popMe', attributes);

	//-- IE throwing error on resize function
  if (IE == -1)
	{ popMe.resizeTo(wide, high);
	  popMe.moveTo(40, 60);	
	  popMe.focus();  
	}
   	
 //popMe.focus(); 
 return false;

}



//-- pop window for venue information
function openVenue( URL )
{
if ( popMe)
	{ popMe.close();	}
	
popMe = window.open( URL,"", "scrollbars=1,resizable=1,status=1,width=700,height=400,left=50,top=25");

return false;
}


function openMe_ART( URL )
{
  var attributes = "";
  
  attributes += "width=760";  /*750*/
  attributes += ",height=510";  /*500*/
  attributes += ",left=50";
  attributes += ",top=25";
  attributes += ",scrollbars=1";
  attributes += ",resizable=0";
  attributes += ",status=1";

 if ( popMe )
	{ popMe.close();	}
	
 popMe = window.open( URL,'', attributes);

 return false;
}



function openMe_ART07( URL )
{
  var attributes = "";
  
  attributes += "width=760"; 
  attributes += ",height=550";  /*510*/
  attributes += ",left=50";
  attributes += ",top=25";
  attributes += ",scrollbars=1";
  attributes += ",resizable=0";
  attributes += ",status=1";

 if ( popMe)
	{ popMe.close();	}
	
 popMe = window.open( URL,'', attributes);

 return false;
}


function openMe_MP3( URL )
{
  var attributes = "";
  
  attributes += "width=200";
  attributes += ",height=200";
  attributes += ",left=50";
  attributes += ",top=140";
  attributes += ",scrollbars=0";
  attributes += ",resizable=0";
  attributes += ",status=0";

 if ( popMe)
	{ popMe.close();	}
	
 popMe = window.open( URL,'', attributes);

 return false;
}

var popLiner;

function openMe_liner( URL )
{
  var attributes = "";
  
  attributes += "width=762";
  attributes += ",height=400";
  attributes += ",left=250";
  attributes += ",top=240";
  attributes += ",scrollbars=1";
  attributes += ",resizable=0";
  attributes += ",status=0";

 if ( popLiner)
	{ popLiner.close();	}
	
 popLiner = window.open( URL,'', attributes);

 return false;
}







//-- write email link
function writeML( eacct, host, Ltext, sline )
{
//-- if not empty add subjectline
	if ( sline  ) 
	{  sline = "?" + "sub" + "ject=" + sline ;	}

//-- if empty show email address as link text
	if ( !Ltext  ) 
		{  var Ltext = eacct + "@" + host; 	}
	
	document.write ('<a href=' + 'mail' + 'to:' + eacct + '@' + host + sline + '>' + Ltext + '</a>' );

}




//-- set pop-up window for forms
var winPopForm;

//-- dim default settings
var Xpoint = ( screen.width /2)  - 20;
var Ypoint = 25;
var winW = 540;
var winH = 580;


function popForm( URL, view )
{	
	if ( view )
	  { URL = URL + "default.asp?v=" + view;  }
	  
	var attributes;
	var scroll = 1;
	var address = 1;
	var resize = 1;
	
	
	if ( URL.indexOf("/mailinglist/",0) != -1 )
		{ //scroll = 1;
		  address = 0;
		  resize = 0; 
		}
	
	attributes = "width=" + winW;
	attributes += ",height=" + winH;
	attributes += ",left=" + Xpoint;
	attributes += ",top=" + Ypoint ;
	attributes += ",scrollbars="+scroll;
	attributes += ",resizeable="+resize;
	attributes += ",location="+address;
	
	//attributes += ",status=1";
	//attributes += "scrollbars=1";

	if ( winPopForm )
	 { winPopForm.close();	}

	winPopForm = window.open( URL,'', attributes);
	winPopForm.focus();

	return false;

}//-- end function [ popForm ]


function popCContact( URL )
{	
	var attributes;
	var scroll = 1;
	var address = 0;
	var resize = 0;
	winW = 580;
	
	attributes = "width=" + winW;
	attributes += ",height=" + winH;
	attributes += ",left=" + Xpoint;
	attributes += ",top=" + Ypoint ;
	attributes += ",scrollbars="+scroll;
	attributes += ",resizeable="+resize;
	attributes += ",location="+address;
	
	//attributes += ",status=1";
	//attributes += "scrollbars=1";

	if ( winPopForm )
	 { winPopForm.close();	}

	winPopForm = window.open( URL,'', attributes);
	winPopForm.focus();

	return false;

}//-- end function [ popCContact ]


//-- pop window for auditionform
var winAudition;

function popAudition( URL )
{
	if ( winAudition )
		{ winAudition.close();		}

	var winW = 470;
	var winH = 580;
	var Xpoint = screen.width - ( ( screen.width/2 ) + 20 );
	var Ypoint = 20;
	
	var attributes = "";
	attributes += "width=" + winW;
	attributes += ",height=" + winH;
	attributes += ",left=" + Xpoint;
	attributes += ",top=" + Ypoint;
	attributes += ",scrollbars=1";
	attributes += ",resizable=0";
	attributes += ",location=0";

	winAudition = window.open( URL, '', attributes);
	
	return false;

} //-- end function  [ popAudition ]


//-- pop window for childrensform
var winChildrens;

function popChildrens( URL )
{
	if ( winChildrens )
		{ winChildrens.close();		}

	var winW = 470;
	var winH = 600;	//580;
	var Xpoint = screen.width - ( ( screen.width/2 ) + 20 );
	var Ypoint = 20;
	
	var attributes = "";
	attributes += "width=" + winW;
	attributes += ",height=" + winH;
	attributes += ",left=" + Xpoint;
	attributes += ",top=" + Ypoint;
	attributes += ",scrollbars=1";
	attributes += ",resizable=0";
	attributes += ",location=0";

	winChildrens = window.open( URL, '', attributes);
	
	return false;

} //-- end function  [ popChildrens ]

var popAuction;

function popAuctionDonation( URL )
{	
	var Xpoint = ( screen.width /2)  - 20;
	var Ypoint = 25;

	var winW = 540;
	var winH = 580;
	
	var attributes = "";
	attributes += "width=" + winW;
	attributes += ",height=" + winH;
	attributes += ",left=" + Xpoint;
	attributes += ",top=" + Ypoint;
	attributes += ",scrollbars=1";
	attributes += ",resizable=1";
	attributes += ",location=0";
	attributes += ",status=0";
	
	if ( popAuction)
	{ popAuction.close();	}
	
	popAuction = window.open( URL,'', attributes );

return false;

}


var popVideo;

function video_SeattleChannel(URL)
{ 
	var winW = 675;
	var winH = 472;

	var attributes = "";
	attributes += "width=" + winW;
	attributes += ",height=" + winH;
	attributes += ",scrollbars=0";
	attributes += ",resizable=0";
	attributes += ",location=0";
	attributes += ",status=1";

	if ( popVideo)
	{ popVideo.close();	}
	
	popVideo = window.open( URL,'viewer', attributes );

return false;

}




/* LINER NOTES -- MUSIC PAGES */
function showNotes(hidefooter)
{
	document.getElementById("linernotes").style.position = "absolute";
	document.getElementById("linernotes").style.left = 0;
	document.getElementById("linernotes").style.top = 0;
	document.getElementById("linernotes").style.zIndex = 99;
	document.getElementById("linernotes").style.display = "block";
	
	if (hidefooter)
		{ document.getElementById("wrapper-footer").style.visibility = "hidden"; }
		
	return false;
}


function hideNotes()
{ 
  document.getElementById("linernotes").style.display = "none";
  document.getElementById("wrapper-footer").style.visibility = "visible";

  return false;
}

function closeNotes()
  { self.close(); }


/*
var browser = new String(window.navigator.userAgent);

browser = browser.toLowerCase();

if( browser.indexOf('firefox',0) > -1)
 { showNotes(); }
*/ 

/* LINER NOTES */



/* FH MAG ARCHIVES */
var oldMagID = "";

function showTeasers( magID )
{	var oldstatus = "none";
	var status = document.getElementById( magID ).style.display;

	if ( oldMagID )
	  { oldstatus = document.getElementById( oldMagID ).style.display;
	    if ( oldstatus == "block" ) 
		  { document.getElementById( oldMagID ).style.display = "none"; }
	  }
	  
	if (status == "block" ) 
	  { document.getElementById( magID ).style.display = "none";  }
	else
	  { document.getElementById( magID ).style.display = "block"; }

	oldMagID = magID;
	
	return false;
}


function hideTeasers( magID )
{ document.getElementById( magID ).style.display = "none";
  return false;
}


/* FH MAG ARCHIVES */


/* CONCERT TOUR DATES */
function showhideTourDates( status, Ypoint )
{   var ID = "tourdates";
	var wide = 0;
	var Xpoint = 0;
	
	//--browser sniff
	(window.innerWidth == null) ? wide = (document.body.clientWidth-20) : wide = (document.innerWidth-16);
	Xpoint = (wide/2)-(110+24);
	
	if (status ) 
	  { document.getElementById( ID ).style.display = "block";
	   document.getElementById( ID ).style.left = Xpoint;
	   document.getElementById( ID ).style.top = Ypoint;
	    //document.getElementById( ID ).style.visibility = "visible";
	  }
	else
	  { document.getElementById( ID ).style.display = "none";
		document.getElementById( ID ).style.left = -2000;
		document.getElementById( ID ).style.top = -2000;

	    //document.getElementById( ID ).style.visibility = "hidden";

	  }

		
	return false;
}

/* END CONCERT TOUR DATES */


var tempCode = "";

function createCode( filepath )
{  var temp = "";
   
   for( var i=0; i<5; i++)
   { temp += Math.round(Math.random() * 8 ); }
   
   tempCode = temp;
   
   document.getElementById("theImg").src = filepath + "includes/JpegImage.aspx?code=" + tempCode;
   document.getElementById("theHidden").value = tempCode;

}


function checkCode()
{   var toggle = true;
	
	var	theCode = new String( document.getElementById("theHidden").value );
	var	keyedCode = new String( document.getElementById("theCodeBox").value );
 	var	newText = "";
	 	
 	for( var i = 0; i < theCode.length; i++ )
	  { var Y = new Number( theCode.substr(i,1) );
	    Y += 1;
		newText = newText + Y.toString(); 
	   }
	
	if( keyedCode != newText )
	{ document.getElementById("codemsg").style.display = "block";
	  //var jeff = document.getElementById("codemsg").innerHTML;
	  //document.getElementById("codemsg").innerHTML = jeff + " | " + newText + " | " + theCode + " | " + keyedCode;
	  toggle = false; }

	return toggle;
}




//-- pop window - press pics
function openMe_press( URL, orient )
{
  var attributes = "";
  
  switch (orient)
  {  case 'L':
		attributes += "width=475";
		attributes += ",height=360";
		break;
	default:
		attributes += "width=360";
		attributes += ",height=475";
		break;
  } 
  		
  attributes += ",left=50";
  attributes += ",top=25";
  attributes += ",scrollbars=1";
  attributes += ",resizable=1";
  attributes += ",status=1";

 if ( popMe)
	{ popMe.close();	}
	
 popMe = window.open( URL,'', attributes);

 return false;
}


function openMe_pressAlt( URL, wide, high )
{
  var attributes = "";
  
  attributes += "width=" + wide;
  attributes += ",height=" + high;
  attributes += ",left=50";
  attributes += ",top=25";
  attributes += ",scrollbars=1";
  attributes += ",resizable=1";
  attributes += ",status=1";

 if ( popMe)
	{ popMe.close(); }
	
 popMe = window.open( URL,'', attributes);

 return false;
}



var popAuction

function openCatalogPreview( URL )
{
  var attributes = "";
  var wide = 860;
  var high = 730;
  var screenW = screen.availWidth;
  var screenH = screen.availHeight;
  var centerW = (screenW-wide)/2;
  var centerH = (screenH-high)/2;
  
  attributes += "width=" + wide;
  attributes += ",height=" + high;
  attributes += ",left=" + centerW;
  attributes += ",top=" + centerH;
  attributes += ",scrollbars=1";
  attributes += ",resizable=0";
  attributes += ",status=0";

 if ( popAuction )
	{ popAuction.close();	}
	
 popAuction = window.open( URL,'', attributes);

 return false;
}



function openCatalogPDF( URL )
{
  var attributes = "";
  var wide = 860;
  var high = 730;
  var screenW = screen.availWidth;
  var screenH = screen.availHeight;
  var centerW = (screenW-wide)/2;
  var centerH = (screenH-high)/2;
  
  attributes += "width=" + wide;
  attributes += ",height=" + high;
  attributes += ",left=" + centerW;
  attributes += ",top=" + centerH;
  attributes += ",scrollbars=1";
  attributes += ",resizable=1";
  attributes += ",status=0";

 if ( popAuction )
	{ popAuction.close();	}
	
 popAuction = window.open( URL,'', attributes);

 return false;
}



var FHMpdf;

//-- pop window - standard
function openPDF_FHM( URL )
{
  
  var attributes = "";
  var wide = screen.width-500;
  var high = screen.height-200;

  var browser = new String(navigator.userAgent);
  browser = browser.toLowerCase();
  var IE = browser.indexOf("msie",0);
  //-- IE throwing error on resize function
	
  attributes += "width=" + wide;
  attributes += ",height=" + high;
  attributes += ",left=40";
  attributes += ",top=40";
  attributes += ",scrollbars=1";
  attributes += ",resizable=1";
  attributes += ",status=1";
  attributes += ",location=1";
  attributes += ",menubar=1";

/*
  if ( FHMpdf )
  {  
    if ( navigator.CustomTag != null )
      { //navigator.CustomTag = 'popMe'; }
        FHMpdf.close();  }
  }
*/
	
  FHMpdf = window.open( URL,'FHMpdf', attributes);
 
  return false;

}

