//<![CDATA[
	// as part of deep linking
	// set var to determine whether or not to turn off music
	var bIsSet = false;
	
	// get iframe
	
	function deepLinkIt(){
		var oIFrame = document.getElementById('mediaContent');
		var arrLoc = window.location.search.split("=");
		strLoc = arrLoc[1];

		var	reQS_vid = /(vid=)(\d\d_\w+)/;
		// get the flv 2 play
//		var qs0_vid = arrLoc[1].replace(reQS_vid, "$2");

//		alert("Q!!S " + arrLoc + " : " + qs0_vid);
		

		var arrLoc2 = arrLoc[1].split("&");
		strLoc = arrLoc2[0];

		

		oIFrame.src = strLoc + ".html";
		
		if(arrLoc[2]) {
			oIFrame.src += "?vid=" + arrLoc[2];
		}

	

		// alert("strLoc: " + strLoc);
/*
		// regEx the qs
		var	reQS = /((\?\w+=)(\w+))((&iframe=)(\w+))?/;

		// cast	qs objects
		var qs0 = window.location.search.replace(reQS, "$0");
		var qs1 = window.location.search.replace(reQS, "$1");
		var qs2 = window.location.search.replace(reQS, "$2");
		var qs3 = window.location.search.replace(reQS, "$3");
		var qs4 = window.location.search.replace(reQS, "$4");
		var qs5 = window.location.search.replace(reQS, "$5");
		var qs6 = window.location.search.replace(reQS, "$6");
		var qs7 = window.location.search.replace(reQS, "$7");
		//
		var strLink		= window.location.search.replace(reQS, "$3");
		var strLoc		= window.location.search.replace(reQS, "$6");

		var oIFrame = document.getElementById('mediaContent');
		
		if(strLoc) {
			oIFrame = document.getElementById(strLoc);
			// alert(strLink + " :: " + strLoc)
		}
		alert(oIFrame.id + " ::: " + strLink)
		oIFrame.src = strLink + ".html"
	}
*/
	}
	
	function hushNow() {
		if(bIsSet){
			// alert("!bIsSet " + bIsSet);
			shutUp();
			deepLinkIt();
		} else {
			// alert("@bIsSet " + bIsSet);
		}
	}
	function shutUp() {
		var flash;
		if(navigator.appName.indexOf("Microsoft") != -1) {
			flash = window.athfMuzakFlash;
		} else {
			flash = window.document.athfMuzakFlash;
		}
		// alert("flash " + flash.name)
		flash.shush();
	}
	function playMuzak() {
		//as_athfMuzak_fo.write('muzak');
	}
	function switchBG() {
		oBody = document.getElementById('bodyDiv');
		oBody.className = "carl";
	
	}
	function hideMe() {
		oFlash = document.getElementById('explosiveColon');
		oiFrame = document.getElementById('iframeCont');	
		oFlash.className = "hide";
		oFlash.style.display = "none";
		oiFrame.className = "show";
		as_athfNav_fo.write('athfNav');
	}
	function deepLinkLineUp() {
		switchBG();
		hideMe();
		bIsSet = true;
		//	playMuzak();
		deepLinkIt();
	}
	function init(){
		// check for querystring for deep linking purposes
		if(window.location.search.length > 0) {
			deepLinkLineUp();
		} else {
			// as_xplCol_fo.write("explosiveColon");
			// uncomment below 4 promo
			switchBG();
			hideMe();
		}
	}
//]]>
