
/* ============================================================================
   AUTO-RUN */  
var homeDir = getURLDirectory();
var myPage = getURLPage();
	
	
$("#primaryHeader").ready(function() {
		if (homeDir == "web09" || homeDir == "") {
			getRandomBanner("");		
		} else {
			getRandomBanner("../");	
		}
});

$(document).ready(function() {
	
	if (homeDir == "about-us" && myPage == "index.cfm") {
		jQueryAccordion();
	}
	if (homeDir.indexOf("online-training") > -1) { 
	
		// Show Modal w/Info
		$("#qaPassword").bind('click', function() {
			jQueryModalQA('#password'); 
			return false;
		});
		// Show Modal w/Info
		$("#qaPreregistration").bind('click', function() {
			jQueryModalQA('#preregistrationQaContent');
			return false;
		});
		// Show Additional/Hidden Form Elements
		$("input[name='preregistration']").click(function(){
			showGroupContents('preregistrationContents');
		});
		// Show Additional/Hidden Form Elements
		$("input[name='Presentation']").click(function(){
			showGroupContents('presentationContents'); 
			resetSelector('presentationFIleCount', 0); 
			clearFields('filesList', 'presentationFIleCount');
		});
		
		$("input[name='series']").click(function(){
			showGroupContents('webinarSeriesContents'); 
			resetSelector('webinarSeriesCount', 0); 
			clearFields2('webinarSeriesList', 'webinarSeriesCount');
		});
	}


});
