
var bgcolor_margin = "#191919";
var bgcolor_cell = "#222424";
var bgcolor_hcell = "#343534";
var background_cell = "";
var background_hcell = "";
var class_name = "menu_dropdown";
var cell_spacing = 1;
var cell_padding = 3;
var height = 22;

var arMenu = 
[
///0 ABOUT US 
  [
    [
      ['Our Company', 'about.htm'],
      ['Our Mission', 'about-mission.htm'],
      ['Our Owner', 'about-dave-barglof.htm'],
      ['Our Qualifications', 'about-qualifications.htm',
	    [
		  [
		    ['Class A Contractors License', 'qualific-class.htm'],
            ['SRW Installer', 'qualific-swr-installer.htm'],
            ['ICPI Installer', 'qualific-icpi-installer.htm'],
            ['IA Member', 'qualific-ia-member.htm'],
            ['Kichler Light Pro', 'qualific-kichler.htm'],
            ['Allan Block Installer', 'qualific-allan-block.htm'],
            ['BBB Accredited Business', 'qualific-bbb.htm']
		  ],
	      280, 418, 145
	    ]
      ]
    ],
	190, 349, 100
  ],

//1 HARDSCAPING
  [
    [
      ['Retaining Walls', 'segmental.htm'/*,
	    [
		  [
		    //['Natural', 'natural.htm'],
	        ['Segmental', 'segmental.htm']
		  ],
		  270, 373, 90
	    ]*/
      ],
	  ['Pavers', 'pavers.htm',
	    [
		  [
		    ['Driveways', 'driveways.htm'],
            ['Patios', 'patios.htm'],
            ['Walk Paths', 'walk-paths.htm'],
            ['Permeable', 'permeable.htm'],
            ['Paver Art', 'paver-art.htm']
		  ],
		  280, 396, 90
	    ]
      ],
      ['Outdoor Living Spaces', 'living-spaces.htm',
	    [
		  [
		    ['Outdoor Kitchens', 'outdoor-kitchens.htm']
		  ],
		  280, 418, 110
	    ]
      ],	  
      ['Fire Features', 'fire-features.htm'],
	  ['Digital Catalogs', 'catalogs.htm'],
      ['Color Collection', 'colors.htm'],
      ['Shapes Library', 'shapes.htm'],
      ['Patterns', 'patterns.htm'],
      ['Technical', 'technical.htm'],
      ['Faqs', 'faq.htm']
    ],
	190, 373, 120
  ],

//2 IRRIGATION
  [
    [
      //['Throw', 'throw.htm'],
      //['Subsurface Drip', 'sub-surface.htm'],
      ['Knight-Scapes', 'knight-scapes.htm']
    ],
	190, 397, 100
  ],
  //3 OTHER LANDSCAPE SERVICES
  [
    [
      //['Fire Features', 'fire-features.htm'],
	  ['Flag Poles', 'javascript:;',
	    [
		  [
		    ['Types of Flagpoles', 'javascript:;',
	          [
		        [
		          ['Continental', 'flag-poles-continental1.htm'],
                  ['Independence', 'flag-poles-continental2.htm'],
                  ['Sentry', 'flag-poles-continental3.htm'],
                  ['Estate', 'flag-poles-continental4.htm'],
                  ['Patio', 'flag-poles-continental5.htm'],
                  ['Nautical', 'flag-poles-continental6.htm'],
                  ['Vertical Mount', 'flag-poles-continental7.htm'],
                  ['Outrigger Mount', 'flag-poles-continental8.htm']
		        ],
	            380, 446, 100
	          ]
            ],
            ['Accessories & Upgrades', 'flagpole-accessories.htm',
	          [
		        [
		          ['Eagles', 'flag-poles-accessories1.htm'],
                  ['Revolving Truck Assemblies', 'flag-poles-accessories2.htm'],
                  ['Ball/Truck Assemblies', 'flag-poles-accessories3.htm'],
                  ['Cleat Covers & Halyard Channels', 'flag-poles-accessories4.htm'],
                  ['Flash Collars', 'flag-poles-accessories5.htm']
		        ],
	            380, 469, 170
	          ]
            ],
            ['Flagpole Finishes', 'flagpole-finishes.htm'],
            ['Flags', 'flagpole-flags.htm'],
            ['Halyards & Installation', 'flagpole-halyards.htm']
		  ],
		  280, 446, 130
	    ]
      ],
	  ['Golfscapes', 'golfscapes.htm'],
	  ['Holiday Lighting', 'holiday-lighting.htm',
	    [
		  [
		    ['What You Get With Our Service', 'holiday-our-service.htm'],
            ['Package 1', 'holiday-package-1.htm'],
            ['Package 2', 'holiday-package-2.htm'],
            ['Package 3', 'holiday-package-3.htm']
		  ],
		  280, 492, 165
	    ]
      ],
	  ['Outdoor Lighting', 'javascript:;',
	    [
		  [
		    ['Benefits of Lighting', 'benefits-of-lighting.htm'],
	        ['Our Lighting', 'out-lighting.htm'],
            ['Products', 'products.htm']
		  ],
		  280, 515, 104
	    ]
      ],
	  ['Outdoor Structures', 'javascript:;',
	    [
		  [
		    ['Living Spaces', 'living-spaces.htm'],
            ['Fences', 'fences.htm'],
            ['Decks', 'decks.htm'],
            ['Arbors, Pergolas, and Gazebos', 'arbors-pergolas-gazebos.htm']
		  ],
		  280, 538, 160
	    ]
      ],
	  ['Rainwater Harvesting', 'rainwater.htm',
	    [
		  [
		    ['The Importance of Rainwater Harvesting', 'rainwater-harvesting-importance.htm'],
	        ['How Rainwater Harvesting Works', 'rainwater-harvesting-works.htm'],
	        ['The Many Different Uses for Harvested Rainwater', 'rainwater-manydifferent.htm'],
	        ['Calculating Rainwater Catchment', 'rainwater-calculating.htm'],
	        ['Benefits of Rainwater Harvesting', 'rainwater-benefits.htm'],
            ['LEED Certification', 'rainwater-leed-certification.htm']
		  ],
		  280, 561, 252
	    ]
      ],
      ['Water Features', 'water-features.htm',
	    [
		  [
		    ['Ponds', 'water-ponds.htm'],
            ['Fountains', 'water-fountains.htm'],
            ['Waterfalls', 'water-waterfalls.htm']
		  ],
	      280, 584, 100
	    ]
      ]
    ],
	190, 445, 120
  ],

//4 Customer Feedback
  [
    [
      ['Client Testimonials', 'ab-testimonials-client.htm'],
      ['Customer Satisfaction Survey', 'customer-feedback.htm']	
    ],
	190, 493, 155
  ],

//5   EMPLOYMENT
  [
    [
      ['Available Positions', 'employment-available.htm'],
      ['Employment Application', 'employment.htm']
    ],
	190, 565, 130
  ],
   [ // 6 Recent Jobs Photo
     [
       ['Seating Walls', 'jobs-seating-walls.htm'],
       ['Retaining Walls', 'jobs-retaining-walls.htm'],
       ['Paver Projects', 'jobs-paver-projects.htm']
  
     ],
	 190, 589, 100
   ] 
 ]



