/* Please do not modify names of the variables
   Only change the corresponding values. */
   
var Sofa=52;
var BedRoom=23;
var CoffeeTable=51;
var Mattresse=2;      //plz dont change it to mattress
var WallUnit=27;
var Curio=42;
var Futon=22;
var TvUnit=2;
var Recliner=2;
var Chair=2;
var DinetteSet=35;
var Flyer=2;
var BunkBed=2;
var DayBed=21;
var BunkBed=16;
var LeatherSofa=38;


function load(item){

var count=0;

if(item!="location.htm" & item!="cgi-bin/bulletinBrd.cgi" & item!="Find.htm"){
 
 if(item=="Sofa")count=Sofa;
 if(item=="BedRoom")count=BedRoom;
 if(item=="CoffeeTable")count=CoffeeTable;
 if(item=="Mattresse")count=Mattresse;
 if(item=="WallUnit")count=WallUnit;
 if(item=="Curio")count=Curio;
 if(item=="Futon")count=Futon;
 if(item=="TvUnit")count=TvUnit;
 if(item=="Recliner")count=Recliner;
 if(item=="Chair")count=Chair;
 if(item=="DinetteSet")count=DinetteSet;
 if(item=="Flyer")count=Flyer;
 if(item=="DayBed")count=DayBed;
 if(item=="BunkBed")count=BunkBed;
 if(item=="Accessorie")count=Accessorie;
 if(item=="LeatherSofa")count=LeatherSofa;


//parent.docframe.document.open();
parent.docframe.document.write("<html>");
parent.docframe.document.write("<head>");
parent.docframe.document.write("<link rel=\"stylesheet\" href=\"ARVfurniture.css\" type=\"text/css\">");
parent.docframe.document.write("<script language=\"javascript\" type=\"text/javascript\" src=\"auto.js\"></script>");
parent.docframe.document.write("</head>");
parent.docframe.document.write("<body bgcolor=\"#ffffcc\">");
parent.docframe.document.write("<table bgcolor='#cccc99' border=\"1\" cellpadding=\"1\" align=\"center\">");
parent.docframe.document.write("<th>");

if(item.search(".cgi")>0){
parent.docframe.document.write("<h2>Guest-Book</h2>");
 }else{
parent.docframe.document.write("<h2>"+item+"s</h2>");
}
parent.docframe.document.write("</th>");
parent.docframe.document.write("<table bgcolor='#cccc99' border=\"1\" cellspacing=\"6\" cellpadding=\"1\" align=\"center\">");

parent.docframe.document.write("<tr>");

for(var i=1;i<=count;i++){

parent.docframe.document.write("<td bgcolor='#ffffcc' height=\"80\" align=\"center\" width=\"95\" valign=\"center\" onmouseover=\"this.style.backgroundColor='#000000';\" onmouseout=\"this.style.backgroundColor='ffffcc';\" ><a href='javascript:void(0)' onclick='top.cuteframe.location.href=\"../cgi-bin/showInfo.cgi?val="+item+i+"&dir="+item+"\";' ><img src='"+item+"/"+item+i+".jpg' width=\"75\" height=\"60\" border='0'/></a></td>");
if(i%3==0){
parent.docframe.document.write("</tr>");
parent.docframe.document.write("<tr>");
}

}

parent.docframe.document.write("</table>");
parent.docframe.document.write("<br><p align=\"center\"><font class=\"bottom\">Web site under construction.<br> Sorry for the inconvenience.</font></p>");
parent.docframe.document.write("</body>");
parent.docframe.document.write("</html>");
parent.docframe.document.close();
 }
};



function remove(s, t) {
  i = s.indexOf(t);
  r = "";
  if (i == -1) return s;
  r += s.substring(0,i) + remove(s.substring(i + t.length), t);
  return r;
  };

