//Browser Detection
NS4     = (document.layers);
IE4     = (document.all);
ver4    = (NS4 || IE4);
IE5     = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
isMac   = (navigator.appVersion.indexOf("Mac") != -1);
isMenu  = (NS4 || (IE4 && !isMac) || (IE5 && isMac));



/*************************************************************************
 * Set table height for Netscape vs IE
 *************************************************************************/
tblHeight = NS4 ? "102%" : "100%";



/*************************************************************************
 * Handle the Netscape resize/document.write bug....
 *************************************************************************/
if (NS4) {
  origWidth = innerWidth;
  origHeight = innerHeight;
}

function reFresh() {
  if (innerWidth != origWidth || innerHeight != origHeight) 
  location.reload();
}

if (NS4) onresize = reFresh;

function verify(){
	// Check e-mail
			var email = document.frmSignUp.submit.value;
			var at = email.indexOf('@');
			var dot = email.lastIndexOf('.');
			if (at<=0 || at>=email.length-1 || dot<=0 || dot>=email.length-1 || at>dot || dot==at+1)
			{       alert("Please enter a correct Email address.");
					return false;
			}
}

function fnImageViewer(strImage){
	window.open("/gallery/ImageViewer.asp?image="+strImage+"", "WindowName","scrollbars=no,width=550,height=550");
}

function playSong(strSongName){
	window.open("/flash/mp3player/player.asp?song="+strSongName+"", "WindowName","scrollbars=no,width=567,height=400");
}