var timerMenu;

function hideMenu() {
  timerMenu=setTimeout('hideMenuItems()', 200);
}

function hideMenuItems() {
  for (var i=0; i<arMenu.length; i++)
    hideMenuItem('menu_'+i, arMenu[i]);
}

function hideMenuItem(name, arr) {
  MM_showHideLayers(name,'','hide');
  for(var i=0;i<arr[0].length;i++)
    if ((arr[0][i][2]) && (arr[0][i][2].length>0))
      hideMenuItem(name+'_'+i, arr[0][i][2]);
}

function showMenu(name) {
  MM_setPosition();
  clearTimeout(timerMenu);
  hideMenuItems();

  MM_showHideLayers(name,'','show');
  while (name.indexOf("_")!=-1) {
	name = name.substring(0, name.lastIndexOf("_"));
    MM_showHideLayers(name,'','show');
  }
}

function fWriteLayers() {
  for (var i=0; i<arMenu.length; i++) {
	writeMenu('menu_'+i, arMenu[i])
  }
}

function writeMenu(name, arr) {
  document.write("<div id='"+name+"' style='position:absolute; left:0px; top:0px; width:"
   +arr[3]+"px; z-index:1; visibility: hidden' onMouseOver=\"clearTimeout(timerMenu);\" onMouseOut=\"hideMenu();\">"); 
  document.write("<table width='100%' border=0 cellspacing=0 cellpadding=0"
   +((bgcolor_margin!="")?" bgcolor='"+bgcolor_margin+"'":"")+"><tr><td>"); 
  document.write("<table width='100%' border=0 cellspacing="+cell_spacing+" cellpadding="+cell_padding+">");
  for (var j=0;j<arr[0].length;j++) {
    document.write("<tr>");
    document.write("<td "+((bgcolor_cell!="")?" bgcolor='"+bgcolor_cell+"'":"")
     +((background_cell!="")?" background='"+background_cell+"'":"")
	 +" onmouseover=\""+((bgcolor_hcell!="")?"this.style.backgroundColor='"+bgcolor_hcell+"';":"")
     +((background_hcell!="")?" this.style.background='url("+background_hcell+")';":"")
     +(((arr[0][j][2]) && (arr[0][j][2][0].length>0))?" showMenu('"+name+"_"+j+"');":" showMenu('"+name+"');")
	 +"\""
	 +" onmouseout=\""+((bgcolor_cell!="")?" this.style.backgroundColor='"+bgcolor_cell+"';":"")
   	 +((background_cell!="")?" this.style.background='url("+background_cell+")';":"")+"\""
   	 +" onclick=\"location.href='"+arr[0][j][1]+"'\""
	 +" style='cursor: hand; height:"+height+"px;'>"
	 +"<a href='"+ arr[0][j][1]+"' class='"+class_name+"'>"+arr[0][j][0]+"</a></td>");
    document.write("</tr>");
  }
  document.write("</table>");
  document.write("</td></tr></table>");
  document.write("</div>");
  for(var j=0;j<arr[0].length;j++) {
    if ((arr[0][j][2]) && (arr[0][j][2][0].length>0)) {
	  writeMenu(name+'_'+j, arr[0][j][2]);
	}
  }
}

function MM_setPosition() {
  for (var i=0; i<arMenu.length; i++)
    setPosition('menu_'+i, arMenu[i])
}

function setPosition(name, arr) {
  if (IEx) {
    document.all(name).style.left = x.offsetLeft+arr[1];
    document.all(name).style.top = y.offsetTop+arr[2];
  }
  else if (NS6) {
    str = "document.getElementById('"+name+"').style.left = document.getElementById('x').offsetLeft+arr[1]";
    eval(str);
    str = "document.getElementById('"+name+"').style.top = document.getElementById('y').offsetTop+arr[2]";		
    eval(str);
  }	
  for(var i=0;i<arr[0].length;i++)
    if ((arr[0][i][2]) && (arr[0][i][2].length>0))
      setPosition(name+'_'+i, arr[0][i][2]);
}

//function 

var IEx = (document.all)?1:0;
var NS4 = (document.layers)?1:0
var NS6 = (document.getElementById)?1:0

function MM_findObj(n, d) { //v4.0
  var p,i,x;  
  if(!d) d=document; 
  if((p=n.indexOf("?"))>0&&parent.frames.length) 
  {
 	d=parent.frames[n.substring(p+1)].document; 
	n=n.substring(0,p);
  }
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}