<!-- 
function search() {
if (navigator.appName!='Microsoft Internet Explorer') {
	var t = document.getSelection();
	od(t);
	}
else {
	var t = document.selection.createRange();
	if(document.selection.type == 'Text' && t.text>'') {
		document.selection.empty();
		od(t.text);}
   }
function od(t) {
while (t.substr(t.length-1,1)==' ') 
	t=t.substr(0,t.length-1)
while (t.substr(0,1)==' ') 
	t=t.substr(1)
if (t) location.href('http://www.worldwidestore.com/Lamps/sessearch.php?q='+encodeURIComponent(t));
}   
}
status='double-click any word - get its search results.'
document.ondblclick=search 
// -->

var newnum;
function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1 || endstr=='')
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break; 
  }
  return null;
}
function SetCookie (name,value) {
  document.cookie = name + "=" + escape(value) + "; path=/";
}
function AddSize(){
location = document.selecter.select1.options[document.selecter.select1.selectedIndex].value
}
function donothing() {}
function ShowBasket() {
  var basket=null
  alert(" Product Basket opens in a New Window\nYou MUST Enable your browser\'s POP-UP");
  basket=window.open('webwares/basket.html','basket','resizable=0,menubar=0,scrollbars=0,status=0,width=250,height=260,dependent=1,screenX=375,left=375,screenY=185,top=185');
  if (basket != null) {
    if (basket.opener == null) {
      basket.opener = self;
      self.location.href=document.location;
    }
  }
              basket.focus();
}
    
function split(str,piece) {
      var a = str.indexOf(",");
      var b = str.lastIndexOf(",");
      var c = str.indexOf("|");
      if (piece==1) return str.substring(0,a);
      if (piece==2) return str.substring(a+1,b);
      if (piece==3) return str.substring(b+1,c);
      if (piece==4) return str.substring(c+1,str.length);
}
function AddtoBasket(name,url,price) {
        newnum = GetCookie("num") ? GetCookie("num") : 1;       
        var exist = 0;
        
        id = name + "," + url + "," + price;
        
        for (var i=1;i<newnum;i++) { 
                if (GetCookie("item"+i)){
                if (split(GetCookie("item"+i),1)==name) { exist=1; break;} } }          
        if (exist) {
                var current = 0;
                current = split(GetCookie("item"+i),4); 
                current++;
                id += "|"+current;
                SetCookie("item"+i,id);
        }
        else {
                id += "|1";
                SetCookie("item"+newnum,id);
                newnum++; SetCookie("num",newnum);
        }
        ShowBasket();
}
function writeheader() {
document.write('<CENTER><TABLE WIDTH="100%" HEIGHT="20" BORDER="1" CELLSPACING="0" CELLPADDING="0" BORDERCOLOR="#F0F0F0" BORDERCOLORLIGHT="#FAFAFA" BORDERCOLORDARK="#848484">');
document.write('<CAPTION><CENTER><A HREF="http://www.worldwidestore.com/SfurnitureU.htm" TARGET="_opener"><IMG SRC="storeheaderF.gif" ALT="World Wide Store" BORDER=0 HEIGHT=53 WIDTH=400 LOWSRC="sp.gif" VSPACE=1></A></CENTER>');
document.write('<CENTER><B><FONT COLOR="#330000"><FONT SIZE=+1>T h e &nbsp; I n t e r n e t &nbsp; P l a c e &nbsp; T o &nbsp; S h o p</FONT></FONT></B></CENTER>');
document.write('<A HREF="TiffanyLampsInventoryList.html"><IMG SRC="tabHi.gif" LOWSRC="sp.gif" ALT="[ Inventory List ]" BORDER=0 HEIGHT=21 WIDTH=100 ALIGN="LEFT"></A>');
document.write('<DIV ALIGN=right><IMG SRC="asterisk.gif" WIDTH=16 HEIGHT=16 BORDER=0 LOWSRC="sp.gif">');
document.write('<B><FONT SIZE=-1>[ <A HREF="mailto:&#32;?subject=',document.title,'&body=I found this&nbsp;',document.title,'&nbsp;at World Wide Store and thought you might be interested.&#32;',document.location,'">Send this page to a friend</A> ]</FONT></B></DIV></CAPTION>');
document.write('<TD BGCOLOR="#C8DCD2"><CENTER><B>&nbsp;',document.title,'&nbsp;</B></CENTER></TD></TABLE></CENTER>');
}
writeheader()
