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.SexyLingerie.visibility="hidden";
        }
        else if (isNS6){
            document.getElementById("SexyLingerie").style.visibility ="hidden";
        }
        else{
            document.all.SexyLingerie.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 = 1004;
            	innerHeight= 578;	
            }
        }
        ads_hv_posX = 610;
        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["SexyLingerie"].style.left = ads_hv_valLeft;
            document.all["SexyLingerie"].style.top = ads_hv_valTop;
        }
        else if(isIE5){
            document.getElementById("SexyLingerie").style.left = ads_hv_valLeft;
            document.getElementById("SexyLingerie").style.top = ads_hv_valTop;
        }
        else if(isNS4){
            document.SexyLingerie.left = ads_hv_valLeft;
            document.SexyLingerie.top = ads_hv_valTop;
        }
        else if(isNS6){
            document.getElementById("SexyLingerie").style.left = ads_hv_valLeft;
            document.getElementById("SexyLingerie").style.top = ads_hv_valTop;
        }
    }
    function ads_hv_markMe() {
        if (screen.width >= 610 ){
        	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=151;
                ads_hv_anchura=610;
            }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>151 && ads_hv_anchura>610){
        if (isNS4){
    		document.write('<LAYER name="SexyLingerie"  POSITION=ABSOLUTE z-index=1000>');
    		document.write('<img name="http://www.lenceria-erotica.com/imagenes/69sexylingerie_eng.gif" border=0 usemap="#_HvMap_">');
            document.write('<map name=\"_HvMap_\"><area shape=\"rect\" coords="590,0,610,20" href=\"#\" onMouseOver=\"javascript:ads_hv_cerrar()\" alt="Close" target="_self"><area shape=\"rect\" coords=\"0,0,590,20\" href=\"http://www.lenceria-erotica.com/catalog/index.php?cPath=21&sort=2a&language=en\" alt=\">>Go to Sexy Lingerie\" target="_blank"><area shape=\"rect\" coords=\"0,11,610,151\" href="http://www.lenceria-erotica.com/catalog/index.php?cPath=21&sort=2a&language=en" target="_blank"></map>');
            document.write('</LAYER>');
    	}
    	else{
            document.write('<DIV id="SexyLingerie" name="SexyLingerie" style="position:absolute;visibility: visible" z-index=1000 >');
            document.write('<img name="ads_hv_publi" src="http://www.lenceria-erotica.com/imagenes/69sexylingerie_eng.gif" border=0 usemap="#_HvMap_">');
            document.write('<map name=\"_HvMap_\"><area shape=\"rect\" coords="590,0,610,20" onMouseDown=\"javaScript:ads_hv_cerrar()\" alt="Close" target="_self"><area shape=\"rect\" coords=\"0,0,590,20\" href=\"http://www.lenceria-erotica.com/catalog/index.php?cPath=21&sort=2a&language=en" alt=\">>Go to Sexy Lingerie\" target="_blank"><area shape=\"rect\" coords=\"0,11,610,151\" href="http://www.lenceria-erotica.com/catalog/index.php?cPath=21&sort=2a&language=en" target="_blank"></map>');
            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();
    }
}