 /* RealVu(R) Version 7.2 Copyright(C) 2001-2012, Rich Media Worldwide, LLC, All rights reserved. */

function RealVu_cpm(){var s=document.createElement('script');s.async=true;s.src='http://www.cityads.net/cpm/?&rnd='+Math.random();var x=document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s, x);}RealVu_cpm();RealVu_iframe=false;//
top2=window;try {var loc=top.document;if((typeof(loc)!='unknown')&&(typeof(loc)!='undefined')){top2=top;}else {RealVu_iframe=true;}} catch(e){RealVu_iframe=true;top2=window;};
RealVu_pl=function(i,t, sec){top2.RealVu_log.write("<span style='background-color:Plum'>FL"+i+":</span> "+t);};
RealVu_gv=function(i,k,sw,sh,v,d,x,y,w,h,r,p,de,lv,loc,uh,vqs){top2.RealVu_adi[i].v=vqs;top2.RealVu_tell(top2.RealVu_adi[i].wnd,"RealVuA"+i).gv(i,k,sw,sh,v,d,x,y,w,h,r,p,de,lv,loc,uh);}
RealVu_bv=function(i){top2.RealVu_tell(top2.RealVu_adi[i].wnd,"RealVuA"+i).bv();}
RealVu_uv=function(i){top2.RealVu_tell(top2.RealVu_adi[i].wnd,"RealVuA"+i).uv();}
RealVu_na=function(i,c,v){top2.RealVu_o++;if(c!=0)top2.RealVu_ea_list+=","+c;if(v!="")top2.RealVu_adi[i].v=v;};
top2.RealVu_pp=function(n){for(var i=0; i < top2.RealVu_i;i++){try {if(n==null || n!=i){if(top2.RealVu_adi[i].v!="" && top2.RealVu_adi[i].rend){top2.RealVu_tell(top2.RealVu_adi[i].wnd,"RealVuA"+i).sv();top2.RealVu_adi[i].vs=true;}}if(n==i)top2.RealVu_adi[i].vs=false;} catch(e){ /* */ }
}}
RealVu_var=function(n,v,c){var adi=top2.RealVu_adi[n];if(v=='rend'){adi.rend=true;adi.cl=c;var now=new Date();adi.rt=(now.getTime()- adi.rq_time);if(top2.RealVu_test){top2.RealVu_log.write("Ad Space #"+(Number(n)+1)+" in "+(adi.rt/1000)+" sec Ad Rendered reported.");//
top2.document.getElementById("RealVuS"+n).innerHTML="&nbsp; Rendered in "+(adi.rt/1000)+" sec";}} else {eval("adi."+v+"=1");}};
RealVu_tag=function(t,n,m,f){var a=document.getElementById("RealVuM"+n), b=document.getElementById("RealVuT"+n), p=top2.RealVu_adi[n];if(b!=null){var w=1, h=1;if(m==0){top2.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(p.tt==1 && t!=null){t=t.replace(/{clickurl}/g,'');t=t.replace(/mf_locationURL/g, encodeURIComponent(top2.location.href)+"&realvu_i="+p.num);}var ift='<iframe id="RealVuIF'+n+'" name="RealVuIF'+n+'" id="RealVuIF'+n+'" width="'+w+'" height="'+h+'" frameborder="0" scrolling="no"></iframe>';if(f==1){b.innerHTML=ift;var f=document.getElementById("RealVuIF"+n);var ad='<html><head><title>Ad</title>'
+'</head><body leftmargin="0" topmargin="0">'+t.replace(/(\s)+/gi, " ").replace(/' | '/gi,"'").replace(/'<script/gi,"'<scr'+'ipt").replace(/script>'/gi,"scr'+'ipt>'");if(top2.RealVu_ie){ad+='<scr'+'ipt type="text/javascript" src="'+top2.RealVuUrl+'js.js" onreadystatechange="startTimer();"></scr'+'ipt>'
+'<scr'+'ipt type="text/javascript">function startTimer(){if(event.srcElement.readyState=="complete"){window.setTimeout("top2.RealVu_doc('+n+').close(); '
+'if('+m+'==0)top2.RealVu_rd_tag('+n+');", 1000);}}</scr'+'ipt>';}ad+='</body></html>';var doc=top2.RealVu_doc(n);doc.open("text/html","replace");doc.write(ad);if(!top2.RealVu_ie){window.setTimeout("top2.RealVu_doc("+n+").close();", 1000); }
} else {b.innerHTML=t;}b.style.display='block';if(m==0)top2.RealVu_rd_tag(n);}};
RealVu_share=function(a){location="mailto:?subject=%20Ad%21&body=%0A%0Ahttp%3A%2f%2fwww.cityads.net%2fget%2f%3Fad%3D"+a;};
RealVu_save=function(a,t){u="http://www.realvu.net/ad/?"+a;
if(top2.sidebar && top2.sidebar.addPanel){top2.sidebar.addPanel(t,u,""); }
else {top2.external.AddFavorite(u," -- "+t); }
};
top2.RealVu_rv=function(n){for(var i=0; i < top2.RealVu_i;i++){try {if(top2.RealVu_adi[i].v!="" && top2.RealVu_adi[i].rend){top2.RealVu_tell(top2.RealVu_adi[i].wnd,"RealVuA"+i).pv();top2.RealVu_adi[i].vs=false;}} catch(e){ /* */ }
}};
top2.RealVu_getElById=function(wnd, idf){var o1=null;try {wnd.document.getElementById(idf);}catch(e){};if(o1 !=null){return o1;}//
for(var i=0; i < wnd.frames.length; i++){o1=top2.RealVu_getElById(wnd.frames[i], idf);if(o1 !=null){return o1;}}return null;};
findPosG=function(adi){var ad=adi;var q=new Object();q.x=0;q.y=0;var xp=0, yp=0;var wnd=window.self;try {while(ad !=null && typeof(ad)!='undefined'){if(ad.tagName.toLowerCase()=='iframe'){var adbw=top2.RealVu_gbw(ad);xp+=adbw.left;yp+=adbw.top;}xp+=ad.offsetLeft;yp+=ad.offsetTop;var op=ad.offsetParent;var pn=ad.parentNode;var bw=null;while(op !=null && typeof(op)!='undefined'){xp+=op.offsetLeft;yp+=op.offsetTop;var ptn=op.tagName.toLowerCase();if((top2.RealVu_ie && ptn !="table")||(top2.RealVu_ff_n && ptn=="td")|| top2.RealVu_saf){bw=top2.RealVu_gbw(op);xp+=bw.left;yp+=bw.top;}if(ad.tagName.toLowerCase()!='iframe' && op !=document.body && op !=document.documentElement){xp -=op.scrollLeft;yp -=op.scrollTop;}if(!top2.RealVu_ie){while(op !=pn && pn !=null){xp -=pn.scrollLeft;yp -=pn.scrollTop;if(top2.RealVu_ff_o){bw=top2.RealVu_gbw(pn);xp+=bw.left;yp+=bw.top;}pn=pn.parentNode;}}pn=pn.parentNode;op=op.offsetParent;}ad=wnd.frameElement;wnd=wnd.parent;}}catch(e){//top2.RealVu_log.write("Exception 070: "+e.message+"xp="+xp+" yp="+yp);
}q.x=xp;q.y=yp;return q;};if(typeof(top2.RealVu_log)=='undefined'){top2.RealVu_log={n:1,logWnd:null,msg:"",run:0,start_time:0,log_div:null,
init:function(){if(this.log_div!=null)return;if(top2.location.search.indexOf('realvu_debug')>-1){now=new Date();this.start_time=now.getTime();this.msg=top2.location+"<div style='font-size:10px;'>userAgent: "+navigator.userAgent+"</div>";this.run=1;this.write("RealVu Start");top2.RealVu_test=true;if(top2.location.search.indexOf('=')>-1){var q=top2.location.href, eq=q.lastIndexOf('=');var area=top2.RealVu_area;if(q.length >(eq+1))area=q.substr(eq+1,q.length-eq);if(!isNaN(area))top2.RealVu_area=Number(area);if(top2.RealVu_area > 100)top2.RealVu_area=100;else if(top2.RealVu_area <60)top2.RealVu_area=60;}}},
activate:function(){if(this.log_div!=null)return;if(this.run>0){this.log_div=top2.document.createElement("div");var ds=this.log_div.style;this.log_div.setAttribute("id", "RealVu_log_div");ds.zIndex=top2.RealVu_getZ();ds.width="320px";ds.height="620px";ds.visibility="visible";ds.padding="2px 2px 2px 4px";ds.backgroundColor="#FFFFFF";ds.top="10px";ds.right="10px";ds.border="solid 4px #993366";ds.fontSize="9pt";ds.fontFamily="Helvetica,sans-serif";ds.overflow="auto";if(top2.RealVu_ie){ds.position="absolute";} else {ds.position="fixed";}var b=Array();b=top2.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(top2.RealVu_ie)setInterval("top2.document.getElementById('RealVu_log_div').style.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();var fr=""+(now.getTime()- top2.RealVu_log.start_time)%1000;while(fr.length<3)fr+="0";var dur=Math.floor((now.getTime()- top2.RealVu_log.start_time)/1000)+"."+fr;/*
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='&nbsp;'+ns;if(this.n<100)ns='&nbsp;'+ns;*/
//s="<table width='100%' style='font-size:x-small; border-top:solid 1px silver;' ><tr valign='top'><td width='12'>"+this.n+++"</td><td >"
//+hh+":"+mm+":"+ss+"."+ms+" "+text+"</td></tr></table>";
s="<div style='font-size:x-small; border-top:solid 1px silver;' >"+dur+" "+text+"</div>";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;}}},
reset:function(){if(this.log_div){this.log_div.innerHTML="";}this.msg="";}}}// end of Global functions
// test if there is missed script tag if is put the missed script here
if(typeof(top2.RealVu_focus)=='undefined'){if(typeof(RealVu_once)=='undefined'){RealVu_once=true;top2.RealVu_focus=true;top2.RealVu_mouse=true;top2.RealVu_i=0;top2.RealVu_o=1;top2.RealVu_ow=0;top2.RealVu_vnum=0;top2.RealVu_test=false;top2.RealVu_ff=navigator.userAgent.match(/Firefox/i);top2.RealVu_ff_o=(top2.RealVu_ff &&(navigator.userAgent.match(/Firefox\/2./i)|| navigator.userAgent.match(/Firefox\/1./i)));top2.RealVu_ff_n=(top2.RealVu_ff && !top2.RealVu_ff_o);top2.RealVu_ie=navigator.appVersion.match(/MSIE/);top2.RealVu_saf=(navigator.userAgent.match(/Safari/)&& !navigator.userAgent.match(/Chrome/));top2.RealVu_chrome=(navigator.userAgent.match(/Chrome/));top2.RealVu_ope=window.opera;top2.RealVu_fowner=null;top2.RealVu_insider=false;top2.RealVu_area=99;top2.RealVu_ie_old=false;if(top2.RealVu_ie && !navigator.appVersion.match(/MSIE 8/))top2.RealVu_ie_old=true;
top2.RealVu_getZ=function(){var z=0, j=0, e=Array();e=top2.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;};
top2.RealVu_msover=function(){if(top2.RealVu_mouse){top2.RealVu_focus=true;top2.RealVu_mouse=false;top2.RealVu_removeEvent(top2, "mousemove", top2.RealVu_msover);top2.RealVu_fo();}};
top2.RealVu_addEvent=function(elem, evtType, func){if(elem){if(elem.addEventListener){elem.addEventListener(evtType, func, true);} else if(elem.attachEvent){elem.attachEvent("on"+evtType, func);} else {elem["on"+evtType]=func;}}};
top2.RealVu_removeEvent=function(elem, evtType, func){if(elem){if(elem.removeEventListener){elem.removeEventListener(evtType, func, false);} else if(elem.detachEvent){elem.detachEvent("on"+evtType, func);} else {elem["on"+evtType]=func;}}};
top2.RealVu_bl_insider=function(){top2.RealVu_removeEvent(top2.RealVu_fowner, "blur", top2.RealVu_bl_insider);if(top2.RealVu_fowner==top2.document.activeElement){top2.RealVu_insider=false;top2.RealVu_bl();}else
{try {var ae=top2.document.activeElement;if(typeof(ae)!='undefined'){top2.RealVu_insider=true;top2.RealVu_focus=true;top2.RealVu_fowner=ae;top2.RealVu_addEvent(top2.RealVu_fowner, "blur", top2.RealVu_bl_insider);}}catch(ex1){}
}};
top2.RealVu_bl=function(){if(top2.RealVu_focus &&(!top2.RealVu_ie || !top2.RealVu_insider)){top2.RealVu_focus=false;var tp=""; if(top2.RealVu_vnum>0)tp=" View Time counter paused.";if(top2.RealVu_test)top2.RealVu_log.write("<span style='background-color:silver;'>Page out of focus.</span>"+tp+" RealVu idle");}};
top2.RealVu_fo=function(){if(!top2.RealVu_focus){top2.RealVu_focus=true;var tp=""; if(top2.RealVu_vnum>0)tp=" View Time counter resumes.";if(top2.RealVu_test)top2.RealVu_log.write("<span style='background-color:LightSteelBlue ;'>Page in focus.</span>"+tp+" RealVu resume");}if(top2.RealVu_ie){try {var ae=top2.document.activeElement;if(typeof(ae)!='undefined'){top2.RealVu_insider=true;top2.RealVu_focus=true;top2.RealVu_fowner=ae;top2.RealVu_addEvent(top2.RealVu_fowner, "blur", top2.RealVu_bl_insider);}}catch(ex1){}
}};
top2.RealVu_df=function(){top2.focus(); top2.RealVu_fo();};
top2.RealVu_correlator_onload=function(){if(top2.RealVu_test){var now=new Date(), dur=(now.getTime()- top2.RealVu_log.start_time)/1000;top2.RealVu_log.write("Page loaded in "+dur+" sec.");}top2.RealVu_correlator_run();};top2.RealVu_addEvent(top2, "blur", top2.RealVu_bl);top2.RealVu_addEvent(top2, "focus", top2.RealVu_fo);top2.RealVu_addEvent(top2, "scroll", top2.RealVu_fo);top2.RealVu_addEvent(top2, "load", top2.RealVu_correlator_onload);//
if(!top2.RealVu_focus && !top2.RealVu_ie)top2.RealVu_addEvent(top2, "mousemove", top2.RealVu_msover);//if(top2.location.search.indexOf('demo')<0)top2.RealVu_fo();

top2.RealVu_MouseDown=function(e){var x=RealVu_viz_check.sl()+e.clientX;var y=RealVu_viz_check.st()+e.clientY;var ty=0;for(var i=0; i < top2.RealVu_i; i++){var adi=top2.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((x1< x)&&(x< x2)&&(y1< y)&&(y< y2)){adi.cl=1;if(top2.RealVu_test)top2.RealVu_log.write("Count click at Ad #"+(i+1)+" x="+x+" y="+y);var mv=top2.RealVu_tell(adi.wnd,"RealVuR"+i);if(mv){try {mv.cl();}
catch(e1){if(top2.RealVu_test)top2.RealVu_log.write("Exception "+e1.message);}}break;}}}};top2.RealVu_addEvent(top2.document, "mousedown", top2.RealVu_MouseDown);
function RealVu_check_over(r){var s_debug="";var ovr=false;var divs=document.body.getElementsByTagName('div');for(var i=0; i < divs.length; i++){var dv=divs[i];//if(dv.id.indexOf("submenu_")==-1)continue;
if(dv.id.indexOf("RealVu")>-1)continue;//if(!(dv.style.position=="absolute" || dv.style.position=="relative" || dv.style.position=="fixed"))continue;
var w=findPosG(dv);var q=top2.findWH(dv);if(w!=null && typeof(w)!='undefined'){w.x2=w.x+q.w;w.y2=w.y+q.h;w.display=dv.style.display;if(dv.currentStyle){w.zIndex=parseInt(dv.currentStyle["zIndex"]);} else if(window.getComputedStyle){w.zIndex=parseInt(document.defaultView.getComputedStyle(dv,null).getPropertyValue("z-index"));}if((w.x2 >=r.x1)&&(w.y2 >=r.y1)&&(w.x <=r.x2)&&(w.y <=r.y2)/*&&(w.display=='block')*/){//overlapped
if((!isNaN(r.zIndex)&& !isNaN(w.zIndex)&&(w.zIndex>=r.zIndex))||
(isNaN(r.zIndex)&& !isNaN(w.zIndex))&&(w.zIndex>0)){ovr=true;s_debug+="CHECK "+i+" "+dv.id+" x="+w.x+",y="+w.y+" ";s_debug+="width="+q.w+" height="+q.h+";<br /> ";s_debug+=" zIndex="+w.zIndex;s_debug+=" display="+dv.style.display;s_debug+=" ovr="+ovr+"<br />";//dv.style.border="dashed 2px limegreen";
top2.RealVu_log.reset();top2.RealVu_log.write(s_debug);break;}}}}return ovr;};
top2.move_decor=function(i){var adi=top2.RealVu_adi[i];//
if(adi !=null){adi.findPos();adi.decor();adi.deco.style.top=(adi.y-12)+"px";adi.deco.style.left=adi.x+"px";adi.deco.style.zIndex=top2.RealVu_getZ();adi.deco2.style.top=(Number(adi.y)+Number(adi.height)-5)+"px";adi.deco2.style.left=adi.x+"px";adi.deco2.style.zIndex=top2.RealVu_getZ();}//
};
top2.call_decor=function(){for(var i=0; i < top2.RealVu_i; i++)top2.move_decor(i,null);};
top2.move_easels=function(){for(var i=0; i < top2.RealVu_i; i++){var adi=top2.RealVu_adi[i];if(adi !=null){if(top2.RealVu_log.run>0)top2.move_decor(i);}}};
top2.init_decors=function(){top2.RealVu_addEvent(top2, "resize", top2.call_decor);for(var i=0; i < top2.RealVu_i; i++){var adi=top2.RealVu_adi[i];if(adi !=null){adi.init_decor();}}};
top2.RealVu_gbw=function(e){var w=new Object();w.left=0; w.top=0; w.right=0; w.bottom=0;if(window.getComputedStyle){var s=window.getComputedStyle(e, null);w.left=parseInt(s.borderLeftWidth.slice(0, -2));w.top=parseInt(s.borderTopWidth.slice(0, -2));w.right=parseInt(s.borderRightWidth.slice(0, -2));w.bottom=parseInt(s.borderBottomWidth.slice(0, -2));}else {w.left=top2.RealVu_pbw(e.style.borderLeftWidth);w.top=top2.RealVu_pbw(e.style.borderTopWidth);w.right=top2.RealVu_pbw(e.style.borderRightWidth);w.bottom=top2.RealVu_pbw(e.style.borderBottomWidth);}return w;};
top2.RealVu_pbw=function(w){var bw=0;if(typeof(w)=="string" && w !=null && w !=""){p=w.indexOf("px");if(p >=0){bw=parseInt(w.substring(0, p));}else {bw=1;}}return bw;};
top2.findWH=function(adi){var ad=adi;var q=new Object();q.w=0;q.h=0;var wnd=window.self;try {q.w=ad.offsetWidth;q.h=ad.offsetHeight;}catch(e){//top2.RealVu_log.write("Exception 070A: "+e.message);
}return q;}};if(top2.RealVu_ope || top2.RealVu_saf)top2.RealVu_fo();//top2.RealVu_log.init();

}if(typeof(top2.RealVu_adi)=='undefined'){top2.RealVu_adi=new Array();top2.RealVu_ea_list="";top2.RealVuUrl="http://www.cityads.net/";
top2.RealVu_tmp="";top2.RealVu_ib="19";if(("c"=="c1")||(""!="" &&(top2.location.search.indexOf('=')<0)))top2.RealVu_area=100;
top2.RealVu_tib=function(i,a){try { top2.RealVu_tell(top2.RealVu_adi[i].wnd, "RealVuA"+i).ib(a); } catch(e){ /* */ }
};
top2.RealVu_doc=function(n){var doc=null;var f=document.getElementById("RealVuIF"+n);if(f.contentDocument)doc=f.contentDocument;else if(f.contentWindow)doc=f.contentWindow.document;else if(f.document)doc=f.document;return doc;};
top2.RealVu_rd_tag=function(n){try { top2.RealVu_tell(top2.RealVu_adi[n].wnd, "RealVuA"+n).rd();} catch(e){ if(top2.RealVu_test){top2.RealVu_log.write("error on _rd "+e.message);} };};
function RealVu_track_macro(n){var s1=top2.RealVu_adi[n].cmac;if(s1!=""){document.getElementById("RealVuClM"+n).src=s1;top2.RealVu_log.write('Ad#'+(n+1)+'click macros\n'+s1);}var s2=top2.RealVu_adi[n].cmac2;if(s2!=""){document.getElementById("RealVuClM"+n).src=s2;top2.RealVu_log.write('Ad#'+(n+1)+'click macros\n'+s2);}};
function RealVu_track_view(n){var s1=top2.RealVu_adi[n].vmac;document.getElementById("RealVuClM"+n).src=s1;top2.RealVu_log.write('Ad#'+(n+1)+'view macros\n'+s1);};
function RealVu_navigate(url){window.open(url);};
function RealVu_js(no_flash){var rq="";if(RealVu_iframe==true)rq+="&i=1";if(!top2.RealVu_focus)rq+="&s=1";if(no_flash==1)rq+="&f=1";if(rq!=""){var h=document.getElementsByTagName('head')[0];var s2=document.createElement('script');s2.type='text/javascript';s2.src='http://www.cityads.net/fsdc/?key=&a=29'+rq;
h.appendChild(s2);//top2.RealVu_log.write("isf:"+s2.src);
}};}top2.RealVu_adi[top2.RealVu_i]={num:top2.RealVu_i,vmac:"",cmac:"",cmac2:"",wnd:null,deco:null,deco2:null,cl:0,ovr:false,och:false,o:0,chw:"",rend:false,t:0,sec:0,v:"",uf:false,x:0,y:0,width:0,height:0,dw:1,ah:1,rw:0,rh:0,pad_l:0,pad_t:0,pad_r:0,pad_b:0,flashArgs:"",markwords:"",rq_time:0,rt:0,noad:false,tt:5,cs:"",k:"",ready:null,vp:false,vs:false,err_cnt:20,
mvReady:function(){try {var p=top2.RealVu_tell(this.wnd, "RealVuA"+this.num);var r=p.la;if(typeof(r)!='undefined' /*&& top2.RealVu_o==this.o*/){top2.RealVu_log.write("Ad "+(this.num+1)+" mvReady: flash is ready"
+" r="+typeof(r));clearInterval(this.ready);this.load();RealVu_js(0);}else if(this.err_cnt-- < 0){clearInterval(this.ready);top2.RealVu_log.write("Ad "+(this.num+1)+" mvReady: <span style='background-color:orange'>'Flash is not available</span>"
+" p="+typeof(p)+" r="+typeof(r));RealVu_js(1);}}catch(e){if(this.err_cnt-- < 0){clearInterval(this.ready);top2.RealVu_log.write("Ad "+(this.num+1)+" mvReady: <span style='background-color:orange'>'Exception</span> "+e.message);}
}},
populate:function(){top2.RealVu_log.write("Ad Space #"+(this.num+1)+" populate");this.ready=setInterval("top2.RealVu_adi["+this.num+"].mvReady();", 100);},
load:function(){var t=new Date(); this.rq_time=t.getTime();try {if(this.tt=="5")top2.RealVu_tell(this.wnd, "RealVuA"+this.num).setSize(this.width, this.height);top2.RealVu_tell(this.wnd, "RealVuA"+this.num).la(top2.RealVu_ea_list, this.chw, this.RealVu_gmp(), top2.RealVu_test);//if(top2.RealVu_test)top2.RealVu_log.write("Ad Space #"+(this.num+1)+" ad request sent.");
} catch(e){ /* */top2.RealVu_log.write("Ad "+(this.num+1)+" load: "+e);}
//if(this.tt=="5")top2.RealVu_log.write("do247: "+this.do247());
},
RealVu_gmp:function(){var pw=screen.width, ph=screen.height;if(window.innerHeight && window.scrollMaxY){pw=top2.innerWidth+top2.scrollMaxX;ph=top2.innerHeight+top2.scrollMaxY;} else if(top2.document.body.scrollHeight > top2.document.body.offsetHeight){pw=top2.document.body.scrollWidth;ph=top2.document.body.scrollHeight;} else {pw=top2.document.body.offsetWidth+top2.document.body.offsetLeft;ph=top2.document.body.offsetHeight+top2.document.body.offsetTop;}var ref_url=top2.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.indexOf('#')>-1)ref_url=ref_url.substr(0,ref_url.indexOf('#'));if(ref_url.indexOf('@')>-1)ref_url=ref_url.substr(0,ref_url.indexOf('@'));if(ref_url.length >499)ref_url=ref_url.substr(0, 499);if(ref_url!=""){ref_url=encodeURIComponent(ref_url)+",";}else {ref_url=encodeURIComponent(ref_url);}//++
var wnd=window.self;var fsize="";try {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);}}catch(e){top2.RealVu_log.write("Exception in top2.RealVu_gmp:"+e);}//--
var mp="&ip=0"
+"&ru="+ref_url
+"&sw="+screen.width
+"&sh="+screen.height
+"&pw="+pw
+"&ph="+ph;if(top2.RealVu_test){mp+="&fip=";//top2.RealVu_log.write("Page: "+mp);
}return mp;},
do247:function(){var q=null;
//this.tree();
if(q==null){var a=null;
var w=document.getElementById("RealVuM"+this.num);
var w0=w;var p=w;while(p !=null){p=w0;
while((p.previousSibling)!=null){p=p.previousSibling;
var q=this.find_down(p);if(q!=null){
break;}}if(q==null){
p=w0;while((p.nextSibling)!=null){p=p.nextSibling;
var q=this.find_down(p);if(q!=null){
break;}}}if(q!=null)break;if((w0=w0.parentNode)==null)break;
if(typeof(w0)=="undefined")break;}//
}if(q!=null &&(document.embeds.length > 0)&& !top2.RealVu_ie){for(var i=0; i < document.embeds.length; i++){try {var pe=document.embeds[i];if(pe.name==q.id){q=pe;break;}}catch(e){ }
}}return q;},//

