if (window != window.top)
   top.location.href = location.href;
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) { //alert("hola mierda");
oncontextmenu='return false';
}
}
if (document.layers) {
if (e.which == 3) {
oncontextmenu='return false';
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")
//--------------------------------------------
//no copy 
//--------------------------------------------
//document.ondragstart = new Function("return false;")
//document.onselectstart = new Function("return false;")
function setFlashWidth(divid, newW){
	document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
	document.getElementById(divid).style.height = newH+"px";		
}
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH);
}
function canResizeFlash(){
	var ua = navigator.userAgent.toLowerCase();
	var opera = ua.indexOf("opera");
	if( document.getElementById ){
		if(opera == -1) return true;
		else if(parseInt(ua.substr(opera+6, 1)) >= 7) return true;
	}
	return false;
}
function recomendar(url)
{
tb_show('',url,null);
}
//==================
function setHeight(){
var theHeight=document['body'].offsetHeight;
parent.document.getElementById('_invita').height=theHeight;
document['body']['style'].background="transparent";
}
//=========================