function dayNight(){
  d = new Date();
  utc = d.getTime() + (d.getTimezoneOffset() * 60000);
  offset = 0;
  nd = new Date(utc + (3600000*offset));
  nd = nd.toString(nd);
  
  if(nd.indexOf(" 00:")>=0){img = "map-sml-06.jpg";}
  if(nd.indexOf(" 01:")>=0){img = "map-sml-07.jpg";}
  if(nd.indexOf(" 02:")>=0){img = "map-sml-08.jpg";}
  if(nd.indexOf(" 03:")>=0){img = "map-sml-09.jpg";}
  if(nd.indexOf(" 04:")>=0){img = "map-sml-10.jpg";}
  if(nd.indexOf(" 05:")>=0){img = "map-sml-11.jpg";}
  if(nd.indexOf(" 06:")>=0){img = "map-sml-12.jpg";}
  if(nd.indexOf(" 07:")>=0){img = "map-sml-13.jpg";}
  if(nd.indexOf(" 08:")>=0){img = "map-sml-14.jpg";}
  if(nd.indexOf(" 09:")>=0){img = "map-sml-15.jpg";}
  if(nd.indexOf(" 10:")>=0){img = "map-sml-16.jpg";}
  if(nd.indexOf(" 11:")>=0){img = "map-sml-17.jpg";}
  if(nd.indexOf(" 12:")>=0){img = "map-sml-18.jpg";}
  if(nd.indexOf(" 13:")>=0){img = "map-sml-19.jpg";}
  if(nd.indexOf(" 14:")>=0){img = "map-sml-20.jpg";}
  if(nd.indexOf(" 15:")>=0){img = "map-sml-21.jpg";}
  if(nd.indexOf(" 16:")>=0){img = "map-sml-22.jpg";}
  if(nd.indexOf(" 17:")>=0){img = "map-sml-23.jpg";}
  if(nd.indexOf(" 18:")>=0){img = "map-sml-24.jpg";}
  if(nd.indexOf(" 19:")>=0){img = "map-sml-01.jpg";}
  if(nd.indexOf(" 20:")>=0){img = "map-sml-02.jpg";}
  if(nd.indexOf(" 21:")>=0){img = "map-sml-03.jpg";}
  if(nd.indexOf(" 22:")>=0){img = "map-sml-04.jpg";}
  if(nd.indexOf(" 23:")>=0){img = "map-sml-05.jpg";}
  //alert(nd)
  thumbMap.src=img;
  setTimeout("dayNight()",100000)
  }


function info(){

city =document.world.city.value

a = city.split(" - ");
b = a.join("-");
c = b.split(" ")
d = c.join("_")

top.location.href = 'city.php?id='+d

}



function closeMarker(){

 document.getElementById('theMarker').style.visibility = 'hidden';

}

function moveMarker(num,l,t,thiscity){

c = document.markerForm.theCity

leftAdj = l - 292+"px";
topAdj = t - 290+"px";

c.value=thiscity;

// add reverse marker

document.getElementById("ctyNme").innerHTML = thiscity;
//document.getElementById("ctyNme1").innerHTML = thiscity;

document.dirMenu.reset();
document.getElementById("todo").style.display = "inline";
document.getElementById("iconpic").style.display = "none";
document.dirMenu.selMenu.options[0].text = thiscity+" Directory";
}

function choose(num,l,t){
document.country.menu.selectedIndex=num;
loadTime(document.country.menu.options[document.country.menu.selectedIndex].value,l,t)
}
		
onerror = showEr

function showEr(m,u,l){
n = "\n"
}

aj = new Image()
aj.src = "AjaxLoadingIcon.gif"
