// Screem size
	var largo = screen.availWidth;
	var alto = screen.availHeight;


function Resolution(idioma) {

if (largo > 1024) {
	
	if (idioma == 1) {
		window.location = "es.html";
  	}
  	else if	(idioma == 2) {
		window.location = "fr.html";
  	}
  	else {
  		window.location = "en.html";
	}
}
	else {
	
	if (idioma == 1) {
		var thewindow = window.open('es.html','gamadecor','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=732');
		self.blur();
  	}
  	else if	(idioma == 2) {
		var thewindow = window.open('fr.html','gamadecor','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=732');
		self.blur();
  	}
  	else {
  		var thewindow = window.open('en.html','gamadecor','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=732');
		self.blur();
		}
	}
}

function ampliar() {
    self.moveTo(0,0);
    self.resizeTo(largo,alto);
}
		
function mover() {
    self.moveTo(0,0);
}