find_down:function(a){var c=null;if(a.tagName=='OBJECT' || a.tagName=='IMG'|| a.tagName=='IFRAME' || a.tagName=='EMBED')c=a;else if(a.hasChildNodes()){var b=a.firstChild;while(b!=null){if(this.find_down(b)!=null){c=b;break;}b=b.nextSibling;}}return c;},
write_placeholder:function(){this.wnd=window.self;if(this.tt==1){this.pad_t=0;this.pad_b=18;} else {this.pad_t=0;}this.flashArgs="go=www.cityads.net"
+"&key="
+"&ip=0"
+"&num="+this.num
+"&w="+this.width+"&h="+this.height
+"&tt="+this.tt
+"&frm="+RealVu_iframe
+"&kw="+this.markwords
+""+""+""+"&nl=2"+""
+""+""
+"&clm=0"
+"&vlm=0"
+""
+"&hu="+escape(window.location)+"&is_ie="+navigator.appVersion.match(/MSIE/);if(top2.RealVu_test && top2.RealVu_log){top2.RealVu_log.write("Ad Space #"+(this.num+1)+" taken w="+this.width+" h="+this.height);}//else
{if(this.tt!=1){this.rw=1; this.rh=1;}
}var m=''
+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
+' width="'+(this.rw)+'" height="'+(this.rh)+'" id="RealVuA'+this.num+'">'
+'<param name="movie" value="'+top2.RealVuUrl+'ad.swf" />'
+'<param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" />'
+'<param name="flashvars" value="'+this.flashArgs+'" />'
+'<embed src="'+top2.RealVuUrl+'ad.swf" quality="high" wmode="transparent" allowfullscreen="true" width="'+(this.rw)+'" height="'+(this.rh)+'" id="RealVuA'+this.num+'" name="RealVuA'+this.num+'" allowscriptaccess="always"'
+' flashvars="'+this.flashArgs+'" type="application/x-shockwave-flash" /></object>';if(""!="")m+='<div id="RealVuL'+this.num+'" style="width:13px;height:10px;padding:0;position:absolute;display:none;"><img src="'+top2.RealVuUrl+'/img/chk.gif" border="0" width="13" height="10"></div>';if(0> 0){m+='<img id="RealVuClM'+this.num+'" src="" border="0" width="1" height="1">';}var ad_div='';// if(this.rw > 1)ad_div+='<div style="width:100%;padding:0;" align="center">';
ad_div+='<div id="RealVuM'+this.num+'" style="width:'+this.rw+'px;height:'+this.rh+'px;padding:0;">'+m+'</div>';// if(this.rw > 1)ad_div+='</div>';
if(this.tt!=5){ad_div='<div style="width:100%;padding:0;" align="center">'+ad_div+'</div>';}// custom impression tracking
if(0>0){ad_div+='<div id="RealVuVt'+this.num+'" style="width:1px;height:1px;padding:0;display:none;">'
+'</div>';}//
if(document.readyState=="complete" ||(document.readyState=="interactive" &&(navigator.appVersion.match(/MSIE/)==null))){var dv=document.createElement('div');dv.innerHTML=ad_div;document.body.appendChild(dv);}else
{document.write(ad_div);}if(this.tt==5){//this.populate();
}},
init_decor:function(){top2.move_decor(this.num);var s1="Ad Space #"+(this.num+1)+" set x="+this.x+" y="+this.y+" w="+this.width+" h="+this.height+" tt="+this.tt;if(this.tt=="5"){var a=this.do247();s1+=" target="+a;if(a!=null)s1+=" id="+a.id;}top2.RealVu_log.write(s1);},
decor:function(){if(this.deco==null){var dash="solid";var col='F41E00'; if(this.tt==5){col='0033CC';dash='dashed';}
this.deco=top2.document.createElement("div");this.deco.id='RealVuD'+this.num;var ds1=this.deco.style;ds1.padding="0px";ds1.margin="0px";ds1.position="absolute";ds1.lineHeight="normal";ds1.align="left";this.deco.innerHTML='<span style="background-color:#'+col+';color:#FFFFFF;height:12px; font-size:9px; font-family:Arial;" align="center">&nbsp;'+(this.num+1)+'&nbsp;</span>'
+'<span id="RealVuS'+this.num+'" style="height:12px; font-size:9px; font-family:Arial;"></span>'
+'<div id="RealVuSh'+this.num+'" style="height:2'+/*(this.height-1)+*/'px;width:'+(this.width-0)+'px;border-top:#'+col+' '+dash+' 6px;">&nbsp;</div>';this.deco2=top2.document.createElement("div");this.deco2.id='RealVuDD'+this.num;var ds2=this.deco2.style;ds2.lineHeight="normal";this.deco2.style.padding="0px";ds2.margin="0px";ds2.position="absolute";ds2.align="left";ds2.borderTop=dash+" 6px #"+col;ds2.width=(this.width-0)+"px";ds2.height=5;if(top2.location.search.indexOf('realvu_debug')>-1){top2.document.body.appendChild(this.deco);top2.document.body.appendChild(this.deco2);}}return this.deco;},
findPos:function(){var s1=document.getElementById("RealVuM"+this.num);var a=null;if(this.tt=="5"){var a=this.do247();if(a !=null){s1=a;var w1,h1;if(window.getComputedStyle){var s=window.getComputedStyle(a, null);w1=parseInt(s.width.slice(0, -2));h1=parseInt(s.height.slice(0, -2));}else {w1=a.offsetWidth;h1=a.offsetHeight;}if(!(isNaN(w1))&&(!isNaN(h1))&&(this.width!=w1 || this.height!=h1)){this.width=w1;this.height=h1;try {top2.RealVu_tell(this.wnd,"RealVuA"+this.num).setSize(w1,h1);}catch(e){}
top2.RealVu_log.write("findPos w="+w1+" h="+h1);}}}var q=findPosG(s1);this.x=q.x;this.y=q.y;//top2.RealVu_log.write("a="+a);
if((this.tt=="5")&&(a==null)){this.y -=Number(this.height);}}}
top2.RealVu_tell=function(wnd, mv){if(wnd.document[mv]){return wnd.document[mv];}if(!top2.RealVu_ie){if(wnd.document.embeds && wnd.document.embeds[mv])return wnd.document.embeds[mv];}else {return wnd.document.getElementById(mv);}};RealVu_viz_check={xs1: 0,ys1: 0,xs2: 1000,ys2: 800,curtop: 0,curleft: 0,lv: false,wl: 0,wt: 0,wb: 5,wn: 30,
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(top2.screenTop){this.wl=top2.screenLeft;this.wt=top2.screenTop;} else if(window.screenX){this.wl=window.screenX;this.wt=window.screenY;}if(top2.RealVu_ff){this.wn=170; this.wb=10;} else if(top2.RealVu_chrome){this.wn=130;} else if(top2.RealVu_saf){this.wn=120; this.wb=10;}for(var i=0; i < top2.RealVu_i; i++){var adi=top2.RealVu_adi[i];if(adi !=null){if(!adi.ovr)adi.findPos();var x1=adi.x, y1=adi.y, x2=(x1+adi.width), y2=(y1+adi.height), pad_rend=200;if(!adi.och &&(top2.RealVu_focus || adi.tt==5)){if(!adi.ovr)adi.findPos();x1=adi.x; y1=adi.y; x2=(x1+adi.width); y2=(y1+adi.height);////
if((adi.tt==5)||((x2 >=(this.xs1 - pad_rend))&&(y2 >=(this.ys1 - pad_rend))&&(x1 <=(this.xs2+pad_rend))&&(y1 <=(this.ys2+pad_rend)))){adi.och=true;////
if(adi.tt !=5){for(var z=0; z <(top2.RealVu_i); z++){var adz=top2.RealVu_adi[z];if(adz && z !=i && !adz.ovr && adz.tt !=5){if(adz.x==0)adz.findPos();if((adz.x < x2)&&((adz.x+adz.width)> x1)&&(adz.y < y2)&&((adz.y+adz.height)> y1)){adi.ovr=true;if(top2.RealVu_test)top2.RealVu_log.write("<span style='color:#FF0000;'>Error: Ad Space #"+(z+1)+" "+adz.x+", "+(adz.x+adz.width)+" overlapping Ad Space #"+(adi.num+1)+" -- "+x1+", "+x2+"</span>");}}}}if(!adi.ovr){// adi.markwords=RealVu_marksfinder.get_words();
top2.RealVu_ow++;adi.o=top2.RealVu_ow;adi.chw="&cw0="+cw+"&ch0="+ch+"&sl0="+this.xs1+"&st0="+this.ys1+"&ax0="+x1+"&ay0="+y1+"&tr0=0&va0=0";//if(adi.tt !=5)
adi.populate();//
//
}}}if(adi.rend){if(top2.RealVu_focus){var bfu=false;if(adi.uf){ adi.uf=false; bfu=true; }
var r=new Object(), overDiv=false; r.x1=x1; r.y1=y1; r.x2=x2; r.y2=y2; r.zOrder='auto';if(top2.RealVu_test && '1' !='1'){overDiv=RealVu_check_over(r);if(overDiv==false)top2.RealVu_log.write("Ad #"+(i+1)+" Overlapped by another layer.");}top2.RealVu_tell(adi.wnd, "RealVuA"+i).vz(x1, x2, y1, y2
, this.xs1, this.xs2, this.ys1, this.ys2
, this.wl, this.wt, this.wb, this.wn
, screen.width, screen.height, top2.RealVu_area, cw, ch, adi.rt, bfu, adi.vp);} else {if(!adi.uf){adi.uf=true;}}}}}top2.move_easels();},//---

