function fCreateTitanWEB() { // properties this.version = '1.0.081304'; this.webtrendsID = ''; this.sPageContentGroups = ''; // methods this.loadWebtrends = fWebtrendsLive; this.loadWebtrendsOnDemand = fWebtrendsOnDemand; // this.pageFocus = fPageFocus(); this.openRFI = fRFIOpen; var gImages=new Array; var gIndex=0; var DCS=new Object(); var WT=new Object(); var DCSext=new Object(); var gDomain="statse.webtrendslive.com"; var gDcsId="dcsifhwcyf9xjyox92cks6z6e_3y6p"; function dcsVar(){ var dCurrent=new Date(); WT.tz=dCurrent.getTimezoneOffset()/60*-1; if (WT.tz==0){ WT.tz="0"; } WT.bh=dCurrent.getHours(); 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){ WT.ti=document.title; } WT.js="Yes"; if (typeof(gVersion)!="undefined"){ WT.jv=gVersion; } WT.sp=titanWEB.webtrendsID; DCS.dcsdat=dCurrent.getTime(); DCS.dcssip=window.location.hostname; DCS.dcsuri=window.location.pathname; if (window.location.search){ DCS.dcsqry=window.location.search; } if ((window.document.referrer!="")&&(window.document.referrer!="-")){ if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){ DCS.dcsref=window.document.referrer; } } } function A(N,V){ return "&"+N+"="+dcsEscape(V); } function dcsEscape(S){ if (typeof(RE)!="undefined"){ var retStr = new String(S); for (R in RE){ retStr = retStr.replace(RE[R],R); } return retStr; } else{ return escape(S); } } function dcsCreateImage(dcsSrc){ //var elDiv = document.getElementById('webtrends'); //elDiv.innerHTML += "

" + dcsSrc; if (document.images){ gImages[gIndex]=new Image; gImages[gIndex].src=dcsSrc; gIndex++; } else{ document.write(''); } } function dcsMeta(){ //var elDiv = document.getElementById('webtrends'); //elDiv.innerHTML = ""; var myDocumentElements; if (document.all){ myDocumentElements=document.all.tags("meta"); } else if (document.documentElement){ myDocumentElements=document.getElementsByTagName("meta"); } if (typeof(myDocumentElements)!="undefined"){ for (var i=1;i<=myDocumentElements.length;i++){ myMeta=myDocumentElements.item(i-1); //elDiv.innerHTML += myMeta.name + "
  " + escape(myMeta.content) + "
"; if (myMeta.name){ if (myMeta.name.indexOf('WT.')==0){ WT[myMeta.name.substring(3)]=myMeta.content; } else if (myMeta.name.indexOf('DCSext.')==0){ DCSext[myMeta.name.substring(7)]=myMeta.content; } else if (myMeta.name.indexOf('DCS.')==0){ DCS[myMeta.name.substring(4)]=myMeta.content; } } } } } function dcsTag(){ var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gDomain+(gDcsId==""?'':'/'+gDcsId)+"/dcs.gif?"; for (N in DCS){ if (DCS[N]) { P+=A(N,DCS[N]); } } for (N in WT){ if (WT[N]) { P+=A("WT."+N,WT[N]); } } for (N in DCSext){ if (DCSext[N]) { P+=A(N,DCSext[N]); } } if (P.length>2048&&navigator.userAgent.indexOf('MSIE')>=0){ P=P.substring(0,2040)+"&WT.tu=1"; } dcsCreateImage(P); } function fWebtrendsOnDemand() { if(this.webtrendsID.length > 1) { dcsVar(); dcsMeta(); dcsTag(); } } function fWebtrendsLive() { if(this.webtrendsID.length == 6) { var SERVER= ""; var CONTENTGROUP = this.sPageContentGroups; var wtl_URL= document.URL; var wtl_Title= document.title; //alert(CONTENTGROUP); function D8(d) { var fwd = 0, seed = new Date('01/01/2000'), key = "0123456789ABCDEFGHIJKLMNOPQRSTUVsWebtrendsDataXYZabcdefghijklmnopqrstuvwxyz"; var s = key.charAt(d.getFullYear() - 2000) + key.charAt(d.getMonth() + 1) + key.charAt(d.getDate()); s += key.charAt(d.getHours()) + key.charAt(d.getMinutes()) + key.charAt(d.getSeconds()); while(seed.getDay() != fwd) seed = new Date(seed.getTime() + 86400000); var w = Math.floor((d.getTime() - (seed.getTime() + 86400000)) / 604800000); s += key.charAt((w-(w%16))/16); s += key.charAt(w%16); return s; } function A(B, C) { sWebtrendsData += "&" + B + "=" + escape(C); } var t = new Date(); sWebtrendsData = "http" + (document.URL.indexOf('https:') == 0 ? 's' : '') + "://statse.webtrendslive.com/S" + this.webtrendsID + "/button5.asp?tagver=5&si=" + this.webtrendsID + "&fw=0"; A("server", typeof(SERVER) == "string" ? SERVER : ""); A("Group", typeof(CONTENTGROUP) == "string" ? CONTENTGROUP : ""); A("tz", t.getTimezoneOffset()); A("ch", t.getHours()); A("cl", D8(t)); A("ti", typeof(wtl_Title) == "string" ? wtl_Title : document.title); A("url", typeof(wtl_URL) == "string" ? wtl_URL : document.URL); A("rf", window.document.referrer); A("js", "Yes"); A("ul", navigator.appName == "Netscape" ? navigator.language : navigator.userLanguage); if(typeof(screen) == "object") { A("sr", screen.width + "x" + screen.height); A("cd", screen.colorDepth); A("jo", navigator.javaEnabled() ? "Yes" : "No"); } if(sWebtrendsData.length > 2048 && navigator.userAgent.indexOf('MSIE') >= 0) sWebtrendsData = sWebtrendsData.substring(0, 2043) + "&tu=1"; var elBody = document.body; var elDiv = document.createElement('div'); elBody.appendChild(elDiv); elDiv.innerHTML = ''; } } function fPageFocus() { // this will be used to set page focus on fields .. by form number. } function fRFIOpen(sSubject, sSend, sParam) { if(oBTIFrame) { if(oBTIFrame.sBIAPMailTo) { sSend = oBTIFrame.sBIAPMailTo; } if(oBTIFrame.sBIAPCrumb){ sSubject = oBTIFrame.sBIAPCrumb sSubject = sSubject.substring(0,sSubject.length-2) sSubject = sSubject.substring(sSubject.lastIndexOf("|")+1,sSubject.length) } } var re = /\s/g; var sSubject = '&subj=' + sSubject.replace(re, '+'); var sSend = '&send=' + sSend.replace(re, '+'); var sEoqs = '&eoqs=end'; var sURL = urlpath_js + '/frmRFI?OpenForm' + sSubject + sSend + sEoqs; gsl.openWindow(sURL, 'RFI', sParam, false); } this.load = function () { if(window.fCustom) { fCustom(); } if(window.gsl) { gsl.load(); } if(window.hydra) { hydra.load(); } if(window.khronos) { khronos.load(); } if(window.sponsors) { sponsors.load(); } if(window.fBTILoad) { fBTILoad(); } if(this.webtrendsID) { this.loadWebtrendsOnDemand(); } fPageFocus(); if(window.fCustomLoad) { fCustomLoad(); } } } var titanWEB = new fCreateTitanWEB();