function initLiveChat(){
	window.open('http://server.iad.liveperson.net/hc/75122942/?cmd=file&file=visitorWantsToChat&site=75122942&imageUrl=http://server.iad.liveperson.net/hcp/Gallery/ChatButton-Gallery/English/General/1a/&referrer='+escape(document.location),'chat77453840','width=475,height=575,resizable=yes');}
	
var lpMTagConfig = {'lpServer' : "server.iad.liveperson.net",'lpNumber' : "75122942",'lpProtocol' : "https"}; function lpAddMonitorTag(src){if(typeof(src)=='undefined'||typeof(src)=='object'){src=lpMTagConfig.lpMTagSrc?lpMTagConfig.lpMTagSrc:'/hcp/html/mTag.js';}if(src.indexOf('http')!=0){src=lpMTagConfig.lpProtocol+"://"+lpMTagConfig.lpServer+src+'?site='+lpMTagConfig.lpNumber;}else{if(src.indexOf('site=')<0){if(src.indexOf('?')<0)src=src+'?';else src=src+'&';src=src+'site='+lpMTagConfig.lpNumber;}};var s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('charset','iso-8859-1');s.setAttribute('src',src);document.getElementsByTagName('head').item(0).appendChild(s);} if (window.attachEvent) window.attachEvent('onload',lpAddMonitorTag); else window.addEventListener("load",lpAddMonitorTag,false);

//trackGa("");
function initLivePhoneChat(){
	window.open('https://server.iad.liveperson.net/hc/75122942/?cmd=file&file=visitorWantsToTalk&site=75122942&byhref=1' ,'chat77453840','width=475,height=575,resizable=yes');}

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	
function trackGa(str){
	
	try {
		var pageTracker = _gat._getTracker("UA-17044867-1");
		pageTracker._initData();
		pageTracker._trackPageview(str);
		//alert("This is what is being sent" + str);
	} catch(err)
	{
		alert("TRACKING WAS NOT SENT!"+ err)
	}
}

function getMainSWF(name) {
	if (window.document[name]) {
		return window.document[name];
	} else if (navigator.appName.indexOf('Microsoft Internet') == -1) {
		return document.embeds[name];
	} else {
		return document.getElementById(name);
	}
	
	alert('Error getting main swf movie');
}

function navigate(arg) {
	//alert('Navigate called');
	getMainSWF('movie').navigate(arg);
}

function navigateCallback(arg) {
	//alert(arg);
}

function activate() {
	getMainSWF('nav').activate();
}

function swapActive() {
	getMainSWF('nav').swapActive(null);
}
