/* DHTML FUNCTIONS */

var isNav4, isIE4, isNav6 = false;
var range = "";
var styleObj = "";

if (navigator.appVersion.charAt(0) >= 4) {
	if (navigator.appName == "Netscape") {
		if (navigator.appVersion.charAt(0) >= 5) {
			isNav6 = true;
		}
		else {
			isNav4 = true;
		}
	}
	else {
		isIE4 = true;
		range = "all.";
		styleObj = ".style";
	}
}

function getObject(obj) {
	var theObj;
	if (typeof obj == "string") {
		if (isNav6) {
			theObj = document.getElementById(obj);
			if (theObj != null) theObj = theObj.style;
		}
		else {
			theObj = eval("document." + range + obj);
			if (theObj != null) theObj = eval("theObj" + styleObj);
		}
	}
	else {
		theObj = obj;
	}
	return theObj;
}

function show() {
	var theObj;
	for (var i = 0; i < show.arguments.length; i++) {
		theObj = getObject(show.arguments[i]);
		if (theObj != null) {
			theObj.display = "block";
			theObj.visibility = "visible";
		}
	}
}

function hide() {
	var theObj;
	for (var i = 0; i < hide.arguments.length; i++) {
		theObj = getObject(hide.arguments[i]);
		if (theObj != null) {
			theObj.display = "none";
			theObj.visibility = "hidden";
		}
	}
}

function menuActive() {
	var theObj;
	for (var i = 0; i < menuActive.arguments.length; i++) {
		theObj = getObject(menuActive.arguments[i]);
		if (theObj != null) {
			theObj.borderWidth = "3px";
			theObj.borderColor = "#CE4124";
			theObj.borderStyle = "solid";
		}
	}
}

function play(media){
document.getElementById('vidPlayer').innerHTML=
'<OBJECT ID="WMPlay" width="400" height="362" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"'
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,70" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<PARAM name="URL" Value="'+media+'">'
+'<PARAM name="DisplaySize" Value="0">'
+'<PARAM name="AllowChangeDisplaySize" value="True">'
+'<PARAM NAME="ShowControls" Value="1">'
+'<PARAM NAME="WindowlessVideo" Value="0">'
+'<PARAM NAME="ShowDisplay" Value="1">'
+'<PARAM NAME="ShowStatusBar" Value="1">'
+'<PARAM NAME="AutoStart" Value="TRUE">'
+'<PARAM NAME="InvokeURLS" Value="False">'
+'<PARAM NAME="stretchToFit" Value="True">'
+'<embed name="WMplay" width="400" height="362" type="application/x-mplayer2"'
+'pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"'
+'src="'+media+'" Name="WMPlay" stretchToFit="True" AllowChangeDisplaySize="True" ShowControls="1" AutoStart="True" ShowDisplay="0" ShowStatusBar="1"><\/embed><\/object>'
}

<!--//--><![CDATA[//><!--

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>

function btTrack() {
	document.getElementById('tracker').innerHTML=
	'<s'+'cript language="JavaScript" src="http://switch.atdmt.com/jaction/FY07_Exchange_CS_BT"></s'+'cript>'
}
function colTrack() {
	document.getElementById('tracker').innerHTML=
	'<s'+'cript language="JavaScript" src="http://switch.atdmt.com/jaction/FY07_Exchange_CS_Columbia"></s'+'cript>'
}
function dhlTrack() {
	document.getElementById('tracker').innerHTML=
	'<s'+'cript language="JavaScript" src="http://switch.atdmt.com/jaction/FY07_Exchange_CS_DHL"></s'+'cript>'
}
function nikonTrack() {
	document.getElementById('tracker').innerHTML=
	'<s'+'cript language="JavaScript" src="http://switch.atdmt.com/jaction/FY07_Exchange_CS_Nikon"></s'+'cript>'
}
function qualTrack() {
	document.getElementById('tracker').innerHTML=
	'<s'+'cript language="JavaScript" src="http://switch.atdmt.com/jaction/FY07_Exchange_CS_Qualcomm"></s'+'cript>'
}
function pingTrack() {
	document.getElementById('tracker').innerHTML=
	'<s'+'cript language="JavaScript" src="http://switch.atdmt.com/jaction/FY07_Exchange_CS_Ping"></s'+'cript>'
}

try {
  document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}
