RealVu_iframe = false;
try {
top.RealVu_tmp="ABC" ;
}
catch(e) {
RealVu_iframe = true;
}
if( RealVu_iframe == true ) {
if( 6==1 ) {
document.write('
Warning! Ad 728 x 90 cannot be renderend.
Embedding a RealVu® tag inside an IFRAME of a different domain than the web page is strictly prohibited.
');
}
else {
if( typeof(RealVu_short)=='undefined') {
RealVu_short = true;
RealVu_tell = function(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) { }
}
document.write(' We are inside iframe. Debug message');
RealVu_MouseDown = function (e) { //
var x = e.clientX;
var y = e.clientY;
// DO WE NEED A LIMIT FOR A NUMBER OF CLICKS? adi.cl=1;
//alert("Count click at x=" + x+" y="+ y );
document.getElementById("bbb").innerHTML = "Count click at x=" + x+" y="+ y;
var mv=RealVu_tell("RealVuR");
if(mv) {
try {mv.cl();}
catch(e1) {
if (top.RealVu_test) alert("Exception "+e1.message );
}
}
}
RealVu_addEvent = function(elem, evtType, func)
{
if (elem && elem.addEventListener) {
try {
elem.addEventListener(evtType, func, false);
} catch(e) { }
} else if (elem && elem.attachEvent) {
try { elem.attachEvent("on" + evtType, func);} catch(e) { }
} else {
try { elem["on" + evtType] = func;} catch(e) { }
}
}
RealVu_addEvent( self.document, "mousedown", RealVu_MouseDown );
var RealVuUrl = "http://go.realvu.net/";
var ad_div= ''
document.write(ad_div);
}
}
}
else
{
//
if( typeof(top.RealVu_focus)=='undefined')
{
if( typeof(RealVu_once)=='undefined') {
RealVu_once = true;
top.RealVu_focus=false;
top.RealVu_mouse=true;
top.RealVu_i=0;
top.RealVu_vnum=0;
top.RealVu_test=false;
top.RealVu_ff=navigator.userAgent.match(/Firefox/i);
top.RealVu_ff_o=(top.RealVu_ff && (navigator.userAgent.match(/Firefox\/2./i) || navigator.userAgent.match(/Firefox\/1./i)));
top.RealVu_ff_n=(top.RealVu_ff && !top.RealVu_ff_o);
top.RealVu_ie=navigator.appVersion.match(/MSIE/);
top.RealVu_saf=(navigator.userAgent.match(/Safari/) /* && !navigator.userAgent.match(/Chrome/) */);
top.RealVu_ope=window.opera;
top.RealVu_fowner=null;
top.RealVu_insider = false;
top.RealVu_area=60 ;
top.RealVu_getZ = function( ) //
{
var z=0, j = 0, e = Array();
e = top.document.getElementsByTagName("*");
for( var i=0; i < e.length; i++){
if (e[i].currentStyle) {
j = parseInt(e[i].currentStyle["zIndex"]);
} else if(window.getComputedStyle) {
j = parseInt(document.defaultView.getComputedStyle(e[i],null).getPropertyValue("z-index"));
}
if(!isNaN(j) && j > z) z=j;
}
return ++z ;
}
function RealVu_msover() { if(top.RealVu_mouse) {top.RealVu_focus=true;top.RealVu_mouse=false;top.RealVu_removeEvent( top, "mouseover", RealVu_msover );} }
top.RealVu_video = { //
up:false,
foc:false,
inv:false,
topZ:0,
width:0,
height:0,
x1:0,
y1:0,
x2:0,
y2:0,
sr:false,
srt:"start",
srb:""
};
top.RealVu_addEvent = function(elem, evtType, func)
{
if (elem && elem.addEventListener) {
try {
elem.addEventListener(evtType, func, false);
} catch(e) {
/**/
}
} else if (elem && elem.attachEvent) {
try { elem.attachEvent("on" + evtType, func);} catch(e) {
/**/
}
} else {
try { elem["on" + evtType] = func;} catch(e) {
/**/
}
}
}
top.RealVu_removeEvent = function(elem, evtType, func)
{
if (elem.removeEventListener) {
elem.removeEventListener(evtType, func, false);
} else if (elem.detachEvent) {
elem.detachEvent("on" + evtType, func);
} else {
elem["on" + evtType] = func;
}
}
top.RealVu_bl_insider= function() { //
top.RealVu_removeEvent( top.RealVu_fowner, "blur", top.RealVu_bl_insider );
// if (top.RealVu_test) top.RealVu_log.write( "INS_BLUR:remove 'blur' event from <" + top.RealVu_fowner.tagName +">
new focus owner is <"+ top.document.activeElement.tagName+">" );
if( top.RealVu_fowner == top.document.activeElement )
{
// if (top.RealVu_test) top.RealVu_log.write( "INS_BLUR: the same object - go STOP ");
top.RealVu_insider = false;
top.RealVu_bl();
}
else
{
var ae = top.document.activeElement ;
if( typeof(ae) !='undefined' )
{
top.RealVu_insider = true;
top.RealVu_focus = true;
top.RealVu_fowner = ae;
top.RealVu_addEvent( top.RealVu_fowner, "blur", top.RealVu_bl_insider );
// if (top.RealVu_test) top.RealVu_log.write( "INS_BLUR: blur attached to "+ top.RealVu_fowner.tagName );
}
}
}
top.RealVu_bl= function() {
if( top.RealVu_focus && (!top.RealVu_ie || !top.RealVu_insider) )
{
top.RealVu_focus=false;
if (top.RealVu_video.up && typeof(top.RealVu_vbl)!="undefined") top.RealVu_vbl() ;
var tp=""; if (top.RealVu_vnum>0) tp=" View Time counter paused." ;
if (top.RealVu_video.up ) tp=" Play time counter paused." ;
if (top.RealVu_test) top.RealVu_log.write( "Page out of focus."+tp+" All RealVu processes idle.");
}
}
top.RealVu_fo=function() {
if( !top.RealVu_focus ) {
top.RealVu_focus=true;
if ( top.RealVu_video.up && typeof(top.RealVu_vfo)!="undefined") {
if (top.RealVu_video.inv) top.RealVu_vfo() ;
}
var tp=""; if (top.RealVu_vnum>0) tp=" View Time counter resumes." ;
if (top.RealVu_video.up ) tp=" Play time counter resumes." ;
if (top.RealVu_test) top.RealVu_log.write( "Page in focus."+tp+" All RealVu processes resume.");
}
if (top.RealVu_ie && !top.RealVu_video.up)
{
var ae = top.document.activeElement ; //
if( typeof(ae) !='undefined' )
{
top.RealVu_insider = true;
top.RealVu_focus = true;
top.RealVu_fowner = ae;
top.RealVu_addEvent( top.RealVu_fowner, "blur", top.RealVu_bl_insider );
}
}
}
top.RealVu_df=function() { top.focus(); top.RealVu_fo();}
top.RealVu_correlator_run=function()
{
if( top.RealVu_log.run>0 ) top.RealVu_log.activate() ;
var now = new Date();
var dur = (now.getTime() - top.RealVu_log.start_time)/1000;
if (top.RealVu_test) top.RealVu_log.write( "Page loaded in "+dur+" sec. RealVu Correlator run." );
// top.RealVu_marksfinder.find_words();
top.set_easels();
top.move_easels();
if (!top.RealVu_focus) top.RealVu_addEvent( top, "mouseover", RealVu_msover );
if (top.RealVu_viz_poll==null) top.RealVu_viz_poll = top.setInterval("top.RealVu_viz_check.update()", 500) ;
}
top.RealVu_addEvent(top, "load", top.RealVu_correlator_run );
if (top.RealVu_ie) {
top.RealVu_addEvent(top, "focus", top.RealVu_fo );
top.RealVu_addEvent(top, "blur", top.RealVu_bl );
top.RealVu_addEvent(top, "scroll", top.RealVu_fo );
top.RealVu_addEvent(top, "beforeunload", top.RealVu_df );
} else {
top.RealVu_addEvent(top.document, "focus", top.RealVu_fo );
top.RealVu_addEvent(top.document, "blur", top.RealVu_bl );
}
top.RealVu_MouseDown = function (e) { //
var x = top.RealVu_viz_check.sl()+e.clientX;
var y = top.RealVu_viz_check.st()+e.clientY;
var ty = 0 ;
for (var i = 0; i < top.RealVu_i; i++)
{
var adi = top.RealVu_adi[i];
if (adi!=null && adi.cl==0 && adi.rend!="")
{
if (adi.tt == 1)
ty = 30;
else
ty=0 ;
var x1 = adi.x;
var y1 = adi.y;
var x2 = x1 + adi.width;
var y2 = y1 + adi.height + ty;
if( (x10) v= hh+":"; if(mm<10 ) mm = "0"+mm;v = mm + ":"+ ss;
return v ;
}
top.RealVu_viz_check = {
xs1: 0,
ys1: 0,
xs2: 1000,
ys2: 800,
curtop: 0,
curleft: 0,
lv: false,
wl: 0,
wt: 0,
wb: 0,
wn: 0,
update_video: function() {
mv = top.RealVu_tell("RealVu_vid");
if (mv) {
v = top.RealVu_video, k = (top.RealVu_video.width / 610).toFixed(2), fv = " View Time paused for all ads.";
if (((this.wl + this.wb - this.xs1 + v.x1 + parseInt(10 * k)) > 0) && ((this.wl + this.wb - this.xs1 + v.x2 + parseInt(20 * k) - 50) < screen.width) && ((this.wt + this.wn + v.y1 + top.RealVu_video.height - parseInt(40 * k)) < screen.height) && ((this.xs1 + v.x1 + parseInt(10 * k)) >= this.xs1) && ((this.ys1 + v.y1 + parseInt(20 * k)) >= this.ys1) && ((this.xs1 + v.x2 - parseInt(20 * k)) <= this.xs2) && ((this.ys1 + v.y2 - parseInt(40 * k)) <= this.ys2)) {
if (top.RealVu_video.inv == false) {
top.RealVu_video.inv = true;
top.RealVu_vfo();
if (top.RealVu_video.sr) { top.RealVu_video.srt = "resumes"; top.RealVu_video.srb = "back "; fv = ""; }
if (top.RealVu_test) top.RealVu_log.write("Video " + (top.RealVu_video.width) + "x" + (top.RealVu_video.height) + " " + top.RealVu_video.srb + "in viewable area: " + (this.xs2 - this.xs1) + "x" + (this.ys2 - this.ys1) + " at Left: " + v.x1 + ", Top: " + (v.y1)
+ "; scroll position Hor: " + this.xs1 + ", Ver: " + this.ys1 + ". " + top.RealVu_video.srt + "." + fv);
}
}
else {
top.RealVu_video.sr = true;
if (top.RealVu_video.inv == true) {
top.RealVu_video.inv = false;
top.RealVu_vbl();
if (top.RealVu_test) top.RealVu_log.write("Video " + (top.RealVu_video.width) + "x" + (top.RealVu_video.height) + " outside viewable area: " + (this.xs2 - this.xs1) + "x" + (this.ys2 - this.ys1) + " at Left:" + v.x1 + ", Top: " + (v.y1)
+ "; scroll position Hor: " + this.xs1 + ", Ver: " + this.ys1 + ". Play time counter paused.");
}
}
}
},
update: function() {
this.xs1 = this.sl();
this.ys1 = this.st();
cw = this.gw();
ch = this.gh();
this.xs2 = this.xs1 + cw;
this.ys2 = this.ys1 + ch;
if (top.RealVu_ff) {
this.wl = top.screenX;
this.wt = top.screenY;
this.wn = 160;
this.wb = 10;
} else {
this.wl = top.screenLeft;
this.wt = top.screenTop;
if (top.RealVu_ie) { this.wn = 30; } else if (top.RealVu_saf) { this.wb = 10; this.wn = 120 } else { if (top.RealVu_ope) { this.wn = 20; } else { this.wb = 5; this.wn = 130; } };
}
if (top.RealVu_video.up) {
this.update_video();
} else {
for (var i = 0; i < top.RealVu_i; i++) {
adi = top.RealVu_adi[i];
if (adi != null) {
adi.findPos();
var ty = 0;
if (adi.tt == 1) ty = 30;
var x1=adi.x, y1=adi.y, x2=x1 + adi.width, y2=y1 + adi.height + ty, pad_rend=200, V=0, H=0, Hl=0, Hr=0, Vt=0, Vb=0, A=0 ;
if (""!="" && (top.location.search.indexOf('=')<0) ) top.RealVu_area=96 ;
// if (""=="&demo=1" || RealVu_test) pad_rend=0 ;
if (adi.done==0 && !adi.ovr && top.RealVu_focus) {
//
if ((x2 >= (this.xs1-pad_rend)) && (y2 >= (this.ys1-pad_rend)) && (x1 <= (this.xs2+pad_rend)) && (y1 <= (this.ys2+pad_rend))) {
//
for (var z = 0; z < (top.RealVu_popul); z++) { // was (top.RealVu_popul+ );
if (z != i && !top.RealVu_adi[z].ovr) {
top.RealVu_adi[z].findPos();
if ((top.RealVu_adi[z].x < x2) && ((top.RealVu_adi[z].x + top.RealVu_adi[z].width) > x1) && (top.RealVu_adi[z].y < (y2 - 30)) && ((top.RealVu_adi[z].y + top.RealVu_adi[z].height) > y1)) {
adi.ovr = true;
top.RealVu_log.write("Error: Ad Space #" + (z + 1) + " " + top.RealVu_adi[z].x + ", " + (top.RealVu_adi[z].x + top.RealVu_adi[z].width) + " overlapping Ad Space #" + (adi.num + 1) + " -- " + x1 + ", " + x2 + "");
}
}
}
if ((top.RealVu_popul == 0) || !adi.ovr) {
// adi.markwords = RealVu_marksfinder.get_words();
adi.ea = top.RealVu_ea_list;
adi.populate();
}
}
if (adi.done > 0) top.RealVu_popul++;
} else if (adi.viz==0 && top.RealVu_focus) { //
if ((x2 >= this.xs1) && ((y2-adi.pad_b-12) >= this.ys1) && (x1 <= this.xs2) && (y1 <= this.ys2)) {
adi.chw = "cw0="+cw+"&ch0="+ch+"&sl0="+this.xs1+"&st0="+this.ys1+"&va0=0" ;
if (adi.rend != "") {
adi.viz=1;
// if (top.RealVu_test) top.RealVu_log.write("Ad #"+(i+1)+" Rendered reported.") ;
}
}
} else if (top.RealVu_focus) { //
//
if (this.wl>0) //
H = parseInt(100-((this.wl+this.wb+x2-this.xs1-screen.width) *100/adi.width)) ;
else
H = parseInt((this.wl+this.wb+x2-this.xs1) *100/adi.width) ;
if (H >100) H=100 ;
//
Hl=(x2-this.xs1); Hr=(this.xs2-x1);
if (Hl < adi.width)
H = parseInt(Hl *100/adi.width) ;
else if (Hr < adi.width)
H = parseInt(Hr *100/adi.width) ;
if (this.xs2x1)
V = parseInt((this.xs2-this.xs1) *100/adi.width) ;
//
//
V = parseInt(100-((this.wt+this.wn+(y2-adi.pad_t)-this.ys1-screen.height) *100/adi.height)) ;
if (V >100) V=100 ;
//
Vt=((y2-adi.pad_b-12)-this.ys1); Vb=(this.ys2-y1) ;
if (Vt < adi.height)
V = parseInt(Vt *100/adi.height) ;
else if (Vb < adi.height)
V = parseInt(Vb *100/adi.height) ;
if (this.ys2y1)
V = parseInt((this.ys2-this.ys1) *100/adi.height) ;
A=parseInt(H*V/100) ; //
if (adi.a!=A && A>=0 && A<=100) {
adi.a=A ;
if (top.RealVu_test) top.RealVu_log.write("Ad #"+(i+1)+" area X:" + H + "% Y:"+ V + "% A:" + A +"%") ;
}
if (A >= top.RealVu_area)
{
//
if (adi.st < this.ys1) adi.st=this.ys1;
if (adi.sl < this.xs1) adi.sl=this.xs1;
if (adi.va < A) adi.va=A;
if (adi.t == 0) {
adi.t = 1;
if (adi.sec == 0) {
adi.st=this.ys1; adi.sl=this.xs1; adi.ch=ch; adi.cw=cw; top.RealVu_vnum++;
}
top.RealVu_av(i, ++adi.sec);
//
if (top.RealVu_test) top.document.getElementById("RealVuS" + adi.num).innerHTML = " Viewed: " + RealVu_vt(adi.sec);
} else {
adi.t = 0;
}
if (adi.paused) {
adi.paused = false;
this.RealVu_pv(i); //this.(top.RealVu_popul );(i);
if (adi.sr) { adi.srt = "resumes"; adi.srb = "back "; }
if (top.RealVu_test) top.RealVu_log.write("Ad Space #" + (adi.num + 1) + " " + (x2 - x1) + "x" + (y2 - y1 - 30) + " " + adi.srb + "in viewable area: " + (this.xs2 - this.xs1) + "x" + (this.ys2 - this.ys1) + " at Left: " + x1 + ", Top: " + (y1 + 12)
+ "; scroll position Hor: " + this.xs1 + ", Ver: " + this.ys1 + ". View Time counter " + adi.srt + ".");
}
} else {
if (!adi.paused) {
adi.paused = true;
this.RealVu_sv(i);
adi.sr = true;
if (top.RealVu_test) top.RealVu_log.write("Ad Space #" + (adi.num + 1) + " " + (x2 - x1) + "x" + (y2 - y1 - 30) + " outside viewable area: " + (this.xs2 - this.xs1) + "x" + (this.ys2 - this.ys1) + " at Left: " + x1 + ", Top: " + (y1 + 12)
+ "; scroll position Hor: " + this.xs1 + ", Ver: " + this.ys1 + ". View Time counter paused.");
} else {
this.RealVu_sv(i);
}
}
}
}
}
}
},
//---
gw: function() {
if (top.document.compatMode == "BackCompat") {
return top.document.body.clientWidth;
} else {
if (top.innerWidth)
return top.innerWidth;
else
return top.document.documentElement.clientWidth;
}
},
wgw: function(wnd) {
if (top.document.compatMode == "BackCompat") {
return wnd.document.body.clientWidth;
} else {
if (top.innerWidth)
return wnd.innerWidth;
else
return wnd.document.documentElement.clientWidth;
}
},
gh: function() {
if (top.document.compatMode == "BackCompat") {
return top.document.body.clientHeight;
} else {
if (top.innerHeight)
return top.innerHeight;
else
return top.document.documentElement.clientHeight;
}
},
sl: function() {
if (top.document.compatMode == "BackCompat") {
return top.document.body.scrollLeft;
} else {
if (top.pageXOffset)
return top.pageXOffset;
else
return top.document.documentElement.scrollLeft;
}
},
st: function() {
if (top.document.compatMode == "BackCompat") {
return top.document.body.scrollTop;
} else {
if (top.pageYOffset)
return top.pageYOffset;
else
return top.document.documentElement.scrollTop;
}
},
RealVu_pv: function(i) {
mv = top.RealVu_tell("RealVuA" + i);
if (mv) {
try {
mv.re();
} catch (e) { /* */ }
}
},
RealVu_sv: function(i) {
mv = top.RealVu_tell("RealVuA" + i);
if (mv) {
try {
mv.pe();
top.RealVu_adi[i].paused = true;
} catch (e) { /* */ }
}
}
}
top.RealVu_log = {
n:1,
logWnd:null,
msg:"",
run:0,
start_time:0,
log_div:null,
init:function()
{
if( top.location.search.indexOf('realvu')>-1 )
{
now = new Date();
this.start_time = now.getTime();
this.msg = top.location+"
userAgent: " + navigator.userAgent +"
";
this.run=1;
this.write( "RealVu start." );
top.RealVu_test=true ;
if (top.location.search.indexOf('=')>-1) {
var q=top.location.href, eq=q.lastIndexOf('=') ;
var area=top.RealVu_area;
if (q.length > (eq+1))
area=q.substr(eq+1,q.length-eq) ;
if (!isNaN(area)) top.RealVu_area=Number(area) ;
if (top.RealVu_area > 100) top.RealVu_area=100 ;
else if (top.RealVu_area <60) top.RealVu_area=60 ;
}
}
},
activate:function()
{
if( this.run>0 )
{
this.log_div = top.document.createElement("div");
this.log_div.setAttribute("id", "RealVu_log_div");
this.log_div.style.zIndex = top.RealVu_getZ();
this.log_div.style.width = "320px";
this.log_div.style.height = "320px";
this.log_div.style.visibility = "visible";
this.log_div.style.padding = "2px 2px 2px 4px";
this.log_div.style.backgroundColor = "#FFFFDD";
this.log_div.style.top = "40px";
this.log_div.style.right = "10px";
this.log_div.style.border = "solid 2px #CC0033";
this.log_div.style.fontSize = "x-small";
this.log_div.style.overflow = "auto";
if (top.RealVu_ie) {
this.log_div.style.position = "absolute";
} else {
this.log_div.style.position = "fixed";
}
var b = Array();
b = top.document.getElementsByTagName("body");
if (b[0] != null) {
b[0].appendChild( this.log_div );
b[0].style.backgroundImage = "url(http://go.realvu.net/img/grid.gif)";
if (top.RealVu_ie) setInterval ( "top.document.getElementById('RealVu_log_div').style.top = (top.RealVu_viz_check.st()+40)+'px' ;", 100 );
}
try {
this.log_div.innerHTML = this.msg;
this.msg="";
}
catch(e) {
/**/
}
}
},
write:function( text ) {
if( this.run>0) {
now = new Date();
hh=""+now.getHours();
while(hh.length<2) hh='0'+hh;
mm=""+now.getMinutes();
while(mm.length<2) mm='0'+mm;
ss=""+now.getSeconds();
while(ss.length<2) ss='0'+ss;
ms="" + now.getMilliseconds();
while(ms.length<3) ms='0'+ms;
ns=this.n;
if(this.n<10) ns = ' '+ns;
if(this.n<100) ns = ' '+ns;
s = "| "+this.n++ +" | " +hh+":"+mm+":"+ss+"."+ms+" "+text+" |
";
if(this.log_div) {
this.log_div.innerHTML += this.msg+s;
this.msg="";
this.log_div.scrollTop = this.log_div.scrollHeight;
}
else {
this.msg += s;
}
}
}
}
top.move_easels = function()
{
for (var i = 0; i < top.RealVu_i; i++)
{
var adi = top.RealVu_adi[i];
if (adi != null)
{
adi.findPos();
if (adi.easel != null)
{
adi.easel.style.top = (adi.y-12) + "px";
adi.easel.style.left = (adi.x) + "px";
adi.easel.style.zIndex = top.RealVu_getZ();
}
if( top.RealVu_log.run>0 )
{
var deco = adi.decor();
if (deco != null)
{
deco.style.top = ((adi.y-2)-12) + "px";
deco.style.left = (adi.x-2) + "px";
deco.style.zIndex = top.RealVu_getZ();
}
}
}
}
}
top.set_easels = function()
{
for (var i = 0; i < top.RealVu_i; i++)
{
var adi = top.RealVu_adi[i];
if (adi != null)
{
adi.set_easel();
}
}
}
}
if( top.RealVu_ope || top.RealVu_saf ) top.RealVu_fo() ;
top.RealVu_log.init();
if (top.RealVu_test) {
msg = 'For better results, add the following code to the <head> section of your page:
<script language="javascript" type="text/javascript" src="http://go.realvu.net/head/"></script>';
top.RealVu_log.write( msg );
}
}
top.getHTTPRequestObject = function () {
var xmlHttpRequest;
/*@cc_on
@if (@_jscript_version >= 5)
try {
xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (exception1) {
try {
xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (exception2) {
xmlhttp = false;
}
}
@else
xmlhttpRequest = false;
@end @*/
if (!xmlHttpRequest && typeof XMLHttpRequest != 'undefined') {
try {
xmlHttpRequest = new XMLHttpRequest();
} catch (exception) {
xmlHttpRequest = false;
}
}
return xmlHttpRequest;
}
// Create the xml http object on the page load
//httpReq = top.getHTTPRequestObject();
/*
RealVu(R) Billboard Version 4.0
Copyright(C) 2001-2010, Rich Media Worldwide, LLC, All rights reserved.
*/
if (typeof (top.RealVu_adi) == 'undefined') {
top.RealVu_adi = new Array();
top.RealVu_ea_list = "";
top.RealVu_popul=0 ;
top.RealVuUrl = "http://go.realvu.net/";
top.RealVu_uuid = "865941252";
top.RealVu_tmp="" ;
top.RealVu_common="";
if (top.document.cookie.indexOf('RealVu')<0 && top.document.cookie.indexOf('u')<0) {
top.RealVu_updateCookie("RealVu", "u", top.RealVu_uuid);
} else {
top.RealVu_tmp = top.RealVu_getCookies("RealVu", "u") ;
}
if ( top.RealVu_tmp!="" && top.RealVu_tmp!=null) top.RealVu_uuid= top.RealVu_tmp ;
top.RealVu_na = function(i,n,k) { //
top.RealVu_adi[i].k=k ;
if (n!=0) top.RealVu_ea_list += "," + n ;
}
top.RealVu_ea = function() { //
return top.RealVu_ea_list ;
}
top.RealVu_te = function() { //
return top.RealVu_test;
}
top.RealVu_gmp = function() { //
var pw=screen.width, ph=screen.height;
if( window.innerHeight && window.scrollMaxY ) {
pw = top.innerWidth + top.scrollMaxX;
ph = top.innerHeight + top.scrollMaxY;
} else if ( top.document.body.scrollHeight > top.document.body.offsetHeight ) {
pw = top.document.body.scrollWidth;
ph = top.document.body.scrollHeight;
} else {
pw = top.document.body.offsetWidth + top.document.body.offsetLeft;
ph = top.document.body.offsetHeight + top.document.body.offsetTop;
}
var ref_url= top.location.href ;
if (ref_url==null) ref_url = "" ;
if (ref_url.indexOf('?')>-1) ref_url=ref_url.substr(0,ref_url.indexOf('?')) ;
if (ref_url!="") {
ref_url = encodeURIComponent(ref_url).toLowerCase()+"," ;
}
else {
ref_url = encodeURIComponent(ref_url).toLowerCase();
}
//++
var wnd = window.self; //
var fsize = "";
while ( wnd.frameElement )
{
if(fsize.length>0) fsize = ","+fsize;
fsize = wnd.frameElement.attributes["width"].value + "x" + wnd.frameElement.attributes["height"].value + fsize;
wnd = wnd.parent;
}
if(fsize.length>0)
{
ref_url += encodeURIComponent("@" + fsize);
}
//--
var mp = "&ip=644595568"
+ "&u="+top.RealVu_uuid
+ "&ru="+ref_url
+ "&sw=" + screen.width
+ "&sh=" + screen.height
+ "&pw=" + pw
+ "&ph=" + ph ;
if (top.RealVu_test) {
mp +="&fip=38.107.191.112" ;
top.RealVu_log.write("Page: " + mp );
}
return mp;
}
top.RealVu_av = function(n,s) { //
var mv = top.RealVu_tell( "RealVuR"+n) ;
if (s==1 || s==3 || (((s %5)== 0) && s < 60 ) ) try { mv.av();} catch(e) { top.RealVu_log.write("error on _av: "+e.message ); return ; }
if (!top.RealVu_adi[n].noad) {
mv = top.RealVu_tell( "RealVuA"+n) ;
try { mv.av();} catch(e) { top.RealVu_adi[n].noad=true; }
}
}
top.RealVu_vu = function(n) { //
var l=0 ;
if (top.RealVu_adi[n].qs=="") { //
top.RealVu_adi[n].qs = "&m"+l+"="+top.RealVu_adi[n].rend
+"&ch"+l+"="+top.RealVu_adi[n].ch
+"&cw"+l+"="+top.RealVu_adi[n].cw
+"&st"+l+"="+top.RealVu_adi[n].st
+"&sl"+l+"="+top.RealVu_adi[n].sl
+"&ax"+l+"="+top.RealVu_adi[n].x
+"&ay"+l+"="+top.RealVu_adi[n].y
+"&tr"+l+"="+top.RealVu_adi[n].rt
+"&va"+l+"="+top.RealVu_adi[n].va ;
}
var q=top.RealVu_adi[n].qs+"&s"+l+"="+top.RealVu_adi[n].sec+top.RealVu_common ;
return q;
}
top.RealVu_rv = function() { //
for( var i=0;i < top.RealVu_popul;i++ ) {
if ( ! top.RealVu_adi[i].paused ) {
mv = top.RealVu_tell( "RealVuA"+i) ;
if(mv)
{
try {
mv.re();
} catch(e) { /* */ }
}
}
}
}
top.RealVu_pp = function() { //
for( var i=0; i < top.RealVu_popul;i++ ) {
mv = top.RealVu_tell( "RealVuA"+i) ;
if(mv)
{
try {
mv.pe();
top.RealVu_adi[i].paused=true ;
if ( top.RealVu_adi[i].sec >=1) top.RealVu_adi[i].sr=true;
} catch(e) { /* */ }
}
}
}
top.RealVu_cv = function(n) { //
top.RealVu_video.up=false; top.RealVu_video.foc=false; top.RealVu_video.inv=false; top.RealVu_video.sr=false; top.RealVu_video.srt="start", top.RealVu_video.srb="";
vd=null;
if ( (vd=top.document.getElementById("RealVuvideo")) != null) {
vd.style.display="none";
}
top.RealVu_rv() ;
top.RealVu_log.write("Video closed. View time counter resumes for ads." );
top.RealVu_df() ;
}
top.RealVu_vfo = function(a) { //
mv = top.RealVu_tell( "RealVu_vid") ;
if(mv) {
try {
if (a!=1) mv.vfo(); else mv.vfv();
} catch(e) { /* */ }
}
}
top.RealVu_vbl = function(a) { //
mv = top.RealVu_tell( "RealVu_vid") ;
if(mv) {
try {
if (a!=1) mv.vbl(); else mv.vbv() ;
} catch(e) { /* */ }
}
}
top.RealVu_share = function(a) { //
location="mailto:?subject=%20Ad%21&body=%0A%0Ahttp%3A%2f%2fwww.cityads.net%2fget%2f%3Fad%3D"+a ;
}
top.RealVu_save = function(a,t) { //
u="http://www.realvu.net/ad/?"+a ;
if (top.sidebar && top.sidebar.addPanel) {top.sidebar.addPanel(t,u,""); }
else {top.external.AddFavorite(u," -- " + t); }
}
top.RealVu_vap = function(n) { //
var adi = top.RealVu_adi[n];
if (top.RealVu_common=="") top.RealVu_common=top.RealVu_gmp();
var q= adi.chw+top.RealVu_common+"&key="+adi.k ;
return q ;
}
top.RealVu_var = function (n,v,k,c) { //
if( v=='rend') {
top.RealVu_adi[n].rend=k ;
top.RealVu_adi[n].cl=c ;
var now = new Date();
top.RealVu_adi[n].rt = (now.getTime() - top.RealVu_adi[n].rq_time);
if (top.RealVu_test) {
top.RealVu_log.write("Ad Space #"+(Number(n)+1)+" ad selected, content loaded and rendered in "+(top.RealVu_adi[n].rt/1000)+" sec. Ad Rendered reported." );
top.RealVu_getElById( top,"RealVuS"+n).innerHTML=" Rendered in "+(top.RealVu_adi[n].rt/1000)+" sec" ;
}
} else {
eval("top.RealVu_adi["+n+"]."+v+"=1") ;
}
}
top.RealVu_watchVideo = function(v, i) { //
top.RealVu_video.num=i;
top.RealVu_pp() ;
var video_div;
try
{
if ((video_div = top.document.getElementById("RealVuvideo")) == null)
{
d = top.document.createElement("div");
d.setAttribute("id", "RealVuvideo" );
//b = top.document.getElementsByTagName("body");
//if (b[0] != null) b[0].appendChild(d);
top.document.body.appendChild(d);
video_div = top.document.getElementById('RealVuvideo');
}
} catch(e) { top.RealVu_log.write("Exc 777 "+e.message ); }
curClientHeight = new Number() ;
curClientHeight = top.RealVu_viz_check.gh() ;
top.RealVu_video.width = parseInt(0.8*top.RealVu_viz_check.gw() ) ;
top.RealVu_video.height = parseInt(top.RealVu_video.width * (444/610).toFixed(2));
if ((top.RealVu_video.height + 0.1*curClientHeight ) > curClientHeight- 0.1*curClientHeight )
{
top.RealVu_video.height = parseInt(0.8*curClientHeight ) ;
top.RealVu_video.width = parseInt(top.RealVu_video.height * (610/444).toFixed(2)) ;
}
top.RealVu_video.y1 = parseInt( curClientHeight/2 - top.RealVu_video.height/2) ;
top.RealVu_video.x1 = parseInt( top.RealVu_viz_check.gw()/2 - top.RealVu_video.width/2);
top.RealVu_video.x2 = top.RealVu_video.x1+top.RealVu_video.width;
top.RealVu_video.y2 = top.RealVu_video.y1+top.RealVu_video.height;
video_div.style.width = top.RealVu_video.width+"px";
video_div.style.height = top.RealVu_video.height+"px";
video_div.style.top = top.RealVu_video.y1+"px";
video_div.style.left = top.RealVu_video.x1+"px";
if (top.RealVu_ie) video_div.style.position = "absolute"; else video_div.style.position = "fixed";
video_div.style.zIndex = top.RealVu_getZ()+1 ;
video_div.style.display = "block";
video_div.innerHTML = "" ;
if (top.RealVu_ie) setInterval ( "top.document.getElementById('RealVuvideo').style.top = (top.RealVu_viz_check.st() + top.RealVu_video.y1)+'px' ;", 100 ); //
top.RealVu_video.up = true ;
top.focus() ;
}
top.RealVu_doc = function(n) { //
var doc = null;
var f=top.RealVu_getElById( top, "RealVuIF"+n);
if (f.contentDocument) doc = f.contentDocument; // DOM
else if (f.contentWindow) doc = f.contentWindow.document; // IE
else if (f.document) doc = f.document;
return doc ;
}
top.RealVu_rd_tag = function(n) { //
var mv = top.RealVu_tell( "RealVuR"+n) ;
if(mv) { try { mv.rd();} catch(e) { top.RealVu_log.write("error on _rd "+e.message ); } } ;
}
top.RealVu_tag = function(t,n,m,f) { //
var a=top.RealVu_getElById( top, "RealVuM"+n);
var b=top.RealVu_getElById( top, "RealVuT"+n);
if (b!=null) {
var p=top.RealVu_adi[n];
var w=1, h=1;
if (m==0) {
top.RealVu_adi[n].noad = true ;
if (a!=null) a.style.display="none";
p.pad_b=parseInt(p.height*0.05); w=p.width; h=p.ah;
b.style.width=w+"px" ;
b.style.height=h+"px" ;
}
if (f==1 || p.tt==2) {
if (p.tt==2) { //QQQ
top.RealVu_adi[n].displayMessageBody( );
top.RealVu_rd_tag(n) ; // move it to callback
}
else {
b.innerHTML = '' ;
var f=top.RealVu_getElById( top,"RealVuIF"+n);
var ad='Ad'
+ ''+t.replace(/(\s)+/gi, " ").replace(/' | '/gi,"'").replace(/'