//Shedd Menu functions
//------------------------------------------
	
	// Set Series variable
	function setSeries(seriesID, eventType){
		cbGetElement('iSeriesID').value = seriesID; 
		cbGetElement('iEventType').value = eventType; 
		curForm().submit();
	}
	
	// Set Event variable
	function setEvent(eventID, eventType){
		cbGetElement('iEventID').value = eventID; 
		cbGetElement('iEventType').value = eventType; 
		curForm().submit();
	}
	
	// Set Series & Event variables
	function setSeriesEvent(seriesID, eventID, eventType){
		cbGetElement('iSeriesID').value = seriesID; 
		cbGetElement('iEventID').value = eventID;
		cbGetElement('iEventType').value = eventType; 
		curForm().submit();
    }

    // Set Series & Artist variables
    function setSeriesArtist(seriesID, artistID, eventType) {
        cbGetElement('iSeriesID').value = seriesID;
        cbGetElement('iArtistID').value = artistID;
        cbGetElement('iEventType').value = eventType;
        curForm().submit();
    }
	
	// Get Current Form object
	// Assumes current form has an id=Form1
	function curForm(){
		if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1){
			return document.getElementById("Form1");
			}
		else{
			return document.forms["Form1"];
			}
	}
	
	// Cross-browser get element 
	function cbGetElement(elementID){
		if (document.getElementById){
			return document.getElementById(elementID); 
			} 
		else if (document.all){
			return document.all[elementID];
			}
	}
	//===== End of function ===================================
	
	/*=========================================================
	/ FUNCTION: Toggle displayed child DIV tags
	===========================================================*/
	function ToggleDisplayedChild(ChildID, ParentID, TitleID){
		var i;
		var strCurrentID;
		var objParentBlock, colBlockDivs, colAreaDivsCnt;
		var objDiv;
		/*----------------------------------------------------------------
		/ Get the collection of <div> contained in the ParentID container
		/ This must be referenced differently per browser. Most new browsers
		/ use the "getElement" functions, should also do a version for old
		/ layers browsers too [but not implemented yet]
		/ REQUIREMENTS: Child "id" must be preceded by "xxx", Child "title"
		'  attribute must be set
		-----------------------------------------------------------------*/
		if(document.getElementById){
			objParentBlock = document.getElementById(ParentID);
			colBlockDivs = objParentBlock.getElementsByTagName('div');
		}
		else if (document.all){
			objParentBlock = document.all[ParentID];
			colBlockDivs = objParentBlock.children.tags("div");
		}
		else if(!document.all && !document.getElementById && document.layers){
			return;
		}
		/*----------------------------------------------------------------
		| Next go through all of the <div> tags contained in ParentID, check
		| them for null and for a leading "xxx" (these 2 checks remove from
		| consideration all <div>s that might be contained in the document itself)
		| If both checks pass, decide whether to toggle display on or off.
		-----------------------------------------------------------------*/
		for (i = 0; i < colBlockDivs.length; i++){
			// Check for null id -- this could occur in document blocks
			if (colBlockDivs[i].id != null){
				strCurrentID = colBlockDivs[i].id;
				// Now check for "xxx" -- these are the <div>s to be switched all other
				// <div> tags that happen to be in the Parent container are ignored
				if (strCurrentID.substring(0,3) == "xxx"){
					if (strCurrentID == ChildID){
						// Display this <div> & put its "title" attribute in the menu
						cbHideDisplay(colBlockDivs[i], 1);
						}
					else{
						cbHideDisplay(colBlockDivs[i], 0);
					}
				}
			}
		}
	}
	//===== End of function ===================================
	
		/*=========================================================
	/ FUNCTION: Toggle displayed child DIV tags
	===========================================================*/
	function RunVideo(VideoID, TitleID, VideoSource){
		var i;
		var strCurrentID;
		var objParentBlock, colBlockDivs, colAreaDivsCnt;
		var objDiv;
		/*----------------------------------------------------------------
		/ Get the collection of <div> contained in the ParentID container
		/ This must be referenced differently per browser. Most new browsers
		/ use the "getElement" functions, should also do a version for old
		/ layers browsers too [but not implemented yet]
		/ REQUIREMENTS: Child "id" must be preceded by "xxx", Child "title"
		'  attribute must be set
		-----------------------------------------------------------------*/
		if(document.getElementById){
			objParentBlock = document.getElementById(VideoID);
			colBlockDivs = objParentBlock.getElementsByTagName('div');
		}
		else if (document.all){
			objParentBlock = document.all[VideoID];
			colBlockDivs = objParentBlock.children.tags("div");
		}
		else if(!document.all && !document.getElementById && document.layers){
			return;
		}
		/*----------------------------------------------------------------
		| Next go through all of the <div> tags contained in ParentID, check
		| them for null and for a leading "xxx" (these 2 checks remove from
		| consideration all <div>s that might be contained in the document itself)
		| If both checks pass, decide whether to toggle display on or off.
		-----------------------------------------------------------------*/
		var so = new SWFObject(VideoSource, "xxx1", "260px", "211px", "6", "");
			so.write(VideoID);
			//cbGetElement(TitleID).innerHTML = VideoSource;
	}
	//===== End of function ===================================
	
	/*=========================================================
	/ FUNCTION: Hide or display the passed layer
	==========================================================*/	
	function cbHideDisplay(objLayer, bool){
		var visi, visi2;
		if (bool){
			visi="";
			visi2="visible";
		}
		else{
			visi="none";
			visi2="hidden";
		}
		if(document.getElementById){
		//thisbrowser="NN6";
		document.getElementById(objLayer.id).style.display=visi;
		}
		else if(document.all){
			//thisbrowser="ie"
			objLayer.style.display=visi;
		}
		else if(document.layers){
			//thisbrowser="NN4";
			objLayer.visibility=visi2;
		}
	}
	//===== End of function ====================================

