function goToUrlcastillayleon(strURL,width,height) {
	var intWW = 600;
	var intWH = 800;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}


function goToUrl(strURL,width,height) {
	var intWW = 660;
	var intWH = 175;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}

function goToUrlindicadores(strURL,width,height) {
	var intWW = 660;
	var intWH = 520;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}

function goToUrlpanoramica(strURL,width,height) {
	var intWW = 660;
	var intWH = 570;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'panoramica';
	var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}


function goToUrlplanos(strURL,width,height) {
	var intWW = 390;
	var intWH = 395;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}

function goToUrllocalidades(strURL,width,height) {
	var intWW = 590;
	var intWH = 630;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}

function goToUrlequipo(strURL,width,height) {
	var intWW = 730;
	var intWH = 520;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}


function goToUrlequipo2(strURL,width,height) {
	var intWW = 730;
	var intWH = 520;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}


function goToUrlequipo3(strURL,width,height) {
	var intWW = 730;
	var intWH = 520;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}


function goToUrlcentro(strURL,width,height) {
	var intWW = 730;
	var intWH = 420;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=1,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}



function goToUrlhistoria(strURL,width,height) {
	var intWW = 720;
	var intWH = 320;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}

function goToUrlactividad(strURL,width,height) {
	var intWW = 775;
	var intWH = 550;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}


function goToUrlbic(strURL,width,height) {
	var intWW = 570;
	var intWH = 430;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	var strName = 'dmain';
	var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	if (windowa.focus) {
		windowa.focus();
	}
}



function spawnBottomWin(url,winName,width,height) { //v2.1
	var intWW = width;
	var intWH = height;
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	var moveX = parseInt((screen.availWidth - width) / 2);
	var moveY = parseInt((screen.availHeight - (height * 2)) / 2);
	var strOptions = 'dependent=1,directories=0,location=0,menubar=0,resizable=0,scrollbars=0,toolbar=0';
	intWT = moveY + height + 28;
	
	// Posicionamos la primera ventana
	self.moveTo(moveX, moveY);

	// Abrimos debajo la segunda
	awindow = window.open(url,winName,'width='+width+',height='+height+',left=' + intWL + ',top=' + intWT + ',' + strOptions);
	//awindow.focus();
}


function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}

function getFaqsPopUp(url) {
	hnd=window.open(url, 'newWinInt','width=590,height=545,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes');
	hnd.focus();
	return ;
}
