var akamaiImgs = 'http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com';	

// PREVIOUSLY footer_hp.js ---- start
// Get 13 digit time stamp plus 6 digit random number
today=new Date();
timetoday=today.getTime();
randm = getRandom(100000,999999);
timenow = timetoday + "" + randm;
function getRandom(min,max)
{return (Math.round(Math.random()*(max-min)))+min;}

// Get browser information
nets = (navigator.appName.indexOf("Netscape") != -1);
nseven = (navigator.userAgent.indexOf("Netscape/7") != -1);
bVer=parseInt(navigator.appVersion);
var isMSIE3 = false;

var name = "new_visited_us";
var path = "/";
var expDays = 365*20; // number of days the cookie should last
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000)); 
var value = timenow;

function addToFavorite(){
  var pagetitle = document.title.toString();
  if (pagetitle=="") {
     pagetitle = "Global Sources: The Largest Base of Suppliers";
  }  
  var urlstr2 = document.location.toString();  //added oct24,2005 - to detect if nav is from tradeshowcalendar
  /*if (urlstr2.indexOf("tradeshowcalendar") > 0)
  	{window.external.AddFavorite(document.location+"/?ref=bmk",pagetitle)
	} else 
	{window.external.AddFavorite(document.location+"?ref=bmk",pagetitle)
	} */
	
	/*if (urlstr2.indexOf("HONGKONG-ELECTRONICS") > 0) // to diff static from dynamic
  	{window.external.AddFavorite(document.location+"?ref=bmk",pagetitle)
	} else  
	{ */ //window.external.AddFavorite(document.location+"&ref=bmk",pagetitle)
	//window.external.AddFavorite(document.location,pagetitle)
	//}
	
  // start addFavorite conditions
  if ((urlstr2.indexOf(".htm") > 0) || (urlstr2.indexOf(".HTM") > 0))  //.htm uses ?ref=bmk -- except for exhibitor-list w/ uses &ref=bmk
  { if (urlstr2.indexOf("exhibitor-list") > 0) 
  	{window.external.AddFavorite(document.location+"&ref=bmk",pagetitle)}
    else if (urlstr2.indexOf("tradeshowcalendar") > 0)
  	{window.external.AddFavorite(document.location+"/?ref=bmk",pagetitle)}	
  	else
  	{window.external.AddFavorite(document.location+"?ref=bmk",pagetitle)} 	
  }
  
  else if (urlstr2.indexOf(".jsp") > 0)
  	{window.external.AddFavorite(document.location+"&ref=bmk",pagetitle)}
	
  else 
    {window.external.AddFavorite(document.location,pagetitle)}

  // end addFavorite conditions
  	
} // end addToFavorite

function addToFavoriteNS(){ alert("Please press ^D (CTRL-D) to bookmark this page"); }

function writeBottomFunctions() {
	document.write('<table align="center" border="0" cellpadding="2" cellspacing="0">');
    //document.write('<tr><td><span class=srch><img src="'+akamaiImgs+'/SITE/I/ARROW.GIF" width="22" height="18" align="absmiddle"><a href="#top">Go to Top</a> </span></td>');
	//document.write('<td>&nbsp;&nbsp;&nbsp;</td>');
	document.write('<tr><td><span class=srch><img src="'+akamaiImgs+'/SITE/I/BOOK.GIF" width="21" height="19" align="absmiddle"> ');
		
			if 	(navigator.appName=="Netscape") {
			//(navigator.userAgent.indexOf("Netscape")!= -1) {   // this is to differentiate Firefox from Netscape
			document.write('&nbsp;<a href="javascript:addToFavoriteNS()">Bookmark this page</a><br>');
			}
			else if (parseInt(navigator.appVersion)>3) {
			document.write('&nbsp;<a href="javascript:addToFavorite()">Bookmark this page</a><br>');
			}
		
		document.write('</span>	');
	document.write('</td>');
    document.write('</tr>');
    document.write('</table>');
}

