<!--
	var MM_contentVersion = 5;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i) {
			if (isNaN(parseInt(words[i]))) continue;
			var MM_PluginVersion = words[i]; 
	    }
		var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
	} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}

	var hay_float = false;
	var hay_side = false;
	
	function setFloat() {
		hay_float = true;
	}
	
	function hayFloat() {
		return hay_float;
	}

	function setSide() {
		hay_side = true;
	}
	
	function haySide() {
		return hay_side;
	}


var IE4 = (document.all) ? true : false;
var NS4 = (document.layers) ? true : false;

window.onerror = null;
var windowWidth    = 0;
var imageWidth     = 200;
var leftSpacer     = 773;
var topMargin = 5;
var slideTime = 1200;
var layerID = 'skyfloat';

var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);
//alert('ns6:'+ns6+' ie4'+ie4+' ns4'+ns4)
function layerObject(id,left) {
	if (ns6) {
		this.obj = document.getElementById(id).style;
		this.obj.left = left;
		return this.obj;
	} else if(ie4) {
		this.obj = document.all[id].style;
		this.obj.left = left;
		return this.obj;
	} else if(ns4) {
		this.obj = document.layers[id];
		this.obj.left = left;
		return this.obj;
   }
}

function layerSetup() {
	floatLyr = new layerObject(layerID, 775);
	window.setInterval("main()", 10)
}

function floatObject() {
	if (ns4 || ns6) {
		findHt = window.innerHeight;
	} else if(ie4) {
		findHt = document.body.clientHeight;
	}
} 

function main() {
	if (ns4) {
		this.currentY = document.layers[layerID].top;
		this.scrollTop = window.pageYOffset;
		mainTrigger();
	} else if(ns6) {
		this.currentY = parseInt(document.getElementById(layerID).style.top);
		this.scrollTop = scrollY;
		mainTrigger();
	} else if(ie4) {
		this.currentY = eval(layerID).style.pixelTop;
		this.scrollTop = document.body.scrollTop;
		mainTrigger();
   }
}

function mainTrigger() {
	var newTargetY = this.scrollTop + this.topMargin;
	if ( this.currentY != newTargetY ) {
		if ( newTargetY != this.targetY ) {
			this.targetY = newTargetY;
			floatStart();
		}
		animator();
	}
}

function floatStart() {
	var now = new Date();
	this.A = this.targetY - this.currentY;
	this.B = Math.PI / ( 2 * this.slideTime );
	this.C = now.getTime();
	if (Math.abs(this.A) > this.findHt) {
		this.D = this.A > 0 ? this.targetY - this.findHt : this.targetY + this.findHt;
		this.A = this.A > 0 ? this.findHt : -this.findHt;
	} else {
		this.D = this.currentY;
	}
}

function animator() {
	var now = new Date();
	var newY = this.A * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D;
	newY = Math.round(newY);
	if (( this.A > 0 && newY > this.currentY ) || ( this.A < 0 && newY < this.currentY )) {
		if ( ie4 )eval('document.all.' + layerID).style.pixelTop = newY;
		if ( ns4 )document.layers[layerID].top = newY;
		if ( ns6 )document.getElementById(layerID).style.top = newY + "px";
	}
}

function start() {
	if(ns6||ns4) {
		pageWidth = innerWidth;
		pageHeight = innerHeight;
		layerSetup();
		floatObject();
	} else if(ie4) {
		pageWidth = document.body.clientWidth;
		pageHeight = document.body.clientHeight;
		layerSetup();
		floatObject();
	}
	Fijar_intervalo('showit()', 100);
}

function Fijar_visibilidad(id, flag) {
  if (NS4) {
    var str = (flag) ? 'show' : 'hide';
    eval("document." + id).visibility = str;
  } else if (ns6){
    var str = (flag) ? 'visible' : 'hidden';
    eval("document.getElementById('" + id + "')").style.visibility = str;
  } else {
    var str = (flag) ? 'visible' : 'hidden';
    eval("document.all." + id).style.visibility = str;
  }
}

