// JavaScript Document
function searchFlash (flash) {
  if (document.all) {
    if (document.all[flash]) {
      return document.all[flash];
    }
    if (window.opera) {
      var movie = eval(window.document + flash);
      if (movie.SetVariable) {
        return movie;
      }
    }
    return;
  }
  if(document.layers) {
    if(document.embeds[flash]) {
      var movie = document.embeds[flash];
      if (movie.SetVariable) {
        return movie;
      }
    }
    return;
  }
  if (!document.getElementById) {
    return;
  }
  var movie = document.getElementById(flash);
  if (movie.SetVariable) {
    return movie;
  }
  var movies = movie.getElementsByTagName('embed');
  if (!movies || !movies.length) {
    return;
  }
  movie = movies[0];
  if (movie.SetVariable) {
    return movie;
  }
  return;
}

/**
*
*/
function drawResult(region, location) {
 	var uri;
	uri=document.location.href;
	window.location.href = "/live/navigation/forwarder.php?CITY="+location;
}

function drawResult_old(region, location) {
 	var uri;
 	var go;
	uri=document.location.href;
	if(uri.indexOf("STATE")==-1) {
		go=uri+"?STATE="+region+"&CITY="+escape(location);
	} else {
		go=uri.substring(0,uri.indexOf("?STATE"))+"?STATE="+region+"&CITY="+location;
	}
	//window.location.href=goto;
	//window.location.href = "/live/navigation/forwarder.php?CITY="+location+"&goto="+escape(goto);
	//window.location.href = "/live/navigation/forwarder.php?CITY="+escape(location);
	window.location.href = "/live/navigation/forwarder.php?CITY="+location;
}

