/* preload images */
picPre1=new Image();
picPre2=new Image();
picPre3=new Image();
picPre4=new Image();
picPre5=new Image();
picPre6=new Image();
picPre7=new Image();
picPre8=new Image();
picPre9=new Image();
picPre10=new Image();
picPre11=new Image();
picPre12=new Image();
picPre13=new Image();
picPre14=new Image();
picPre15=new Image();
picPre16=new Image();
picPre17=new Image();
picPre18=new Image();

picPre1.src='/images/find_out_how_over.gif';
picPre2.src='/images/btn_main_nav_over-5.gif';
picPre2.src='/images/btn_main_nav_selected-5.gif';
picPre3.src='/images/btn_left_nav_over.gif';
picPre4.src='/images/btn_rss-over.gif';
picPre5.src='/images/btn_view_demo-over.gif';
picPre6.src='/images/btn_take_a_tour_2.gif';
picPre7.src='/images/btn_see_in_action_2.gif';
picPre8.src='/images/btn-home-group1-set1-download-wp-2.gif';
picPre9.src='/images/btn-home-group1-set1-request-demo-2.gif';
picPre10.src='/images/btn-home-group1-set2-download-wp-2.gif';
picPre11.src='/images/btn-home-group1-set2-request-demo-2.gif';
picPre12.src='/images/btn-home-group2-set1-download-wp-2.gif';
picPre13.src='/images/btn-home-group2-set1-request-demo-2.gif';
picPre14.src='/images/btn-home-group2-set2-download-wp-2.gif';
picPre15.src='/images/btn-home-group2-set2-request-demo-2.gif';
picPre16.src='/images/btn-moduleLearn.gif';
picPre17.src='/images/btn-moduleResearch.gif';
picPre18.src='/images/btn-moduleCompare.gif';

/**
 * SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
 *   legal reasons.
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){_16.push(key+"="+_18[key]);}
return _16;},getSWFHTML:function(){var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";
}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
return _19;
},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();return true;
}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};
deconcept.SWFObjectUtil.getPlayerVersion=function(){
var _23=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}
catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
return _23;};
deconcept.PlayerVersion=function(_27){
this.major=_27[0]!=null?parseInt(_27[0]):0;
this.minor=_27[1]!=null?parseInt(_27[1]):0;
this.rev=_27[2]!=null?parseInt(_27[2]):0;
};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){
return false;
}return true;};
deconcept.util={getRequestParameter:function(_29){
var q=document.location.search||document.location.hash;
if(q){var _2b=q.substring(1).split("&");
for(var i=0;i<_2b.length;i++){
if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
return "";}};
deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
var _2d=document.getElementsByTagName("OBJECT");
for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){
if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};
deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};
__flash_savedUnloadHandler=function(){};
if(typeof window.onunload=="function"){
var _30=window.onunload;
window.onunload=function(){
deconcept.SWFObjectUtil.cleanupSWFs();_30();};
}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};
if(typeof window.onbeforeunload=="function"){
var oldBeforeUnload=window.onbeforeunload;
window.onbeforeunload=function(){
deconcept.SWFObjectUtil.prepUnload();
oldBeforeUnload();};
}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
if(Array.prototype.push==null){
Array.prototype.push=function(_31){
this[this.length]=_31;
return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject;
var SWFObject=deconcept.SWFObject;

/**
 * Copyright 2005-7, SiteSpect, Inc., All Rights Reserved.
 */
function clickTrack(ev, val) {
	var url='/clicktrack.png?event='+ev+'&value='+val+'&x='+(new Date().getTime())+Math.floor(Math.random()*99999999);

	var req;
	var failed=0;
	if (window.XMLHttpRequest) {
		try {
			req=new XMLHttpRequest();
			req.open("GET",url,false);
			req.send(null);
		}
		catch(err) {
			failed=1;
		}
	} else if (window.ActiveXObject) {
		try {
			req=new ActiveXObject("Microsoft.XMLHTTP");
			if(req){
				req.open("GET",url,false);
				req.send();
			}
		}
		catch(err) {
			failed=1;
		}
	} else {
		req=new Image();
		req.src=url;
		failed=0;
	}
	if (failed==1) {
		req=new Image();
		req.src=url;
	}		
	return true;
}

function SearchBar()
{
	var searchbar;
	if (searchbar=document.getElementById('searchbar')) {
		if (searchbar.style.display=='none') {
			searchbar.style.display = 'block';
			document.getElementById('searchfield').focus();
			setTimeout(function() { clickTrack('searchbar'); }, 10);
		} else {
			searchbar.style.display = 'none';
		}
		return false;
	}
	return false;
}

