function getCookie(c_name) {
	if (document.cookie.length>0) {
	  	  c_start=document.cookie.indexOf(c_name + "=");
		  if (c_start!=-1) { 
		    c_start = c_start + c_name.length + 1;
		    c_end = document.cookie.indexOf(";", c_start);
		    if (c_end==-1) c_end = document.cookie.length;
		    return unescape(document.cookie.substring(c_start,c_end));
		  } 
	}
	return "";
}

function isLogado( ck ) {
	if(ck!='') { 
		document.write('<div id="ad_floater" style="position:absolute; top:0; left:0; z-index:1;">'
				+	'<!--urls used in the movie-->'
				+	'<!--text used in the movie-->'
				+	'<!-- saved from url=(0013)about:internet -->'
				+	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="617" height="352" id="dhtml_indica" align="middle">'
				+	'<param name="wmode" value="transparent"/>'
				+	'<param name="movie" value="http://imagem.buscape.com.mx/promo/floater1.swf" />'
				+	'<param name="quality" value="high" />'
				+	'<param name="bgcolor" value="#ffffff" />'
				+	'<param value="always" name="allowScriptAccess"/>'
				+	'<embed src="http://imagem.buscape.com.mx/promo/floater1.swf" quality="high" bgcolor="#ffffff" width="617" height="352" name="dhtml_indica" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />'
				+	'</object>'
				+'</div>');
	}
}
function closeFloater(){
	document.getElementById('ad_floater').style.display = 'none';
} 

function OASfechar() {
	document.getElementById('floatBanner').style.display = 'none';
}

var pageHeight;

function floatObject(){
	if (document.body.scrollTop < this.pageHeight+600)
		document.getElementById('floatBanner').style.top = document.body.scrollTop+185;
}

function start() {
	this.pageHeight = document.body.clientHeight;
	window.setInterval("floatObject()", 10);
}
