<!--
// what is the iexplorer/navigator version??
     var nsok=false;
     var nsapp=false;
	 if(parseInt(navigator.appVersion.charAt(0)) > 3) { nsok=true;}
// 
// BREAK OUT OF FRAMES
// added feb 22 2005
// http://www.webmasterworld.com/forum91/2831-2-10.htm
     if (top!= self)  {
        if (location) top.location.replace(self.location.href) 
        else top.document.location.replace(self.document.location.href); 
     }
//

     function gourl(s) {
     var d=s.options[s.selectedIndex].value;
	 if (d!="") {
     s.selectedIndex=0;
     window.top.location.href=d;
	 }
     }
//
    function msgalert() {
     // emergency hack to alert ppl of new domain
	 // var msg = "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\"><tr><td align=\"right\">";
	 // msg +="<font class=\"desc\"><span class=\"hilite\"><b>Notice:</b> This site has moved ";
	 // msg += "to <a href=\"http://www.nychinatown.org\">http://www.nychinatown.org</a> ";
	 // msg += "<br> please update your bookmarks, and click the link to go there now, thanks. </span>";
	 // msg += "</td></tr></table>";
	 // if (document.referrer.indexOf('geocities.com/synergy_two/chinatown')>1) {
	 // document.write(msg);
	 // } else return;
	}

//
     function poppulldown(dir, html, name) {
     var z1="<option value=\"";
	 var z2="\">";     
     var z3="</option>";
	 tempstring=z1+dir+html+z2+name+z3;
     return document.write(tempstring+"\n");
	 }
	
//
	 function pulldownhassle(ch) {
	 //
//	 msgalert();
	 //
     if(navigator.appName.substring(0,5) =="WebTV") { nsok=false;}
	 var dir="";
	 if (ch==1) {dir="../";}
	 else if (ch==2) {dir="../../";}
	 else {dir="";}

     if (nsok==true) {
     document.write('<a href=\"./#\" onClick=\"gourl(document.streets.streetname); return false;\"><img src=\"' + dir +
	   'graphics/menu_go.gif\" width=\"26\" height=\"20\" align=\"top\" border=\"0\" alt=\"GO\"></a> ');
     document.write('<select class=\"streetpulldown\" name=\"streetname\" size=\"1\">');
     } else { 
     document.write('<select class=\"streetpulldown\" name=\"streetname\" onChange=\"gourl(this)\" size=\"1\">');
     } 
	 // here we go
     document.write('<option value=\"\" selected>select a street</option>');
     poppulldown(dir, "index.html","- NYC Chinatown Index");
     poppulldown(dir, "manhattan.html","- Manhattan Chinatown Map");
     document.write('<option \"\"></option>');
     document.write('<option value=\"\">photos by street</option>');
     poppulldown(dir, "allen.html","&#160;&#160;&#160; Allen Street");
     poppulldown(dir, "baxter.html","&#160;&#160;&#160; Baxter Street");
     poppulldown(dir, "bayard.html","&#160;&#160;&#160; Bayard Street");
     poppulldown(dir, "bowery.html","&#160;&#160;&#160; The Bowery");
     poppulldown(dir, "broome.html","&#160;&#160;&#160; Broome Street");
     poppulldown(dir, "canal.html","&#160;&#160;&#160; Canal Street");
     poppulldown(dir, "catherine.html","&#160;&#160;&#160; Catherine Street");
     poppulldown(dir, "centre.html","&#160;&#160;&#160; Centre Street");
     poppulldown(dir, "centremarketpl.html","&#160;&#160;&#160; Centre Market Pl");
     poppulldown(dir, "chatham.html","&#160;&#160;&#160; Chatham Square");
     poppulldown(dir, "chrystie.html","&#160;&#160;&#160; Chrystie Street");
     poppulldown(dir, "division.html","&#160;&#160;&#160; Division Street");
     poppulldown(dir, "doyers.html","&#160;&#160;&#160; Doyers Street");
     poppulldown(dir, "ebway.html","&#160;&#160;&#160; East Broadway");
     poppulldown(dir, "eldridge.html","&#160;&#160;&#160; Eldridge Street");
     poppulldown(dir, "elizabeth.html","&#160;&#160;&#160; Elizabeth Street");
     poppulldown(dir, "essex.html","&#160;&#160;&#160; Essex Street");
     poppulldown(dir, "grand.html","&#160;&#160;&#160; Grand Street");
     poppulldown(dir, "henry.html","&#160;&#160;&#160; Henry Street");
     poppulldown(dir, "hester.html","&#160;&#160;&#160; Hester Street");
     poppulldown(dir, "kenmare.html","&#160;&#160;&#160; Kenmare Street");
     poppulldown(dir, "madison.html","&#160;&#160;&#160; Madison Street");
     poppulldown(dir, "market.html","&#160;&#160;&#160; Market Street");
     poppulldown(dir, "misc.html","&#160;&#160;&#160; Miscellaneous Images");
     poppulldown(dir, "mosco.html","&#160;&#160;&#160; Mosco Street");
     poppulldown(dir, "mott.html","&#160;&#160;&#160; Mott Street");
     poppulldown(dir, "mulberry.html","&#160;&#160;&#160; Mulberry Street");
     poppulldown(dir, "orchard.html","&#160;&#160;&#160; Orchard Street");
     poppulldown(dir, "parkrow.html","&#160;&#160;&#160; Park Row");
     poppulldown(dir, "pell.html","&#160;&#160;&#160; Pell Street");
     document.write('<option \"\"></option>');
     document.write('<option value=\"\">photos by subject</option>');
     poppulldown(dir, "history/1800s.html","&#160;&#160;&#160; 1800s (Five Points)");
     poppulldown(dir, "history/early1900s.html","&#160;&#160;&#160; 1900s");
     poppulldown(dir, "storefronts/index.html","&#160;&#160;&#160; Chinatown Storefronts");
     poppulldown(dir, "herbs.html","&#160;&#160;&#160; Herbs and Ingredients");
     document.write('<option \"\"></option>');
     poppulldown(dir, "flushing/flushing.html","- Flushing Chinatown");
     document.write('<option \"\"></option>');
     poppulldown(dir, "brooklyn/brooklyn.html","- Brooklyn Chinatown");
     document.write('<option \"\"></option>');
     poppulldown(dir, "bookstore/index.html","- The Bookstore");
     document.write('<option \"\"></option>');
     poppulldown(dir, "links.html","- Links &amp; Resources");
     document.write('<option \"\"></option>');
     poppulldown(dir, "articles/index.html","- Newspaper Articles");
     document.write('<option \"\"></option>');
     poppulldown(dir, "directory/index.html","- Chinatown Biz Directory");
     document.write('<option \"\"></option>');
     poppulldown(dir, "usageinfo.html","- Image Usage Policy");
     poppulldown(dir, "about.html","- About this Site/Donate");
     poppulldown(dir, "whatsnew.html","- What\'s New");
     poppulldown(dir, "techinfo.html","- Technical Info");
     document.write('</select>');
     }
