window.defaultStatus="StoneLion Puppet Theatre";

function viewday (dd)
{
	window.open('http://www.stonelionpuppets.org/calendar.php?d=' +dd,'VIEWDAY','scrollbars,resizable,height=400,width=450');
}

function getDayInfo (day,url)
{
	document.getElementById('DayInfo').innerHTML = '<img src="/templates/images/loading.gif" width="120" height="30" alt="Loading..." />';
	//var url = 'calendar.php';
    var pars = 'd='+day+'&i=Yes';
    var target = 'DayInfo';
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});

}
function getShowInfo (show,event,day,url)
{
	document.getElementById('ShowInfo').innerHTML = block_it('<img src="/templates/images/loading.gif" width="120" height="30" alt="Loading..." />');	
	var pars = 's='+show+'&i=Yes&e='+event+'&d='+day;
    var target = 'ShowInfo';
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});

}

function getEventInfo (event,day,url)
{
	document.getElementById('ShowInfo').innerHTML = block_it('<img src="/templates/images/loading.gif" width="120" height="30" alt="Loading..." />');	
	var pars = 'i=Yes&e='+event+'&d='+day;
    var target = 'ShowInfo';
	var myAjax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});

}

function ShowCalendar ()
{
	document.getElementById('ShowInfo').innerHTML = calendar;
}

function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function submitonce(theform){
	if (document.all||document.getElementById){
		for (i=0;i<theform.length;i++){
		var tempobj=theform.elements[i];
		if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
		tempobj.disabled = true;
		}		
	}
	return true;
}

function block_it(thecontent){
	var ret_t = '<table cellpadding=0 cellspacing=0 width="100%"><tr><td><img src="/templates/images/titletlft.gif" width="14" height="14" /></td><td class="titletcntr"><img src="/templates/images/titletcntr.gif" width="14" height="14" /></td><td><img src="/templates/images/titletrt.gif" width="14" height="14" /></td></tr><tr><td class="titlelft"><img src="/templates/images/titlelft.gif" width="14" height="14" /></td><td class="boxtext">'+thecontent+'</td><td class="titlert"><img src="/templates/images/titlert.gif" width="14" height="14" /></td></tr><tr><td><img src="/templates/images/titleblft.gif" width="14" height="14" /></td><td class="titlebcntr"><img src="/templates/images/titlebcntr.gif" width="14" height="14" /></td><td><img src="/templates/images/titlebrt.gif" width="14" height="14" /></td></tr></table>';
return ret_t;

}