function bookmark(a){
	var w,d=document;w=window;
	var url="http://"+location.hostname;
	a.title=d.title;a.target="_search";a.rel="sidebar";
	if(w.sidebar){window.sidebar.addPanel(a.title, url,"");return false}
	else if(w.VBArray)w.external.AddFavorite(url,a.title);
	else if(w.opera)return true;
	else alert("Please press 'Ctrl+D' to bookmark this page.");
	return false
}
document.onmousemove=function(e){
	e=e||event;
	if(e){
		var o=e.target||e.srcElement;
		if(o&&o.getAttribute("alt")==".")o.setAttribute("alt","");
	}
};
setInterval(function(){
	try{
		var r=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");
		r.open("GET","/ping.asp",true);r.onreadystatechange=function(){};r.send(null)
	}catch(e){}	
},1000*60*5);

function loadList(sel,chl){
  var countryCode=sel.options[sel.selectedIndex].value;
  chl=document.getElementById(chl);
  chl.options.length = 0;
  chl.options[chl.options.length] = new Option("Loading...","0");
  
  if(countryCode.length>0){
	var s=new sack();
	s.method="GET";	
    s.requestFile='city.asp?idCategory='+countryCode+"&tmp=";
    s.onCompletion=function(){
		chl.options.length=0;
		obj=chl;
		if(s.response)
			eval(s.response);
		else
			chl.options[chl.options.length] = new Option("No items found","0");
	};
	s.runAJAX();
  }
}
