
	/* menu */
	if(window.event + "" == "undefined") event = null;
	function HM_f_PopUp(){return false};
	function HM_f_PopDown(){return false};
	popUp = HM_f_PopUp;
	popDown = HM_f_PopDown;	
	/* fin menu*/

	function ancho(porcent) {
		return Math.round(window.screen.availWidth*porcent/100);
	}
	function alto(porcent) {
		return Math.round(window.screen.availHeight*porcent/100);
	}
	function openCenteredWindow(path,nombre,longX,longY,scroll,resize,toolbar,status,x,y) {
		var pX,pY;
		try {if (!isNaN(x)) pX=x; else pX = (screen.width-longX)/2;} catch (e) {pX = (screen.width-longX)/2;}
		try {if (!isNaN(y)) pY=y; else pY = ((screen.height-longY)/2)-20;} catch (e) {pY = ((screen.height-longY)/2)-20;}
		try {if (scroll!='no') scroll='yes'} catch (e) {scroll='yes'}
		try {if (resize!='yes') resize='no'} catch (e) {resize='no'}
		try {if (toolbar!='yes') toolbar='no'} catch (e) {toolbar='no'}
		try {if (status!='yes') status='no'} catch (e) {status='no'}
		var ventanuco = window.open(path,nombre,'scrollbars='+scroll+',resizable='+resize+',toolbar='+toolbar+',status='+status+',width='+longX+',height='+longY+',left='+pX+',top='+pY);
		ventanuco.focus();
		return ventanuco;
	}

	/*centros valencianos en el exterior*/
	function enciende(obj) {
		obj.style.cursor="pointer";
		//obj.style.backgroundColor="#FFFFFF";
		obj.style.backgroundColor="#FEF9F3";
	}

	function apaga(obj) {
		obj.style.cursor="";
		obj.style.backgroundColor="transparent";
	}

	function abreVentana(obj) {
		nombre=obj.getAttribute("url");
		manej=openCenteredWindow("casa/"+nombre.toString()+".html",nombre,600,400,'no');
	}

	function abreVentana3(obj) {
		nombre=obj.getAttribute("url");
		manej=openCenteredWindow("programas/"+nombre.toString()+".html",nombre,600,400,'no');
	}

	function abreVentana2(obj) {
		nombre=obj.getAttribute("url");
		destino=obj.getAttribute("destino");
		switch (destino) {
			case "blank":
				manej=openCenteredWindow(nombre.toString(),"pp",500,300,'yes');
				break;
			case "self":
				location.href=nombre.toString();
				break;
			default:
				window.open(nombre.toString());
		}	
	}
	/*fin cve */

	/*europa*/
	//si estamos en ingles, y volvemos al inicio, volvemos a valenciano o a castellano segun lo que marque la variable del frame sup
	function ponInicio() {
		try {
			if (window.parent.sup.idioma=="V") 
				document.getElementById("inicio").href="../../indexv.html";
		} catch(e) {}		
	}
	/*fin europa*/

	/*cooperacion*/
	function abreVentana4(obj) {
		nombre=obj.getAttribute("url");
		manej=openCenteredWindow("noticias/"+nombre.toString()+".html",nombre,460,541,'no');
	}
	/*fin cooperacion*/

	/*tourisme*/
	function abreVentana5(obj) {
		nombre=obj.getAttribute("url");
		manej=openCenteredWindow("noticiasTourisme/"+nombre.toString()+".html",nombre,460,541,'no');
	}
	/*fin tourisme*/