var count_static=0;
xp="<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:.25in;text-indent:-.25in'>";
dw_text = '';
use_dw_text=false;
gserver=(typeof(gserver)=='undefined'?'/':gserver);
images=gserver+'images/'
temppopwidth=200;
dwdebug=0;
ebay='shop.ebay.com/items/?_in_kw=1&_ex_kw=&_sacat=See-All-Categories&_oexkw=&LH_IncludeSIF=1&_udlo=&_udhi=&_sabdlo=&_sabdhi=&_samilow=&_samihi=&_ftrt=901&_ftrv=1&_sadis=200&_fpos=&_fsct=&LH_SALE_CURRENCY=0&_sop=2&_dmd=2&_ipg=200&_nkw=';
var isIE=(navigator.appName=='Microsoft Internet Explorer');
var isIE55=((navigator.appVersion.indexOf('MSIE 6'))>0)||((navigator.appVersion.indexOf('MSIE 5.5'))>0);
var iframeOK=isIE55||(navigator.appName.indexOf('Mozilla')>0);iframeOK=(1==1);
var allmouseoverOK=isIE;
var lbln=0; 
var q="'"; 
var qc=','+q+q;
var qqc=",''";
var qqcc=",'',";
QUERY_STRING=(typeof(QUERY_STRING)=='undefined'?'':QUERY_STRING);
if (typeof(dogetparams)!='undefined') if (dogetparams!='') getparams(); 
dflt='';varslist='';initve='';

  function rplcErrImg(lggImg){
    if (isIE) if(typeof(lggImg)!= undefined){

      lggImg.src=images+"spacer.gif";
      lggImg.style.width="1px";
    }
  }
submenu='';
function submenub(url,linktext,title) {
add_submenu('_blank',url,linktext,title) }

function add_submenu(target,url,linktext,title) {
var minititle=linktext+': '+title.replace(/<img.*/,'').replace(/<ifr.*/,'').replace(/\([^)]*\)/g,' ');
var add='<li><a href="'+url+'" target="'+target+'">'+minititle+'</a></li>';
submenu+=add;
}

function felipa_pulldown(){
if (typeof(pulldowngif)=='undefined') pulldowngif='pulldown.gif';
dw('<div class="Felipa"><ul class="level1"><li class="submenu" onmouseover="showJumps(this);" onmouseout="hideJumps(this);"><a href="#" onclick="return false;"><img src="'+images+pulldowngif+'" alt=""></a><ul class="level2">'+submenu+'</ul></li></ul></div>');
}


function getparam(param) {
  var urlin=document.location+'&'+QUERY_STRING;
  var params=(urlin+'&').replace('?','&');
  params=params.replace(param+'=','   ');
  params=params.replace(/.*   /,'');
  params=params.replace(/&.*/,'');
  params=params.replace(/\+/g,' ').replace(/%20/g,' ');
  dwd('params5',params);
  dwd('urlin',urlin);
  var indx=((('a '+urlin).indexOf(param+'=')));
  dwd('indx',indx);
  var reslt=(indx>0)?params:'';
  dwd(param,reslt);
  return (indx>0)?params:'';
}

function getparams() {
  rmurl=getparam('rmurl');
  furl=getparam('furl');
  udwdebug=getparam('dwdebug');
  if (udwdebug!='') dwdebug=udwdebug;
  urestrictsearch=getparam('restrictsearch');
  if (urestrictsearch!='') restrictsearch=urestrictsearch;
  dwd('urestrictsearch',urestrictsearch);
  ulat=getparam('Latitude')+getparam('latitude')+getparam('lat')+getparam('Lat');
  dwd('ulat',ulat);
  ulon=getparam('Longitude')+getparam('longitude')+getparam('Long')+getparam('long')+getparam('lon');
  uwidth=getparam('width');
  uheight=getparam('height');
  usearchstring=getparam('searchstring');
  if (usearchstring!='') searchstring=usearchstring;
  ukountrycode=getparam('country')+getparam('kountrycode')
  ustatecode=getparam('statecode');
  if (ustatecode==''&&0<ukountrycode.indexOf('_'))
    statecode=ukountrycode.replace(/.*_/,'');
  if (ustatecode!='') statecode=ustatecode;
  uaddress=getparam('address');
  if (uaddress!='') address=uaddress;
  uzipcode=getparam('zipcode');
  if (uzipcode!='') zipcode=uzipcode;
  ukountryname=getparam('kountryname');
  if (ukountryname!='') kountryname=ukountryname;
  ucityname=getparam('cityname');
  if (ucityname!='') cityname=ucityname;
}

function minidispenser() {
  getparams();
  dw('<h2>Image & Data Dispenser</h2>');
  dw('<table cellspacing=0 cellpadding=0 border=1 align="center">');
  dw('<tr><td bgcolor="#D4E3F1" align= > <form action="http://dispense.cs.fiu.edu/tf001?" name=n1 method=GET target=_top>You can purchase aerial images, prints, and data: ');
  if (ulat!='') 
    dw('<li> at the current location <input name=lat value='+ulat+' size=8 type=hidden> <input name=long type=hidden value="'+ulon+'" size=9> width:&nbsp;<input name=width value="'+uwidth+'" size=6> height:&nbsp;<input name=height value="'+uheight+'" size=6> (at 1-meter resolution 1meter=1pixel) <input type=image src="'+images+'urlbb.gif" width=65 height=35 alt=Submit border=0 name=submit target=_blank></form> </td></tr>');
  dw('<tr><td bgcolor="#D4E3F1" align= > <form action="http://dispense.cs.fiu.edu/tf001?" name=n2 method=GET target=_top><li><b>OR</b> adjust location: latitude:&nbsp;<input name=lat value="'+ulat+'" size=8> longitude:&nbsp;<input name=long value="'+ulon+'" size=9> width:&nbsp;<input name=width value="'+uwidth+'" size=6> height:&nbsp;<input name=height value="'+uheight+'" size=6><input type=image src="'+images+'urlbb.gif" width=65 height=35 alt=Submit border=0 name=submit target=_blank></form> </td></tr>');
  dw('<tr><td bgcolor="#D4E3F1" align= > <form action="http://vn4.cs.fiu.edu/cgi-bin/tflaunch.cgi" name=n4 method=GET target=_top > <li><b>OR</b> change address: Street:&nbsp;<input name=Street value="" size=24> City:&nbsp;<input name=City value="" size=12> State:&nbsp;<input name=State value="" size=2> Zipcode:&nbsp;<input name=Zipcode value="" size=5> <input name="tfaction" type=hidden value=Downloader> <input type=image src="'+images+'urlbb.gif" width=65 height=35 alt=Submit border=0 name=submit target=_blank></form></td></tr>');
  dw('</table>');
}

function dwd(label,expr) {
  if (dwdebug) 
    dw('<br><b>'+label+'=</b>'+expr+'.');
}

function omnicr() {
  dw('<table width=100%><tr><td align=right><small>Omnisearch &#169; 2003-2005, '); hrefm('http://recommend.org','Recommend.org');dw('</small></td></tr></table>');
}

function dw(s) {
  if (use_dw_text) 
    if (typeof(s) != 'undefined') dw_text += s+'\n';
  document.write(typeof(s)=='undefined'?' ':s);
}

function dwv(varname) {
  dw(' '+varname+'=:'+eval(varname)+' ');
}

