// All code in this script is Copyright 2000, InfoServices Intl Inc, webmaster@infoservices.com
function newWindow(strMover,lft,dwn,mapgif) {

	subwayWindow = window.open('', '', 'height=550,width=600, left=0,top=0,screenX=0,screenY=0,toolbar=no, menubar=no,resizable=yes,scrollbars=1')
	subwayWindow.document.write('<HTML><HEAD><TITLE>')
	subwayWindow.document.write('CitiDex: Location finder')
	subwayWindow.document.write('<\/TITLE>')
	subwayWindow.document.write('<STYLE TYPE=\"TEXT\/CSS\">')
	subwayWindow.document.write(strMover)
	subwayWindow.document.write('</STYLE>')
	subwayWindow.document.write('<\/HEAD>')
	if (document.all){
		subwayWindow.document.write("<IMG STYLE=\"position:absolute;top=5;left=5;\" SRC=\"map/"+mapgif+"\">")
	}
	else{
		subwayWindow.document.write("<IMG STYLE=\"position:absolute;top=0;left=0;\" SRC=\"map/" +mapgif+"\">")
	}
	subwayWindow.document.write('<DIV ID="mover">')
	subwayWindow.document.write('<img src="../pics/flashingball.gif">')
	subwayWindow.document.write('<\/DIV>')
	subwayWindow.document.write('<\/BODY><\/HTML>')
	subwayWindow.document.close()
	subwayWindow.focus()
	setTimeout("subwayWindow.scrollTo(" +lft+ "," +dwn+ ")",1000)
}
// All code in this script is Copyright(C) 1996, Justin Boyan, jab+j@cs.cmu.edu
// For documentation and more info, see:  http://www.cs.cmu.edu/~jab/snark/
// This is SNARK Version 1.0, 18 May 1996

	var MAX_ENGINES = 30;
	var SNARK_STRING = "hunting+the+snark";
	var engs = new MakeArray(MAX_ENGINES);
//
Add("the Web: Google",  "SELECTED",
   "http://www.google.com/",   "http://www.google.com/search?q=hunting+the+snark" );

Add("the Web: AltaVista", "",
   "http://altavista.digital.com/",   "http://altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=d&q=hunting+the+snark" );

Add("the Web: Excite", "",
   "http://www.excite.com/",
   "http://www.excite.com/search.gw?search=hunting+the+snark&collection=web");

Add("the Web: HotBot", "",
   "http://www.hotbot.com",
   "http://www.search.hotbot.com/hResult.html?MT=hunting+the+snark&DC=25");

Add("the Web: Infoseek", "",
   "http://www.infoseek.com/Home?pg=Home.html&sv=A2",
   "http://www.infoseek.com/Titles?qt=hunting+the+snark&col=WW&sv=A2");

Add("the Web: Lycos", "",
   "http://www.lycos.com/",
   "http://www.lycos.com/cgi-bin/pursuit?query=hunting+the+snark&backlink=639");

Add("the Web: Magellan","",
   "http://www.mckinley.com/",
   "http://www.mckinley.com/extsearch.cgi?query=hunting+the+snark");

Add("the Web: MetaCrawler","",
   "http://www.metacrawler.com/",
   "http://www.metacrawler.com/crawler?general=hunting+the+snark&method=0&format=1");

Add("the Web: Yahoo!", "",
   "http://www.yahoo.com/",
   "http://search.yahoo.com/bin/search?p=hunting+the+snark" );

Add("the Web: WebCrawler", "",
   "http://www.webcrawler.com/",
   "http://www.webcrawler.com/cgi-bin/WebQuery?searchText=hunting+the+snark&maxHits=25");

Add("Weather (City, ST)", "",
   "http://www.nnic.noaa.gov/cgi-bin/page?pg=netcast",
   "http://www.nnic.noaa.gov/cgi-bin/netcast.do-it?state=hunting+the+snark&area=Local+Forecast&html=yes&match=strong");

Add("AltaVista(Newsgroups)", "",
   "http://altavista.digital.com/",
   "http://altavista.digital.com/cgi-bin/query?pg=q&what=news&fmt=d&q=hunting+the+snark" );

Add("Deja.Com (Newsgroups)", "",
   "http://www.deja.com/",
   "http://www.deja.com/dnquery.xp?QRY=hunting+the+snark");

Add("Infoseek (Newsgroups)", "",
   "http://www.infoseek.com",
   "http://www.infoseek.com/Titles?qt=hunting+the+snark&col=NN&sv=A2");

function HandleForm(form) {
	form.submit();  // This fixes a mysterious Netscape bug.  Without this line,
              	// you can't use <enter> to start the search the first time.
  	var i, oldq=form.query.value, newq="";
  	for (i=0; i<oldq.length; i++) {  // compress [ ]+ into \+
   		 var thischar = oldq.charAt(i);
   		 if (thischar != ' ')
      			newq += thischar;
    		else if (lastchar != ' ')
      			newq += '+';
    		lastchar = thischar;
  	}
 	var eng = engs[1+form.service.selectedIndex];
  	location.href = newq ? eng.pre_snark + newq + eng.post_snark : eng.home;
}
function MakeArray(n) {
   for (var i = 1; i <= n; i++) {
     this[i] = 0;
  }
  this.maxlen = n;
  this.len = 0;
  return this;
}
function Add(name, opts, home, search) {
  engs.len++;
  if (engs.len <= engs.maxlen) {
    engs[engs.len] = new Engine(name, opts, home, search)
  }
  else {
    alert("Better increase MAX_ENGINES: " + engs.len + ">" + engs.maxlen)
  }
}
function find_substring(needle, haystack) {
   var i, needlen = needle.length, haylen = haystack.length;
   for (i=0; i<=haylen-needlen; i++) {
      if (needle == haystack.substring(i,i+needlen))
        return i;
   }
   return false;
}
function Engine(name, opts, home, search) {
  var snark = find_substring(SNARK_STRING, search);
  this.name = name;
  this.opts = opts;
  this.home = home;
  this.pre_snark = search.substring(0,snark);
  this.post_snark= search.substring(snark+SNARK_STRING.length, search.length);
}

function selectUpdate(fld){
var frm = fld.form;
	for (var i=0;i < frm.elements.length; i++)
	{
	if (frm.elements[i].type == "checkbox" && frm.elements[i].checked==true){
		document.forms.submit_php.listing_id.value = frm.elements[i].value;
                break;
	}
	}

document.forms.submit_php.submit();
}

function selectAll(fld){
var frm = fld.form;
	for (var i=0;i < frm.elements.length; i++)
	{
	if (frm.elements[i].type == "checkbox"){
        frm.elements[i].checked=true;
	}
	}
}




var bookmarkurl="http://www.citidexli-glencove.com"
var bookmarktitle="CitiDexLI-GlenCove.com - Glen Cove's HomePage"
function addbookmark() {
 if (document.all)
	window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
	               