/* Chequeo de plataformas sobre la que se ejecuta el navegador */
var version = navigator.appVersion.charAt(0);

if (navigator.appName.indexOf('Microsoft') != -1)
{
	var isIE = true;
	var isNS = false;
	var isMoz = false;	
} 
else if ((navigator.appName.indexOf('Netscape') != -1) && (version == 4))
{
		var isNS = true;
		var isIE = false;
		var isMoz = false;		
} 
else if ((navigator.appName.indexOf('Netscape') != -1) && (version >= 5))
{
		var isNS = false;
		var isIE = false;
		var isMoz = true;		
}

var isWin = navigator.userAgent.indexOf("Win") != -1;
var isMac = navigator.userAgent.indexOf("Mac") != -1;
var isUnix = navigator.userAgent.indexOf("X11") != -1;

/* Make a combo variable to identify */
var iBPmix = 0;
if (isWin)
{
	if (isIE)
	{
		iBPmix = 1;
	}
	if (isNS)
	{
		iBPmix = 2;
	}
}
if (isMac)
{
	if (isIE)
	{
		iBPmix = 3;
	}
	if (isNS)
	{
		iBPmix = 4;
	}
}





	// Variables globales
	var zona="";	
	var winID = null;
	
	// Metodo que invoca pop-up donde se maximiza una foto previamente seleccionada.
	// Argumentos esperados:
	//		Argumento 1: path de la imagen - OBLIGATORIO
	//		Argumento 2: zona (valores posibles 1 .. 9 donde cada número indica un pueblo) - OPCIONAL
	function popupBig() {

		if (popupBig.arguments.length == 0) return;
		
		var pathFile = popupBig.arguments[0];
		var izona = "";
		if (popupBig.arguments.length>1) izona = "&zona="+escape(popupBig.arguments[1]);
		else if (zona.length>0)  izona = "&zona="+escape(zona);

		winID = window.open('http://www.turismoencazorla.com/catalogo/popup/showpic.php?pic='+escape(pathFile) + izona, 'bigpic', 'width=100,height=100,top=1,left=1,scrollbars=no,resizable=no,status=no');	
		winID.focus();
	}	
	
	// Redimensiona un popup	
	function redimensionarList(w, h) {
			self.resizeTo(parseInt(w)+20, parseInt(h)+20);
	}
	