//
     function hyperlinks(target) {
     if (target) where = "_blank";
     else where = "_self";
     for (var i=0; i<=(document.links.length-1); i++) {
     document.links[i].target = where;
     }
     }
//
	 function rkchinweb(name) {
	 if (name=="chinatown") { return 'http://www.nychinatown.org/';}
	 else if (name=="rkchin") { return 'http://www.geocities.com/synergy_two';}
	 else if (name=="fishbowl") { return 'http://www.tenementcity.com';}
	 else if (name=="radiowebdial") { return 'http://nyradio.freesuperhost.com';}
	 else if (name=="chinatownmirror2") { return 'http://soothsayer.topcities.com/chinatown/';}
//	 else if (name=="chinatownmirror3") { return 'http://www.geocities.com/synergy_two/chinatown';}
	 else if (name=="photogallery") { return 'http://www.geocities.com/synergy_two/gallery.html';}
	 else return;
	 }
//
	 function mirrorsites() {
     document.write('<select name=\"mirror\" onChange=\"gourl(this)\">');
     document.write('<option value=\"\" selected>Problems loading images\? This website is mirrored here</option>');
     document.write('<option value=\"' +rkchinweb('chinatown')+ '\">&#160;&#160;&#160; ' +rkchinweb('chinatown')+ '</option>');
     document.write('<option value=\"' +rkchinweb('chinatownmirror2')+ '\">&#160;&#160;&#160; ' +rkchinweb('chinatownmirror2')+ '</option>');
//     document.write('<option value=\"' +site3+ '\">&#160;&#160;&#160; ' +site3+ '</option>');
     document.write('</select><br>');
     }
//	 


function amazonsearch(s) {
var site=s.site.value;
var keywords=s.keyword.value;
var tag="lovesecrets3-20";
if (site=="co.uk") {tag="lovesecrets-21"}
else if (site=="ca") {tag="lovesecrets0f-20"}
else if (site=="fr") {tag="lovesecrets07-21"}
else if (site=="de") {tag="thefishbowl-21"}
else ;
var st="http://www.amazon." + site + "/exec/obidos/external-search?mode=blended" + "&tag=" + tag + "&keyword=" + keywords;
s.action=st;
return true;
}


//

// -->

