function noOp(){
}

function quit(){
	window.close();
}

function checkAlert(){
	if(alertmsg.length > 0){
		alert(alertmsg);
	}
	
}

var isNav = navigator.appName == 'Netscape';

function winOffy(){ return (isNav) ? window.innerHeight : document.documentElement.offsetHeight;};
function winOffx(){ return ( isNav) ? window.innerWidth : document.documentElement.offsetWidth;};

function myicon_event(){
	window.status = 'myicon';
}

function positionIcon(){
	if(document.getElementById('fixed')){
		document.getElementById('fixed').style.top = document.body.scrollTop + winOffy() - 40;	
		document.getElementById('fixed').style.left = document.body.scrollLeft + winOffx() - 60;
	}	
}

function repositionMystuff(){
	positionIcon();
}

onscroll = repositionMystuff;
onresize = repositionMystuff;

var consoleTop = 0;
function positionConsole(){
	if(navigator.userAgent.indexOf("Mac") != -1){
		document.getElementById('console').style.position = 'fixed';
		return;
	}
	
	var myobj = document.getElementById('console');
	myobj.style.visibility = 'hidden';
	myobj.style.top = document.body.scrollTop + consoleTop;
	myobj.style.visibility = 'visible';
}

var missile = null;
function launch(){
	parent._main.location.href=missile;
}

function launchpad(url, menuitem){
	missile = url;	
	document.mymenu.parm.value = menuitem;
	callToServer('mymenu', 'session_save.php');
}

function setMenu(n){
	parent._hnav.setMenuSelection(n);
}

function jsContactUS(festival){
	w = 600;
	h = 400;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var properties = "scrollbars=yes,resizable=yes,height="+h+",width="+w+",top="+TopPosition+",left="+LeftPosition;
	//var properties = "scrollbars=yes,resizable=yes";
	
	url = 'contactus.php?festival='+festival;
	window.open(url,'_blank',properties);
}

var musicwin = null;
function jsMusic(){
	w = 800;
	h = 600;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	var properties = "scrollbars=1,resizable=1,height="+h+",width="+w+",left="+LeftPosition+",top="+TopPosition;	
	var url = 'admin_pml.php';
	musicwin = window.open(url,"music",properties);
	musicwin.focus();
}