<!--
function setCity(cookieName,cookieValue,nDays) {
	
	/*var today = new Date();
	var expire = new Date();
	if (nDays==null || nDays==0) nDays=1;
		expire.setTime(today.getTime() + 3600000*24*nDays);
	document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMTString();
	document.location=document.location;
	*/
	
	//En realidad toca reasignar los valores
	//a todas las cookies posibles. STBP 4-may-2004
	document.location="http://www.tutopia.com/cityselect.asp?geo_code="+escape(cookieValue);
	
}
function readCity(cookieName) {
	var theCookie=""+document.cookie;
	var ind=theCookie.indexOf(cookieName);
	if (ind==-1 || cookieName=="") return "NOCOOKIE"; 
		var ind1=theCookie.indexOf(';',ind);
	if (ind1==-1) ind1=theCookie.length; 
		return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}
function cities(zonesArray){
	var output='';
	for(country in zonesArray){
		if(country!='default_country'){
			output+='<optgroup label="'+country+'">';
			for(city in zonesArray[country]){
				if(city!='default_city'){
					output+='<option value="'+zonesArray[country][city][0]+'" id="'+zonesArray[country][city][0]+'"';
					if(readCity('city')==zonesArray[country][city][0]){
						output+=' selected';
					}
					output+='>'+city+'</option>';
				}
			}
			output+='</optgroup>';
		}
	}
	document.write(output);
}
function toggle(ID){
	if(ID.nextSibling.style.display=='none'){
		ID.nextSibling.style.display='block';
		if(arguments[1]!=false){
			ID.firstChild.nextSibling.nextSibling.src='/images/rail_tab_contract.gif';
		}
	}else if(ID.nextSibling.style.display=='block'){
		ID.nextSibling.style.display='none';
		if(arguments[1]!=false){
			ID.firstChild.nextSibling.nextSibling.src='/images/rail_tab_expand.gif';
		}
	}else{
		ID.nextSibling.style.display='block';
		if(arguments[1]!=false){
			ID.firstChild.nextSibling.nextSibling.src='/images/rail_tab_contract.gif';
		}
	}
}
function expand(ID){
	ID.nextSibling.style.display='block';
	ID.firstChild.nextSibling.nextSibling.src='/images/rail_tab_contract.gif';
}
function contract(ID){
	ID.nextSibling.style.display='none';
	ID.firstChild.nextSibling.nextSibling.src='/images/rail_tab_expand.gif';
}
function bmpZone(id,width,height){
	var browName = navigator.appName;
	var browDateTime = (new Date()).getTime();
	var browVersion = parseInt(navigator.appVersion);
	var ua=navigator.userAgent.toLowerCase();
	var adcode='';
	if (browName=='Netscape'){
	if (browVersion>=5) 
	{ document.write('<ifr'+'ame src="http://www.tutopia.com/bannerserving/banman.asp?ZoneID='+id+'&Task=Get&Browser=NETSCAPE6&X=' + browDateTime + '" width='+width+' height='+height+' Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0Frameborder=0 Scrolling=No></ifr'+'ame>');  }
	else if ((browVersion>=4)&&(ua.indexOf("mac")==-1))
	{ document.write('<S'+'CRIPT src="http://www.tutopia.com/bannerserving/banman.asp?ZoneID='+id+'&Task=Get&Browser=NETSCAPE4">');
	document.write('</'+'scr'+'ipt>');
	document.write(adcode); }
	else if (browVersion>=3) 
	{ document.write('<A HREF="http://www.tutopia.com/bannerserving/banman.asp?ZoneID='+id+'&Task=Click&Mode=HTML&PageID=44635&RandomNumber='  + browDateTime + '" target="_new"><IMG SRC="http://www.tutopia.com/bannerserving/banman.asp?ZoneID='+id+'&Task=Get&Mode=HTML&PageID=44635&RandomNumber=' + browDateTime + '" width="'+width+'" height="'+height+'" border="0"></A>'); } }
	if (browName=='Microsoft Internet Explorer')
	{ document.write('<ifr'+'ame src="http://www.tutopia.com/bannerserving/banman.asp?ZoneID='+id+'&Task=Get&X=' + browDateTime + '"width= '+width+' height='+height+' Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No></ifr'+'ame>'); }
}
// --> 