function initv(v,defaultval) {
  dflt=(typeof(defaultval)=='undefined'?'':defaultval);
  var parval='';
  if (typeof(parent)!='undefined')
    if (eval('typeof(parent.'+v+')!="undefined"'))
      parval=eval('parent.'+v);
  initve=v+'=typeof('+v+')=="undefined"?"'+dflt+'":'+v+';';
  eval(initve);
  varslist+=v+'='+eval(v)+';';
}

tfpopup=(typeof(tfpopup)=='undefined')?0:tfpopup;
vid=(typeof(vid)=='undefined')?'':vid;
tfpopupvip=(vid==''?0:1);
sitetype=((typeof(sitetype)=='undefined')?'travel':sitetype);
sitetypek=(sitetype=='othersite'||sitetype=='omni')?'keywords':sitetype;
barpath=((typeof(barpath)=='undefined')?'.':barpath);
defaultsearch=((typeof(barcategory)=='undefined')?sitetypek:barcategory);
barcategory=((typeof(barcategory)=='undefined')?'':barcategory);
statecode=((typeof(statecode)=='undefined')?'':statecode);
kountryname=((typeof(kountryname)=='undefined')?defaultsearch:kountryname);
kountrycode=(typeof(kountrycode)=='undefined')?'':kountrycode;
kountrynameplus=(typeof(kountrynameplus)=='undefined')?'travel':kountrynameplus;
cityname=(typeof(cityname)=='undefined')?'':cityname;
cityorkountryname=(cityname=='')?kountryname:cityname;
citynameplus=(typeof(citynameplus)=='undefined')?(cityname.replace(/ /g,'+')):citynameplus;
citykountrypage=(typeof(citykountrypage)=='undefined')?('/'+kountrycode):citykountrypage;
cityorkountrynameplus=(cityname=='')?kountrynameplus:citynameplus;
address=(typeof(address)=='undefined'?'':address);
zipcode=(typeof(zipcode)=='undefined'?'':zipcode);
USA=(typeof(statecode)=='undefined')?'false':(statecode!='');
if (!USA) USA=(typeof(zipcode)=='undefined')?'false':(zipcode!='');
searchstring=(typeof(searchstring)=='undefined')?cityorkountryname:searchstring;
searchstring=(searchstring=='')?cityorkountryname:searchstring;
searchstringplus=((typeof(searchstringplus)=='undefined')?'':searchstringplus);
searchstringplus=(searchstringplus=='')?(searchstring.replace(/ /g,'+')):searchstringplus;
latitude=(typeof(latitude)=='undefined'?'':latitude);
longitude=(typeof(longitude)=='undefined'?'':longitude);
params='zipcode='+zipcode+'&cityname='+citynameplus+'&country='+kountrycode+'&latitude='+latitude+'&longitude='+longitude+'&vid='+vid;

function popq(word,title) { 
  if (navigator.appName=='Microsoft Internet Explorer')
    popbi(word+'&nbsp;<img src="'+images+'bluequestion.gif" alt="">',title);
  else 
    popbi(word+'&nbsp;<img src="'+images+'bluequestion.gif" border=0 alt="'+title+'">',title);
} 
function popqh(word,title,link) { 
    pophb(link,word+'<img src="'+images+'bluequestion.gif" alt="">',title);
} 

if (USA) {
  air='href=http://www.travelnow.com/affiliate/?cid=43277 target="_blank"><img src="'+images+'b_j.gif" alt="Air" width=19 height=21 border=0></A><img src="'+images+'line.gif" alt="" width=2 height=21 border=0><a '
}
else 
  air='href=http://www.travelnow.com/affiliate/?cid=43277 target="_blank"><img src="'+images+'b_j.gif" alt="Air" width=19 height=21 border=0></A><img src="'+images+'line.gif" alt="" width=2 height=21 border=0><a ';

function mframe(url,width,height,label) {
  dw('<br>');
  //if (navigator.appName=='Microsoft Internet Explorer')
  if (iframeOK)
    dw('<iframe src='+url+' width='+((typeof(width)=='undefined')?'100%':width)+' scrolling=auto framespacing=0 marginwidth=0 marginheight=0 height='+((typeof(height)=='undefined')?'100%':height)+'  border=0></iframe>');
  else
    dw(' <a href='+url+'>'+(typeof(label)=='undefined'?'+':label)+'</a> ');
}

function mouseover() {
  popq('Mouse-over','Hold Mouse over a link or button to see more info under the mouse (before clicking through).  Display of some information make time.');
} 

temppopwidth=200;

function onpop(title) {
  var wid=temppopwidth;
  temppopwidth=200;
  if (wid>200)
    return ' ONMOUSEOVER="popev(event,'+q+title+q+qqc+qqcc+wid+')"  ONMOUSEOUT="kill()"';
  else
    return ' ONMOUSEOVER="popev(event,'+q+title+q+qqc+qqc+')" ONMOUSEOUT="kill()"';
}

function onpop_static () {
  var txt = ' ONMOUSEOVER="pop_static ('+count_static+', event)" ONMOUSEOUT="kill_static(' + count_static + ')"';
  return txt;
}

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 4 || browserName == "Microsoft Internet Explorer" && browserVer >= 4)
  version = "1";
else if (browserName == "Netscape" && browserVer >= 3)
  version = "2";
else
  version = "3";

if (version == "2") {
 var toolkit = java.awt.Toolkit.getDefaultToolkit();
 var screen_size = toolkit.getScreenSize();
}
if (version == "3") {
}

function URLEncode(OriginalStr) {
  return escape(OriginalStr);
}

function stopErrors() {
  return true;
}

function newDrpad(offsetuser,whereGo) {
  offset=offsetmy

  if (browserName == "33Netscape")
    window.open(whereGo,'srch'+i);
  else
    Popwin = window.open(whereGo,'srch'+i,
        'dependent=1,scrollbars=1,toolbar=1,menubar=1,'+
        'top='+(offset*20)+',left='+(offset*20)+','+
        'left='+(offset*20)+',top='+(offset*20)+','+
        'resizable=1,width=600,height=500');
  Popwin.focus();
  offsetmy=offsetmy+2
}

function popht(target,url,linktext,title,width) {
  if (width!='undefined') temppopwidth=width;
  dw('<a href="'+url+'" '+onpop(title)+' target='+target+'>'+linktext+'</a>');
}
function pophb(url,linktext,title,width) {
popht('_blank',url,linktext,title,width); 
}

function popsimple(url,linktext,title) {
  dw('<a href="'+url+'" '+onpop(title)+' >'+linktext+'</a>');
}
function poph(url,linktext,title) {
popht('_top',url,linktext,title); 
}

function popbi(text,title) {
  dw('<b>');
  popi(text,title);dw('</b>');
}

function popi(text,title,label) {
  lbln++;
  var lbl=(typeof(label)=='undefined'?'L'+lbln:label);


  if (document.layers && !document.getElementById)
    dw('<A href="javascript:void(0);" name="' + lbl + '" ONMOUSEOVER="popev(event,'+q+title+q+')"  ONMOUSEOUT="kill()"><i>'+text+'</i></a>');
  else
    dw('<i ONMOUSEOVER="popev(event,'+q+title+q+')"  ONMOUSEOUT="kill()">'+text+'</i>');
}

