//<![CDATA[<!--
function toggle( targetId ){
  if (document.getElementById){
        target = document.getElementById( targetId );
           if (target.style.display == "none"){
              target.style.display = "block";
           } else {
              target.style.display = "none";
           }
     }
}

var actualWidth=0;
var actualHeight=0;
var startWidth=0;
var startHeight=0;
var abajo=0;
var ratio=1.1;

function zoom(inout){
	var obj=document.getElementById('juegoswf');
	var obja=document.getElementById('zoom');
	if(actualWidth==0||actualHeight==0){
		actualWidth=obj.width.replace(/px/i,'');
		actualHeight=obj.height.replace(/px/i,'');
		startWidth=actualWidth;
		startHeight=actualHeight;
	}
	if(actualWidth>1680 && inout==1 || actualWidth<300 && inout==-1) {
		alert("Llegaste al tope del ZOOM.");
		return;
	}
	switch(inout){
	case 1:
		var temp=actualWidth;
		abajo=Math.ceil(abajo*abajo);
		actualWidth=Math.ceil(ratio*actualWidth);
		actualHeight=Math.ceil((actualHeight*actualWidth)/temp);
		break;
	case-1:
		var temp=actualWidth;
		abajo=Math.ceil(abajo/ratio);
		actualWidth=Math.ceil(actualWidth/ratio);
		actualHeight=Math.ceil((actualHeight*actualWidth)/temp);
		break;
	}
	obj.width=actualWidth+'px';
	obj.height=actualHeight+'px';
}
self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);
function runswf(archivo, ancho, alto, version, bgcolor, id, menu, FlashVars, quality, allowScriptAccess) {if(version!=""){var version_data=version;}else{var version_data="6,0,0,0";}if(menu!=""){menu_data=menu;}else{menu_data=false;}if(bgcolor!=""){var bgcolor_data=bgcolor;}else{var bgcolor_data="#ffffff";}if(id!=""){id_data=id;}else{id_data="flashMovie";}if(quality!=""){quality_data=quality;}else{quality_data="high";}if(allowScriptAccess!=""){allowScriptAccess_data=allowScriptAccess;}else{allowScriptAccess_data="always";}var quality="high";
document.write('<embed id="juegoswf" src='+archivo+' bgcolor='+bgcolor_data+' FlashVars='+FlashVars+' menu='+menu_data+' allowScriptAccess='+allowScriptAccess_data+' quality='+quality_data+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+ancho+' height='+alto+' swLiveConnect=true name='+id_data+'></embed>');}
function mailpage() {mail_str = "mailto:  ATENCION!!!  Pon aqui el E-Mail de tu amigo.?subject=Prueba este juego. Esta muy bien!!! -> " + document.title;mail_str += "&body=Hola. Te recomiendo que pruebes este juego: -- " + document.title;mail_str += ". -- Enlace: " + location.href; location.href = mail_str;}
//-->//]]>