function writeBottomGooglePlusFunctions() {
	
	var urlpath = window.location.pathname;
	var wbt = 'TSC';
	if(urlpath.indexOf("TRADESHOW.HTM") != -1) { wbt = 'TSCHP'; }
	if(urlpath.indexOf("TRADEORG.HTM") != -1) { wbt = 'TSCHP'; }
	
	document.write('<div align=center>');
	document.write('	<div style="width:380px;">');
	// check for firefox
	if 	(navigator.appName=="Netscape") {
		document.write('	<div style="float:left; width:120px;" class=srch><a href="javascript:addToFavoriteNS();dcsMultiTrack(\'DCS.dcsuri\', \'/v-bookmarks/v-bookmark.htm\',\'WT.ti\', \'Bookmark click\', \'WT.cg_n\', \'Bookmark\',\'WT.cg_s\', \''+wbt+'\');" style="color:#050081"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/BOOK.GIF" width="21" height="19" align="absmiddle" border=0></a>Bookmark this page</div>');
	}
	// check for IE
	else if (parseInt(navigator.appVersion)>3) {
		document.write('	<div style="float:left; width:120px;" class=srch><a href="javascript:addToFavorite();dcsMultiTrack(\'DCS.dcsuri\', \'/v-bookmarks/v-bookmark.htm\',\'WT.ti\', \'Bookmark click\', \'WT.cg_n\', \'Bookmark\',\'WT.cg_s\', \''+wbt+'\');" style="color:#050081"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/BOOK.GIF" width="21" height="19" align="absmiddle" border=0></a>Bookmark this page</div>');
	}
	document.write('		<div style="float:left; width:160px;" class=srch><span style="padding:0 20px;">|</span>Connect/Recommend:</div>');
	document.write('		<div style="float:left; width:30px;"><a href="http://www.globalsources.com/sn/fb2/?source=3rd_FB_GSOL_Footer" style="color:#050081" target=externalWin><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/GSHP-FACEBOOK2.GIF" width="17" height="17" align="absmiddle" border=0></a></div>');
	document.write('		<div style="float:left; width:30px;"><a href="http://www.globalsources.com/sn/twit2/?source=3rd_twit_GSOL_Footer" style="color:#050081" target=externalWin><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/ST/i/GSHP-TWITTER2.GIF" width="17" height="17" align="absmiddle" border=0></a></div>');
	document.write('		<div style="float:left; width:30px;">');
	document.write('			<!-- Place this tag where you want the +1 button to render -->');
								//eval(' <g:plusone size="small" annotation="none"></g:plusone> ');
	document.write(' 			<div class="g-plusone" id="gplusone"></div> ');
								eval(' var ValidMe=document.getElementById("gplusone"); '
								+' ValidMe.setAttribute("data-size","small"); '
								+' ValidMe.setAttribute("data-count","false"); ');
	document.write('			<!-- Place this render call where appropriate -->');
	
	eval(" (function() { "
			+" var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; "
			+" po.src = 'https://apis.google.com/js/plusone.js'; "
			+" var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); "
		+"  })(); ");
	document.write('		</div>');
	document.write('	</div>');
	document.write('</div>');
}

function openNew(link) {
	msg=window.open(link,"DisplayWindow2","HEIGHT=550,WIDTH=800,status=1,toolbar=0,directories=0,menubar=0,location=0,scrollbars=1,resizable=1,top=50,left=50");
	if (window.focus) {msg.focus()}
}

function newWinTrd(page,height,width) {
	params = "height=" + height + ",width=" + width + ",status=1,toolbar=0,directories=0,menubar=0,location=0,scrollbars=1,resizable=1,top=250,left=50,screenX=250,screenY=50";
	mypopup = window.open(page,"PopupWindow",params);
	mypopup.focus();
}

function GetCookie(name) {
   if ((bVer > 2) && !isMSIE3) {
      var arg  = name + "=";
      var alen = arg.length;
      var clen = document.cookie.length;
      var i    = 0;
      while(i < clen) {
         var offset = i + alen;
         if(document.cookie.substring(i, offset) == arg) {
            var iEnd  = document.cookie.indexOf(";", offset);
            if(iEnd == -1) {
               iEnd = document.cookie.length;
            }
            return unescape(document.cookie.substring(offset, iEnd));
         }
         i = document.cookie.indexOf(" ", i) + 1;
         if(i == 0) {
            break;
         }
      }
      return null;
   }
}
function SetCookie(name, value, expires, path) {
   if((bVer > 2) && !isMSIE3) {
      document.cookie = name + "=" + escape(value)
      + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ";domain=.globalsources.com"
      + ((path == null) ? "" : ("; path=" + path));
   } else {
      eval(name + " = '" + value + "'");
   }
}
function setUniqCookie() {
   if ((bVer > 2) && !isMSIE3) {
      snooky = GetCookie(name);
     // alert ("snooky : " + snooky);
	 if (snooky == null) {
	  SetCookie(name, value, exp, path);
	  }
   }
}

