function T_Change(oObj,onOff) {
	
	if(document.all) {
		oObj = eval("document.all." + oObj);
	} else {
		oObj = document.getElementById(oObj);
	}
	
	oObj.style.backgroundColor =  (onOff) ? "#F0EFEE":"";
}

function chgForm(oSel) {
	val = oSel.options[oSel.selectedIndex].value;
	
	if(val != -1) {
		// Find Other DIV element.
		otherDiv = val == "a" ? "o" : "a";
	
		if(document.all) {
			onDiv = eval("document.all." + val + "_form_container");
			offDiv = eval("document.all." + otherDiv + "_form_container");
		} else {
			onDiv = document.getElementById(val + "_form_container");
			offDiv = document.getElementById(otherDiv + "_form_container");
		}
		
		onDiv.style.display = "block";
		offDiv.style.display = "none";
	}
}

function launchPDF(sPDF_Location) {
	HTMLdoc = "<html>\n";
	HTMLdoc += "<head>\n";
	HTMLdoc + "<title>Information Sheet</title>\n"
	HTMLdoc += "</head>\n";
	HTMLdoc += "<body bottommargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" rightmargin=\"0\" topmargin=\"0\">\n";
	HTMLdoc += "</body>\n"
	HTMLdoc += "</html>\n";
	
	var pdfwin = window.open(sPDF_Location,"pdf_win","width=600,height=500,scrollbars=no");
}

function hallInfo(hallID,onoff) {

	// catch build up and turn all off.
	hInfo = Array(1,3,4,5,6,7,8,9,10,11,"symphonyhall","meetingrooms");
	
	for(i = 0; i < hInfo.length; i++) {
	
		if(!isNaN(hInfo[i])) {
			h = "hall_" + hInfo[i];
		} else {
			h = hInfo[i];
		}
	
		if(document.all) {
			oObj = eval("document.all." + h);
		} else {
			oObj = document.getElementById(h);
		}
		
		oObj.style.display = "none";
		
	}
	
	if(!isNaN(hallID)) {
		hallID = "hall_" + hallID;
	}
	
	if(document.all) {
		oObj = eval("document.all." + hallID);
	} else {
		oObj = document.getElementById(hallID);
	}
	
	if(onoff) {
		oObj.style.display = "block";
	} else {
		oObj.style.display = "none";
	}
}


function chkForm(oForm,reqList) {
	holder = reqList.split(",");
	bError = false;

	for(i = 0; i < holder.length; i++) {
		objType = oForm[holder[i]].type;
		if(objType == "text") {
			if(oForm[holder[i]].value == "na" || oForm[holder[i]].value == "" || oForm[holder[i]].value == -1) {
				bError = true;
			}
		}
		else if(objType == "select-one") {
			selVal = oForm[holder[i]].options[oForm[holder[i]].selectedIndex].value;
			if(selVal == -1 || selVal == "" || selVal == "na") {
				bError = true;
			}
		}
	}
	
	if(bError) {
		alert("Please fill in all required fields");
		return false;
	} else {
		return true;
	}
}

function chgBackground(sImage) {
	if(document.all) {
		document.all.content.style.backgroundImage = "url(/i/b_pics/" + sImage + ".jpg)";
	} else {
		obj = document.getElementById("content");
		obj.style.backgroundImage = "url(/i/b_pics/" + sImage + ".jpg)";
	}
}


var MM_contentVersion = 7; 
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if (plugin) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i) {
		if (isNaN(parseInt(words[i])))
			continue;
		var MM_PluginVersion = words[i]; 
	}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( !MM_FlashCanPlay ) {
	//specify interval between slide (in mili seconds)
	var slidespeed=3000
	
	//specify images
	var slideimages=new Array("gfx/venues2.jpg","gfx/venues3.jpg","gfx/venues1.jpg")
	
	//specify corresponding links
	var slidelinks=new Array("#")
	
	var newwindow=0 //open links in new window? 1=yes, 0=no
	
	var imageholder=new Array()
	var ie=document.all
	for (i=0;i<slideimages.length;i++){
	imageholder[i]=new Image()
	imageholder[i].src=slideimages[i]
	}
}

function showTip(sSection,onOff) {
	
	if(document.all) {
		oObj = eval("document.all." + sSection + "_tip");
	} else {
		oObj = document.getElementById(sSection + "_tip");	
	}
	
	if(onOff) {
		oObj.style.display = "block";
	} else {
		oObj.style.display = "none";
	}
}
