if (!HVhpjs)
{
var HVhpjs = 1;

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 cerrarPubNetscape(){
	document.HispaVista.visibility="hidden";
}

function cerrarPubExplorer(){    
if (isNS6){
    document.getElementById("HispaVista").style.visibility ="hidden";
}
else{
    document.all.HispaVista.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 = 140;
ads_hv_posY = 20;
}

function ads_hv_wRefreshIE4() {
    document.all["HispaVista"].style.left = -ads_hv_posX +innerWidth + (ads_hv_navDOM?self.pageXOffset:document.body.scrollLeft);
    document.all["HispaVista"].style.top = ads_hv_posY + (ads_hv_navDOM?self.pageYOffset:document.body.scrollTop);
}

function ads_hv_wRefreshNS4() {
    document.HispaVista.left = -ads_hv_posX +innerWidth + (ads_hv_navDOM?self.pageXOffset:document.body.scrollLeft);
    document.HispaVista.top = ads_hv_posY + (ads_hv_navDOM?self.pageYOffset:document.body.scrollTop);
}

function ads_hv_wRefresh() {
    document.getElementById("HispaVista").style.left = -ads_hv_posX +innerWidth + (ads_hv_navDOM?self.pageXOffset:document.body.scrollLeft);
    document.getElementById("HispaVista").style.top = ads_hv_posY + (ads_hv_navDOM?self.pageYOffset:document.body.scrollTop);
}


function ads_hv_markMe() {
    if (screen.width >= 640 ){
    	ads_hv_setVals();
    	window.onresize=ads_hv_setVals;
    	if (isIE4)
	        ads_hv_markID = setInterval ("ads_hv_wRefreshIE4()",ads_hv_markRefresh);
	    else if (isNS4)
	        ads_hv_markID = setInterval ("ads_hv_wRefreshNS4()",ads_hv_markRefresh);
	    else
	        ads_hv_markID = setInterval ("ads_hv_wRefresh()",ads_hv_markRefresh);
    } 
}



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>300 && ads_hv_anchura>450){
    if (isNS4){
		document.write("<LAYER name=\"HispaVista\"  POSITION=ABSOLUTE z-index=1000>");
		document.write('<img name="publi" src="http://www.galeon.com/img/barraPopup.gif" width=120 height=11 usemap="#_HvMap_" border="0"><map name=\"_HvMap_\"><area shape=\"rect\" coords="111,0,120,9" href=\"javaScript:cerrarPubNetscape()\" target="_self"><area shape=\"rect\" coords=\"0,0,110,9\" href=\"http://www.hispavista.com\" alt=\">>Ir a INICIO de HispaVista\" target="_blank"></map><BR>');
		document.write('<a href="http://adserver.hispavista.com/click.ng/area=hv_galeon.ocio&adsize=120x90&pos=lateral&site=hv_galeon_lateral&bust='+ads_hv_bust+'" target="_blank">');
        document.write('<img src="http://adserver.hispavista.com/image.ng/area=hv_galeon.ocio&adsize=120x90&pos=lateral&site=hv_galeon_lateral&bust='+ads_hv_bust+'" height=90 width=120 border=0>');
        document.write('</a>');
        document.write("</LAYER>");
	}
	else{
		document.write('<DIV id="HispaVista" name="HispaVista" style="position:absolute;visibility: visible" z-index=1000 >');
		document.write('<img src="http://www.galeon.com/img/barraPopup.gif" width=120 height=11 usemap="#_HvMap_" border="0"><map name="_HvMap_"><area shape="rect" coords="111,0,120,9" href="javascript://" onClick="javaScript:cerrarPubExplorer();" alt="Ocultar Publicidad" target="_self"><area shape="rect" coords="0,0,110,9" href="http://www.hispavista.com" alt=">>Ir a INICIO de HispaVista" target="_blank"></map>');
		if (isIE4){
		    document.write("<br>") ;
		}
        document.write('<a href="http://adserver.hispavista.com/click.ng/area=hv_galeon.ocio&adsize=120x90&pos=lateral&site=hv_galeon_lateral&bust='+ads_hv_bust+'" target="_blank">');
        document.write('<img src="http://adserver.hispavista.com/image.ng/area=hv_galeon.ocio&adsize=120x90&pos=lateral&site=hv_galeon_lateral&bust='+ads_hv_bust+'" height=90 width=120 border=0>');
        document.write('</a>');
        document.write('</DIV>');
	}
    ads_hv_markRefresh = 20; // milliseconds
    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();
}
}