window.moveTo(0,0);
if(document.all||document.getElementById) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
} else if(document.layers || document.getElementById) {
if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth) {
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
_ge=function(id){
if(document.getElementById){
var elem = document.getElementById(id);
} else if(document.all){
var elem = document.all[id];
}
return elem;
}
var actualWidth = 0;
var actualHeight = 0;
var startWidth = 0;
var startHeight = 0;
var ratio = 1.1;
zoom = function(inout){
var obj = _ge('flash');
if(actualWidth == 0 || actualHeight == 0){
actualWidth = obj.style.width.replace(/px/i,'');
actualHeight = obj.style.height.replace(/px/i,'');
startWidth = actualWidth;
startHeight = actualHeight;
}
switch(inout){
case 1:
var temp = actualWidth;
actualWidth = Math.ceil(ratio*actualWidth);
actualHeight = Math.ceil((actualHeight*actualWidth)/temp);
break;
case-1:
var temp = actualWidth;
actualWidth = Math.ceil(actualWidth/ratio);
actualHeight = Math.ceil((actualHeight*actualWidth)/temp);
break;
}
if(actualWidth > 750) {
alert('El tamaño de la animación no puede incrementarse más');
} else {
obj.style.width = actualWidth+'px';
obj.style.height = actualHeight+'px';
}
}
reset = function(){
if(startWidth>0&&startHeight>0){
var obj = _ge('flash');
actualWidth = 0;
actualHeight = 0;
obj.style.width = startWidth+'px';
obj.style.height = startHeight+'px';
}
}
