var cid='12569e04f5032a7';function cmIV_(){var a=this;this.ts=null;this.tsV=null;this.te=null;this.teV=null;this.fV=false;this.fFV=false;this.fATF=false;this.nLg=0;this._ob=null;this._obi=null;this._id=null;this._ps=null;this._it=0;this._ic=0;this._vt=0;this._vtl=0;this.oDoc=null;this._w=0;this.height=0;this._to=null;this.mxVT=150;this.done=false;this._init=function(e,c,b,d){if(!document.getElementById){return}if(e===undefined){e=this.buildTxId()}a._w=b;a.height=d;a._id=e;a.oDoc=c;CollectiveMedia.addEvt(window,"load",this.onLoad)};this.buildTxId=function(){var b=new Date(),c;txId=""+b.getYear()+b.getMonth()+b.getDate()+b.getHours()+b.getMinutes()+b.getSeconds();for(c=0;c<36;c++){txId+=CollectiveMedia.rand(10)}return CollectiveMedia.network+"-"+txId};this._findUnit=function(d,f){if(f++>5){return null}var c=null;var b,e;for(b=d.length-1;b>=0;b--){c=d[b];e=c.nodeName;if((e=="OBJECT"||e=="IFRAME"||e=="IMG")&&c.width==a._w&&c.height==a.height){a._ob=c;break}else{if(e=="EMBED"&&((c.width==a._w&&c.height==a.height)||(c.style.width==a._w+"px"&&c.style.height==a.height+"px"))){a._ob=c;break}else{if(e=="DIV"||e=="A"){a._findUnit(c.childNodes,f)}else{if(e=="FORM"){a._ob=c;break}}}}}return c};this.onLoad=function(){var b,c=0;a._findUnit(a.oDoc.childNodes,c);if(a._ob!==null){b=document.createElement("IMG");b.height=1;b.width=1;b.id="img"+a._id;document.body.appendChild(b);a.obj_init(a._ob);a._log("L")}};this.obj_init=function(c){this._ob=c;var b="img"+this._id;this._obi=document.getElementById(b);if(this._ob!==null){CollectiveMedia.addEvt(window,"beforeunload",this._e_b4);CollectiveMedia.addEvt(window,"blur",this._e_bl);CollectiveMedia.addEvt(window,"focus",this._e_scr);CollectiveMedia.addEvt(window,"unload",this._e_b4);CollectiveMedia.addEvt(window,"scroll",this._e_scr);CollectiveMedia.addEvt(window,"resize",this._e_scr);CollectiveMedia.addEvt(this._ob,"mouseover",this._e_in);CollectiveMedia.addEvt(this._ob,"mouseout",this._e_ou);CollectiveMedia.addEvt(this._ob,(this._ob.nodeName=="FORM"?"submit":"click"),this._e_cl);this._ps=fP(this._ob)}this._e_scr(null);this._to=window.setInterval(function(){a.checkViewTimeout()},15000)};this._e_in=function(b){if(a.ts==null){a.ts=new Date()}a._ic=a._ic+1};this._e_scr=function(c){var i,g,b,f,e,d,h=false;if(a._ob!==null&&a._ps!==null){a._ps=fP(a._ob);b=getWS();f=getXY();e=(Math.round(a._ps[1])+Math.round(a._ob.height));d=(Math.round(a._ps[0])+Math.round(a._ob.width));if((Math.round(b[1])+Math.round(f[1])>Math.round(a._ps[1]))&&(f[1]<e)&&((Math.round(b[0])+Math.round(f[0])>Math.round(a._ps[0]))&&(f[0]<d))){if(!a.fV){a.fV=true;h=true;if(a.nLg==0){a.fATF=true}}if(a.tsV==null){a.tsV=new Date()}i=false;g=false;if(a._ps[1]>f[1]&&e<(f[1]+b[1])){i=true}if(a._ps[0]>f[0]&&d<(f[0]+b[0])){g=true}if(g&&i){if(!a.fFV){a.fFV=true;h=true}}}else{a._vt_0();if(a._vt>a._vtl){a._log("H")}}}if(h||a.nLg==0){a._log("V")}};this._vt_0=function(){if(a.tsV!=null){a.teV=new Date();var b=a.teV.getTime()-a.tsV.getTime();a.teV.setTime(b);a.tsV=null;a._vt+=Math.round(b/1000)}a._it_0()};this._it_0=function(){if(a.ts!=null){a.te=new Date();var b=a.te.getTime()-a.ts.getTime();a.te.setTime(b);a.ts=null;a._it+=Math.round(b/1000)}};this._e_ou=function(b){a._vt_0();a._log("I");a._e_scr()};this._e_b4=function(c){if(a._to!=null){window.clearInterval(a._to);a._to=null}a._vt_0();a._log("U");a.done=true;var d=new Date(),e=0,b;e=0;while(e<200){b=new Date();e=b.getTime()-d.getTime()}};this._e_cl=function(b){a._ic=a._ic+1;a._vt_0();a._log("C");a._e_scr();return true};this._e_bl=function(b){a._vt_0();a._log("B");a._e_scr()};this.checkViewTimeout=function(){if(a.tsV!=null){var b=new Date();var c=b.getTime()-a.tsV.getTime();b.setTime(c);var d=a._vt+Math.round(c/1000);if(d>=a.mxVT){a._e_b4()}else{if(d>a._vtl){a._e_bl()}}}};this.getLogData=function(b){str="tx="+a._id+";it="+(a._it)+";vt="+(a._vt)+";ic="+(a._ic)+";atf="+(a.fATF?"1":"0")+";pv="+(a.fV?"1":"0")+";fv="+(a.fFV?"1":"0")+";seq="+(a.nLg)+";et="+b+";cid="+cid+";ord="+CollectiveMedia.rand(1000000);if(!/\?$/.test(str)){str+="?"}return str};this.getLogUrl=function(b){if(b==null){b="U"}url=location.protocol+"//l.collective-media.net/log;"+a.getLogData(b);return url};this._log=function(b){if(!a.done){a.nLg++;if(a._obi){a._obi.src=a.getLogUrl(b);a._vtl=a._vt}}}}function fP(b){var c=fPX(b);var a=fPY(b);return[c,a]}function fPX(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 fPY(b){var a=0;if(b.offsetParent){while(1){a+=b.offsetTop;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.y){a+=b.y}}return a}function getWS(){var a=0,b=0;if(typeof(window.innerWidth)=="number"){a=window.innerWidth;b=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientWidth;b=document.body.clientHeight}}}return[a,b]}function getXY(){var b=0,a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;b=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}}}return[b,a]};var CollectiveMedia={rand:function(a){return Math.floor(Math.random()*a)},appendChild:function(a,b){if(null==a.canHaveChildren||a.canHaveChildren){a.appendChild(document.createTextNode(b))}else{a.text=b}},createAndAttachAd:function(i,c,a,f,g){var h=document.getElementsByTagName("script");var b=h[h.length-1];if(b==null){return}var k=document.createElement("script");k.language="javascript";k.setAttribute("type","text/javascript");var l="document.write('<scr'+'ipt language=\"javascript\" src=\""+c+"\"></scr'+'ipt>');";b.parentNode.insertBefore(k,b);CollectiveMedia.appendChild(k,l);if(g){try{var d=new cmIV_()}catch(j){return false}d._init(i,k.parentNode,a,f);return d}},buildPixel:function(a){img=document.createElement("img");img.src=a;CollectiveMedia.appendChild(img)},addPixel:function(b,a){if(!navigator.cookieEnabled){return true}if(a){CollectiveMedia.buildPixel(b)}else{CollectiveMedia.addEvt(window,"load",function(){CollectiveMedia.buildPixel(b)})}},addTrackingImages:function(){CollectiveMedia.trackingImages=arguments;CollectiveMedia.addEvt(window,"load",CollectiveMedia.loadTrackingImages)},loadTrackingImages:function(){var a=CollectiveMedia.trackingImages,c="?";c+=CollectiveMedia.rand(1000000);for(var b=0;b<a.length;b++){new Image().src=a[b]+c}}};if(window.addEventListener){CollectiveMedia.addEvt=function(b,a,c){b.addEventListener(a,c,false)}}else{if(window.attachEvent){CollectiveMedia.addEvt=function(b,a,c){b.attachEvent("on"+a,c)}}else{CollectiveMedia.addEvt=function(){}}};document.write('<scr'+'ipt language="Javascript">CollectiveMedia.createAndAttachAd("q1-10407057408_1328324702","http://ad.doubleclick.net//q1.latimes/news;net=q1;u=,q1-10407057408_1328324702,12569e04f5032a7,none,q1.bar_fd;;cmw=nurl;contx=none;dc=w;btg=q1.bar_fd?","0","0",true);</scr'+'ipt>');CollectiveMedia.addPixel("http://ib.mookie1.com/image.sbix?go=2223&pid=15",true);CollectiveMedia.addPixel("http://adadvisor.net/adscores/g.pixel?sid=9226553863",false);CollectiveMedia.addPixel("http://p.brilig.com/contact/bct?pid=db87fbb1-7ab7-43ef-8be9-04bf8c66111d&_ct=pixel&dr=vt&REDIR=http://a.collective-media.net/datapair?net=vt",false);CollectiveMedia.addPixel("http://p.brilig.com/contact/bct?pid=db87fbb1-7ab7-43ef-8be9-04bf8c66111d&_ct=pixel&dr=ix&REDIR=http://a.collective-media.net/datapair?net=bx",false);
