	function PopupWindow(theURL,winName,features) { //v2.0
		window.open(theURL,winName,features);
	}




        function SetSearchColor(RGB, SubmitSwitch, ColorForm, ColorField) {
                ColorField.value = RGB;

		if ( window.UpdateCurrentColorBox ){
			UpdateCurrentColorBox(RGB);
		}

                if(SubmitSwitch) {
                        ColorForm.submit();
                }
        }



		function PopupWindow(theURL,winName,features) {
			window.open(theURL,winName,features);
		}
	



function openCartViewWindow(url)
{
	newwindow=window.open(url,'Popup','scrollbars=yes,width=600,height=600,top=84,left=217'); 
	if (window.focus) {newwindow.focus()}
	return false;
}




    function FilesearchFormValidate(){
            section1_index = document.file_form.s1.selectedIndex;
            section1_value = document.file_form.s1.options[section1_index].value;
      if (
		document.file_form.text.value == "" 
		&& document.file_form.username.value == "" 
		&& section1_value == "0" && document.file_form.color.value == "" 
		&& document.file_form.cs_nw.value == "xxx" && document.file_form.cs_n.value == "xxx" && document.file_form.cs_ne.value == "xxx"
		&& document.file_form.cs_w.value == "xxx" && document.file_form.cs_center.value == "xxx" && document.file_form.cs_e.value == "xxx"
		&& document.file_form.cs_sw.value == "xxx" && document.file_form.cs_s.value == "xxx" && document.file_form.cs_se.value == "xxx"
	){
        alert("Please enter a search term in the form.");
        return false;
      } else {
        return true;
      }
    }
  



    function RefineFileSearchFormValidate(){
        if ( document.RefineFileSearchForm.text.value != "" ||
             document.RefineFileSearchForm.color.value != "" )
        {
            return true;
        } else {
            alert("Please enter a search term in the form.");
            return false;
        }
    }




	function UpdateCurrentColorBox(value){

		thebox = document.getElementById("currentcolorbox");

		if (thebox){

			if (value == ""){

				thebox.style.backgroundColor = "#ffffff";
				hexField = document.getElementById("hex");
				if( hexField != "undefined" && hexField != null) {
					hexField.value = "";
				}

			} else {

				thebox.style.visibility = "inherit";
				value_array = value.split(",");

				hexcode = "#";

				if (value_array[0] < 16) hexcode = hexcode + "0";
				hexcode = hexcode + (value_array[0]-0).toString(16);
				if (value_array[1] < 16) hexcode = hexcode + "0";            
				hexcode = hexcode + (value_array[1]-0).toString(16);
				if (value_array[2] < 16) hexcode = hexcode + "0";            
				hexcode = hexcode + (value_array[2]-0).toString(16); 

				thebox.style.backgroundColor = hexcode;
				
				hexField = document.getElementById("hex");
				if( hexField != "undefined" && hexField != null ) {
					hexField.value = hexcode;
				}

			}

		}
	
	}





	function hexToDec(hex){ 
		return parseInt(hex,16); 
	}

	function trimHex(str){
		return str.replace(/^\#/g, '');
	}

	function splitHex(hex){
		hex = trimHex(hex);
		r = hexToDec(hex.substring(0, 2));
		g = hexToDec(hex.substring(2, 4));
		b = hexToDec(hex.substring(4, 6));
		return r + ',' + g + ',' + b;
	}




		function TopsearchFormValidate(){
			if ( document.topsearch.text.value != "" ){ return true; }
			else {
				alert("Please enter a search term in the form.");
				return false;
			}
		}
  
  function mmLoadMenus_gallery() {
  if (window.mm_menu_0214090841_0) return;
   window.mm_menu_0214090841_0 = new Menu("root",180,20,"Verdana, Arial, Helvetica, sans-serif",11,"#d4d5cf","#FFFFFF","#AA311F","#AA311F","left","middle",10,0,500,5,7,true,true,true,0,false,false);
    mm_menu_0214090841_0.addMenuItem("bullnosing&nbsp;&amp&nbsp;capping","location='../bullnosing.htm'");
   /*mm_menu_0214090841_0.addMenuItem("courtyard&nbsp;blocks","location='../blocks3.htm'");*/
   mm_menu_0214090841_0.addMenuItem("feature&nbsp;stone","location='../stone.htm'");
   mm_menu_0214090841_0.addMenuItem("landscaping&nbsp;&amp;&nbsp;edging&nbsp;blocks","location='../blocks.htm'");
   mm_menu_0214090841_0.addMenuItem("paving","location='../paving.htm'");
   mm_menu_0214090841_0.addMenuItem("pier&nbsp;blocks&nbsp;&amp;&nbsp;pier&nbsp;caps","location='../piercaps.htm'");
   mm_menu_0214090841_0.addMenuItem("walling&nbsp;blocks","location='../blocks2.htm'");
   mm_menu_0214090841_0.addMenuItem("water&nbsp;features","location='../waterfeatures.htm'");
   mm_menu_0214090841_0.hideOnMouseOut=true;
   mm_menu_0214090841_0.bgColor='#AA311F';
   mm_menu_0214090841_0.menuBorder=1;
   mm_menu_0214090841_0.menuLiteBgColor='#AA311F';
   mm_menu_0214090841_0.menuBorderBgColor='#ffffff';
  if (window.mm_menu_0214090841_1) return;
   window.mm_menu_0214090841_1 = new Menu("root",150,20,"Verdana, Arial, Helvetica, sans-serif",11,"#d4d5cf","#FFFFFF","#AA311F","#AA311F","left","middle",10,0,500,5,7,true,true,true,0,false,false);
   mm_menu_0214090841_1.addMenuItem("screen&nbsp;wall&nbsp;details","location='../specifications/specifications_1.htm'");
   mm_menu_0214090841_1.addMenuItem("retaining&nbsp;walls","location='../specifications/specifications_2.htm'");
   mm_menu_0214090841_1.addMenuItem("fencing&nbsp;&amp;&nbsp;feature&nbsp;walls","location='../specifications/specifications_3.htm'");
   mm_menu_0214090841_1.addMenuItem("other&nbsp;details","location='../specifications/specifications_4.htm'");
   mm_menu_0214090841_1.addMenuItem("laying&nbsp;pavers","location='../specifications/specifications_5.htm'");
   mm_menu_0214090841_1.addMenuItem("laying&nbsp;blocks","location='../specifications/specifications_9.htm'");
   mm_menu_0214090841_1.addMenuItem("laying&nbsp;configurations","location='../specifications/specifications_6.htm'");
   mm_menu_0214090841_1.addMenuItem("wall&nbsp;building&nbsp;tips","location='../specifications/specifications_7.htm'");
   mm_menu_0214090841_1.addMenuItem("colour&nbsp;range","location='../specifications/specifications_8.htm'");
   mm_menu_0214090841_1.hideOnMouseOut=true;
   mm_menu_0214090841_1.bgColor='#AA311F';
   mm_menu_0214090841_1.menuBorder=1;
   mm_menu_0214090841_1.menuLiteBgColor='#AA311F';
   mm_menu_0214090841_1.menuBorderBgColor='#ffffff';
  if (window.mm_menu_0214090841_2) return;
   window.mm_menu_0214090841_2 = new Menu("root",160,20,"Verdana, Arial, Helvetica, sans-serif",11,"#d4d5cf","#FFFFFF","#AA311F","#AA311F","left","middle",10,0,500,5,7,true,true,true,0,false,false);
   mm_menu_0214090841_2.addMenuItem("blocks","location='gallery_8.htm'");
   mm_menu_0214090841_2.addMenuItem("detailing","location='gallery_9.htm'");
   mm_menu_0214090841_2.addMenuItem("feature&nbsp;stone","location='gallery_7.htm'");
   mm_menu_0214090841_2.addMenuItem("housing","location='gallery_6.htm'");
   mm_menu_0214090841_2.addMenuItem("paving","location='gallery_5.htm'");
   mm_menu_0214090841_2.addMenuItem("screen&nbsp;walls&nbsp;&amp;&nbsp;fences","location='gallery_2.htm'");
   mm_menu_0214090841_2.addMenuItem("swimming&nbsp;pools","location='gallery_4.htm'");
   mm_menu_0214090841_2.addMenuItem("water&nbsp;features","location='gallery_1.htm'");
   mm_menu_0214090841_2.hideOnMouseOut=true;
   mm_menu_0214090841_2.bgColor='#AA311F';
   mm_menu_0214090841_2.menuBorder=1;
   mm_menu_0214090841_2.menuLiteBgColor='#AA311F';
   mm_menu_0214090841_2.menuBorderBgColor='#ffffff';
mm_menu_0214090841_0.writeMenus();
mm_menu_0214090841_1.writeMenus();
mm_menu_0214090841_2.writeMenus();
} // mmLoadMenus()

	function mmLoadMenus() {
  if (window.mm_menu_0214090841_0) return;
   window.mm_menu_0214090841_0 = new Menu("root",180,18,"Verdana, Arial, Helvetica, sans-serif",11,"#d4d5cf","#FFFFFF","#424C78","#424C78","left","middle",10,0,500,5,7,true,true,true,0,false,false);
  mm_menu_0214090841_0.addMenuItem("bullnosing&nbsp;&amp&nbsp;capping","location='bullnosing.htm'");
   /*mm_menu_0214090841_0.addMenuItem("courtyard&nbsp;blocks","location='blocks3.htm'");*/
   mm_menu_0214090841_0.addMenuItem("feature&nbsp;stone","location='stone.htm'");
   mm_menu_0214090841_0.addMenuItem("landscaping&nbsp;&amp;&nbsp;edging&nbsp;blocks","location='blocks.htm'");
   mm_menu_0214090841_0.addMenuItem("paving","location='paving.htm'");
   mm_menu_0214090841_0.addMenuItem("pier&nbsp;blocks&nbsp;&amp;&nbsp;pier&nbsp;caps","location='piercaps.htm'");
   mm_menu_0214090841_0.addMenuItem("walling&nbsp;blocks","location='blocks2.htm'");
   mm_menu_0214090841_0.addMenuItem("water&nbsp;features","location='waterfeatures.htm'");
   mm_menu_0214090841_0.bgColor='#424C78';
   mm_menu_0214090841_0.menuBorder=1;
   mm_menu_0214090841_0.menuLiteBgColor='#424C78';
   mm_menu_0214090841_0.menuBorderBgColor='#ffffff';
  if (window.mm_menu_0214090841_1) return;
   window.mm_menu_0214090841_1 = new Menu("root",150,20,"Verdana, Arial, Helvetica, sans-serif",11,"#d4d5cf","#FFFFFF","#424C78","#424C78","left","middle",10,0,500,5,7,true,true,true,0,false,false);
   mm_menu_0214090841_1.addMenuItem("screen&nbsp;wall&nbsp;details","location='specifications/specifications_1.htm'");
   mm_menu_0214090841_1.addMenuItem("retaining&nbsp;walls","location='specifications/specifications_2.htm'");
   mm_menu_0214090841_1.addMenuItem("fencing&nbsp;&amp;&nbsp;feature&nbsp;walls","location='specifications/specifications_3.htm'");
   mm_menu_0214090841_1.addMenuItem("other&nbsp;details","location='specifications/specifications_4.htm'");
   mm_menu_0214090841_1.addMenuItem("laying&nbsp;pavers","location='specifications/specifications_5.htm'");
   mm_menu_0214090841_1.addMenuItem("laying&nbsp;blocks","location='specifications/specifications_9.htm'");
   mm_menu_0214090841_1.addMenuItem("laying&nbsp;configurations","location='specifications/specifications_6.htm'");
   mm_menu_0214090841_1.addMenuItem("wall&nbsp;building&nbsp;tips","location='specifications/specifications_7.htm'");
   mm_menu_0214090841_1.addMenuItem("colour&nbsp;range","location='specifications/specifications_8.htm'");
   mm_menu_0214090841_1.hideOnMouseOut=true;
   mm_menu_0214090841_1.bgColor='#424C78';
   mm_menu_0214090841_1.menuBorder=1;
   mm_menu_0214090841_1.menuLiteBgColor='#424C78';
   mm_menu_0214090841_1.menuBorderBgColor='#ffffff';
  if (window.mm_menu_0214090841_2) return;
   window.mm_menu_0214090841_2 = new Menu("root",160,20,"Verdana, Arial, Helvetica, sans-serif",11,"#d4d5cf","#FFFFFF","#424C78","#424C78","left","middle",10,0,500,5,7,true,true,true,0,false,false);
  mm_menu_0214090841_2.addMenuItem("blocks","location='gallery/gallery_8.htm'");
   mm_menu_0214090841_2.addMenuItem("detailing","location='gallery/gallery_9.htm'");
   mm_menu_0214090841_2.addMenuItem("feature&nbsp;stone","location='gallery/gallery_7.htm'");
   mm_menu_0214090841_2.addMenuItem("housing","location='gallery/gallery_6.htm'");
   mm_menu_0214090841_2.addMenuItem("paving","location='gallery/gallery_5.htm'");
   mm_menu_0214090841_2.addMenuItem("screen&nbsp;walls&nbsp;&amp;&nbsp;fences","location='gallery/gallery_2.htm'");
   mm_menu_0214090841_2.addMenuItem("swimming&nbsp;pools","location='gallery/gallery_4.htm'");
   mm_menu_0214090841_2.addMenuItem("water&nbsp;features","location='gallery/gallery_1.htm'");
   mm_menu_0214090841_2.hideOnMouseOut=true;
   mm_menu_0214090841_2.bgColor='#424C78';
   mm_menu_0214090841_2.menuBorder=1;
   mm_menu_0214090841_2.menuLiteBgColor='#424C78';
   mm_menu_0214090841_2.menuBorderBgColor='#ffffff';
mm_menu_0214090841_0.writeMenus();
mm_menu_0214090841_1.writeMenus();
mm_menu_0214090841_2.writeMenus();
} // mmLoadMenus()