gw: function(){if(top2.document.compatMode=="BackCompat"){return top2.document.body.clientWidth;} else {if(top2.innerWidth)return top2.innerWidth;else
return top2.document.documentElement.clientWidth;}},
wgw: function(wnd){if(top2.document.compatMode=="BackCompat"){return wnd.document.body.clientWidth;} else {if(top2.innerWidth)return wnd.innerWidth;else
return wnd.document.documentElement.clientWidth;}},
gh: function(){if(top2.document.compatMode=="BackCompat"){return top2.document.body.clientHeight;} else {if(top2.innerHeight)return top2.innerHeight;else
return top2.document.documentElement.clientHeight;}},
sl: function(){if(top2.document.compatMode=="BackCompat"){return top2.document.body.scrollLeft;} else {if(top2.pageXOffset)return top2.pageXOffset;else
return top2.document.documentElement.scrollLeft;}},
st: function(){if(top2.document.compatMode=="BackCompat"){return top2.document.body.scrollTop;} else {if(top2.pageYOffset)return top2.pageYOffset;else
return top2.document.documentElement.scrollTop;}}};
top2.RealVu_adi[top2.RealVu_i].write_placeholder();top2.RealVu_i++;
top2.RealVu_correlator_run=function(){if(RealVu_iframe){top2.RealVu_msover();//top2.RealVu_focus=true;
}if(typeof(RealVu_viz_poll)=='undefined'){//
RealVu_viz_check.update();RealVu_viz_poll=setInterval("RealVu_viz_check.update()", 200);if(top2.RealVu_test){top2.RealVu_log.activate();top2.init_decors();top2.move_easels();var now=new Date();var dur=(now.getTime()- top2.RealVu_log.start_time)/1000;top2.RealVu_log.write("In "+dur+" sec. RealVu Correlator run.");}}};top2.RealVu_log.init();window.setTimeout(top2.RealVu_correlator_run,10);//
if(window !=top)document.close();