function GetWindowWidth() {
  if (NS4) {return window.innerWidth}
  else {return document.body.clientWidth}
}

function Fijar_posizquierda(id, xCoord) {
  if (NS4) {eval("document." + id).left = xCoord}
  else if (ns6) {eval("document.getElementById('" + id + "')").style.left = xCoord;}
  else {eval("document.all." + id).style.left = xCoord}
}

function Fijar_intervalo(command, interval) {
  setInterval(eval('"' + command + '"'), interval);
}

function showit(){
  if (navigator.appVersion.indexOf('Mac') == -1){
    windowWidth = GetWindowWidth();
	if (windowWidth >= imageWidth + leftSpacer ) {
		Fijar_visibilidad(layerID, true);
        Fijar_posizquierda(layerID, leftSpacer);
	} else {
		Fijar_visibilidad(layerID, false);
        Fijar_posizquierda(layerID, 0);
	}
  }
}

	function showFloat(nombre, surl, clickurl, posx, posy, w, h, shtime, ckt, transp) {
		var ret = '';
		var cktime = (ckt != null)? ckt : 7;
		var trans = (transp != null)? transp : true;
		if (hayFloat()) return ret;
        if ( MM_FlashCanPlay ) {
			if (getMyCookie('plcom_float_' + nombre) == null) {
            	ret += ('<div id="layer_' + nombre + '" style="position:absolute; left:' + posx + 'px; top:' + posy + 'px; width:' + w + '; height:' + h + '; z-index:1"> ');
            	ret += ('  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' + w + '" height="' + h + '">');
            	ret += ('    <param name="movie" value="' + surl + '?clickTAG=' + clickurl + '">');
            	ret += ('    <param name=quality value=high>');
            	if (trans) ret += ('    <param name="wmode" value="transparent">');
            	ret += ('    <embed src="' + surl + '?clickTAG=' + clickurl + '" width="' + w + '" height="' + h + ' quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"');
            	if (trans) ret += (' wmode="transparent" ');
            	ret += ('></embed>');
                ret += ('  </object>');
            	ret += ('</div>');
				setMyCookie('plcom_float_' + nombre, 'true', cktime, "/", "www.prensalibre.com", false);
				setTimeout('MyHide("layer_' + nombre + '")', shtime * 1000);
				setFloat();
			} // end-if noexiste
        } // end-if flashcanplay
		return ret;
	} // end  showFloat

	function showSide(nombre, url, clickurl, w, h, targ) {
		var ret = '';
		var tt = (targ != null)? targ : "_blank";
		if (haySide()) return ret;
        if ( MM_FlashCanPlay ) {
			ret += '<div id="skyfloat" style="position:absolute; left:757; top:5; width:' + w + '; height:' + h + '; z-index:1; visibility: hidden;">';
            ret += '<scr' + 'ipt>\n<!--\n';
        	ret += ('var rnd = (new String(Math.random())).substring(2,8) + (((new Date()).getTime()) & 262143);\n');
        	ret += ('document.write(\'<a href="http://cdn.cdmetrix.com/ei/3/9/4cb5e7f09da39e40?rnd=\' + rnd + \'" target="_blank"><img width="120" height="600" alt="e-planning.net ad" src="http://cdn.cdmetrix.com/eb/3/9/4cb5e7f09da39e40?o=i&amp;rnd=\' + rnd + \'" border=0></a>\');\n// -->\n');
    		ret += '//-->\n</scr' + 'ipt>\n';
        	ret += '<noscript>\n<a href="http://cdn.cdmetrix.com/ei/3/9/4cb5e7f09da39e40?it=i&rnd=$random" target="_blank"><img width="120" height="600" alt="e-planning.net ad" src="http://cdn.cdmetrix.com/eb/3/9/4cb5e7f09da39e40?o=i&rnd=$random" border=0></a>\n</noscript>';
        	ret += '</div>';
			setSide();
        } // end-if flashcanplay
        ret += '<scr' + 'ipt>\n<!--\n';
		ret += 'start();\n';
		ret += '//-->\n</scr' + 'ipt>\n';
		return ret;
	} // end  showSide
//-->
