function dap_realvu( dapIfs, qs,fw,fh,ob, vui ) { // Called by 30848674 for Ad Tracking var rs=_daprr[_daprs++]; if(_daprs>=_daprr.length)_daprs=0; if(typeof(ob)!='undefined') { ob=true; if(rs.length>0) { rs+='&DPJS='+(DPJS_BSC+DPJS_4TH); } } else { ob=false; if(rs.length>0) { rs+='&DPJS='+DPJS_BSC; } } var doc; var s1; var s2 ='window.onload = vuload; ' + 'function vuload(){var o="adid";if(typeof(getRADIds)!="undefined"){o=getRADIds();}parent.set_adids(' + vui + ', o );}' + ' '; if(_dapUtils.is_ie5up&&_dapUtils.is_win&&!ob) { doc=document.frames[dapIfs].document; doc.open("text/html","replace"); s1 = 'Advertisementvar inDapIF=true;function startTimer(){if (event.srcElement.readyState == "complete") {window.setTimeout("document.close();", 2000);}}'; s1 += s2; doc.write( s1 ); } else { doc=document.getElementById(dapIfs).contentDocument; doc.open("text/html","replace"); s1 = ''; s1 += s2; doc.write( s1 ); doc.close(); } } function RealVu_getCookie(name) { var prefix = name + "=" var cookieStartIndex = document.cookie.indexOf(prefix) if (cookieStartIndex == -1) return null var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)) } function RealVu_getCookies(name, a ) { var prefix = name + "=" var cookieStartIndex = document.cookie.indexOf(prefix) if (cookieStartIndex == -1) return null var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length var s = document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex) prefix = a + "=" cookieStartIndex = s.indexOf(prefix) if (cookieStartIndex == -1) return null cookieEndIndex = s.indexOf("&", cookieStartIndex + prefix.length) if (cookieEndIndex == -1) cookieEndIndex = s.length return unescape(s.substring(cookieStartIndex + prefix.length, cookieEndIndex)) } function RealVu_updateCookie(name, a, new_value ) { var newC=""; var prefix = name + "=" var cookieStartIndex = document.cookie.indexOf(prefix) if (cookieStartIndex == -1) { document.cookie = prefix+a+"="+new_value+"; "; } else { var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length); if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length; var s = document.cookie.substring(cookieStartIndex, cookieEndIndex); var prefixS = a + "="; var cookieStartIndexS = s.indexOf(prefixS); var s4; if (cookieStartIndexS == -1) { s4 = s.substring( 0,cookieEndIndex )+"&"+a+"="+new_value+"; "; } else { var cookieEndIndexS = s.indexOf("&", cookieStartIndexS + prefixS.length) if (cookieEndIndexS == -1) cookieEndIndexS = s.length; var v = cookieStartIndexS + prefixS.length; var v1 = cookieEndIndexS; s4 = s.substring( 0,v )+new_value+s.substring( v1 )+"; "; } document.cookie = s4; //+"; path='www.RealVu.net.com/'"; } if( document.cookie.indexOf("expires")<0 ) { var now = new Date(); now.setTime(now.getTime() + 1000 * 60 * 60 * 24 * 365) document.cookie += ";expires="+now; } } var RealVu_BD = { init: function () { this.browser = this.searchString(this.dataBrowser) || "Unknown"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "Unknown"; this.OS = this.searchString(this.dataOS) || "Unknown"; RealVu_browser_v = this.browser ; RealVu_browser=this.browser + " " + this.version ; RealVu_OS=this.OS; }, searchString: function (data) { for (var i=0;i= this.xs1) && ((y1 + adi.pad_t) >= this.ys1) && ((x2 - adi.pad_r) <= this.xs2) && ((y2 - adi.pad_b) <= this.ys2)) { RealVu_av(i, ++adi.sec); adi.paused = 0; } else adi.paused = 1; } else { adi.paused = 1; } } } } }, //--- getClientWidth: function() { var w0 = 0; if (document.body.clientWidth) w0 = document.body.clientWidth; var w1 = 0; if (document.documentElement) w1 = document.documentElement.clientWidth; var w2 = 0; if (document.body.offsetWidth) w2 = document.body.offsetWidth; var h0 = 0; if (document.body.clientHeight) h0 =document.body.clientHeight; var h1 = 0; if (document.documentElement) h1 = document.documentElement.clientHeight; if (w0 > 0 && (w1==0 || (w0 <= w1 && h0 <= h1 )) ) { return w0; } else { return w1; } }, getClientHeight: function() { var h0 = 0; if (document.body.clientHeight) h0 =document.body.clientHeight; var h1 = 0; if (document.documentElement) h1 = document.documentElement.clientHeight; var h2 = 0; if (document.body.offsetHeight) h2 = document.body.offsetHeight; if (h0 > 0 && (h1==0 || (h0 <= h1)) ) { return h0; } else { return h1; } }, getScrollLeft: function() { var sL0 = 0; if (document.documentElement) sL0 = document.documentElement.scrollLeft; var sL1 = 0; if (document.body.scrollLeft) sL1 = document.body.scrollLeft; if (sL0 > 0) return sL0; if (sL1 > 0) return sL1; return 0; }, getScrollTop: function() { var sT0 = 0; if (document.documentElement) sT0 = document.documentElement.scrollTop; var sT1 = 0; if (document.body.scrollTop) sT1 = document.body.scrollTop; if (sT0 > 0) return sT0; if (sT1 > 0) return sT1; return 0; } } if (typeof RealVu_ad == 'undefined') { var RealVu_focus=true, RealVu_ad = new Array(), RealVu_v_width=0, RealVu_v_height=0 , RealVu_v_top=0, RealVu_v_left=0, RealVu_topZ=0, RealVu_ex = new Array() , RealVu_ea_list = "", RealVu_popul=0, RealVu_adi = new Array(), RealVu_i=0 , RealVu_all_viz=0, RealVu_set=false, RealVu_viz_poll=null, RealVu_ie=false , RealVuUrl="http://ad.realvu.net/display_msn2/" , RealVu_uuid = "", RealVu_reach=0, RealVu_browser="", RealVu_OS="" , RealVu_scroll=false, RealVu_test=1, RealVu_msn=null, RealVu_dap_poll=null , RealVu_refpath="", RealVu_key='' ; if ( window.addEventListener && !window.opera ) { window.addEventListener('load', function() { RealVu_populate_ads(); }, false) ; } else if (window.attachEvent) { window.attachEvent('onload', RealVu_populate_ads) ; } else { window.onload = RealVu_populate_ads; } if (/*@cc_on!@*/false) { document.onfocusin = function() {RealVu_focus=true ;} document.onfocusout = function() {RealVu_focus=false ;} } else { window.onfocus = function() {RealVu_focus=true ;} window.onblur = function() {RealVu_focus=false ;} } if ( location ) { RealVu_refpath = encodeURIComponent(window.location.href) ; } function guidABCD() { return (((1+Math.random())*0x10000)|0).toString(16).substring(1); } function get_guid() { return (guidABCD()+guidABCD()+"-"+guidABCD()+"-"+guidABCD()+"-"+guidABCD()+"-"+guidABCD()+guidABCD()+guidABCD()); } if (document.cookie.indexOf('RealVu')<0 && document.cookie.indexOf('uuid')<0) { RealVu_uuid = get_guid(); RealVu_updateCookie("RealVu", "uuid", RealVu_uuid); RealVu_reach=1 ; } else { RealVu_uuid = RealVu_getCookies("RealVu", "uuid") ; } if (RealVu_uuid==null || RealVu_uuid=="null") RealVu_uuid = "" ; if (navigator.appName.indexOf("Microsoft") != -1) RealVu_ie = true ; RealVu_BD.init() ; function RealVu_populate_ads() { if (RealVu_viz_poll==null) RealVu_viz_poll = self.setInterval("RealVu_viz_check.update()", 1000) ; try { clearTimeout(RealVu_trick); } catch(e) {/* */ } } function RealVu_av( n, s ) { var mv = RealVu_tell("RealVuad"+n) ; if (RealVu_adi[n].viz==0) { if(mv) { try { mv.av(); } catch(e) { /* */ } } if (document.images["RealVuImg"+n]) document.images["RealVuImg"+n].src = RealVuUrl+"v.gif"; RealVu_adi[n].viz=1; RealVu_all_viz ++ ; } else { if (Number(s)<31) { if(mv) { try { mv.vt(); } catch(e) { /* */ } } } } if (document.getElementById("RealVu_s"+n)) { var v="",ss=s%60, mm=parseInt(s/60)%60, hh=parseInt(s/3600); if(ss<10) ss = "0"+ss; if(hh>0) v=hh+":"; if(mm<10 ) mm = '0'+mm; v += mm + ":"+ss; document.getElementById("RealVu_s"+n).innerHTML= v ; } } function RealVu_tell(o) { try { if (RealVu_ie) { var tf = null ; for (var i=0; i < document.forms.length; i++) { tf = document.forms[i] ; if (tf[o] != null) window[o] = tf[o] ; } return window[o] ; } else { return document[o] ; } } catch(e) { /* */ } } } function set_adids( vui, o ) { //alert("Zumm "+vui+" "+o.adid ); RealVu_adi[vui].set_adids( o ); } function RealVu_get_adid(n) { // alert(RealVu_adi[n].adid) ; return RealVu_adi[n].adid ; } function RealVuClick(n) { RealVu_adi[n].click++; } // Collect all the init rows for i-th ad to RealVu() function function RealVu(qs,fw,fh,ob) { RealVu_adi[RealVu_i] = { is_link:0, click:0, adid:"", pid:0, targetid:0, dap_qs:qs, dap_fw:fw, dap_fh:fh, dap_ob:ob, dapIfs:"", num:RealVu_i, done:0, ea:"", rend:0, viz:0, t:0, sec:0, vid:0, paused:0, x:-1, y:-1, width:parseInt(fw), height:parseInt(fh), pad_l:0, pad_t:0, pad_r:0, pad_b:0, vm:1, markwords:"", flashArgs:"", set_adids:function( o ) { // this.pid = o.pid; // this.targetid = o.targetid; if (typeof(o.adid)=='undefined') { this.adid = "Internal Default Ad" ; // "("+this.dap_fw+"x"+this.dap_fh+")" ; } else { this.adid = o.adid; } this.rend=1 ; var mv = RealVu_tell("RealVuad"+this.num) ; if(mv) { try { mv.rn(); } catch(e) { /* */ } } if( this.viz==1) document.images["RealVuImg"+this.num].src = RealVuUrl+"v.gif"; // else document.images["RealVuImg"+this.num].src = RealVuUrl+"r.gif"; }, populate:function() { // document.images["RealVuImg"+this.num].src=RealVuUrl+"r.gif" ; this.done=1; if(this.is_link==0) dap_realvu( this.dapIfs, this.dap_qs, this.dap_fw, this.dap_fh, this.dap_ob, this.num ); }, write_placeholder:function() { this.pad_l=parseInt(this.width*0.05) ; this.pad_t=parseInt(this.height*0.05) ; this.pad_r=parseInt(this.width*0.05) ; this.pad_b=parseInt(this.height*0.05) ; this.flashArgs = "uf=display_msn2" + this.dap_qs +"&num="+this.num+"&r="+RealVu_reach + "&w="+this.width+"&h="+this.height + "&uuid="+RealVu_uuid + "&br=" + RealVu_browser + "&os=" + RealVu_OS + "&rp=" + RealVu_refpath + "&key=" + RealVu_key ; // alert(this.flashArgs) ; this.dapIfs='dapIf'+(parseInt(parent.frames.length)+1); document.write( "
" + "" + "" + "" + "" + "" + "" + "" + '
' ); }, write_link:function() { this.is_link = 1; this.dapIfs='dapIf'+(parseInt(parent.frames.length)+1); document.write( "" +"" ); dap( this.dap_qs, this.dap_fw, this.dap_fh, this.dap_ob ); document.write( "" ); }, write_link_post:function() { var t = document.getElementById( 'RealVu_L'+this.num ); var txt= t.innerHTML.replace(/(\<[^\>]*\>)/g, " "); txt= encodeURIComponent( txt.replace(/^[\s]+/,"" ).replace(/[\s]+$/,"" ).replace(/[\s]+/g," " ) ) if (txt=="") txt = "Empty" ; this.adid = txt ; this.width = Number(t.clientWidth) ; this.height = Number(t.clientHeight) ; this.pad_l=parseInt(this.width*0.05) ; this.pad_t=parseInt(this.height*0.05) ; this.pad_r=parseInt(this.width*0.05) ; this.pad_b=parseInt(this.height*0.05) ; this.flashArgs = "uf=display_msn2" + this.dap_qs+"&num="+this.num+"&r="+RealVu_reach + "&w="+this.width+"&h="+this.height + "&sl=1" + "<xt="+this.adid + "&uuid="+RealVu_uuid + "&br=" + RealVu_browser + "&os=" + RealVu_OS + "&rp=" + RealVu_refpath + "&key=" + RealVu_key ; // alert(this.flashArgs) ; var fP = document.getElementById( 'RealVu_F'+this.num ); fP.innerHTML = "" + "" + "" + "" + "" + "" + ""; this.rend=1 ; }, findPos:function( ) { if( this.is_link==1 && this.width==1 && this.height==1 ) { this.write_link_post(); } var x0 = 0; var y0 = 0; var obj = document.getElementById( "RealVuad"+this.num ); //if (!RealVu_ie) obj = document.getElementById( this.dapIfs ); if (obj.offsetParent) { x0 = obj.offsetLeft y0 = obj.offsetTop while (obj = obj.offsetParent) { x0 += obj.offsetLeft y0 += obj.offsetTop } } this.x = x0; this.y =y0; } } if( fw==1 && fh==1 ) { RealVu_adi[RealVu_i].write_link(); } else { RealVu_adi[RealVu_i].write_placeholder(); } RealVu_i++; if (!RealVu_set) { RealVu_set=true ; } }