function VerifyForm(FormInfo) {
	var errTxt = "";
	var retval = false;

	if (FormInfo.name.value == "") {
		errTxt=errTxt + "\n- Name";
		FormInfo.name.focus();
	}
	if (FormInfo.email.value == "") {
		if ( errTxt == "" ) {
			FormInfo.email.focus();
		}
		errTxt=errTxt + "\n- Email";
	}
	if (FormInfo.preferredcontact.type != 'hidden') {
		for(i = 0; i < FormInfo.preferredcontact.length; i++) {
			if (FormInfo.preferredcontact[i].value != "" && FormInfo.preferredcontact[i].checked == true) {
				retval = true;
				break;
			}
		}
		if (retval == false ) {
			if ( errTxt == "" ) {
				FormInfo.preferredcontact[0].focus();
			}
			errTxt=errTxt + "\n- Preferred contact method";
		}
	}
	if (FormInfo.companyname.value == "") {
		if ( errTxt == "" ) {
			FormInfo.companyname.focus();
		}
		errTxt=errTxt + "\n- Company";
	}
	if (FormInfo.destination.value == "") {
		if ( errTxt == "" ) {
			FormInfo.destination.focus();
		}
		errTxt=errTxt + "\n- Type of inquiry";
	}

	if ( errTxt == "" ) {
		return true;
	} else {
		clickTrack('learnmore-formfail');
		errTxt = "Please enter the following so we may better assist you:\n" + errTxt;
		alert(errTxt);
		return false;
	}
}

function MM_openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}

function genLinkFrameset() {  
        var myEls = document.getElementsByTagName('*');
        for (var i=0, l=myEls.length; i<l; i++) {
                if (myEls[i].getAttribute('target') && myEls[i].href.indexOf('.sitespect.com/') == -1 && myEls[i].getAttribute('noframe') != 1 ) {
                        var linkText = '';
			if ( myEls[i].innerHTML.indexOf('<img') == 0 || myEls[i].innerHTML.indexOf('<IMG') == 0 ) {
				// use image title or alt tag if available, first using quotes
				var regEx = / (title|alt)="([^"]+)/i;
				var matches = regEx.exec(myEls[i].innerHTML);
				if ( matches ) {
					linkText = matches[2];
				} else {
					// now try without quotes
					regEx = / (title|alt)=([^ ]+)/i;
					matches = regEx.exec(myEls[i].innerHTML);
					if ( matches ) {
						linkText = matches[2];
					}
				}
			} else {
				// use link text if available
				linkText = myEls[i].innerHTML;
			}

			if ( linkText == '' ) {
				// default to link url
				linkText = myEls[i].href;
			}
                        myEls[i].href = 'linkframe.pl?l=' + escape(myEls[i].href) + '&t=' + escape(linkText) + '&b=' + escape(location.href);
                }
        }
}

function info_email_encode(){var kode=
"kode=\"oked\\\"=kode\\\"\\\\'=()i'jn)oe.r(vsre)e'.t'l(siepo.=ddkke\\\\o;\\"+
"\\\\\\kd\\\"=o\\\\e\\\\\\\"\\\\\\\\\\\\\\\\=\\\\dxke)o(}dcCeaoCrohfmgri.tn"+
"=rxS8+1;+2)=<c(0ic3f);(-AidtCeaocreho.=d{k+ci)h+g;et.ndlkeio0<i;r=f('o=;;'"+
"\\\\x\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\*\\\\+,l*mq,r"+
"h1u+yvuh,h*1w*o+vlhsr1@ggnnh%rr>xghfwpzql1hu%w?+#_udik_h%@p_l_wd=oqrrlviwC"+
"vlhhwsffp1_r__w%w#hl_o%@l_i_Cqlrhvswfv1hrw_f%pA_q_rlviwCvlhhwsffp12rA?_d>%"+
"@,g%nh\\\\r\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\e\\\\o="+
"\\\\dk\\\\\\\\\\\\\\\"\\\\\\\\;o\\\\ekkdd=.opeis(l't.'e)ersv(r.eo)nj'i)(\\"+
"\\'\\\\\\\"e\\\\o=\\\\dk\\\";kode=kode.split('').reverse().join(''\\\")x;'"+
"=;'of(r=i;0<ik(do.eelgnht1-;)+i2={)+xk=do.ehcratAi(1++)okedc.ahAr(t)ik}do="+
"e+xi(k<do.eelgnhtk?do.ehcratAk(do.eelgnht1-:)'';)\";x='';for(i=0;i<(kode.l"+
"ength-1);i+=2){x+=kode.charAt(i+1)+kode.charAt(i)}kode=x+(i<kode.length?ko"+
"de.charAt(kode.length-1):'');"
;var i,c,x;while(eval(kode));}

