function _browser(str) {
	(navigator.userAgent.toLowerCase().indexOf(str)+1) ? ret = true : ret = false;
	return ret;
}

function _SWFZoom(d) {
	obj = document.getElementById("FlashGame");
	if (_browser("msie")==false) {
		alert("Para modificar el tamaņo del juego se necesita Internet Explorer :(");
		return;
	}
	if (d==0) {
		nw = obj.width*0.9;
		nh = obj.height*0.9;
	} else {
		nw = obj.width*1.1;
		nh = obj.height*1.1;
	}
	obj.width = nw;
	obj.height = nh;
	_WResize(nw, nh);
}




function _WResize(resw, resh) {
	resw = resw+190;
	resh = resh+330;
	if(resw>screen.width) {
		resw=screen.width-50;
	} else if(resw<640) {
		resw = 640;
	}

	if((resh+60)>screen.height) { 
		resh=(screen.height-80);
	} else if(resh<400) { 
		resh = 400;
	}

	if(_browser("opera")) {
		resh = resh-29;
	} else if(_browser("mozilla/5.0")) {
		resw = resw;
		resh = resh-7;
	}
	self.resizeTo(resw,resh);
}
