function ViewInter(){var j=this;this.ts=null;this.tsView=null;this.te=null;this.teView=null;this.fVisible=false;this.fFullVisible=false;this.fATF=false;this.logCount=0;this.g_obj=null;this.g_imgobj=null;this.g_imgid=null;this.g_pos=null;this.g_i_dur=0;this.g_i_count=0;this.g_v_dur=0;this.g_v_dur_last=0;this.oScr=null;this.width=0;this.height=0;this.timeoutObj=null;this.g_maxViewTime=150;this.done=false;this.it_initFind=function(a,b,w,h){if(!document.getElementById){return}j.width=w;j.height=h;j.g_imgid=a;j.oScr=b;var c=window;if(c.addEventListener){c.addEventListener('load',this.onLoad,false)}else if(c.attachEvent){c.attachEvent('onload',this.onLoad)}};this.onLoad=function(){var a=null;var b=null;for(var i=j.oScr.parentNode.childNodes.length-1;i>=0;i--){b=j.oScr.parentNode.childNodes[i];if(b.nodeName=="A"&&b.href.indexOf(j.g_imgid)!=-1){if(b.firstChild!==null&&b.firstChild.nodeName=="IMG"){j.g_obj=b.firstChild}break}else if(b.nodeName=="IFRAME"&&b.width==j.width&&b.height==j.height){j.g_obj=b;break}else if(b.nodeName=="OBJECT"&&b.width==j.width&&b.height==j.height){j.g_obj=b;break}}if(j.g_obj!==null){var c=document.createElement('IMG');c.height=1;c.width=1;c.id="img"+j.g_imgid;document.body.appendChild(c);j.obj_init(j.g_obj)}};this.obj_init=function(a){var b=window;this.g_obj=a;var c="img"+this.g_imgid;this.g_imgobj=document.getElementById(c);if(this.g_obj!==null){if(b.addEventListener){b.addEventListener('beforeunload',this.evt_b4ul,false);b.addEventListener('blur',this.evt_blur,false);b.addEventListener('focus',this.evt_focus,false);b.addEventListener('unload',this.evt_b4ul,false);b.addEventListener('scroll',this.evt_scroll,false);b.addEventListener('resize',this.evt_scroll,false);this.g_obj.addEventListener('mouseover',this.evt_enter,false);this.g_obj.addEventListener('mouseout',this.evt_leave,false);this.g_obj.addEventListener('click',this.evt_click,false)}else if(this.g_obj.attachEvent){b.attachEvent('onbeforeunload',this.evt_b4ul);b.attachEvent('onblur',this.evt_blur);b.attachEvent('onfocus',this.evt_focus);b.attachEvent('onunload',this.evt_b4ul);b.attachEvent('onscroll',this.evt_scroll);b.attachEvent('onresize',this.evt_scroll);this.g_obj.attachEvent('onmouseenter',this.evt_enter);this.g_obj.attachEvent('onmouseleave',this.evt_leave);this.g_obj.attachEvent('onclick',this.evt_click)}this.g_pos=findPos(this.g_obj)}this.evt_scroll(null);this.timeoutObj=window.setInterval(function(){j.checkViewTimeout()},15000)};this.evt_enter=function(a){j.startIntClock();j.g_i_count=j.g_i_count+1};this.evt_scroll=function(a){var b=false;if(j.g_obj!==null&&j.g_pos!==null){j.g_pos=findPos(j.g_obj);var c=getWindowSize();var d=getScrollXY();var e=(Math.round(j.g_pos[1])+Math.round(j.g_obj.height));var f=(Math.round(j.g_pos[0])+Math.round(j.g_obj.width));if((Math.round(c[1])+Math.round(d[1])>Math.round(j.g_pos[1]))&&(d[1]<e)&&((Math.round(c[0])+Math.round(d[0])>Math.round(j.g_pos[0]))&&(d[0]<f))){if(!j.fVisible){j.fVisible=true;b=true;if(j.logCount==0){j.fATF=true}}j.startViewClock();var g=false;var h=false;if(j.g_pos[1]>d[1]&&e<(d[1]+c[1])){g=true}if(j.g_pos[0]>d[0]&&f<(d[0]+c[0])){h=true}if(h&&g){if(!j.fFullVisible){j.fFullVisible=true;b=true}}}else{j.stopViewClock();if(j.g_v_dur>j.g_v_dur_last){j.sendLog("H")}}}if(b||j.logCount==0){j.sendLog("V")}};this.startViewClock=function(){if(j.tsView==null){j.tsView=new Date()}};this.stopViewClock=function(){if(j.tsView!=null){j.teView=new Date();var a=j.teView.getTime()-j.tsView.getTime();j.teView.setTime(a);j.tsView=null;j.g_v_dur+=Math.round(a/1000)}};this.startIntClock=function(){if(j.ts==null){j.ts=new Date()}};this.stopIntClock=function(){if(j.ts!=null){j.te=new Date();var a=j.te.getTime()-j.ts.getTime();j.te.setTime(a);j.ts=null;j.g_i_dur+=Math.round(a/1000)}};this.evt_leave=function(a){j.stopIntClock();j.stopViewClock();j.sendLog("I");j.evt_scroll()};this.evt_b4ul=function(a){if(j.timeoutObj!=null){window.clearInterval(j.timeoutObj);j.timeoutObj=null}j.stopViewClock();j.stopIntClock();j.sendLog("U");j.done=true;var b=new Date();var c=0;while(c<200){var d=new Date();var c=d.getTime()-b.getTime()}};this.evt_click=function(a){j.g_i_count=j.g_i_count+1;j.stopIntClock();j.stopViewClock();j.sendLog("C");j.evt_scroll()};this.evt_blur=function(a){j.stopViewClock();j.stopIntClock();j.sendLog("B");j.evt_scroll()};this.evt_focus=function(a){j.evt_scroll()};this.checkViewTimeout=function(){if(j.tsView!=null){var a=new Date();var b=a.getTime()-j.tsView.getTime();a.setTime(b);var c=j.g_v_dur+Math.round(b/1000);if(c>=j.g_maxViewTime){j.evt_b4ul()}else if(c>j.g_v_dur_last){j.evt_blur()}}};this.getLogData=function(){return"tx="+j.g_imgid+";it="+(j.g_i_dur)+";vt="+(j.g_v_dur)+";ic="+(j.g_i_count)+";atf="+(j.fATF?"1":"0")+";pv="+(j.fVisible?"1":"0")+";fv="+(j.fFullVisible?"1":"0")+";seq="+(j.logCount)};this.getLogUrl=function(a){if(a==null)a="U";return"http://a.collective-media.net/log;"+j.getLogData()+";et="+a+";ord="+Math.floor(Math.random()*1000000)+";?"};this.sendLog=function(a){if(!j.done){j.logCount++;if(j.g_imgobj){j.g_imgobj.src=j.getLogUrl(a);j.g_v_dur_last=j.g_v_dur}}}};function findPos(a){var b=findPosX(a);var c=findPosY(a);return[b,c]};function findPosX(a){var b=0;if(a.offsetParent)while(1){b+=a.offsetLeft;if(!a.offsetParent)break;a=a.offsetParent}else if(a.x)b+=a.x;return b};function findPosY(a){var b=0;if(a.offsetParent)while(1){b+=a.offsetTop;if(!a.offsetParent)break;a=a.offsetParent}else if(a.y)b+=a.y;return b};function getWindowSize(){var a=0,myHeight=0;if(typeof(window.innerWidth)=='number'){a=window.innerWidth;myHeight=window.innerHeight}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientWidth;myHeight=document.body.clientHeight}return[a,myHeight]};function getScrollXY(){var a=0,scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset;a=window.pageXOffset}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;a=document.body.scrollLeft}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;a=document.documentElement.scrollLeft}return[a,scrOfY]};function appendChild(a,b){if(null==a.canHaveChildren||a.canHaveChildren){a.appendChild(document.createTextNode(b))}else{a.text=b}};function createAndAttachAd(a,b,c,d){var e=null;var f=false;if(window.addEventListener){f=true}var g=document.getElementsByTagName('script');for(var i=g.length-1;i>=0;i--){if(g[i].src.indexOf('http://a.collective-media.net/',0)!=-1){e=g[i];break}}if(e==null){return}var h=document.createElement('script');h.language='javascript';h.setAttribute('type','text/javascript');var j="";j+="document.write('<scr'+'ipt language=\"javascript\" src=\""+b+"\"></scr'+'ipt>');";var x=new ViewInter();x.it_initFind(a,h,c,d);var k=document.createTextNode(j);e.parentNode.insertBefore(h,e);appendChild(h,j)};
 document.write('<scr'+'ipt language="Javascript">createAndAttachAd("0a189a54_67724_55065824", "http://ad.doubleclick.net/adj/cm.nj/c_adj_rate_mortgage;net=cm;u=0a189a54_67724_55065824,10cf671822b92e1,adj_rate_mortgage,cm.BK_LexusES-cm.polit_L-cm.adj_rate_mortgage_M-cm.adj_rate_mortgage_L-cm.mortgage_L;;sz=300x250;ord1=927197;contx=adj_rate_mortgage;btg=cm.BK_LexusES;btg=cm.polit_L;btg=cm.adj_rate_mortgage_M;btg=cm.adj_rate_mortgage_L;btg=cm.mortgage_L;ord=2116614109?","300","250");</scr'+'ipt>');
