var pixel_over = new Image();
 	pixel_over.src = "../Images/pixel.over.gif";
var pixel_cc = new Image();
 	pixel_cc.src = "../Images/pixel.no.cc.gif";
var pixel_99 = new Image();
 	pixel_99.src = "../Images/pixel.no.99.gif";
var pixel_66 = new Image();
 	pixel_66.src = "../Images/pixel.no.66.gif";
var pixel_88 = new Image();
 	pixel_88.src = "../Images/pixel.no.88.gif";
var pixel_00 = new Image();
 	pixel_00.src = "../Images/pixel.no.00.gif";
var pixel_c1 = new Image();
 	pixel_c1.src = "../Images/pixel.no.c1.gif";
var pixel_dd = new Image();
 	pixel_dd.src = "../Images/pixel.no.dd.gif";

var men_home_over = new Image();
	men_home_over.src = "../Images/men_home_over.gif";
var men_home_normal = new Image();
 	men_home_normal.src = "../Images/men_home.gif";
var men_contactar_over = new Image();
 	men_contactar_over.src = "../Images/men_contactar_over.gif";
var men_contactar_normal = new Image();
 	men_contactar_normal.src = "../Images/men_contactar.gif";
var men_quien_over = new Image();
 	men_quien_over.src = "../Images/men_quien_over.gif";
var men_quien_normal = new Image();
 	men_quien_normal.src = "../Images/men_quien.gif";
var men_next_over = new Image();
 	men_next_over.src = "../Images/men_next_over.gif";
var men_next_normal = new Image();
 	men_next_normal.src = "../Images/men_next.gif";
var men_distrib_over = new Image();
 	men_distrib_over.src = "../Images/men_distrib_over.gif";
var men_distrib_normal = new Image();
 	men_distrib_normal.src = "../Images/men_distrib.gif";	
var men_pedido_over = new Image();
 	men_pedido_over.src = "../Images/men_pedido_over.gif";
var men_pedido_normal = new Image();
 	men_pedido_normal.src = "../Images/men_pedido.gif";
var men_facebook_over = new Image();
 	men_facebook_over.src = "../Images/men_facebook_over.gif";
var men_facebook_normal = new Image();
 	men_facebook_normal.src = "../Images/men_facebook.gif";	
	  		
var prev = new Array(1);
var next = new Array(1);
		
function printWindow(){
	bV = parseInt(navigator.appVersion)
	if (bV >= 4) 
	{
	window.print();
	} else {
	alert('To print this page, select Print Frame from the file menu.');
	}
}
	
function highlight(imagename,value) {
	eval("document."+imagename+".src = pixel_"+value+".src"); 
}

function highlight_menu(imagename,value) {
	eval("document."+imagename+".src = "+value);
}

function openWindow_alt(url,var_width,var_height) {

    agent = navigator.userAgent;
    windowName = "Console";

    params = "";
    params += "toolbar=0,";
    params += "location=0,";
    params += "directories=0,";
    params += "status=0,";
    params += "menubar=0,";
    params += "scrollbars=1,";
    params += "resizable=1,";
    params += "width=";
	params += var_width;
    params += ",height=";
 	params += var_height;

    win = window.open(url, windowName , params);
    if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
		win = window.open(url, windowName , params);
    }

    if (win.opener == null) {
		win.opener = window;
    }
}
		  
function openWindow(url,var_width,var_height,var_toolbar,var_location,var_directories,var_status,var_menubar,var_scrollbars,var_resizeable) {
	   
	agent = navigator.userAgent;
	windowName = "Console";
	
	params = "";
	params += "toolbar=";
	params += var_toolbar;
	params += ",location=";
	params += var_location;
	params += ",directories=";
	params += var_directories;
	params += ",status=";
	params += var_status;
	params += ",menubar=";
	params += var_menubar;
	params += ",scrollbars=";
	params += var_scrollbars;
	params += ",resizeable=";
	params += var_resizeable;
	params += ",width=";
	params += var_width;
	params += ",height=";
	params += var_height;
		  
	win = window.open(url, windowName , params);
	
	if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
	        win = window.open(url, windowName , params);
	}
	   
	if (win.opener == null) {
	            win.opener = window;
	}
}
		  

