//////////////////////////////////
/*	   Javacript code Source    */
/*     Copyright 2009 MIW.fr    */
/*      Auteur: Yvan Modza      */
///////////////////////////////////////////////

///////////////////////////////////////////////
var obj = document.getElementById('juego');
var Width = parseInt(obj.width) ;
var Height = parseInt(obj.height) ;
var step= 0;
var coef= Height / Width ;
var timer;
var pas= 20;
var Wlimit =1100;
var Hlimit =900;

function Zoom() 
{
	if (timer) clearInterval(timer);
	timer= setInterval(function(){
	if ((Width+step < Wlimit)&&(Height+step*coef < Hlimit)) {
		step = step + pas;
		obj.width = (Width+step)+'px';
		obj.height = (Height+ step*coef)+'px';
	}
	},50);
}
function UnZoom ()
{
	if (timer) clearInterval(timer);
	timer= setInterval(function(){
	if (step > 0) {
		step = step - pas;
		obj.width = (Width+step)+'px';
		obj.height = (Height+step*coef)+'px';
	}
	},50);
}
function Stop_Zoom() { if (timer) clearInterval(timer); }

