/*

header: _header.js
JS used by status bar links

*/

function outClick() {
	 window.location="/LOGOUT.CFM?logout=1&"+lcfid_str;
}

function helpClick() {
	 var testWin;
	 var str;
	 str = "menubar=yes,scrollBars=1,width=750,height=500,resizable=yes";
	 str=str+",toolbar=yes";
	 testWin = window.open("","helpWin",str);
	 testWin.location = HelpLink;
}

function aboutClick() {
	 var testWin;
	 var str;
	 str = "menubar=no,scrollBars=1,width=700,height=500,resizable=yes";
	 testWin = window.open("","helpWin",str);
	 testWin.location = "/about.cfm?"+lcfid_str;
}

function contactClick() {
	 var testWin;
	 var str;
	 str = "menubar=no,scrollBars=1,width=700,height=500,resizable=yes,toolbar=yes";
	 testWin = window.open("","helpWin",str);
	 testWin.location = "/contact.cfm?"+lcfid_str+"&logout=1";	
}

function playText(str) {
		<!---playTextWin.location="getTextSound.cfm?str="+str;--->
		document.getElementById('audioDiv').innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="10" height="2" id="audApp" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="getTextSound.cfm?str='+str+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="id" value="audApp" /><embed src="getTextSound.cfm?str='+str+'" quality="high" bgcolor="#ffffff" width="10" height="2" name="gameApp" align="middle" allowScriptAccess="sameDomain" id="gameApp" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';	
}
	
var audioDelayID=0;
	
function playTextDelay(str,x) {
	clearAudioDelay();
	audioDelayID=window.setTimeout("playText('"+str+"')",x);
}
	
function clearAudioDelay() {
	if (audioDelayID>0) {
		window.clearTimeout(audioDelayID);
	}
}