function writeBottom(statusGP) {
	
	/* GLOBAL BOTTOM FUNCTIONS */
	writeBottomGooglePlusFunctions();
	document.write('<div class="ht20"></div>');
	/* GLOBAL BOTTOM FUNCTIONS */
	
	/* GLOBAL BOTTOM NAV */
	document.writeln('<div class=ht20></div><div class=ht5></div>');
	document.write(' <div class=srch> ');
		document.write(' <div class=ht5></div><div align=center><a href="http://www.corporate.globalsources.com/" class=srch>About Global Sources</a> &nbsp;|&nbsp; <a href="http://corporate.china.globalsources.com/"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/ABOUTCN.GIF" style="vertical-align: bottom;" alt="About Global Sources - Chinese" title="About Global Sources - Chinese" border=0 width=48 height=14></a> &nbsp;|&nbsp; <a href="http://www.globalsources.com/SITE/BUYER/MAIN.HTM" class=srch>Our Services</a> &nbsp;|&nbsp; <a href="http://investor.globalsources.com/phoenix.zhtml?c=121487&p=irol-IRHome" class=srch>Investor Relations</a> &nbsp;|&nbsp; <a href="http://www.globalsources.com/SITE/PARTNER.HTM" class=srch>Partner With Us</a> &nbsp;|&nbsp; <a href="http://www.globalsources.com/HELP/SITEHELP.HTM" class=srch>Help &amp; FAQ</a> &nbsp;|&nbsp; <a href="http://www.globalsources.com/SITE/SITEMAP.HTM" class=srch>Site Map</a> &nbsp;|&nbsp; <a href="http://www.globalsources.com/CUSTOMER/CONTACT.HTM" class=srch>Contact Global Sources</a></div> ');
		document.write(' <div class=ht5></div><div align=center><b>Our other sites: </b>&nbsp;<a href="http://www.globalsources.com/gsol/I/all-countries/c/2000000003844/3000000149681/-1.htm" class=srch>Country Sourcing</a> &nbsp;|&nbsp; <a href="http://www.eetasia.com/" class=srch>EE Times - Asia</a> &nbsp;|&nbsp; <a href="http://www.eetindia.co.in/" class=srch>EE Times - India</a> &nbsp;|&nbsp; <a href="http://www.smartchinasourcing.com/" class=srch>Smart China Sourcing</a> &nbsp;|&nbsp; <a href="http://www.cantonfair.com/" class=srch>Canton Fair</a></div> ');
		document.write(' <div class=ht5></div><div align=center><a href="http://www.b2b.globalsources.com.cn/"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/B2B.GIF" style="vertical-align: middle;" border=0 width=83 height=15></a> &nbsp;|&nbsp; <a href="http://www.globalsources.com.cn/"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/CGSOL.GIF" style="vertical-align: middle;" alt="globalsources.com.cn - manufacturers" title="globalsources.com.cn - manufacturers" border=0 width=85 height=15></a> &nbsp;|&nbsp; <a href="http://www.eet-china.com/"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/EETC.GIF" style="vertical-align: middle;" alt="EE Times - China" title="EE Times - China" border=0 width=71 height=15></a> &nbsp;|&nbsp; <a href="http://www.esmchina.com/"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/ESMC.GIF" style="vertical-align: middle;" alt="esmchina" title="esmchina" border=0 width=72 height=15></a> &nbsp;|&nbsp; <a href="http://www.eetkorea.com/"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/EETK.GIF" style="vertical-align: middle;" alt="EE Times - Korea" title="EE Times - Korea" border=0 width=69 height=15></a> &nbsp;|&nbsp; <a href="http://www.eettaiwan.com/"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/EETT.GIF" style="vertical-align: middle;" alt="EE Times - Taiwan" title="EE Times - Taiwan" border=0 width=72 height=15></a> &nbsp;|&nbsp; <a href="http://www.ceconline.com/"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/CEC.GIF" style="vertical-align: middle;" alt="Chief Executive China online" title="Chief Executive China online" border=0 width=60 height=15></a> &nbsp;|&nbsp; <a href="http://elegantliving.ceconline.com"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/ELOL.GIF" style="vertical-align: middle;" alt="EL Online" title="EL Online" border=0 height=15 width=48></a> &nbsp;|&nbsp; <a href="http://www.ed-china.com/"><img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/staticeh.globalsources.com/SITE/I/EDC.GIF" style="vertical-align: middle;" alt="Electronic Design-China online" title="Electronic Design-China online" border=0 width=72 height=15></a></div> ');
		document.write(' <div class=ht5></div><div align=center><b>Browse by:</b> <a href="http://www.globalsources.com/SITE/topmanufacturers.html" class=srch>Top Products</a> &nbsp;|&nbsp; <a href="http://www.globalsources.com/new-products/NL0/Listing.htm" class=srch>New Products</a> &nbsp;|&nbsp; <a href="http://www.chinasuppliers.globalsources.com/SITE/top-china-suppliers.html" class=srch>China Suppliers</a> &nbsp;|&nbsp; <a href="http://www.globalsources.com/gsol/I/all-manufacturers/r/2000000003844/3000000149681/-1/1/master_rss.htm?referrer=RSS_Hp" class=srch>RSS<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/gsol/en/clean/images/RSSICON.GIF" style="vertical-align: bottom; margin-left:5px" alt="RSS" title="RSS" border=0 width=14 height=14></a></div> ');
	document.write(' </div> ');
	/* GLOBAL BOTTOM NAV */
	
	/* Copyright footer table */
	document.write(' <div style="width:100%; padding: 20px 0px; text-align: center;"><div style="border-top: 1px solid #999;"></div><div class="ht5"></div><div class="sm2"> ');
	
	copyright=new Date();
	update=copyright.getFullYear();
	document.write('Copyright &copy; '+ update + ' Trade Media Holdings Ltd. Copyright &copy; '+ update + ' Trade Media Ltd. <a href="javascript:newWinTrd(\'http://www.globalsources.com/CUSTOMER/ALLRIGHTS.HTM\',\'130\',\'640\');">All rights reserved</a>.');
	
	//document.write('<br><a href="http://www.globalsources.com/SITE/TERMSOFUSE.HTM"><font color=#000066>Terms of Use</font></a> &nbsp;&nbsp; <a href="http://www.globalsources.com/HELP/PRIVACY.HTM"><font color=#000066>Privacy Policy</font></a> &nbsp;&nbsp; <a href="http://www.globalsources.com/CUSTOMER/SECMEASURES.HTM"><font color=#000066>Security Measures</font></a>. &nbsp;&nbsp;');
	document.write('&nbsp;&nbsp;&nbsp;<a href="http://www.globalsources.com/SITE/TERMSOFUSE.HTM">Terms of Use</a> &nbsp;&nbsp; <a href="http://www.globalsources.com/HELP/PRIVACY.HTM">Privacy Policy</a> &nbsp;&nbsp; <a href="http://www.globalsources.com/CUSTOMER/SECMEASURES.HTM">Security Measures</a> &nbsp;&nbsp; <a href="http://www.globalsources.com/CUSTOMER/IPPOLICY.HTM">IP Policy</a> &nbsp;&nbsp;');

	if(navigator.appName == "Microsoft Internet Explorer" && bVer == 2 )  isMSIE3 = true;
	setUniqCookie();
	
	document.write(' </div></div> ');
	/* Copyright footer table */
	
}	


