var folder2 = new Image()
folder2.scr = "folder2.gif";
var folder = new Image()
folder.scr = "folderopen2.gif";
 function display(object,Iobject)
 {
  obj = document.getElementById(object);
  obj.style.display = '';
    obj = document.getElementById(Iobject);
    obj.src= folder.scr;
 }
 
function stopdisplay(object,Iobject)
 {
  obj = document.getElementById(object);
  obj.style.display = 'none';
  obj = document.getElementById(Iobject);
  obj.src= folder2.scr;
 }
 
 

start = 0;
menu_text = "#721601";
menu_bg = "#D1C1C1";
l_menu_text = "#721601";
l_menu_bg = "#D1C1C1";
var menu = new Array(
new Array(".Classic Suite",11),
new Array("Sofas","csfa.html","Sofas"),
new Array("Sofa Beds","csfbd.html","Sofa Beds"),
new Array("Dining","cdin.html","Dining"),
new Array("Occasional","coccsn.html","Occasional"),
new Array("Bedroom","cbdrm.html","Bedroom"),
new Array("Kids Bedroom","ckdbm.html","Kids Bedroom"),
new Array("Kitchen","cktch.html","Kitchen"),
new Array("Bars","cbar.html","Bars"),
new Array("Wall Units","cwall.html","Wall Units"),
new Array("Office","coffce.html","Office"),
new Array("Boiseries","cbois.html","Boiseries"),
new Array(".Modern Line",11),
new Array("Sofas","msfa.html","Sofas"),
new Array("Sofa Beds","msfbd.html","Sofa Beds"),
new Array("Dining","mdin.html","Dining"),
new Array("Occasional","moccsn.html","Occasional"),
new Array("Bedroom","mbdrm.html","Bedroom"),
new Array("Kids Bedroom","mkdbm.html","Kids Bedroom"),
new Array("Kitchen","mktch.html","Kitchen"),
new Array("Bars","mbar.html","Bars"),
new Array("Wall Units","mwall.html","Wall Units"),
new Array("Office","moffce.html","Office"),
new Array("Boiseries","mbois.html","Boiseries"),
new Array(".Matresses",1),
new Array("Types","matt.html","Types"),
new Array(".Contracts",1),
new Array("Types","contra.html","Options of Contracts"),
new Array(".Our Details",2),
new Array("Home","index.html","Go to homepage"), 
new Array("Contact","conta.html","Contact Siakolas")
)


 for(i=0;i<menu.length;i++)
 {
   document.write("<div class='head_menu' onmouseover=\"display('submenu"+i+"','img"+i+"')\" onmouseout=\"stopdisplay('submenu"+i+"','img"+i+"')\" name='menu"+ i +"' style='left:"+start+"'><table cellspacing=0 cellpadding=0 border=0 width=100% height=14><tr><td class='menu_td' width=26px bgcolor='#cccccc'><img src='folder2.gif' hspace=5 id='img"+i+"'></td><td class='menu_td' bgcolor='#000000'>"+ menu[i][0]+"</td></tr></table>");
   sub_len = menu[i][1]
   document.write("<div id='submenu"+i+"' style='display:none;'><center>")
   for (j=0;j<sub_len;j++)
   {
    i++;
    document.write("<a href='"+ menu[i][1] +"' onmouseover=\"window.status='"+ menu[i][2]+"';return true;\" onmouseout=\"window.status='';return true;\">");
    document.write("<div class='submenu' onmouseover=\"this.style.color = '"+ l_menu_text +"';this.style.backgroundColor='"+ l_menu_bg +"'\" onmouseout=\"this.style.color = '"+menu_text+"';this.style.backgroundColor='"+menu_bg+"';\">");
    document.write("&nbsp;&nbsp;"+menu[i][0]+"</div></a>")
   }
   document.write("</center></div>");
   document.write("</div>");
   start += 105;
 } 
 
 function oversearch(obj)
 {
  if (obj.value == "--- Search ---") 
  {obj.value="";obj.focus();}
 }
 
 function check_on(obj)
 {
  if ((obj.ex.checked == false) && (obj.tu.checked == false))
  {
   alert("Please indicatie a categorie where you want to search in! (examples/tutorials)");
   return false
  }
  if ((obj.search.value == "--- Search ---") || (obj.search.value == ""))
  {
   alert("Please enter a search value!");
   return false
  }
 }
 
 function addbookmark()
{
bookmarkurl="nnn.com"
bookmarktitle="ScriptBreaker (JavaScript)"
if (document.all)
window.external.AddFavorite(location.href, document.title)
}