function openWindowFixedSize(url,var_width,var_height) {

	agent = navigator.userAgent;
	windowName = "Console";
	
	params = "";
	params += "toolbar=0,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=0,";
	params += "menubar=0,";
	params += "scrollbars=0,";
	params += "resizable=0,";
	params += "width=";
	params += var_width;
	params += ",height=";
	params += var_height;
           
	win = window.open(url, windowName , params);
	
	if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
	    win = window.open(url, windowName , params);
	}

    if (win.opener == null) {
		win.opener = window;
	}
}
          
function openPopup(url,var_width,var_height) {

	agent = navigator.userAgent;
	windowName = "Console";
	
	params = "";
	params += "toolbar=0,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=0,";
	params += "menubar=0,";
	params += "scrollbars=0,";
	params += "resizable=0,";
	params += "left=50,";
	params += "top=50,";
	params += "width=";
	params += var_width;
	params += ",height=";
	params += var_height;
 			  
	if (document.cookie)
		  {
		  
	} else {
	
	  win = window.open(url, windowName , params);
	  if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
			  win = window.open(url, windowName , params);
	  }
	
	 	if (win.opener == null) {
			  win.opener = window;
	 		}
 
	var ablauf = new Date();
	var ineinerstunde = ablauf.getTime() + (30 * 60 * 1000);
	ablauf.setTime(ineinerstunde);
	var ablaufstring = ablauf.toGMTString();
	document.cookie = "Name=CINEPRINT;expires=" + ablaufstring;

	}
				 
}
		  
function shortcut(URL)
	{
	window.location.href = URL;
	}

function Inicializa_Pagina()
	{
	document.order.ADDITIONALINFO.style.visibility="hidden";
	//document.order.ADDITIONALINFO2.style.visibility="hidden";

// -Si previamente se seleccionó un pais, se selecciona dicho país en el combo.
	recupera_datos=GetCookie("TBInf");
	if (recupera_datos == null) { //Si no hay cookie, salimos de la rutina.
		return "";
	}
	pos_indice=recupera_datos.indexOf("|");
	elpais=recupera_datos.substring(5,pos_indice);
	if (elpais > 0) {
		document.order.country.selectedIndex=elpais;
		CalculaGastos("");
	}
// ---------------------------------------------------------------------------
	}	

function saveImages(prevPage,nextPage,whichPage)
{
  	prev[1] = prevPage;
  	next[1] = nextPage;
  	which[1] = whichPage;
}

function changeImages(page)
{
	for ( i = 1; i < numfotosdet + 1; i++ ) {
	   
		if (page == i)
		{
			if (page < 10) {
				mifoto = "0" + i;
			}
			else
			{
				mifoto = i;
			}
			if (page > 1) {
				anterior = page - 1;
			}
			else
			{
				anterior = numfotosdet;
			}
			if (page == numfotosdet) {
				siguiente = 1;
			}
			else
			{
				siguiente = page + 1;
			}
			contenido = new Image();
			contenido.src = GeneraRuta("Interior",mifoto,"jpg");
			document.detalle.src=contenido.src;
			saveImages(anterior,siguiente,mifoto);
		}
	}
}
// -------------------- Ya no se usa --------------------
// ----------- Solo lo uso 5 lineas más arriba ----------
function GeneraRuta(carpeta,nombre,tipo) {

	ruta = window.location.pathname;
	cambiar = "\\";
	nuevaruta = "";
	amplianombre = "";
	micarpeta = "";
	miextension = "";
	
	for ( i = 0; i < window.location.pathname.length; i++ ) {
	   
		recupero = ruta.substr(i,1);
		
		if (recupero == cambiar) {
		  	nuevaruta = nuevaruta + "/";
		}
		else 
		{
			nuevaruta = nuevaruta + recupero;
		}
	
	}
	
	caracteres = (nuevaruta.lastIndexOf(".") - nuevaruta.lastIndexOf("/") - 1);
	inicio = nuevaruta.lastIndexOf("/") + 1;
	
	if (nombre != "") {
		amplianombre = "_" + nombre;
	}
	if (carpeta != "") {
		micarpeta = "../" + carpeta + "/";
	}
	if (tipo != "") {
		miextension = '.' + tipo;
	}
	
	miruta = micarpeta + nuevaruta.substr(inicio,caracteres) + amplianombre + miextension;
	//alert (miruta);

	return(miruta);
}
// ------------------------------------------------------