// start webtrends
function WebTrends(){
var _1=this;
this.dcsid="dcs4zxlja100004vao3syzti9_1q7z";
this.domain="sdc.globalsources.com";
this.timezone=8;
this.fpcdom=".globalsources.com";
this.onsitedoms="";
this.downloadtypes="xls,doc,pdf,txt,csv,zip";
this.navigationtag="div,table";
this.trackevents=true;
this.trimoffsiteparams=true;
this.enabled=true;
this.i18n=false;
this.fpc="WT_FPC";
this.paidsearchparams="gclid";
this.splitvalue="";
this.preserve=true;
this.DCS={};
this.WT={};
this.DCSext={};
this.images=[];
this.index=0;
this.exre=(function(){
return (window.RegExp?new RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i"):"");
})();
this.re=(function(){
return (window.RegExp?(_1.i18n?{"%25":/\%/g,"%26":/\&/g}:{"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g}):"");
})();
}
WebTrends.prototype.dcsGetId=function(){
if(this.enabled&&(document.cookie.indexOf(this.fpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){
document.write("<scr"+"ipt type='text/javascript' src='"+"http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+"/"+this.dcsid+"/wtid.js"+"'></scr"+"ipt>");
}
};
WebTrends.prototype.dcsGetCookie=function(_2){
var _3=document.cookie.split("; ");
var _4=[];
var _5=0;
var i=0;
var _7=_2.length;
var _8=_3.length;
for(i=0;i<_8;i++){
var c=_3[i];
if((c.substring(0,_7+1))==(_2+"=")){
_4[_5++]=c;
}
}
var _a=_4.length;
if(_a>0){
_5=0;
if((_a>1)&&(_2==this.fpc)){
var _b=new Date(0);
for(i=0;i<_a;i++){
var lv=parseInt(this.dcsGetCrumb(_4[i],"lv"));
var _d=new Date(lv);
if(_d>_b){
_b.setTime(_d.getTime());
_5=i;
}
}
}
return unescape(_4[_5].substring(_7+1));
}else{
return null;
}
};
WebTrends.prototype.dcsGetCrumb=function(_e,_f,sep){
var _11=_e.split(sep||":");
for(var i=0;i<_11.length;i++){
var _13=_11[i].split("=");
if(_f==_13[0]){
return _13[1];
}
}
return null;
};
WebTrends.prototype.dcsGetIdCrumb=function(_14,_15){
var id=_14.substring(0,_14.indexOf(":lv="));
var _17=id.split("=");
for(var i=0;i<_17.length;i++){
if(_15==_17[0]){
return _17[1];
}
}
return null;
};
WebTrends.prototype.dcsIsFpcSet=function(_19,id,lv,ss){
var c=this.dcsGetCookie(_19);
if(c){
return ((id==this.dcsGetIdCrumb(c,"id"))&&(lv==this.dcsGetCrumb(c,"lv"))&&(ss==this.dcsGetCrumb(c,"ss")))?0:3;
}
return 2;
};
WebTrends.prototype.dcsFPC=function(){
if(document.cookie.indexOf("WTLOPTOUT=")!=-1){
return;
}
var WT=this.WT;
var _1f=this.fpc;
var _20=new Date();
var adj=(_20.getTimezoneOffset()*60000)+(this.timezone*3600000);
_20.setTime(_20.getTime()+adj);
var _22=new Date(_20.getTime()+315360000000);
var _23=new Date(_20.getTime());
WT.co_f=WT.vtid=WT.vtvs=WT.vt_f=WT.vt_f_a=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv="";
if(document.cookie.indexOf(_1f+"=")==-1){
if((typeof (gWtId)!="undefined")&&(gWtId!="")){
WT.co_f=gWtId;
}else{
if((typeof (gTempWtId)!="undefined")&&(gTempWtId!="")){
WT.co_f=gTempWtId;
WT.vt_f="1";
}else{
WT.co_f="2";
var _24=_20.getTime().toString();
for(var i=2;i<=(32-_24.length);i++){
WT.co_f+=Math.floor(Math.random()*16).toString(16);
}
WT.co_f+=_24;
WT.vt_f="1";
}
}
if(typeof (gWtAccountRollup)=="undefined"){
WT.vt_f_a="1";
}
WT.vt_f_s=WT.vt_f_d="1";
WT.vt_f_tlh=WT.vt_f_tlv="0";
}else{
var c=this.dcsGetCookie(_1f);
var id=this.dcsGetIdCrumb(c,"id");
var lv=parseInt(this.dcsGetCrumb(c,"lv"));
var ss=parseInt(this.dcsGetCrumb(c,"ss"));
if((id==null)||(id=="null")||isNaN(lv)||isNaN(ss)){
return;
}
WT.co_f=id;
var _2a=new Date(lv);
WT.vt_f_tlh=Math.floor((_2a.getTime()-adj)/1000);
_23.setTime(ss);
if((_20.getTime()>(_2a.getTime()+1800000))||(_20.getTime()>(_23.getTime()+28800000))){
WT.vt_f_tlv=Math.floor((_23.getTime()-adj)/1000);
_23.setTime(_20.getTime());
WT.vt_f_s="1";
}
if((_20.getDay()!=_2a.getDay())||(_20.getMonth()!=_2a.getMonth())||(_20.getYear()!=_2a.getYear())){
WT.vt_f_d="1";
}
}
WT.co_f=escape(WT.co_f);
WT.vtid=(typeof (this.vtid)=="undefined")?WT.co_f:(this.vtid||"");
WT.vtvs=(_23.getTime()-adj).toString();
var _2b="; expires="+_22.toGMTString();
var cur=_20.getTime().toString();
var ses=_23.getTime().toString();
document.cookie=_1f+"="+"id="+WT.co_f+":lv="+cur+":ss="+ses+_2b+"; path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));
var rc=this.dcsIsFpcSet(_1f,WT.co_f,cur,ses);
if(rc!=0){
WT.co_f=WT.vtvs=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv="";
if(typeof (this.vtid)=="undefined"){
WT.vtid="";
}
WT.vt_f=WT.vt_f_a=rc;
}
};
WebTrends.prototype.dcsIsOnsite=function(_2f){
if(_2f.length>0){
_2f=_2f.toLowerCase();
if(_2f==window.location.hostname.toLowerCase()){
return true;
}
if(typeof (this.onsitedoms.test)=="function"){
return this.onsitedoms.test(_2f);
}else{
if(this.onsitedoms.length>0){
var _30=this.dcsSplit(this.onsitedoms);
var len=_30.length;
for(var i=0;i<len;i++){
if(_2f==_30[i]){
return true;
}
}
}
}
}
return false;
};
WebTrends.prototype.dcsTypeMatch=function(pth,_34){
var _35=pth.toLowerCase().substring(pth.lastIndexOf(".")+1,pth.length);
var _36=this.dcsSplit(_34);
var _37=_36.length;
for(var i=0;i<_37;i++){
if(_35==_36[i]){
return true;
}
}
return false;
};
WebTrends.prototype.dcsEvt=function(evt,tag){
var e=evt.target||evt.srcElement;
while(e.tagName&&(e.tagName.toLowerCase()!=tag.toLowerCase())){
e=e.parentElement||e.parentNode;
}
return e;
};
WebTrends.prototype.dcsNavigation=function(evt){
var id="";
var _3e="";
var _3f=this.dcsSplit(this.navigationtag);
var _40=_3f.length;
var i,e,_43;
for(i=0;i<_40;i++){
_43=_3f[i];
if(_43.length){
e=this.dcsEvt(evt,_43);
id=(e.getAttribute&&e.getAttribute("id"))?e.getAttribute("id"):"";
_3e=e.className||"";
if(id.length||_3e.length){
break;
}
}
}
return id.length?id:_3e;
};
WebTrends.prototype.dcsBind=function(_44,_45){
if((typeof (_45)=="function")&&document.body){
if(document.body.addEventListener){
document.body.addEventListener(_44,_45.wtbind(this),true);
}else{
if(document.body.attachEvent){
document.body.attachEvent("on"+_44,_45.wtbind(this));
}
}
}
};
WebTrends.prototype.dcsET=function(){
var e=(navigator.appVersion.indexOf("MSIE")!=-1)?"click":"mousedown";
this.dcsBind(e,this.dcsDownload);
this.dcsBind(e,this.dcsOffsite);
this.dcsBind("contextmenu",this.dcsRightClick);
};
WebTrends.prototype.dcsMultiTrack=function(){
var _47=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;
if(_47.length%2==0){
this.dcsSaveProps(_47);
this.dcsSetProps(_47);
var _48=new Date();
this.DCS.dcsdat=_48.getTime();
this.dcsFPC();
this.dcsTag();
this.dcsRestoreProps();
}
};
WebTrends.prototype.dcsCleanUp=function(){
this.DCS={};
this.WT={};
this.DCSext={};
if(arguments.length%2==0){
this.dcsSetProps(arguments);
}
};
WebTrends.prototype.dcsSetProps=function(_49){
for(var i=0;i<_49.length;i+=2){
if(_49[i].indexOf("WT.")==0){
this.WT[_49[i].substring(3)]=_49[i+1];
}else{
if(_49[i].indexOf("DCS.")==0){
this.DCS[_49[i].substring(4)]=_49[i+1];
}else{
if(_49[i].indexOf("DCSext.")==0){
this.DCSext[_49[i].substring(7)]=_49[i+1];
}
}
}
}
};
WebTrends.prototype.dcsSaveProps=function(_4b){
var i,key,_4e;
if(this.preserve){
this.args=[];
for(i=0;i<_4b.length;i+=2){
_4e=_4b[i];
if(_4e.indexOf("WT.")==0){
key=_4e.substring(3);
this.args[i]=_4e;
this.args[i+1]=this.WT[key]||"";
}else{
if(_4e.indexOf("DCS.")==0){
key=_4e.substring(4);
this.args[i]=_4e;
this.args[i+1]=this.DCS[key]||"";
}else{
if(_4e.indexOf("DCSext.")==0){
key=_4e.substring(7);
this.args[i]=_4e;
this.args[i+1]=this.DCSext[key]||"";
}
}
}
}
}
};
WebTrends.prototype.dcsRestoreProps=function(){
if(this.preserve){
this.dcsSetProps(this.args);
this.args=[];
}
};
WebTrends.prototype.dcsSplit=function(_4f){
var _50=_4f.toLowerCase().split(",");
var len=_50.length;
for(var i=0;i<len;i++){
_50[i]=_50[i].replace(/^\s*/,"").replace(/\s*$/,"");
}
return _50;
};
WebTrends.prototype.dcsDownload=function(evt){
evt=evt||(window.event||"");
if(evt&&((typeof (evt.which)!="number")||(evt.which==1))){
var e=this.dcsEvt(evt,"A");
if(e.href){
var hn=e.hostname?(e.hostname.split(":")[0]):"";
if(this.dcsIsOnsite(hn)&&this.dcsTypeMatch(e.pathname,this.downloadtypes)){
var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):"";
var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
var ttl="";
var _59=document.all?e.innerText:e.text;
var img=this.dcsEvt(evt,"IMG");
if(img.alt){
ttl=img.alt;
}else{
if(_59){
ttl=_59;
}else{
if(e.innerHTML){
ttl=e.innerHTML;
}
}
}
this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",e.search||"","WT.ti","Download:"+ttl,"WT.dl","20","WT.nv",this.dcsNavigation(evt));
}
}
}
};
WebTrends.prototype.dcsRightClick=function(evt){
evt=evt||(window.event||"");
if(evt){
var btn=evt.which||evt.button;
if((btn!=1)||(navigator.userAgent.indexOf("Safari")!=-1)){
var e=this.dcsEvt(evt,"A");
if((typeof (e.href)!="undefined")&&e.href){
if((typeof (e.protocol)!="undefined")&&e.protocol&&(e.protocol.indexOf("http")!=-1)){
if((typeof (e.pathname)!="undefined")&&this.dcsTypeMatch(e.pathname,this.downloadtypes)){
var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
var hn=e.hostname?(e.hostname.split(":")[0]):"";
this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry","","WT.ti","RightClick:"+pth,"WT.dl","25");
}
}
}
}
}
};
WebTrends.prototype.dcsOffsite=function(evt){
evt=evt||(window.event||"");
if(evt&&((typeof (evt.which)!="number")||(evt.which==1))){
var e=this.dcsEvt(evt,"A");
if(e.href){
var hn=e.hostname?(e.hostname.split(":")[0]):"";
var pr=e.protocol||"";
if((hn.length>0)&&(pr.indexOf("http")==0)&&!this.dcsIsOnsite(hn)){
var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):"";
var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",this.trimoffsiteparams?"":qry,"DCS.dcsref",window.location,"WT.ti","Offsite:"+hn+pth+(qry.length?("?"+qry):""),"WT.dl","24","WT.nv",this.dcsNavigation(evt));
}
}
}
};
WebTrends.prototype.dcsAdv=function(){
if(this.trackevents&&(typeof (this.dcsET)=="function")){
if(window.addEventListener){
window.addEventListener("load",this.dcsET.wtbind(this),false);
}else{
if(window.attachEvent){
window.attachEvent("onload",this.dcsET.wtbind(this));
}
}
}
this.dcsFPC();
};
WebTrends.prototype.dcsVar=function(){
var _66=new Date();
var WT=this.WT;
var DCS=this.DCS;
WT.tz=parseInt(_66.getTimezoneOffset()/60*-1)||"0";
WT.bh=_66.getHours()||"0";
WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
if(typeof (screen)=="object"){
WT.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;
WT.sr=screen.width+"x"+screen.height;
}
if(typeof (navigator.javaEnabled())=="boolean"){
WT.jo=navigator.javaEnabled()?"Yes":"No";
}
if(document.title){
if(window.RegExp){
var _69=new RegExp("^"+window.location.protocol+"//"+window.location.hostname+"\\s-\\s");
WT.ti=document.title.replace(_69,"");
}else{
WT.ti=document.title;
}
}
WT.js="Yes";
WT.jv=(function(){
var agt=navigator.userAgent.toLowerCase();
var _6b=parseInt(navigator.appVersion);
var mac=(agt.indexOf("mac")!=-1);
var ff=(agt.indexOf("firefox")!=-1);
var ff0=(agt.indexOf("firefox/0.")!=-1);
var _6f=(agt.indexOf("firefox/1.0")!=-1);
var _70=(agt.indexOf("firefox/1.5")!=-1);
var _71=(agt.indexOf("firefox/2.0")!=-1);
var _72=(ff&&!ff0&&!_6f&!_70&!_71);
var nn=(!ff&&(agt.indexOf("mozilla")!=-1)&&(agt.indexOf("compatible")==-1));
var nn4=(nn&&(_6b==4));
var _75=(nn&&(_6b>=5));
var ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));
var ie4=(ie&&(_6b==4)&&(agt.indexOf("msie 4")!=-1));
var _78=(ie&&!ie4);
var op=(agt.indexOf("opera")!=-1);
var op5=(agt.indexOf("opera 5")!=-1||agt.indexOf("opera/5")!=-1);
var op6=(agt.indexOf("opera 6")!=-1||agt.indexOf("opera/6")!=-1);
var _7c=(op&&!op5&&!op6);
var jv="1.1";
if(_72){
jv="1.8";
}else{
if(_71){
jv="1.7";
}else{
if(_70){
jv="1.6";
}else{
if(ff0||_6f||_75||_7c){
jv="1.5";
}else{
if((mac&&_78)||op6){
jv="1.4";
}else{
if(_78||nn4||op5){
jv="1.3";
}else{
if(ie4){
jv="1.2";
}
}
}
}
}
}
}
return jv;
})();
WT.ct="unknown";
if(document.body&&document.body.addBehavior){
try{
document.body.addBehavior("#default#clientCaps");
WT.ct=document.body.connectionType||"unknown";
document.body.addBehavior("#default#homePage");
WT.hp=document.body.isHomePage(location.href)?"1":"0";
}
catch(e){
}
}
if(document.all){
WT.bs=document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown";
}else{
WT.bs=window.innerWidth+"x"+window.innerHeight;
}
WT.fv=(function(){
var i,_7f;
if(window.ActiveXObject){
for(i=15;i>0;i--){
try{
_7f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
return i+".0";
}
catch(e){
}
}
}else{
if(navigator.plugins&&navigator.plugins.length){
for(i=0;i<navigator.plugins.length;i++){
if(navigator.plugins[i].name.indexOf("Shockwave Flash")!=-1){
return navigator.plugins[i].description.split(" ")[2];
}
}
}
}
return "Not enabled";
})();
WT.slv=(function(){
var slv="Not enabled";
try{
if(navigator.userAgent.indexOf("MSIE")!=-1){
var sli=new ActiveXObject("AgControl.AgControl");
if(sli){
slv="Unknown";
}
}else{
if(navigator.plugins["Silverlight Plug-In"]){
slv="Unknown";
}
}
}
catch(e){
}
if(slv!="Not enabled"){
var i,m,M,F;
if((typeof (Silverlight)=="object")&&(typeof (Silverlight.isInstalled)=="function")){
for(i=9;i>0;i--){
M=i;
if(Silverlight.isInstalled(M+".0")){
break;
}
if(slv==M){
break;
}
}
for(m=9;m>=0;m--){
F=M+"."+m;
if(Silverlight.isInstalled(F)){
slv=F;
break;
}
if(slv==F){
break;
}
}
}
}
return slv;
})();
if(this.i18n){
if(typeof (document.defaultCharset)=="string"){
WT.le=document.defaultCharset;
}else{
if(typeof (document.characterSet)=="string"){
WT.le=document.characterSet;
}else{
WT.le="unknown";
}
}
}
WT.tv="9.3.0";
WT.sp=this.splitvalue;
WT.dl="0";
WT.ssl=(window.location.protocol.indexOf("https:")==0)?"1":"0";
DCS.dcsdat=_66.getTime();
DCS.dcssip=window.location.hostname;
DCS.dcsuri=window.location.pathname;
WT.es=DCS.dcssip+DCS.dcsuri;
if(window.location.search){
DCS.dcsqry=window.location.search;
}
if(DCS.dcsqry){
var _86=DCS.dcsqry.toLowerCase();
var _87=this.paidsearchparams.length?this.paidsearchparams.toLowerCase().split(","):[];
for(var i=0;i<_87.length;i++){
if(_86.indexOf(_87[i]+"=")!=-1){
WT.srch="1";
break;
}
}
}
if((window.document.referrer!="")&&(window.document.referrer!="-")){
if(!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){
DCS.dcsref=window.document.referrer;
}
}
};
WebTrends.prototype.dcsEscape=function(S,REL){
if(REL!=""){
S=S.toString();
for(var R in REL){
if(REL[R] instanceof RegExp){
S=S.replace(REL[R],R);
}
}
return S;
}else{
return escape(S);
}
};
WebTrends.prototype.dcsA=function(N,V){
if(this.i18n&&(this.exre!="")&&!this.exre.test(N)){
if(N=="dcsqry"){
var _8e="";
var _8f=V.substring(1).split("&");
for(var i=0;i<_8f.length;i++){
var _91=_8f[i];
var pos=_91.indexOf("=");
if(pos!=-1){
var key=_91.substring(0,pos);
var val=_91.substring(pos+1);
if(i!=0){
_8e+="&";
}
_8e+=key+"="+this.dcsEncode(val);
}
}
V=V.substring(0,1)+_8e;
}else{
V=this.dcsEncode(V);
}
}
return "&"+N+"="+this.dcsEscape(V,this.re);
};
WebTrends.prototype.dcsEncode=function(S){
return (typeof (encodeURIComponent)=="function")?encodeURIComponent(S):escape(S);
};
WebTrends.prototype.dcsCreateImage=function(_96){
if(document.images){
this.images[this.index]=new Image();
this.images[this.index].src=_96;
this.index++;
}else{
document.write("<img alt=\"\" border=\"0\" name=\"DCSIMG\" width=\"1\" height=\"1\" src=\""+_96+"\">");
}
};
WebTrends.prototype.dcsMeta=function(){
var _97;
if(document.documentElement){
_97=document.getElementsByTagName("meta");
}else{
if(document.all){
_97=document.all.tags("meta");
}
}
if(typeof (_97)!="undefined"){
var _98=_97.length;
for(var i=0;i<_98;i++){
var _9a=_97.item(i).name;
var _9b=_97.item(i).content;
var _9c=_97.item(i).httpEquiv;
if(_9a.length>0){
if(_9a.toUpperCase().indexOf("WT.")==0){
this.WT[_9a.substring(3)]=_9b;
}else{
if(_9a.toUpperCase().indexOf("DCSEXT.")==0){
this.DCSext[_9a.substring(7)]=_9b;
}else{
if(_9a.toUpperCase().indexOf("DCS.")==0){
this.DCS[_9a.substring(4)]=_9b;
}
}
}
}
}
}
};
WebTrends.prototype.dcsTag=function(){
if(document.cookie.indexOf("WTLOPTOUT=")!=-1){
return;
}
var WT=this.WT;
var DCS=this.DCS;
var _9f=this.DCSext;
var _a0=this.i18n;
var P="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+(this.dcsid==""?"":"/"+this.dcsid)+"/dcs.gif?";
if(_a0){
WT.dep="";
}
for(var N in DCS){
if(DCS[N]&&(typeof DCS[N]!="function")){
P+=this.dcsA(N,DCS[N]);
}
}
for(N in WT){
if(WT[N]&&(typeof WT[N]!="function")){
P+=this.dcsA("WT."+N,WT[N]);
}
}
for(N in _9f){
if(_9f[N]&&(typeof _9f[N]!="function")){
if(_a0){
WT.dep=(WT.dep.length==0)?N:(WT.dep+";"+N);
}
P+=this.dcsA(N,_9f[N]);
}
}
if(_a0&&(WT.dep.length>0)){
P+=this.dcsA("WT.dep",WT.dep);
}
if(P.length>2048&&navigator.userAgent.indexOf("MSIE")>=0){
P=P.substring(0,2040)+"&WT.tu=1";
}
this.dcsCreateImage(P);
this.WT.ad="";
};
WebTrends.prototype.dcsDebug=function(){
var t=this;
var i=t.images[0].src;
var q=i.indexOf("?");
var r=i.substring(0,q).split("/");
var m="<b>Protocol</b><br><code>"+r[0]+"<br></code>";
m+="<b>Domain</b><br><code>"+r[2]+"<br></code>";
m+="<b>Path</b><br><code>/"+r[3]+"/"+r[4]+"<br></code>";
m+="<b>Query Params</b><code>"+i.substring(q+1).replace(/\&/g,"<br>")+"</code>";
m+="<br><b>Cookies</b><br><code>"+document.cookie.replace(/\;/g,"<br>")+"</code>";
if(t.w&&!t.w.closed){
t.w.close();
}
t.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes");
t.w.document.write(m);
t.w.focus();
};
WebTrends.prototype.dcsCollect=function(){
if(this.enabled){
this.dcsVar();
this.dcsMeta();
this.dcsAdv();
if(typeof (this.dcsCustom)=="function"){
this.dcsCustom();
}
this.dcsTag();
}
};
function dcsMultiTrack(){
if(typeof (_tag)!="undefined"){
return (_tag.dcsMultiTrack());
}
}
function dcsDebug(){
if(typeof (_tag)!="undefined"){
return (_tag.dcsDebug());
}
}
Function.prototype.wtbind=function(obj){
var _a9=this;
var _aa=function(){
return _a9.apply(obj,arguments);
};
return _aa;
};


// end webtrends
