<!--
	function abreJuego(){
		window.open('juegoTuenti/home.aspx', 'game','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=454,height=750,top=0,left=0');
	}
	function abreJuegoBasket(){
		window.open('juegoBasket/home.aspx', 'game','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=960,height=600,top=0,left=0');
	}
	function abreJuegoCarreras(){
		window.open('juegoCarreras/home.aspx', 'game2','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=960,height=600,top=0,left=0');
	}
	function enviarVideo(r){
		document.location.href = 'mailto: ?body='+ encodeURIComponent(r);
	}
	function enviarVideoNavidad(){
		var sOut = "Disfruta de unas felices fiestas conmigo en http://www.soybestial.com/. No olvides ver mis felicitaciones de navidad. NO TE LAS PUEDES PERDER!";
		document.location.href = 'mailto: ?body='+ sOut; //encodeURIComponent(sOut);
	}
	function goTop(){
		document.location.href='#top';
	}
	function goBottom(){
		document.location.href='#bottom';
	}

	function abreBases(){
            window.open('bases.htm', 'SECS','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=668,height=520,top=0,left=0');
        }
	function abrePolitica(){
            window.open('politica.htm', 'SECS','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=668,height=520,top=0,left=0');
        }
	function abreLOPD(){
            window.open('LOPD.htm', 'SECS','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=668,height=520,top=0,left=0');
        }


	function abreRealAumentada(tipo){
		window.open(tipo, tipo, 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=641,height=481,top=0,left=0');
	}
	function descargaAncla(){
		window.open('data/Ancla_benito.zip');
	}


    //upload videos on perfiles
	function publicMySpace(T, C, U, L)
	{
		var targetUrl = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(T)
		+ '&c=' + encodeURIComponent(C) + '&u=' + encodeURIComponent(U) + '&l=' + L;
		window.open(targetUrl);
	}
	function publicFacebook(T, U)
	{
		var targetUrl = 'http://www.facebook.com/sharer.php?u='+ encodeURIComponent(U)+ '&t=' + T;
		window.open(targetUrl);
	}
	function publicHi5(T, U)
	{
		var targetUrl = 'http://www.hi5.com/friend/checkViewedVideo.do?t='+ encodeURIComponent(T) +'&url='+ U +"&embeddable=true&simple=true";
		window.open(targetUrl);
	}
	function publicTuenti(ID)
	{
		var targetUrl = 'http://www.tuenti.com/#m=sharevideo&id=' + ID;
		window.open(targetUrl);
	}
//-->
/* 
Methods for resizing the flash stage at runtime.

setFlashWidth(divid, newW)
divid: id of the div containing the flash movie.
newW: new width for flash movie

setFlashWidth(divid, newH)
divid: id of the div containing the flash movie.
newH: new height for flash movie

setFlashSize(divid, newW, newH)
divid: id of the div containing the flash movie.
newW: new width for flash movie
newH: new height for flash movie

canResizeFlash()
returns true if browser supports resizing flash, false if not. 
*/
<!--
function setFlashWidth(divid, newW){
	document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
	var ua = navigator.userAgent.toLowerCase();
	if (ua.indexOf("msie")!=-1){
		document.getElementById(divid).style.height = newH+"px";
		document.miFlash.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;
}
//-->