var windowStorePop = null;
var windowPhotoPop = null;
var windowVideoPop = null;
var windowJournalPop = null;
var windowReviewPop = null;
var windowMP3Pop = null;

function Do_Load(){
	MM_preloadImages('images/main_nav_rollover_01.jpg','images/main_nav_rollover_02.jpg','images/main_nav_rollover_03.jpg','images/main_nav_rollover_04.jpg','images/main_nav_rollover_05.jpg','images/main_nav_rollover_06.jpg','images/main_nav_rollover_07.jpg','images/main_nav_rollover_08.jpg');
}

function StorePopUp(mode, Catalog_ID){
	if(windowStorePop && !windowStorePop.closed)
		windowStorePop.focus();
	else
		windowStorePop = null;
	windowStorePop = window.open('store_more_info.asp?mode=' + mode + '&Catalog_ID=' + Catalog_ID, 'StoreMoreInfo', 'toolbar=no, scrollbars=yes, resizable=yes, menubar=no, location=no, width=550, height=550');
}

function PhotoPopUp(Photo_Key_ID, Band_ID){
	if(windowPhotoPop && !windowPhotoPop.closed)
		windowPhotoPop.focus();
	else
		windowPhotoPop = null;
	windowPhotoPop = window.open('photo.asp?PHOTO_KEY_ID=' + Photo_Key_ID + '&BAND_ID=' + Band_ID, 'Photo', 'toolbar=no, scrollbars=yes, resizable=yes, menubar=no, location=no, width=550, height=650');
}
function VideoPopUp(Video_Key_ID, Band_ID){
	if(windowVideoPop && !windowVideoPop.closed)
		windowVideoPop.focus();
	else
		windowVideoPop = null;
	windowVideoPop = window.open('media_videos_pop.asp?id=' + Video_Key_ID + '&BAND_ID=' + Band_ID, 'Video', 'toolbar=no, scrollbars=yes, resizable=yes, menubar=no, location=no, width=370, height=300');
}
function JournalPopUp(Journal_Key_ID, Band_ID){
	if(windowJournalPop && !windowJournalPop.closed)
		windowJournalPop.focus();
	else
		windowJournalPop = null;
	windowJournalPop = window.open('journal_pop.asp?JOURNAL_KEY_ID=' + Journal_Key_ID + '&BAND_ID=' + Band_ID + '#Journal' + Journal_Key_ID, 'Journal', 'toolbar=no, scrollbars=yes, resizable=yes, menubar=no, location=no, width=350, height=550');
}

function ReviewPopUp(Review_Key_ID, Catalog_ID, Band_ID){
	if(windowReviewPop && !windowReviewPop.closed)
		windowReviewPop.focus();
	else
		windowReviewPop = null;
	windowReviewPop = window.open('review_pop.asp?REVIEW_KEY_ID=' + Review_Key_ID + '&CATALOG_ID=' + Catalog_ID + '&BAND_ID=' + Band_ID + '#Review' + Review_Key_ID, 'Review', 'toolbar=no, scrollbars=yes, resizable=yes, menubar=no, location=no, width=550, height=550');
}

function MP3PopUp(Catalog_ID, Track_Number, Band_ID){
	if(windowMP3Pop && !windowMP3Pop.closed)
		windowMP3Pop.focus();
	else
		windowMP3Pop = null;
	windowMP3Pop = window.open('review_mp3.asp?Catalog_ID=' + Catalog_ID + '&Track_Number=' + Track_Number + '&BAND_ID=' + Band_ID, 'Review', 'toolbar=no, scrollbars=yes, resizable=yes, menubar=no, location=no, width=550, height=550');
}

function ShowHideImage(hideImage, showImage)
{
   hideImage.style.display='none';
   showImage.style.display='';  
}

function SwapEIDSingle(eID){
	if(document.getElementById(eID).style.display == ''){
		document.getElementById(eID).style.display = 'none';
	}
	else{
		document.getElementById(eID).style.display = '';
	}
}

function SwapEID(eID1, eID2){
	if(document.getElementById(eID1).style.display == ''){
		document.getElementById(eID1).style.display = 'none';
		document.getElementById(eID2).style.display = '';
	}
	else{
		document.getElementById(eID1).style.display = '';
		document.getElementById(eID2).style.display = 'none';
	}
}

function SwapEIDv(eID1, eID2){
	if(document.getElementById(eID1).style.visibility == 'visible'){
		document.getElementById(eID1).style.visibility = 'hidden';
		document.getElementById(eID2).style.visibility = 'visible';
	}
	else{
		document.getElementById(eID1).style.visibility = 'visible';
		document.getElementById(eID2).style.visibility = 'hidden';
	}
}

function ShowHide(showEID, hideEID){
	document.getElementById(showEID).style.display = '';
	document.getElementById(hideEID).style.display = 'none';
}

function NoSpam(id, domain){
	document.location.href = 'mailto:' + id + '@' + domain;
}

function swapClass(obj, newClassName)
{
	obj.className = newClassName;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}