
if (!HVhpjs)
{
    var HVhpjs = 1;
    ads_hv_FactorX=20;
    
    isNS4 = (document.layers) ? true : false;
    isIE4 = (document.all && !document.getElementById) ? true : false;
    isIE5 = (document.all && document.getElementById) ? true : false;
    isNS6 = (!document.all && document.getElementById) ? true : false;
    
    function ads_hv_cerrar(){
        if(isNS4){
            document.smsrealc.visibility="hidden";
        }
        else if (isNS6){
            document.getElementById("smsreal").style.visibility ="hidden";
        }
        else{
            document.all.smsreal.style.visibility = "hidden";
        }
    }
    function ads_hv_setVals() {
        // Con NS el innerHeigth esta definido
        if (isIE4 || isIE5){
            if (document.body){
                innerWidth = document.body.clientWidth;
            	innerHeight = document.body.clientHeight;
            } else{
                innerWidth = 800;
            	innerHeight= 578;	
            }
        }
        ads_hv_posX = 350;
        ads_hv_posY = 20;
        ads_hv_yanterior = 20;
        ads_hv_mover();
    }
    function ads_hv_mover(){
        var ads_hv_scrollPos = ads_hv_navDOM?self.pageYOffset:document.body.scrollTop;
        var ads_hv_posLeft = -ads_hv_posX +innerWidth + (ads_hv_navDOM?self.pageXOffset:document.body.scrollLeft);
        
        if (Math.abs(ads_hv_scrollPos-ads_hv_yanterior) > ads_hv_FactorX){
            var ads_hv_dist = 2 * parseInt( Math.abs(ads_hv_scrollPos-ads_hv_yanterior) / ads_hv_FactorX );
        } else {
            var ads_hv_dist  = 1;
        }
        
        if(ads_hv_yanterior < (ads_hv_scrollPos+ads_hv_posY)){
            ads_hv_yanterior+=ads_hv_dist;
            ads_hv_moverElemento(ads_hv_yanterior,ads_hv_posLeft);
        } else if (ads_hv_yanterior > (ads_hv_scrollPos+ads_hv_posY)){
            ads_hv_yanterior-=ads_hv_dist;
            ads_hv_moverElemento(ads_hv_yanterior,ads_hv_posLeft);
        } else if (ads_hv_yanterior == (ads_hv_scrollPos+ads_hv_posY)){
            ads_hv_moverElemento(ads_hv_yanterior,ads_hv_posLeft);
        }        
        
        setTimeout ("ads_hv_mover()",10);
    }
    function ads_hv_moverElemento(ads_hv_valTop,ads_hv_valLeft){
        if (isIE4){
            document.all["smsreal"].style.left = ads_hv_valLeft;
            document.all["smsreal"].style.top = ads_hv_valTop;
        }
        else if(isIE5){
            document.getElementById("smsreal").style.left = ads_hv_valLeft;
            document.getElementById("smsreal").style.top = ads_hv_valTop;
        }
        else if(isNS4){
            document.smsreal.left = ads_hv_valLeft;
            document.smsreal.top = ads_hv_valTop;
        }
        else if(isNS6){
            document.getElementById("smsreal").style.left = ads_hv_valLeft;
            document.getElementById("smsreal").style.top = ads_hv_valTop;
        }
    }
    function ads_hv_markMe() {
        if (screen.width >= 640 ){
        	window.onresize=ads_hv_setVals;
        	ads_hv_setVals();    	
        } 
    }
    if (isIE4 || isIE5){
    	if (document.body){
        	ads_hv_altura=document.body.clientHeight;
        	ads_hv_anchura=document.body.clientWidth;
    	}else{
            if (frames.length==0){
                ads_hv_altura=301;
                ads_hv_anchura=451;
            }else{
        	    ads_hv_altura=0;
        	    ads_hv_anchura=0;
        	}
    	}
    }
    
    if (isNS4 || isNS6){
    	ads_hv_altura=window.innerHeight;
    	ads_hv_anchura=window.innerWidth;
    }
    
    ads_hv_fecha = new Date();
    ads_hv_bust = ads_hv_fecha.getTime();
    
    if (ads_hv_altura>600 && ads_hv_anchura>900){
        if (isNS4){

    	}
    	else{
            document.write('<DIV id="smsreal" name="smsreal" style="position:absolute;visibility: visible" z-index=1000 >');
	    document.write('<script type='text/javascript'><!--
google_ad_client = 'pub-6342092412427437';
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = '120x600_as';
google_ad_channel ='';
google_color_border = 'FFFFFF';
google_color_bg = 'FFFFFF';
google_color_link = '0000FF';
google_color_url = '008000';
google_color_text = '000000';
//--></script>
<script type='text/javascript'
  src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>');
            document.write('</DIV>');
    	}
        ads_hv_navDOM = isNS4 || isNS6;
    
        var ads_hv_vr = navigator.userAgent.replace(/mac/gi,"");
        if (navigator.userAgent != ads_hv_vr)
        {window.onload=ads_hv_markMe;} // safety for Mac IE4.5
        ads_hv_markMe();
    }
}