function popframe(url,width,height) {
  if (iframeOK) {
    var wid=((typeof(width)=='undefined')?800:width);
    if (typeof(mousewidth)!='undefined')
      if (mousewidth>0&&wid+20>(windowwidth)) wid=windowwidth-20;
    if (wid>temppopwidth)
      temppopwidth=wid;
    return '<iframe src='+url.replace(/category=/,'popup=1&category=')+' width='+wid+' scrolling=no framespacing=0 marginwidth=0 marginheight=0 height='+((typeof(height)=='undefined')?800:height)+' border=0></iframe>';
  }
  else return '';
}

function autoframe(url,width,height,title) {
  tit=(typeof(title)=='undefined')?'':title;
  var wid=((typeof(width)=='undefined')?800:width);
  //if (navigator.appName=='Microsoft Internet Explorer') {
  if (iframeOK) {
    dw('<table><tr><td>'+tit+'</td></tr><tr><td><iframe src='+url+' width='+wid+'  scrolling=auto framespacing=0 marginwidth=0 marginheight=0 height='+(typeof(height)=='undefined'?800:height)+'  border=0></iframe></td></tr></table>');
  }
  else pophb(url,(tit==''?'more info ':tit),'click to pop more information');
}

function showurl(url,width,height) {
  dw('<p>');
  pophb(url,url,url+popframe(url));
  //if (navigator.appName=='Microsoft Internet Explorer')
  if (iframeOK)
    dw('<iframe src='+url+' width='+((typeof(width)=='undefined')?'100%':width)+' scrolling=auto framespacing=0 marginwidth=0 marginheight=0 height='+((typeof(height)=='undefined')?'100%':height)+'  border=0></iframe>');
}

function frameif(url,width,height) {
  //if (navigator.appName=='Microsoft Internet Explorer')
  if (iframeOK)
    dw('<iframe src='+url+' width='+((typeof(width)=='undefined')?'100%':width)+' scrolling=auto framespacing=0 marginwidth=0 marginheight=0 height='+((typeof(height)=='undefined')?'100%':height)+'  border=0></iframe>');
  else window.location=url;
}

if (typeof(citysize) == 'undefined') citysize=0;

function href0(url,text,title,status) {
  var titl=(typeof(title)=='undefined')?'':title;
  var statu=(typeof(status)=='undefined')?((typeof(title)=='undefined')?url:title):status;
  dw(" <a href=\""+url+"\" target=_blank title=\""+titl+"\" ONMOUSEOVER=\"window.status='"+statu+"';return true;\" ONMOUSEOUT=\"window.status=''; return true;\">"+text+"</a>")
}

function href(url,text,title,status) {
  var titl=(typeof(title)=='undefined')?'':title;
  var statu=(typeof(status)=='undefined')?((typeof(title)=='undefined')?url:title):status;
  dw(" <a href=\""+url+"\" target=_blank title=\""+titl+"\" ONMOUSEOVER=\"window.status='"+statu+"';return true;\" ONMOUSEOUT=\"window.status=''; return true;\">"+text+"</a>")
}

function yellowcat(category) {
  if (cityname!='') href0('http://service.bfast.com/bfast/click?siteid=35724832&bfpage=banner1_new&bfmid=27359743&czac='+citynameplus+'&st='+statecode+'&q='+category,category,category+' in '+cityname,'http://smartpages.com/search?Category='+category+'&city='+cityname+','+statecode);
    //href0('http://service.bfast.com/bfast/click?siteid=35724832&bfpage=search1&bfmid=27359743&QueryType=1&ClearLevel=Cloud9&QueryString='+category+'&CityZipAC='+citynameplus+'&State='+statecode,category,category+' in '+cityname,'http://smartpages.com/search?Category='+category+'&city='+cityname+','+statecode);
}

function adframes() {
  dw('<p><table><tr><td>');
  dw('</td></tr></table>');
}

function cb(name,hrefprefix,alt) {
  var al=(typeof(alt)=='undefined'?name:alt);
  chkbx(name,hrefprefix,'<img src="'+images+'more.gif" alt="'+(typeof(alt)=='undefined'?'':alt)+'" width=19 height=21 border=0>',al);
}

function search(title) {
  window.status='Last search: '+title;
}
function nulljs() {
  var sdsds=0;
}

simplersearch=(typeof(simplersearch)=='undefined'?1:simplersearch);
function chkbx(name,hrefprefix,img,title) {
  var txtlbl=(sitetype=='omni');
  var displayname=name;
  if (mlike(name,':')) displayname='<b>'+name.replace(/:/,'</b>:');
  else if (mlike(name,' ')) displayname='<b>'+name.replace(/ /,'</b> ');
  if (simplersearch) var imgl=txtlbl?displayname+img.replace(/ *[<][^>]*[.]gif[^>]*[>] */g,'').replace(/=[1-9][0-9]*/g,'=11'):img;
  else var imgl=txtlbl?displayname+img.replace(/[a-zA-Z0-9_-]*.gif/g,'h_r.gif').replace(/=[1-9][0-9]*/g,'=11'):img;
  var titl=(typeof(title)=='undefined')?name:title;
  var titlb='<i><b>'+titl+'</b></i>';
  checkboxindex++;
  checkboxvector[checkboxindex]=hrefprefix;
  checkboxnames[checkboxindex]=name;
  var href=q+'http://'+hrefprefix+q+'+cleanblank(escape(document.upform.SearchString.value))';
  var first='<p>(first, you should have entered your search <b></i>keywords</i></b> into the searchbox)';
  if (simplersearch) var onpp=' ONMOUSEOVER="popev(event,'+q+'Click to open '+titlb+' search result page'+first+q+qc+qc+',800)" ONMOUSEOUT="kill()" ';
  else var onpp=' ONMOUSEOVER="popev(event,'+q+'<b><i>basic:</i></b> Click to open '+titlb+' search result page or<p><b><i>advanced:</i></b> Checkmark to include in omni-search'+first+q+qc+qc+',800)" ONMOUSEOUT="kill()" ';
  var onclick=' onclick="window.open('+href+')" '+ onpp;
  var checkd=' ';
  if (name=='More' || ((name=='E-Bay' ||name=='Google')&&searchstring>'9a'&&zipcode=='') ||name.indexOf('ocal')>0 ||name=='Google '+zipcode) checkd=' checked ';
  if (simplersearch) adw('<td valign="center"><a href="javascript:search('+q+titl+q+')" '+onclick+'>'+imgl+'</a></td>');
  else adw('<td valign="center"><INPUT type="checkbox" name="'+name+'"'+checkd+onpop('<b><i>advanced:</i></b> CHECK to include '+titlb+' in multi-window OmniSearch or <p><b><i>basic:</i></b> Click on <a href='+name+'>'+name+'</a> to see only this search in one window')+'><a href="javascript:search('+q+titl+q+')" '+onclick+'>'+imgl+'</a></td>');
}

function adw(string) {
  jh+=string;
}

function cleanblank(string) {
  return string.replace(/^  */,'').replace(/%20/g,' ').replace(/ /g,'+').replace(/^\+\+*/,'').replace(/%2C/g,',');
}

offsetmy=0;

