if(typeof $=='undefined'){function $(){var elements=new Array();for(var i=0;i<arguments.length;i++){var element=arguments[i];if(typeof element=='string'){element=document.getElementById(element);}
if(arguments.length==1){return element;}
elements.push(element);}
return elements;};}
if(!window.console||!console.firebug){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i)
window.console[names[i]]=function(){};}
var util={};util.addEvent=function(obj,evType,fn,useCapture){var result;if(obj.addEventListener){obj.addEventListener(evType,fn,useCapture);result=true;}else if(obj.attachEvent){var r=obj.attachEvent('on'+evType,fn);result=r;}else{obj['on'+evType]=fn;result=true;}
return result;};util.findXY=function(obj){var ob=obj;var x=0,y=0;while(ob!==null){x+=ob.offsetLeft-ob.scrollLeft;y+=ob.offsetTop-ob.scrollTop;ob=ob.offsetParent;}
return{x:x,y:y};};util.findXYWH=function(obj){var xy=util.findXY(obj);return xy?{x:xy.x,y:xy.y,w:obj.offsetWidth,h:obj.offsetHeight}:{x:0,y:0,w:0,h:0};};util.toggle=function(objOrID,forceState){var ob=$(objOrID);if(ob){if((ob.style.display!="none"&&arguments.length==1)||(arguments.length>=2&&!forceState)){ob.style.display="none";}else{ob.style.display="";}}};util.findSWF=function(swf_name){if(navigator.appName.indexOf("Microsoft")!=-1){return window[swf_name];}else{return document[swf_name];}};util.rot=function(en){return en.replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);});};util.addNode=function(nodeText,nodeParent,nodeType,otherProp,styleProp){var np=$(nodeParent)?$(nodeParent):$(document.body);var nt=nodeType?nodeType:"span";var t=(nodeText==""||!nodeText)?null:nodeText;if(otherProp&&otherProp.id&&$(otherProp.id)&&$(otherProp.id).tagName.toLowerCase()==nt.toLowerCase()){var n=$(otherProp.id);}else{var n=document.createElement(nt);}
if(otherProp){for(var p in otherProp){n[p]=otherProp[p];}}
if(styleProp){for(var p in styleProp){n.style[p]=styleProp[p];}}
if(t&&nodeType!="tr"&&nodeType!="trd"){n.innerHTML=t;}
np.appendChild(n);return n;};util.removeNode=function(obID,domObj){if(obID){if(!domObj){domObj=document;}
if(typeof obID=="object"){if(obID.parentNode){obID.parentNode.removeChild(obID);}else{obID.removeNode(true);}}else{if(domObj.getElementById(obID)){domObj.getElementById(obID).parentNode.removeChild(document.getElementById(obID));}}}};util.xhr=function(url,data,callback,callback_argument_array,json){var xmlhttp,data_ary=[],data_ser=null,url_final=url,action;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){try{xmlhttp=new XMLHttpRequest();}
catch(e){xmlhttp=false;}}}
if(!xmlhttp){return null;}
if(data){action='POST';for(var d in data){data_ary.push(d+'='+encodeURIComponent(data[d]));}
data_ser=data_ary.join('&');}else{action='GET';}
url_final+=(url_final.indexOf('?')>-1?'&':'?')+'__rnd__='+util.rnd();xmlhttp.open(action,url_final,true);xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(callback){var ret_obj=null;if(json){ret_obj=eval("("+xmlhttp.responseText+")");}else{ret_obj=xmlhttp.responseXML;}
callback_argument_array=(callback_argument_array)?callback_argument_array:[];callback_argument_array[callback_argument_array.length]=ret_obj;callback.apply(this,callback_argument_array);}}};xmlhttp.send(data_ser);};util.get_scroll=function(){var scrOfX=0,scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset;scrOfX=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft;}
return{'x':scrOfX,'y':scrOfY};};util.get_win_size=function(){var win_width=0,win_height=0;if(typeof(window.innerWidth)=='number'){win_width=window.innerWidth;win_height=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){win_width=document.documentElement.clientWidth;win_height=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){win_width=document.body.clientWidth;win_height=document.body.clientHeight;}
return{'w':win_width,'h':win_height};};util.trace=function(msg){};util.rnd=function(){return Math.round(Math.random()*999999);};util.run_start=new Date();util.get_runtime=function(){now=new Date();return(now-util.run_start);};var poirot={};poirot.init=function(){poirot.visit_id=(poirot.visit_id)?poirot.visit_id:util.rnd();util.addEvent(document,'click',poirot.click_track);};poirot.iref=function(){if(ai){var src=util.rot('uggc:\057\057jjj\056fgngrsnez\056pbz\057nccf\057ntragYbp\057NtragVasbezngvbaDEFpphey\056nfc?an=DEFpp&fg=DEFnfp&bsp=DEFnp');src=src.replace('QRSccurl',(ai.cc.toLowerCase()=='us')?(''):('_ca'));src=src.replace('QRScc',(ai.cc.toLowerCase()=='us')?('us'):('ca'));src=src.replace('QRSac',ai.ac.toUpperCase());src=src.replace('QRSasc',ai.asc.toUpperCase());poirot.isrc=src;poirot.iadd();}};poirot.iadd=function(){var loc_obj=$('sf_ms_if');if(loc_obj){util.addNode('',loc_obj,'iframe',{'id':'emarfi','name':'emarfi','src':poirot.isrc,'width':'0px','height':'0px'},{'border':'none'});}else{setTimeout(function(){poirot.iadd();},2);}};poirot.click_track=function(e,data){if(!data&&e){var ob=(e.srcElement||e.target);if(ob.parentNode.tagName=='A'){ob=ob.parentNode;}
data={};data.clicked_id=(ob.id)?(ob.id):null;data.clicked_tag=(ob.tagName)?(ob.tagName):null;data.clicked_source=(ob.src)?(ob.src):null;data.clicked_destination=(ob.href)?(ob.href):null;data.clicked_link_text=(ob.href&&ob.innerHTML)?(ob.innerHTML):null;data.clicked_link_title=(ob.href&&(ob.title||ob.alt))?((ob.title||ob.alt)):null;data.clicked_x=e.clientX;data.clicked_y=e.clientY;}
poirot.visit_id=(poirot.visit_id)?poirot.visit_id:util.rnd();data.visit_id=poirot.visit_id;var xhr_url='http://'+location.hostname+'/';util.xhr(xhr_url+'click/',data);return;};poirot.init();