function cConfigPixel(){this.m_bCookieTracking=true;this.m_bContentSideTracking=true;this.m_nNetMindSessionTimeout=1800;this.m_bAutoparams=true;this.m_bAutosend=false;this.m_strPixelProtocol=location.href.substr(0,location.href.indexOf(":"));this.m_strPixelServer="";this.m_strPixelJSPath="/static-resources/global/adag2008/images/leer.gif";this.m_strPixelPath="/static-resources/global/adag2008/images/leer.gif";this.m_strSIDParam="nmsid";this.m_bSIDParamDisabled=false;this.m_bSendUrl=true;this.m_bSendReferrer=true;this.m_bSendMetaTags=true;this.m_bSendTech=false;this.m_bSendUrlHash=false;this.m_bSendCGIParams=false;this.m_aMetatag=new Array("pagename","pagetype","topcarea","subtopic");this.m_aHashParameter=new Array("test","key")}function config_getSendUrlHash(){return this.m_bSendUrlHash}function config_getAutoParams(){return this.m_bAutoparams}function config_getAutoSend(){return this.m_bAutosend}function config_getSendUrl(){return this.m_bSendUrl}function config_getSendReferrer(){return this.m_bSendReferrer}function config_getSendMetatags(){return this.m_bSendMetaTags}function config_getSendTech(){return this.m_bSendTech}function config_getSendCGIParams(){return this.m_bSendCGIParams}function config_getPixelUrl(){return this.getPixelPath()}function config_getProtocol(){return this.m_strPixelProtocol}function config_getPixelServer(){return this.m_strPixelServer}function config_getPixelPath(){if(this.m_bContentSideTracking){return this.m_strPixelJSPath}else{return this.m_strPixelPath}}function config_getSIDParam(){return this.m_strSIDParam}function config_getSIDParamDisabled(){return this.m_bSIDParamDisabled}function config_isCookieTracking(){return this.m_bCookieTracking}function config_isContentSideTracking(){return this.m_bContentSideTracking}function config_getSessionTimeout(){return this.m_nNetMindSessionTimeout}cConfigPixel.prototype.isCookieTracking=config_isCookieTracking;cConfigPixel.prototype.isContentSideTracking=config_isContentSideTracking;cConfigPixel.prototype.getPixelUrl=config_getPixelUrl;cConfigPixel.prototype.getProtocol=config_getProtocol;cConfigPixel.prototype.getPixelServer=config_getPixelServer;cConfigPixel.prototype.getPixelPath=config_getPixelPath;cConfigPixel.prototype.getSIDParam=config_getSIDParam;cConfigPixel.prototype.getSIDParamDisabled=config_getSIDParamDisabled;cConfigPixel.prototype.getAutoParams=config_getAutoParams;cConfigPixel.prototype.getAutoSend=config_getAutoSend;cConfigPixel.prototype.getSendUrl=config_getSendUrl;cConfigPixel.prototype.getSendUrlHash=config_getSendUrlHash;cConfigPixel.prototype.getSendReferrer=config_getSendReferrer;cConfigPixel.prototype.getSendMetatags=config_getSendMetatags;cConfigPixel.prototype.getSendTech=config_getSendTech;cConfigPixel.prototype.getSendCGIParams=config_getSendCGIParams;cConfigPixel.prototype.getSessionTimeout=config_getSessionTimeout;function cRemoteSession(a){this.m_strNetMindSID="";this.m_oConfig=a;this.m_bCgiSIDHandled=false;this.nPixelTime=new Date().getTime()/1000}function remotesession_getSessionID(){var m="";var a=document.cookie;var e=a.split("; ");var b=0;var d="";if(m==""){while(b<e.length){var l=e[b];var n=l.split("=");var d=n[0];if(d=="NETMIND_SID"){m=n[1]}b++}if(!oNMConfig.isContentSideTracking()&&!oNMConfig.isCookieTracking()){var k="/";var f="";var h=0;if(k!="/"){f=k.substr(6,54);h=parseInt(String(parseInt(f.substring(44))+(new Date().getTime()/1000-this.nPixelTime)))}if(m!=""&&f!=""){var g=parseInt(m.substr(44));if(g<=h){if(this.m_bCgiSIDHandled){m=m.substr(0,43)+"-"+h}else{m=f.substr(0,43)+"-"+h}}else{m=f}}else{m=f}if(m!=""){document.cookie="NETMIND_SID="+m+"; path=/"}}}strCgiSID=this.getCGISessionID();if(strCgiSID!=null){m=strCgiSID;document.cookie="NETMIND_SID="+m+"; path=/"}this.m_strNetMindSID=m;return this.m_strNetMindSID}function remotesession_getCGISessionID(){if(this.m_bCgiSIDHandled){return null}if(!this.m_oConfig.getSIDParamDisabled||!this.m_oConfig.getSIDParamDisabled()){var a="nmsid";if(this.m_oConfig.getSIDParam){a=this.m_oConfig.getSIDParam()}if(a){this.m_bCgiSIDHandled=true;var b=remotepixel_extractCGIParam(a);if(b==""){return null}return b}}return null}cRemoteSession.prototype.getSessionID=remotesession_getSessionID;cRemoteSession.prototype.getCGISessionID=remotesession_getCGISessionID;function cRemotePixel(b){this.m_arParameterList=new Array();this.m_nParameterCount=0;this.m_oConfig=b;this.m_strPixelURL=b.getPixelUrl();this.m_strPixelURLPrefix=b.getProtocol()+"://"+b.getPixelServer()+"/";this.m_strPixelURLSuffix="";var a=b.getPixelPath();if(a.charAt(0)=="/"){this.m_strPixelURLSuffix=a.substr(1)}else{this.m_strPixelURLSuffix=a}}function remotepixel_addParameter(a,b){arPair=new Array(a,b);this.m_arParameterList[this.m_nParameterCount]=arPair;this.m_nParameterCount++}function remotepixel_setParameter(b,f){var a=new Array(b,f);var g;var e;var d=false;for(e=0;e<this.m_nParameterCount;e++){g=this.m_arParameterList[e];if(g[0]==a[0]){d=true;this.m_arParameterList[e]=a;break}}if(!d){this.m_arParameterList[this.m_nParameterCount]=a;this.m_nParameterCount++}}function remotepixel_addAffiliate(a){this.addParameter("affiliate",a)}function remotepixel_addUrl(){var a=document.URL;this.addParameter("url",a)}function remotepixel_addReferrer(){this.addParameter("referrer",document.referrer)}function remotepixel_addParamToUrl(b,a){if(b.indexOf("?")==-1){b=b+"?"}else{b=b+"&"}for(i=0;i<a.length;i++){if(i>0){b+="&"}b+=escape(a[i][0])+"="+escape(a[i][1])}return b}function remotepixel_sendData(d){var o=this.m_oConfig.isCookieTracking();var b=this.m_oConfig.isContentSideTracking();if(o){var n=d.getCGISessionID();if(n){var e=this.m_oConfig.getPixelServer();var h=e.split(":")[0];var l="NETMIND_SID="+n+"; path=/; domain="+h;document.cookie=l}var k=this.m_strPixelURL;k=remotepixel_addParamToUrl(k,this.m_arParameterList);var m=new Image();m.onload=function(){};m.src=k}else{var a=d.getSessionID();if(a!=""){a="-snm-"+a+"-enm-"}var k=this.m_strPixelURLPrefix+a+this.m_strPixelURLSuffix;k=remotepixel_addParamToUrl(k,this.m_arParameterList);if(b){var g=document.getElementsByTagName("head")[0];var p=document.getElementById("sidscript");if(p){for(var f=0;f<p.length;f++){g.removeChild(p[f])}}oScript=document.createElement("script");oScript.id="sidscript";oScript.type="text/javascript";oScript.src=k;g.appendChild(oScript)}else{var m=new Image();m.onload=function(){};m.src=k}}}function remotepixel_setCookie(){}function remotepixel_getTechData(){var l="unknown";var d="unknown";var u="unknown";var f=screen.availHeight;var m=screen.availWidth;var q=screen.colorDepth+" bit";var p=screen.height;var t=screen.width;var z=document.title;var w="-";var A="0";var k="-";var b="-";var r="-";var n="-";var y="-";var a="-";var g=navigator.userAgent.toLowerCase();var o=(g.indexOf("msie")!=-1);var h=false;if(o){o=(g.indexOf("msie 4")==-1)&&(g.indexOf("msie 3")==-1);h=(g.indexOf("msie 7")>-1)}var e=((g.indexOf("win")!=-1)||(g.indexOf("32bit")!=-1));if(navigator.javaEnabled()==true){l="yes"}else{l="no"}if((navigator.cookieEnabled)&&(navigator.cookieEnabled==true)){d="yes"}else{d="no"}if(navigator.language){u=navigator.language}if(o&&e){w=detectIE("ShockwaveFlash.ShockwaveFlash.1");r=detectIE("rmocx.RealPlayer G2 Control.1");if(!h){b=detectIE("MediaPlayer.MediaPlayer.1")}a=detectIEAcrobat("Acrobat Reader")}else{nse="";for(var v=0;v<navigator.mimeTypes.length;v++){nse+=navigator.mimeTypes[v].type.toLowerCase()}w=detectNS(nse,"application/x-shockwave-flash");r=detectNS(nse,"audio/x-pn-realaudio-plugin");b=detectNS(nse,"application/x-mplayer2");a=detectNS(nse,"application/pdf")}this.addParameter("nm_java",l);this.addParameter("nm_cookies",d);this.addParameter("nm_screen",t+"x"+p);this.addParameter("nm_colordepth",q);this.addParameter("nm_plugin_flash",w);this.addParameter("nm_plugin_director",k);this.addParameter("nm_plugin_wmplayer",b);this.addParameter("nm_plugin_realplayer",r);this.addParameter("nm_plugin_acroread",a);this.addParameter("nm_title",z)}function remotepixel_getMetaTags(){var a=this.m_oConfig.m_aMetatag;var d="";for(var e=0;e<document.getElementsByTagName("meta").length;e++){for(var b=0;b<a.length;b++){var f=new RegExp(WildToReg(a[b]));if(document.getElementsByTagName("meta")[e].getAttribute("name")){if(document.getElementsByTagName("meta")[e].getAttribute("name").match(f)){if(document.getElementsByTagName("meta")[e].getAttribute("content")){this.addParameter(document.getElementsByTagName("meta")[e].getAttribute("name"),document.getElementsByTagName("meta")[e].getAttribute("content"))}else{this.addParameter(document.getElementsByTagName("meta")[e].getAttribute("name"),"-")}}}}}}function remotepixel_getHashParameter(){var b=this.m_oConfig.m_aHashParameter;var d=(document.location+"");var f=d.indexOf("#");if(f!=-1){var g=d.substring(f+1,d.length);aParams=remotepixel_SplitParams(g);var e="";for(var a=0;a<b.length;a++){if(aParams[b[a]]){this.addParameter(b[a],aParams[b[a]])}}}}function remotepixel_getCGIParameter(){if(window.location.search!=""){var d=window.location.search.split("?")[1];var b=d.split("&");for(i=0;i<=b.length-1;i++){var a=b[i].split("=");if(a.length>1){var e=a[1];e=e.replace(/\+/g," ");e=unescape(e);if(e==""){e="-"}this.addParameter(a[0],e)}}}}function remotepixel_SplitParams(f){var a=[];var e=f.split("&");for(var b=0;b<e.length;b++){var d=e[b].split("=");if(d[1]&&d[1]!=""){a[d[0]]=d[1]}else{a[d[0]]="-"}}return a}function remotepixel_extractCGIParam(a){if(window.location.search!=""){var d=window.location.search.split("?")[1];var b=remotepixel_SplitParams(d);if(b[a]&&b[a]!="-"){return b[a]}}return""}cRemotePixel.prototype.addParameter=remotepixel_addParameter;cRemotePixel.prototype.setParameter=remotepixel_setParameter;cRemotePixel.prototype.addAffiliate=remotepixel_addAffiliate;cRemotePixel.prototype.addUrl=remotepixel_addUrl;cRemotePixel.prototype.addReferrer=remotepixel_addReferrer;cRemotePixel.prototype.sendData=remotepixel_sendData;cRemotePixel.prototype.getTechData=remotepixel_getTechData;cRemotePixel.prototype.getMetaTags=remotepixel_getMetaTags;cRemotePixel.prototype.getHashParameter=remotepixel_getHashParameter;cRemotePixel.prototype.getCGIParameter=remotepixel_getCGIParameter;cRemotePixel.prototype.extractCGIParam=remotepixel_extractCGIParam;cRemotePixel.prototype.splitParams=remotepixel_SplitParams;function detectIEAcrobat(name){var acrobat=new Object();if(window.ActiveXObject){for(x=2;x<10;x++){try{oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");if(oAcro){return"yes"}}catch(e){}}try{oAcro4=new ActiveXObject("PDF.PdfCtrl.1");if(oAcro4){return"yes"}}catch(e){}try{oAcro7=new ActiveXObject("AcroPDF.PDF.1");if(oAcro7){return"yes"}}catch(e){}}return"no"}function detectIE(a){try{new ActiveXObject(a);return"yes"}catch(b){return"no"}}function detectNS(b,a){if(b.indexOf(a)!=-1){if(navigator.mimeTypes[a].enabledPlugin!=null){return"yes"}}return"no"}function WildToReg(a){s="";for(i=0;i<a.length;i++){c=a.charAt(i);switch(c){case"*":s=s+".*";break;case"?":s=s+".";break;case"(":case")":case"[":case"]":case"$":case"^":case".":case"{":case"}":case"|":case"\\":s=s+"\\";s=s+c;break;default:s=s+c;break}}s="^"+s+"$";return s}function sendTargetURL(a){try{var d=new cConfigPixel();var f=new cRemoteSession(d);var b=new cRemotePixel(d);if(d.getAutoParams()){if(d.getSendUrl()){b.addUrl()}if(d.getSendUrlHash()){b.getHashParameter()}if(d.getSendReferrer()){b.addReferrer()}if(d.getSendMetatags()){b.getMetaTags()}if(d.getSendTech()){b.getTechData()}if(d.getSendCGIParams()){b.getCGIParameter()}}if(typeof(a)!="undefined"){var g="nm_targetURL";if(a==""){a="-"}b.addParameter(g,a);b.sendData(f)}}catch(h){}}autoparams=true;autosend=true;function cCookie(){this.m_arParameterList=new Array();this.m_nParameterCount=0}function cookie_addParameter(a,b){arPair=new Array(a,b);this.m_arParameterList[this.m_nParameterCount]=arPair;this.m_nParameterCount++}function cookie_sendData(){bFound=false;strCookie=document.cookie;var a=strCookie.split("; ");var d=window.location.hostname;var e=d.split(".");if(e.length>1){var b="."+e[e.length-2]+"."+e[e.length-1]}else{var b="."+e[e.length-1]}for(i=0;i<this.m_arParameterList.length;i++){for(j=0;j<a.length;j++){strActCookie=a[j];arActCookie=strActCookie.split("=");strActCookieName=arActCookie[0];if(strActCookieName==this.m_arParameterList[i][0]){bFound=true;break}else{bFound=false}}if(!bFound){document.cookie=""+this.m_arParameterList[i][0]+"="+escape(this.m_arParameterList[i][1])+"; path=/; domain="+b}}}function cookie_getTechData(){var k="unknown";var d="unknown";var t="unknown";var f=screen.availHeight;var l=screen.availWidth;var p=screen.colorDepth+" bit";var o=screen.height;var r=screen.width;var y=document.title;var v="-";var z="0";var h="-";var b="-";var q="-";var m="-";var w="-";var a="-";var g=navigator.userAgent.toLowerCase();var n=(g.indexOf("msie")!=-1);if(n){n=(g.indexOf("msie 4")==-1)&&(g.indexOf("msie 3")==-1);ie7=(g.indexOf("msie 7")>-1)}var e=((g.indexOf("win")!=-1)||(g.indexOf("32bit")!=-1));if(navigator.javaEnabled()==true){k="yes"}else{k="no"}if((navigator.cookieEnabled)&&(navigator.cookieEnabled==true)){d="yes"}else{d="no"}if(navigator.language){t=navigator.language}if(n&&e){v=detectIE("ShockwaveFlash.ShockwaveFlash.1");q=detectIE("rmocx.RealPlayer G2 Control.1");if(!ie7){b=detectIE("MediaPlayer.MediaPlayer.1")}a=detectIEAcrobat("Acrobat Reader")}else{nse="";for(var u=0;u<navigator.mimeTypes.length;u++){nse+=navigator.mimeTypes[u].type.toLowerCase()}v=detectNS(nse,"application/x-shockwave-flash");q=detectNS(nse,"audio/x-pn-realaudio-plugin");b=detectNS(nse,"application/x-mplayer2");a=detectNS(nse,"application/pdf")}this.addParameter("nm_java",k);this.addParameter("nm_cookies",d);this.addParameter("nm_screen",r+"x"+o);this.addParameter("nm_colordepth",p);this.addParameter("nm_plugin_flash",v);this.addParameter("nm_plugin_director",h);this.addParameter("nm_plugin_wmplayer",b);this.addParameter("nm_plugin_realplayer",q);this.addParameter("nm_plugin_acroread",a)}cCookie.prototype.addParameter=cookie_addParameter;cCookie.prototype.sendData=cookie_sendData;cCookie.prototype.getTechData=cookie_getTechData;function detectIEAcrobat(name){var acrobat=new Object();if(window.ActiveXObject){for(x=2;x<10;x++){try{oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");if(oAcro){return"yes"}}catch(e){}}try{oAcro4=new ActiveXObject("PDF.PdfCtrl.1");if(oAcro4){return"yes"}}catch(e){}try{oAcro7=new ActiveXObject("AcroPDF.PDF.1");if(oAcro7){return"yes"}}catch(e){}}return"no"}function detectIE(a){try{new ActiveXObject(a);return"yes"}catch(b){return"no"}}function detectNS(b,a){if(b.indexOf(a)!=-1){if(navigator.mimeTypes[a].enabledPlugin!=null){return"yes"}}return"no"}oNMTechCookie=new cCookie();if(autoparams){oNMTechCookie.getTechData()}if(autosend){oNMTechCookie.sendData()};