function OmniSearch(page) {
  offsetmy=0;
  UrlEncodedStr=URLEncode(page.value);
  i=1;
  window.status='OmniSearch:';
  while (i<=checkboxindex) {
    if (document.upform.elements[i].checked) {
      window.status=window.status+' '+i+' '+checkboxnames[i];
      urls=checkboxvector[i]+cleanblank(UrlEncodedStr);
      lasp='http://recommend.org/l.asp?t='+escape(i+'. '+checkboxnames[i]+': '+page.value)+'&b=bar.htm&u='+(escape(urls));
      if (urls.indexOf('d.asp')>0 || urls.indexOf('ferret')>0 || urls.indexOf('rFull')>0 )
        lasp='http://'+urls;
      //removed 2006.02.16 newDrpad(0,lasp);
      newDrpad(0,'http://'+urls);
    }
    i++;
  }
}

var checkboxnames = new Array();
var checkboxvector = new Array();
var checkboxindex = 0;
var preamble='';
for (i=1;i<=9;i++) {
u1=getparam('u'+i);
l1=getparam('l'+i);
if (l1=='') l1=u1.replace('http://','');
if (u1!='') preamble=preamble+' '+'<a href='+u1+' target=_blank>'+l1+'</a> ';
};
var jhform=preamble+'<ForM name="upform" ACTION="javascript:OmniSearch(document.upform.SearchString);" METHOD="GET" >';
var jh='';
var baralign=(typeof(isframedbar)=='undefined'?'center':'left');
if (sitetype=='omni') {
  //adw('Enter keywords, checkmark relevant searches, press SEARCH. A separate window will open for each checkmarked search. Or click on any label to perform that one search only:');
var zipcodemessage=(zipcode==''?'':' for Zipcode '+zipcode);
if (simplersearch) {
var searchhelp=xp+'1. Enter search <b>keyword</b> (or keywords), 2. then click the desired search type(s) (e.g. <i>Yellow Pages'+zipcodemessage+'</i>).</p>';
var searchhelppop='1. Enter search <b>keyword</b> (or keywords), 2. then click the desired search type (e.g. <i>Yellow Pages'+zipcodemessage+'</i>).</p>';
}
else {
var searchhelp=xp+'<b><i>Basic Search:</i></b> 1. Enter search <b>keyword</b> (or keywords), 2. then click the desired search type (e.g. <i>Yellow Pages'+zipcodemessage+'</i>).'+xp+'<b><i>Advanced:</i></b> To perform <b>many searches</b> simultaneously: 1. enter keywords, 2. checkmark the relevant searches, 3. then press the SEARCH button, 4. a <i>separate window will popup</i> for each checkmarked search.</p>';
var searchhelppop='<b><i>Basic Search:</i></b> 1. Enter search <b>keyword</b> (or keywords), 2. then click the desired search type (e.g. <i>Yellow Pages'+zipcodemessage+'</i>).<p><b><i>Advanced:</i></b> To perform <b>many searches</b> simultaneously: 1. enter keywords, 2. checkmark the relevant searches, 3. then press the SEARCH button, 4. a <i>separate window will popup</i> for each checkmarked search.</p>';
}
adw(searchhelp);
}
adw('<table align="'+baralign+'" bgcolor="#d9D9F4" CELLSPACING=0 CELLPADDING=0  border=1><tr>');
if (tfpopupvip==0 && sitetype!='omni') {
  adw('<td bgcolor="#D9D9F4" valign=top width=49>');
  adw('<TABLE width="49" align="center" CELLSPACING=0 CELLPADDING=0 BORDER=0><tr><td');
  adw('><img src="'+images+'line.gif" alt="" width=2 height=24 border=0>');
  if (typeof(rmurl)!='undefined') if (rmurl!='')       adw('<a href = "'+rmurl+'" target="_top"><img src="'+images+'remove.gif" alt="remove bar frame" width=16 height=16 border=0></A><img src="'+images+'line.gif" alt="" width=2 height=21 border=0>');
  adw('<a href = "http://www.books-maps.com/'+kountrycode+'" target="_top"><img src="'+images+'compass.gif" alt="'+kountryname+' travel, geography, culture reference" width=19 height=21 border=0></A><img src="'+images+'line.gif" alt="" width=2 height=21 border=0><a');
  adw(' href="http://www.recommend.org" target="_top"><img src="'+images+'b_t.gif" alt="Subject Tree of the Web" width=19 height=21 border=0></A');
  adw('><img src="'+images+'line.gif" alt="" width=1 height=21 border=0');
  adw('></td> </tr> </table></td>');
}
adw('<td bgcolor="#D9D9F4" valign=top > <TABLE  CELLSPACING=0 CELLPADDING=0 BORDER=0> <tr bgcolor="#FCFCEA"> <td align="center" >');
if (!simplersearch&&sitetype=='omni') adw('<a HREF="javascript:OmniSearch(document.upform.SearchString);"><img src="'+images+'srch_button.gif" alt="SEARCH simulataneously in all the checkmarked categories (opening a separate window for each category)" width=48 height=16 border=0></a><img src="'+images+'line.gif" alt="" width=1 height=24 border=0> </td> <td>');
adw('<INPUT TYPE="TEXT" '+onpop(searchhelppop)+'NAME="SearchString" SIZE="19" MAXLENGTH="100" VALUE="'+searchstring+'"><a href="http://www.recommend.org/keywordhelp.htm" target="_blank" title="Click for help on selecting keywords"><img src="'+images+'line.gif" alt="" width=1 height=24 border=0><img src="'+images+'h_r.gif" alt="Click for keyword help." width=11 height=11 border=0></a></td>');

function omnidivider(label) {
  adw('</tr><tr><td><hr></td></tr><tr><td><b>'+label+': </b></td> ');
}

