self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
var medranWindow = null;
var medranWindow2 = null;
function mapa() {
	if((medranWindow == null) || (medranWindow.closed) || (!medranWindow)){
		medranWindow = window.open("mapa.html","medranWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=' + 425 + ',height=' + 350);
	} else {
		medranWindow.focus();
		medranWindow.location = "mapa.html";
	}
	if (!medranWindow) {
		alert("Si us plau, desactivi el seu bloquejador de popups per tal d'accedir al contingut.\nPor favor desactive su bloqueador de popups para acceder al contenido.");
	} else {
		medranSubscribeWindow.moveTo((screen.availWidth/2)-270,(screen.availHeight/2)-185);
		medranWindow.moveTo(0,0);
	}
	
}
function llistat() {
	if((medranWindow2 == null) || (medranWindow2.closed) || (!medranWindow2)){
		medranWindow2 = window.open("llistat.html","medranWindow2",'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=' + 550 + ',height=' + 580);
	} else {
		medranWindow2.focus();
		medranWindow2.location = "llistat.html";
	}
	if (!medranWindow2) {
		alert("Si us plau, desactivi el seu bloquejador de popups per tal d'accedir al contingut.\nPor favor desactive su bloqueador de popups para acceder al contenido.");
	} else {
		medranSubscribeWindow2.moveTo((screen.availWidth/2)-270,(screen.availHeight/2)-185);
		medranWindow2.moveTo(0,0);
	}
	
}
function setSizePar() {
	if ((document.body.clientHeight<705)||(document.body.clientWidth<968)) {
		mHeight='100%';
		mWidth='100%';
	} else {
		mHeight='705';
		mWidth='968';
	}
}


function window_open(url) {
	option="height=520,width=770,top=10,left=10,toolbar=1,scrollbars=yes,location=1,status=1,menubar=1,resizable=yes";
	window.open(url,'',option);
}
