jQuery.noConflict();if(document.location.hash.length===0){document.location.hash='news'}function startGallery1(){var myGallery1=new gallery($('myGallery1'),{timed:true})}function startGallery2(){var myGallery2=new gallery($('myGallery2'),{timed:true})}Array.prototype.inArray=function(value){var i;for(i=0;i<this.length;i++){if(this[i]===value){return true}}return false};window.firstpageload=true;var productPage=new Array('products','rational','crown','handmade','tiles','granite','bedrooms','bathrooms','accessories');function pageload(hash){if(hash=='where'){jQuery.getScript("scripts/googlemap.js",function(){jQuery("a.active").toggleClass("active");jQuery("a[@href='?do="+hash+"&nojs=true']").toggleClass("active");if(!jQuery.browser.msie){jQuery("div#content").fadeTo("500","0.01",function(){jQuery("#content").load("loading.html");jQuery("div#content").fadeTo("slow","1");jQuery("#content").load("ajaxwrapper.php?do="+hash,function(){load();if(!jQuery("div#submenu").is(":hidden")){jQuery("div#submenu").slideUp()}})})}else{jQuery("#content").load("loading.html");jQuery("#content").load("ajaxwrapper.php?do="+hash,function(){load()});if(!jQuery("div#submenu").is(":hidden")){jQuery("div#submenu").slideUp()}}});window.mapstarted=true}else if(productPage.inArray(hash)){jQuery("a.active").toggleClass("active");jQuery("a[@href='?do="+hash+"&nojs=true']").toggleClass("active");jQuery("#menu a[@href='?do=products&nojs=true']").addClass("active");if(!jQuery.browser.msie){jQuery("div#content").fadeTo("500","0.01",function(){jQuery("#content").load("loading.html");jQuery("div#content").fadeTo("slow","1");jQuery("#content").load("ajaxwrapper.php?do="+hash,function(){jQuery("div#submenu").slideDown("slow")})})}else{jQuery("#content").load("loading.html");jQuery("#content").load("ajaxwrapper.php?do="+hash);jQuery("div#submenu").slideDown("slow")}if(window.mapstarted==true){GUnload();window.mapstarted=false}}else if(!window.firstpageload){jQuery("a.active").toggleClass("active");jQuery("a[@href='?do="+hash+"&nojs=true']").toggleClass("active");if(!jQuery.browser.msie){jQuery("div#content").fadeTo("500","0.01",function(){jQuery("#content").load("loading.html");jQuery("div#content").fadeTo("slow","1");jQuery("#content").load("ajaxwrapper.php?do="+hash,function(){if(!jQuery("div#submenu").is(":hidden")){jQuery("div#submenu").slideUp()}})})}else{jQuery("#content").load("loading.html");jQuery("#content").load("ajaxwrapper.php?do="+hash);if(!jQuery("div#submenu").is(":hidden")){jQuery("div#submenu").slideUp()}}if(window.mapstarted==true){GUnload();window.mapstarted=false}if(hash=='contact'){jQuery.getScript("scripts/ultimateform.js")}}else{if(hash!='news'){jQuery("a.active").toggleClass("active");jQuery("a[@href='?do="+hash+"&nojs=true']").toggleClass("active");jQuery("#content").load("ajaxwrapper.php?do="+hash)}window.firstpageload=false}jQuery.ajax({url:"ajaxpagetitle.php?do="+hash,cache:false,success:function(title){document.title=title}});if(!window.firstpageload){pageTracker._trackPageview("?do="+hash)}}jQuery(document).ready(function(){jQuery.historyInit(pageload);jQuery("#menu a, #submenu a").click(function(){var hash=this.href;hash=hash.replace(/^.*?do=/,'');hash=hash.replace("&nojs=true","");jQuery.historyLoad(hash);return false});if(!(jQuery.browser.msie&&parseInt(jQuery.browser.version)<=6)){jQuery("div#headerpic").load("main/slideshowelement1.php",startGallery1);jQuery("div#headerpic2").load("main/slideshowelement2.php",startGallery2)}});