if (sitetype=='omni') { 
  websearch="www.google.com/search?hl=en&ie=UTF8&oe=UTF&q=";
  cb('Google',websearch,'Search all the Web');
  cb('Dictionaries','www.onelook.com/cgi-bin/cgiwrap/bware/dofind.cgi?word=','OneLook Search in many specialized dictionaries');
 //cb('eBay','www.qksrv.net/click-572495-7088800?loc=http%3A//search.ebay.com/search/search.dll%3FMfcISAPICommand%3DGetResult%26ht%3D1%26SortProperty%3DMetaEndSort%26ebaytag1%3Debayreg%26pid%3D572495%26url%3Dhttp%3A//search.ebay.com/search/search.dll%26aid%3D7088800%26query%3D','Search eBay auctions and stores');
 cb('eBay',ebay);
  cb('Froogle','www.google.com/products?q=','Froogle Search of Web-buyable products');
if (typeof(doprivatesearches)!='undefined') if (doprivatesearches!='') privatesearches(); 
if ((document.location+QUERY_STRING).indexOf('tajana')>0){
  omnidivider('Hebrew')
  cb('EN-Hebrew-EN Morfix','milon.morfix.co.il/default.aspx?q=','Morfix Hebrew-English and English-Hebrew Dictionary');
  cb('Hebrew Milon HE-EN','www.milon.co.il/general/general.php?term=','Milon English-Hebrew Dictionary');
  cb('EN-Hebrew LStone','www.lingvozone.com/main.jsp?action=translation&do=dictionary&language_id_from=23&language_id_to=25&word=','Hebrew - Livingtone with speech')
  cb('Hebrew-EN LStone','www.lingvozone.com/main.jsp?action=translation&do=dictionary&language_id_from=25&language_id_to=23&word=','Hebrew - Livingtone with speech')
  cb('Hebrew Medical','www.infomed.co.il/doSearchSitePlus.asp?searchFor=');
omnidivider('Slavic')
  cb('Russian LStone','www.lingvozone.com/main.jsp?action=translation&do=dictionary&language_id_from=23&language_id_to=15&word=','Russian - Livingtone with speech')
  cb('AV to Russian','n1.cs.fiu.edu/cgi-bin/get2post.cgi?action=http://babelfish.altavista.com/tr?intl=1&lp=en_ru&trtext=','Alta Vista translator of a sentence or text or a web page into Russian');
  cb('AV from Russian','n1.cs.fiu.edu/cgi-bin/get2post.cgi?action=http://babelfish.altavista.com/tr?intl=1&lp=ru_en&trtext=','Alta Vista translator of a sentence or text or a web page into Russian');
  cb('Google Hrvtski','translate.google.com/translate_t?hl=en&sl=en&tl=hr&text=','English-Croatian etc Translation by Google');
  cb('Rjecnik','www.rjecnik.net/search.php?search=','English-Croatian-English Rjecnik');
}
  omnidivider('Web');
  //websearch="www.google.com/search?hl=en&ie=UTF8&oe=UTF&q=";
  //cb('Google',websearch,'Search all the Web');
  cb('Bing','www.bing.com/search?q=','Search Bing.com');
  cb('Yahoo','search.yahoo.com/bin/search?p=','Search Yahoo.com');
  bsr='www.metacrawler.com/info.metac/dog/webresults.htm?qcat=web&qk=30&method=0&top=1&dpcollation=1&rpe=30&format=text&eng3=Fast&eng4=FindWhat&eng5=LookSmart&eng6=OpenDirectory&eng9=MetaSearchPicks&eng10=MetaSearchSearchPartnerNetwork&eng12=Inktomi&eng13=SearchHippo&eng14=teoma&submit=Search&start=&ver=26238&qkw=';
  cb('Meta Crawler',bsr,'MetaCrawler: simultaneously search many seacrh engines');
  cb('Ask.com','budgettravel.about.com/sitesearch.htm?spk=1&IAM=vpn200026_2&SUName=budgettravel&TopNode=9999&terms=','Ask.com/About.com Targeted Web Search');
  restrictsearch=(typeof(restrictsearch)!='undefined'?(restrictsearch==''?zipcode:restrictsearch):zipcode);
  if (restrictsearch!='') {

    var r=restrictsearch.replace(/%20/g,'+').replace(/ /g,'+')+'+';
    var rs=' (restricted to: '+restrictsearch+')';
    omnidivider('Restrict search: '+restrictsearch);
    cb('Google '+restrictsearch,websearch+r,'Search all the Web'+rs);
    cb('Yahoo '+restrictsearch,'search.yahoo.com/bin/search?p='+r,'Yahoo'+rs);
    cb('Meta Crawler',bsr+r,'MetaCrawler: simultaneously search many seacrh engines'+rs);
   // cb('Overture','service.bfast.com/bfast/click?bfsiteid=35566246&bfpage=over001&bfmid=253985&&table&&tr&&tr&&td&Keywords='+r,'Overture Web Search'+rs);
  }
 // omnidivider('Web (targeted)');
  // cb('Overture','service.bfast.com/bfast/click?bfsiteid=35566246&bfpage=over001&bfmid=253985&&table&&tr&&tr&&td&Keywords=','Overture Web Search');
 staten=(typeof(kountryname)=='undefined')?statecode:kountryname;
  //omnidivider('Yellow pages (business category)');
  omnidivider('Yellow pages');
var y0='maps.google.com/maps?hl=en&ie=UTF-8&oe=UTF&um=1&near=';
var yq='&q=';
var y=y0+yq;
var ys=y0+statecode+yq;
var yc=y0+citynameplus+','+statecode+yq;
var yz=y0+zipcode+yq;
  if (zipcode!='') cb('Zipcode '+zipcode,yz,'Zipcode '+zipcode+' yellow pages (phones, addresses, maps)');
  if (cityname!=''&&USA) cb(cityname,yc,cityname+' yellow pages (phones, addresses, maps)');
  if (statecode!='') cb(statecode,ys,staten+' yellow pages (phones, addresses, maps)');
  cb('U.S.A.',y,'yellow pages (phones, addresses, maps)');
  omnidivider('Reference');
  books='www.books-maps.com/barnpics.asp?';
  cb('News','search.news.yahoo.com/search/news?p=','Search Yahoo News');
  //cb('Books',books,'Book Search&Price Comparison Engine');
  cb('Ask Jeeves','web.ask.com/web?q=','Ask Jeeves');
  //cb('eLibrary','ask.elibrary.com/search.asp?srcmags=checked&srcnews=checked&srcbooks=checked&srctvrad=checked&srcpics=checked&refid=terrafly&query=','eLibrary -- search newspapers, magazines, transcripts, books');
  cb('Wolfram','www16.wolframalpha.com/input/?i=','Computations and Data');
omnidivider('Authoritative');
  cb('Wikipedia','en.wikipedia.org/wiki/Special:Search?search=','Wikipedia');
  cb('First Gov','firstgov.gov/fgsearch/index.jsp?db=www-fed-all&st=AS&ms0=should&mt0=all&rn=2&parsed=true&mw0=','FirstGov: search US federal and state government documents');
  websearch='scholar.google.com/scholar?hl=en&ie=UTF8&oe=UTF&q=';
  cb('Scientific',websearch,'Search scientific articles via Google Scholar');
cb('Fineli Nutrition','www.fineli.fi/foodsearch.php?lang=en&name=','Enter food name to get nutrient composition');
  omnidivider('Maps & Data');
  cb('TerraFly (Enter US address)','vn4.cs.fiu.edu/cgi-bin/tflaunch.cgi?Street=','For any US address (1 Main St, Atlanta, GA) or city (Atlanta, GA) or zipcode (33175) get TerraFly aerial fly-overs, maps, demographics, local data');
  cb('Google Maps (Enter US address)','maps.google.com/maps?q=','For any US address (1 Main St, Atlanta, GA) or city (Atlanta, GA) or zipcode (33175) get maps and local businesses, or Directions (33173 to 1 Flagler St, Miami, FL)');
ziporaddress=((typeof(address)=='undefined'?'':address)==''?zipcode:address);
ziporaddressplus=ziporaddress.replace(/ /g,'+');
  if (zipcode!='') cb('Google Directions from '+ziporaddress+' to (Enter US address)','maps.google.com/maps?q='+ziporaddressplus+'+to+','For any US address (1 Main St, Atlanta, GA) or city (Atlanta, GA) or zipcode (33175) get Directions (1 Flagler St, Miami, FL) from '+ziporaddress);
  cb('World towns','vn4.cs.fiu.edu/cgi-bin/tfcity.cgi?name=','Enter partial words to search for cities, towns, provinces; get satellite imagery, maps, local data, hotels');
  omnidivider('Dictionaries');
  cb('Multi Reference','education.yahoo.com/search/ref?p=','Yahoo Reference: dictionary, encyclopaedia, etc.');
  //cb('Multi dictionary','www.onelook.com/cgi-bin/cgiwrap/bware/dofind.cgi?word=','Search in many specialized dictionaries');
  cb('Babylon Translate','info.babylon.com/cgi-bin/info.cgi?ot=2&layout=combo.html&n=30&lang=&word=','Babylon translator of a WORD from English into many languages');
  cb('AllWords Translate','www.allwords.com/query.php?SearchType=0&goquery=Find+it%21&Language=ENG&NLD=1&FRA=1&DEU=1&ITA=1&ESP=1&Keyword=','AllWords.com translator of a WORD from English into Spanish, German, French, Dutch, English Definitions, Audio');
  cb('English to Spanish','n1.cs.fiu.edu/cgi-bin/get2post.cgi?action=http://babelfish.altavista.com/tr?intl=1&lp=en_es&trtext=','Alta Vista translator of a sentence or text or a web page into Spanish');
  //omnidivider('Encyclopaedias');
  //cb('xRefer (premium)','www.xreferplus.com/results.jsp?new_meta=1&term=','xRefer search in specialized encyclopaedias');
  //cb('Britannica (premium)','search.eb.com/search?query=','Encyclopaedia Britannica (requires a personal or institutional subscription -- many universities have it)');
  omnidivider('Health');
  bsr='www.drrecommend.com/DrFull.asp?Keywords_drrecommend=';
  cb('MD Reviewed Resources',bsr,'Search medical resources reviewed by DrRecommend Staff MDs');
  bsr='supported.org/searcher.asp?SearchCategory=/Health&HitsPerPage=60&PageNumber=0&HideDetails=on&SearchString=';
  bsr='www.medferret.org/index.html?SearchString=';
  //cb('MedFerret Article Databases',bsr,'Simultaneously Search Many Medical Databases');
  cb('HealthCare','n1.cs.fiu.edu/cgi-bin/get2post.cgi?action=http://www.healthcare.com/search.php?site=healthcare&search=');
  bsr='rxlist.com/cgi/rxlist.cgi?drug='
  cb('Drug Reference',bsr,'RxList Drug Reference');
cb('Health Finder','www.healthfinder.gov/search/default.asp?sort=date%253AD%253AL%253Ad1&output=xml&ie=UTF-8&client=healthfinder2&lr=lang_en&numgm=5&site=Federal%7Cnonprofit&q=','Health articles from reputable sources');
  bsr='click.linksynergy.com/fs-bin/statform?id=BEyY3Qv/FJM&offerid=43440&bnid=283&subid=&subid=0&searchtype=1&search=';
  cb('Drug Store',bsr,'DrugStore Health Products');

  omnidivider('Images');
  cb('Alta Vista','www.altavista.com/image/results?avkw=xytx&stype=simage&q=','Alta Vista Image Search');
  bsr='www.metacrawler.com/info.metac/dog/imageresults.htm?qcat=images&top=1&fs=images&ver=9933&qkw=';
  cb('Meta Crawler',bsr,'MetaCrawler: meta-search for images across many search engines');
  cb('Google images','images.google.com/images?ie=UTF-8&oe=UTF-8&hl=en&btnG=Google+Search&q=','Google Image Search');
  cb('YouTube','youtube.com/results?search_query=','YouTube Videos');
 // cb('Corbis','www.qksrv.net/interactive?ct=2&pid=572495&url=http%3A%2F%2Fbizpresenter.corbis.com%2Fsearch%2Fproductsearch.asp&aid=10279960&Go.x=11&Go.y=10&ss=','Corbis Stock Database of Images');
  omnidivider('Products (comparison shopping bots)');
cb('Yahoo','search.shopping.yahoo.com/search?p=','Yahoo Search of Web-buyable products');
cb('Price Grabber','www.pricegrabber.com/search.php?form_keyword=','PriceGrabber comparison shopping engine');
  cb('My Simon','mysimon.search.com.com/search?c=root&q=','MySimon comparison shopping engine');
  omnidivider('Mega-stores');
  //cb('Amazon','www.amazon.com/exec/obidos/external-search?mode=blended&keyword=&tag=terrafly&keyword=','Amazon.com');
  cb('Amazon','www.amazon.com/gp/associates/link-types/searchbox.html?tag=terrafly&creative=374001&campaign=211041&adid=1CCPAKY9C6JDQ9W2CPEE&mode=blended&keyword=','Amazon.com');
cb('Buy.com','www.tkqlhce.com/interactive?searchLoc=retail&adID=17662&qu=massage+chair&queryType=home2&pid=572495&aid=10389713&url=http%3A%2F%2Fwww.buy.com%2Fretail%2FGlobalSearchAction.asp%3Fquerytype%3Dhome2%26dclksa%3D1%26qu%3D','Buy.com')
cb('Walmart','click.linksynergy.com/fs-bin/statform?id=BEyY3Qv%2FFJM&offerid=64951&bnid=532&subid=&search_constraint=0&dest=9999999999&Continue.x=24&Continue.y=11&search_query=','Walmart');
  omnidivider(statecode+' People Search');
  cb('Address, Phone','phone.people.yahoo.com/py/psPhoneSearch.py?srch=bas&D=1&FirstName=&City=&State='+statecode+'&searchFor=Telephone&Search=Search&LastName=','Phone and address for a given last name');
  cb('E-mail','email.people.yahoo.com/py/psSearch.py?srch=bas&D=1&FirstName=&City=&State='+statecode+'&searchFor=Email&Search=Search&LastName=','E-mail for a given last name');
  //cb('Public records ($)','click.linksynergy.com/fs-bin/statform?id=BEyY3Qv/FJM&offerid=47351&bnid=336&subid=&adID=2004033&searchFName=&searchCity=&searchState='+statecode+'&searchLName=','Get public records and detailed info about a given person');
ussearch='www.jdoqocy.com/interactive?adID=145-0000000019&searchState='+statecode+'&aid=10642982&pid=572495&url=http://www.ussearch.com/search/start.cgi&sourceid=572495&searchLName=';
  cb('Public records ($)',ussearch);
  cb('Zaba','zabasearch.com/query1_zaba.php?state='+statecode+'&ref=$ref&se=$se&doby=&city=&name_style=1&sname=','Find phones, addresses, date of birth, and more');
  omnidivider('Reverse phone');
  cb('Phone area','decoder.americom.com/cgi-bin/decoder.cgi?handle=americom&searchField=','Find area codes of a city and vice-versa');
  //cb('Reverse phone','in-128.infospace.com/_1_213322349__info/kevdb-g2?KDB=res-us&OTMPL=%2Fres%2Fr1.html&QFM=P&QK=10&QP=','FInd person to whom a given 10-digit U.S. phone is registered');
  cb('Reverse phone','find.person.superpages.com/10866/search/ReversePhone?full_phone=305532-6684&localtime=survey&full_phone=','Find to whom a given 10-digit U.S. phone is registered');
  //cb('Reverse phone (business)','service.bfast.com/bfast/click?siteid=35724832&bfpage=search1&bfmid=27359743&QueryType=3&ClearLevel=Cloud9&CityZipAC=&State=&QueryString=','Find business for a given U.S. 10-digit phone number');
  omnidivider('Stocks');
  cb('Yahoo','finance.yahoo.com/q?d=c&t=5d&l=on&z=b&q=l&s=');
  cb('MSN','moneycentral.msn.com/scripts/webquote.dll?ipage=qd&Symbol=');
  cb('CNN','money.cnn.com/quote/quote.html?symb=');
  cb('CBS','www.marketwatch.com/tools/quotes/quotes.asp?symb=');
  cb('Google Finance','finance.google.com/finance?btnG=Search&hl=en&q=');
  omnidivider('Stocks - more');
  cb('Bloomberg','www.bloomberg.com/apps/quote?ticker=');
  cb('Hoover','www.hoovers.com/free/search/simple/index.xhtml?CoViewFree=us&page=1&HoovHome=premium.hoovers.com%2Fsubscribe%2F&which=company&x=34&y=14&SearchType=free&x=98&y=10&query_string=');
  cb('FundsData','fundsdata.com#');
if ((document.location+QUERY_STRING).indexOf('tajana')>0){
  omnidivider('Art');
  cb('ArtPrice','web.artprice.com/en/artistsearch.aspx?L=en&idr=MTgyMTQ0MzUwOTEzNDk&searcharti='); 
  cb('ArtNet','artnet.com/ag/fulltextsearch.asp?searchstring=');
  cb('AskArt','www.askart.com/AskART/search/Search.aspx?SearchType=Artist&FirstName=&Action=SubmitButton&LastName=');
  cb('FindArt','n1.cs.fiu.edu/cgi-bin/get2post.cgi?action=http://www.findartinfo.com/search/listartists.asp?mode=search&name=');
}
  adw('</td></tr></table>');
}
else {
  websearch="www.google.com/search?hl=en&ie=UTF8&oe=UTF&q="
  chkbx('Web',websearch,'<img src="'+images+'the_web1.gif" alt="Search all the Web" width=22 height=20 border=0></a>');
  if (sitetype=='health') {
    bsr="www.drrecommend.com/DrFull.asp?Keywords_drrecommend=";
    chkbx('MD Reviewed Resources',bsr,'<img src="'+images+'b_r_s.gif" alt="Search medical resources reviewed by our Staff MDs" width=44 height=20 border=0>');
    bsr="supported.org/searcher.asp?SearchCategory=/Health&HitsPerPage=60&PageNumber=0&HideDetails=on&SearchString=";
    bsr="www.medferret.org/index.html?SearchString=";
    //chkbx('MedFerret',bsr,'<img src="'+images+'b_j_a.gif" alt="Simultaneously Search Many Medical Databases" width=36 height=20 border=0>');
    chkbx("News",'search.news.yahoo.com/search/news?p=','<img src="'+images+'news.gif" alt="Search Yahoo News" width=27 height=10 border=0>');
    books="www.books-maps.com/barnpics.asp?";
    books='www.amazon.com/gp/associates/link-types/searchbox.html?tag=terrafly&creative=374001&campaign=211041&adid=1CCPAKY9C6JDQ9W2CPEE&mode=blended&keyword=';
    //chkbx("Yellow Pages","service.bfast.com/bfast/click?siteid=35724832&bfpage=search1&bfmid=27359743&QueryType=2&ClearLevel=Cloud9&QueryString=",'<img src="'+images+'yellow_pages_h20_w42.gif" alt="yellow and white pages (phones, addresses, maps)" target="_blank" width=42 height=20 border=0>');
    if (0==tfpopupvip) {
      //chkbx("Books",books,'<img src="'+images+'b_b.gif" alt="Book Search&Price Comparison Engine" width=30 height=10 border=0>');
      chkbx("Books",books,'<img src="'+images+'b_b.gif" alt="Book Search" width=30 height=10 border=0>');
      chkbx("DrugStore",'click.linksynergy.com/fs-bin/statform?id=BEyY3Qv/FJM&offerid=43440&bnid=283&subid=&subid=0&searchtype=1&search=','<img src="'+images+'b_p.gif" alt="Search auctions" width=25 height=20 border=0>');
    }
  }
  else {
    chkbx("News",'search.news.yahoo.com/search/news?p=','<img src="'+images+'news.gif" alt="Search Yahoo News" width=27 height=10 border=0>');
    if (tfpopupvip==0) {
      //chkbx('Travel',"supported.org/searcher.asp?SearchCategory=/Recreation/Travel&HitsPerPage=60&PageNumber=0&HideDetails=on&SearchString=",'<img src="'+images+'travel2.gif" alt="Travel Reference Database" width=20 height=20 border=0>');
      books="www.books-maps.com/barnpics.asp?";
    books='www.amazon.com/gp/associates/link-types/searchbox.html?tag=terrafly&creative=374001&campaign=211041&adid=1CCPAKY9C6JDQ9W2CPEE&mode=blended&keyword=';
      chkbx("Books",books,'<img src="'+images+'b_b.gif" alt="Book Search&Price Comparison Engine" width=30 height=10 border=0>');
    }
    //chkbx("Yellow Pages","service.bfast.com/bfast/click?siteid=35724832&bfpage=search1&bfmid=27359743&QueryType=2&ClearLevel=Cloud9&CityZipAC="+(statecode!=''?citynameplus:'')+"&State="+statecode+"&QueryString=",'<img src="'+images+'yellow_pages_h20_w42.gif" alt="yellow and white pages (phones, addresses, maps)" target="_blank" width=42 height=20 border=0>');
    if (tfpopupvip==0) {
      //chkbx('E-Bay',ebay,'<img src="'+images+'b_p.gif" alt="Product; auctions" width=25 height=20 border=0>');
    }
  }
  chkbx('More','recommend.org/omnisearch.htm#sitetype='+sitetype+'&'+params+'&searchstring=','<img src="'+images+'more.gif" alt="Menu of many more search sources to include in omni-search" width=19 height=21 border=0>');
  adw(' </td> </tr> </table>');
  adw('</td> <td align=left >');
  if (sitetype=='health') {
    adw('<img src="'+images+'line.gif" alt="" width=2 height=24 border=0>');
    adw('<a href="'+barpath+'" target="_top"><img src="'+images+'b_r.gif" alt="Listing for '+barcategory+'" width=19 height=21 border=0></A>');
    adw('<img src="'+images+'line.gif" alt="" width=2 height=24 border=0>');
    adw('<a href = "/"><img src="'+images+'b_h.gif" alt="The Medical Portal DrRecommend" width=19 height=21 border=0></A>');
  }
  else {
    if (0==tfpopupvip) {
      adw('<img src="'+images+'line.gif" alt="" width=2 height=24 border=0>');
      adw('<a ');
      adw(' href = "http://www.hotels-shopper.com/'+kountrycode+'" target="_top"><img src="'+images+'hotel.gif" alt="'+kountryname+' Hotel Comaprison Shopper" width=19 height=21 border=0></A><img src="'+images+'line.gif" alt="" width=2 height=21 border=0><a ');
      adw(air);
      adw(' href="http://recommend.org/SABRE_TN.htm" target="_blank"><img src="'+images+'car.gif" alt="Car Rent Comparison Engine" width=19 height=21 border=0></A><a ');
      if (0==tfpopup)
        //adw(' href="http://allmeasures.com/cruise.html" target="_blank"><img src="'+images+'ship.gif" alt="All cruises" width=19 height=21 border=0></A><a ');
        adw(' href="http://www.res99.com/cruises/MainPage?src=10003983" target="_blank"><img src="'+images+'ship.gif" alt="All cruises" width=19 height=21 border=0></A><a ');
      adw(' href="http://www.recommend.org/selected-travel.html" target="_top"><img src="'+images+'more.gif" alt="Portal to most major travel reservations systems, vacations, cruises, services, and travel supplies" width=19 height=21 border=0></A> ');
      adw('</td> ');
      adw('<td> ');
    }
  }
  if (0==tfpopup) {
    adw('<img src="'+images+'line.gif" alt="" width=2 height=21 border=0><a ');
    adw(' href="http://www.drrecommend.com/" target="_top"><img src="'+images+'medical.gif" alt="The Medical Portal DrRecommend" width=19 height=21 border=0></A><img src="'+images+'line.gif" alt="" width=2 height=21 border=0><a ');
    adw(' href="http://www.recommend.org/selected-health-stores.html" target="_top"><img src="'+images+'b_h_m.gif" alt="Health Mall" width=16 height=21 border=0></A><img src="'+images+'line.gif" alt="" width=2 height=21 border=0><a ');
    adw(' href="http://www.recommend.org/selected-comparison-shopping.html" target="_top"><img src="'+images+'b_c_e.gif" alt="Comparison shopping engines, malls" width=16 height=21 border=0></A><img src="'+images+'line.gif" alt="" width=2 height=21 border=0><a ');
    //adw(' href="http://recommend.org/American_Express.htm" target="_blank"><img src="'+images+'b_c.gif" alt="Credit" width=19 height=21 border=0></A><img src="'+images+'line.gif" alt="" width=2 height=21 border=0><a ');
  }
}
adw('</td> ');
adw('</tr> ');
adw('</table> ');

