<!--
  // what is the iexplorer/navigator version??
     var nsok=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
     window.top.location.href=d
     s.selectedIndex=0
     }
  //
     function datestuff() {
     var date=new Date();
     day=date.getDate();
     month=date.getMonth();
     year=date.getYear();
	 // I should use getFullYear method instead
	 year=(year <= 1000) ? (year+1900) : year; 
     var mth= new Array("January","February","March","April",
       "May","June","July","August","September",
       "October","November","December");
     month = mth[month]; 
     return ( month + " " + day + ", " + year);
     }
  //
  
  // I got this script from craigslist.com
  // I think he got it from spacetimebrowser
  // Best if used in onload() in the body tag.
  function shakeItUp() {
  if (self.moveBy) {
    for (i = 60; i > 0; i--) {
      self.moveBy(0,i);
      self.moveBy(i,0);
      self.moveBy(0,-i);
      self.moveBy(-i,0);
    }
  }
  }
  
  // chowclown check
  function linkdefense() {
  if (document.referrer.indexOf('chowhound.com')>1) {
  alert('Chowclown censorship policies prevent you from visiting this site.')
    shakeItUp();
//    window.location.href = "lastpage.html";
    history.go(-7);
  }
  }
  
// install firefox search engine
function errorMsg(name,ext,cat)
{
  // alert("Netscape 6 or Mozilla is needed to install a sherlock plugin");
  f=document.createElement("form");
  f.setAttribute("name","installform");
  f.setAttribute("method","post");
  f.setAttribute("action","http://mycroft.mozdev.org/error.html");
  fe=document.createElement("input");
  fe.setAttribute("type","hidden");
  fe.setAttribute("name","name");
  fe.setAttribute("value",name);
  f.appendChild(fe);
  fe=document.createElement("input");
  fe.setAttribute("type","hidden");
  fe.setAttribute("name","ext");
  fe.setAttribute("value",ext);
  f.appendChild(fe);
  fe=document.createElement("input");
  fe.setAttribute("type","hidden");
  fe.setAttribute("name","cat");
  fe.setAttribute("value",cat);
  f.appendChild(fe);
  document.getElementsByTagName("body")[0].appendChild(f);
  if (document.installform) { 
    document.installform.submit();
  } else {
    location.href="http://mycroft.mozdev.org/error.html"; //hack for DOM-incompatible browsers
  }
}
function addEngine(name,ext,cat)
{
  if ((typeof window.sidebar == "object") && (typeof
  window.sidebar.addSearchEngine == "function"))
  {
    //cat="Web";
    //cat=prompt("In what category should this engine be installed?","Web")
    window.sidebar.addSearchEngine(
      "http://mycroft.mozdev.org/plugins/"+name+".src",
      "http://mycroft.mozdev.org/plugins/"+name+"."+ext,
      name,
      cat );
  }
  else
  {
    errorMsg(name,ext,cat);
  }
}


     function amazonfridaysale() {
     var date=new Date;
     if (date.getDay()==5) {
     document.write ("<a class=\"nav\" href=\"http://www.amazon.com/exec/obidos/redirect?tag=lovesecrets-20&path=tg/browse/-/548166\">THE 24-HR FRIDAY SALE &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AT AMAZON.COM</a><br>");
     } else {}
     }

     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 ;
     st="http://www.amazon." + site + "/exec/obidos/external-search?mode=blended" + "&tag=" + tag + "&keyword=" + keywords;
     s.action=st;
     return true;
     }

     function breakout(){
     if (top.location != location) {
         top.location.href = document.location.href;
	 }
	 return
	 }



//
	 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=="fishbowlmirror2") { return 'http://fishbowl.freesuperhost.com';}
	 else if (name=="fishbowlmirror3") { return '';}
	 else if (name=="photogallery") { return 'http://www.geocities.com/synergy_two/gallery.html';}
	 else return;
	 }
//
	 function mirrorsites() {
     // append all emergency scripts here
     breakout();
     //
     // var site1="http://www.geocities.com/old_soothsayer/index.html";
     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('fishbowl')+ '\">&#160;&#160;&#160; ' +rkchinweb('fishbowl')+ '</option>');
     document.write('<option value=\"' +rkchinweb('fishbowlmirror2')+ '\">&#160;&#160;&#160; ' +rkchinweb('fishbowlmirror2')+ '</option>');
//     document.write('<option value=\"' +site3+ '\">&#160;&#160;&#160; ' +site3+ '</option>');
     document.write('</select><br>');
     }

//	 
function DisplayFrontPagePhoto (NumberOfFrontPagePhotos) {
   var RandomNumber=Math.floor(Math.random()*NumberOfFrontPagePhotos)+1;
   return "images_rotate\/front_" + RandomNumber + ".jpg";
}
//

//



// -->