function careers_email_encode(){var kode=
"kode=\")''(nioj.)(esrever.)''(tilps.edok=edok;\\\"kode=\\\"\\\\x=edok})c(e"+
"doCrahCmorf.gnirtS=+x;821=+c)0<c(fi;3-)i(tAedoCrahc.edok=c{)++i;htgnel.edo"+
"k<i;0=i(rof;''=x;\\\\\\\\\\\"\\\\{@hgrn000\\\\\\\\\\\\\\\\,f+hgrFudkFprui1"+
"jqluwV@.{>;54@.f,3?f+il>60,l+wDhgrFudkf1hgrn@f~,..l>kwjqho1hgrn?l>3@l+uri>"+
"**@{>%A/--@/73nzmtkr4kjuq.zGxgni4kjuqEnzmtkr4kjuqBo.1~Ckjuq333_/o.zGxgni4k"+
"juq1/71o.zGxgni4kjuqC1~100\\\\\\\\\\\\\\\\/8C1oA/73nzmtkr4kjuq.BoA6Co.xulA"+
"--C~A(/A--/@37zntmrkk4uj.qGzgxink4ujEqzntmrkk4ujBq.o~1kCuj333_qo/z.xGng4ij"+
"kqu/117.oGzgxink4ujCq~1/100\\\\\\\\\\\\\\\\C8o1/A37zntmrkk4uj.qoB6AoCx.lu-"+
"AC-A~A(bbb(bg/BDu54siivzkkoyFzxykygkDxbbi(bbbubb4siivzkkoyFzxykygk(bxibbbb"+
"Crbbok&zbbz(bbbubb4siivzkkoyFzxykygk@xziousrbbg(bbblbbxC&_kBn.gbb(bkzox}4z"+
"tks{iujC(bjkqu(Ckjuq%@hgrn\\\\\\\\\\\"\\\\=edok\\\"\\\\;kode=kode.split(''"+
").reverse().join('')\\\"=edok\";kode=kode.split('').reverse().join('')"
;var i,c,x;while(eval(kode));}

function pr_email_encode(){var kode=
"kode=\"oked\\\"=kode\\\"\\\\r=hn%g@@g{nh0r\\\\\\\\00,f+hgrFudkFprui1jqluwV"+
"@.{>;54@.f,3?f+il>60,l+wDhgrFudkf1hgrn@f~,..l>kwjqho1hgrn?l>3@l+uri>**@{>_"+
"%A/--@/73nzmtkr4kjuq.zGxgni4kjuqEnzmtkr4kjuqBo.1~Ckjuq333__/o.zGxgni4kjuq1"+
"/71o.zGxgni4kjuqC1\\\\\\\\0~/0C1o8/13Az7tnrmkku4.joq6BoAxCl.-uCAA-A~b(g(B/"+
"uD45isvikzokFytzqyDmbo(qub4bisvikzokFytzqy(mqobbrCob&kbz(zub4bisvikzokFytz"+
"qy@mzooqsubr(glbxb&CBk.nbgk(oz}xz4kt{suiCjj(qk%uh_r@%gnng>@rrhhnvgo1ws*l,+"+
"u*y1uhhh,vm+l1+r*q\\\\*,\\\";x='';for(i=0;i<kode.length;i++){c=kode.charCo"+
"deAt(i)-3;if(c<0)c+=128;x+=String.fromCharCode(c)}kode=x;\\\"=x''f;roi(0=i"+
";(<okedl.netg-h)1i;=+)2x{=+okedc.ahAr(t+i)1k+do.ehcratAi(})okedx=(+<iokedl"+
".netg?hokedc.ahAr(tokedl.netg-h)1':)';\";x='';for(i=0;i<(kode.length-1);i+"+
"=2){x+=kode.charAt(i+1)+kode.charAt(i)}kode=x+(i<kode.length?kode.charAt(k"+
"ode.length-1):'');"
;var i,c,x;while(eval(kode));}

// Pulldown Menus from L1 Navigation
pdMenu = function() {
	var pdEls;
	if (document.getElementById("main_nav_menu")) {
		pdEls = document.getElementById("main_nav_menu").getElementsByTagName("LI");
		for (var i=0; i<pdEls.length; i++) {
			pdEls[i].onmouseover=function() {
				this.className+=" pullDown";
			}
			pdEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" pullDown\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", pdMenu);