jh=jh.replace(/src=".images/g,'src="http://hotels-shopper.com/images');

function sprinkslite(){adframes()}
function doel(label){var a='@a';var m='ndr';m+=a+'cm.org';if (typeof(label)!='undefined') if (label=='hesham1@bellsouth.net') m=label;
dw('<a href="mai'+'lto:'+m+'">'+(typeof(label)!='undefined'?label:m)+'</a>')}
function doell(user,domain,label){var a='@';var m=user;m+=a+domain;dw('<a href="mai'+'lto:'+m+'">'+(typeof(label)!='undefined'?label:m)+'</a>')}
function doelf(label){var a='@cs.fi';var m='rishe';m+=a+'u.edu';dw('<a href="mai'+'lto:'+m+'">'+(typeof(label)!='undefined'?label:m)+'</a>')}

function isdatelike(nbr) {var d=nbr-100*Math.floor(nbr/100); return (nbr>19010000&&nbr<20150000&d>0&d<32)}
function K(nbr) {if (isdatelike(nbr)) return nbr;
  return (nbr<10000?(nbr>30?Math.round(nbr):Math.round(nbr*100)/100):(nbr>1000000?Math.round(nbr/10000)/100+'M':Math.round(nbr/1000)+'K'));
}
function percent(nbr) {
  var p=(nbr>0.0999?Math.round(nbr*100):Math.round(nbr*1000)/10);
  return (p<=100?p+'%':'');
}

function displaybar() {
if (sitetype!='omni') dw('<center>');
  dw(jhform);
  dw(jh);
  dw('</form>');
if (sitetype!='omni') dw('</center>');
}
function selectnbrs(nbr,suffix,minim){var str='';for (i=(typeof(minim)=='undefined'?1:minim);i<=nbr;i++) str+=('<option value="'+i+'">'+i+(typeof(suffix)=='undefined'?'':suffix)); return str}
function selectstrngs(str){return (';'+str).replace(/;/g,'<option value="').replace(/,/g,'">')}
function monthname(monthnumber){
if (monthnumber==1) return('January');
if (monthnumber==2) return('February');
if (monthnumber==3) return('March');
if (monthnumber==4) return('April');
if (monthnumber==5) return('May');
if (monthnumber==6) return('June');
if (monthnumber==7) return('July');
if (monthnumber==8) return('August');
if (monthnumber==9) return('September');
if (monthnumber==10) return('October');
if (monthnumber==11) return('November');
if (monthnumber==12) return('December');
return('January');

}
function selectmonths() {
  return selectstrngs('Jan,Jan;Feb,Feb;Mar,Mar;Apr,Apr;May,May;Jun,Jun;Jul,Jul;Aug,Aug;Sep,Sep;Oct,Oct;Nov,Nov;Dec,Dec');
} 

aadnbr=0;
othericon='<img src="http://hotels-shopper.com/images/other.gif" width=16 height=16 border=0 alt="">&nbsp;';

function aad(link,label,site) {
  aadnbr++
  var title=(cityname==''?searchstring:cityname);
  if (aadnbr == 1)
    dw('<p><b>'+title+' offers: </b><font color=red>');
  hrefm(link.replace(/ /g,'+'),othericon+label,site);
  if (aadnbr == 1) dw('</font>');
}

function hrefm(link,text,shortlink){dw(' <a href='+link+' target=_blank>'+text+'</a> ')}
function hrefdate(link,text) {
  var stamp=new Date();
  stamp=stamp.getTime();
  dw(' <a href='+link+'&tstamp='+stamp+' target="_blank">'+text+'</a>');
}

function anchorref(label,poptext) {
  var dloc=document.location+'';
  var dlocr=dloc.replace(/#.*/,'');
dlocr='';
  popsimple(dlocr+'#'+label,'<img src="'+images+'scrolldown.gif" border=0 width=9 height=11>&nbsp;'+label,poptext);
  dw();
}

function logingif() {
  var stamp=new Date();
  stamp=stamp.getTime();
  dw('<a href="http://terrafly.fiu.edu/subscription/?tflog='+document.location+'qAsloggedin"><img border=0 width=128 height=30 src="http://terrafly.cs.fiu.edu/checksubscription.asp?v='+stamp+'"></a>');
}

function poph_static (url,linktext,title) { 
  dw('<a href="'+url+'" '+onpop_static ()+' target=_top>'+linktext+'</a>');
  wid=800;
  bcg1=bcgdefault;
  var content ='<TABLE WIDTH=' + wid +
               ' BORDER="0" CELLPADDING="2" CELLSPACING="0" BGCOLOR="#9C9ACE"><tr><td><TABLE WIDTH= ' + 
               wid + ' BORDER="0" CELLPADDING="2" CELLSPACING="0" BGCOLOR="' +
               bcg1 + '"><TR><TD><FONT SIZE=2>' + title + 
               '</FONT></TD></TR></TABLE></TD></TR></TABLE>';  
  dw('<DIV class="popper" id="load_'+count_static+'">');
  dw(content);
  dw('</DIV>');
  count_static++;
}
function mlike(str,expression) {var e= new RegExp(expression,'i');return ((''+str).search(e)>=0)} 
function basevn4if() {
if (!mlike(document.location,'n[01-4].cs.fiu.edu/cgi-bin')) dw('<base href=\"http://vn4.cs.fiu.edu/cgi-bin/\">')

}
function copyrighttf(){var thisday = new Date(); document.write('<p><small>&copy; 1997-'+ thisday.getUTCFullYear() +' <a href="http://terrafly.com">TerraFly.com</a> and <a href="http://FIU.edu">FIU</a>.  Contains street data &copy; NavTeq. All rights reserved.</small></p>')};

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();

	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');

	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return '';

}

function eraseCookie(name) {
	createCookie(name,"",-1);


}

function tfuser(){return readCookie('uid')}
