<!--
var BrowserDetect = {
        init: function () {
                this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
                this.version = this.searchVersion(navigator.userAgent)
                        || this.searchVersion(navigator.appVersion)
                        || "an unknown version";
                this.OS = this.searchString(this.dataOS) || "an unknown OS";
        },
        searchString: function (data) {
                for (var i=0;i<data.length;i++) {
                        var dataString = data[i].string;
                        var dataProp = data[i].prop;
                        this.versionSearchString = data[i].versionSearch || data[i].identity;
                        if (dataString) {
                                if (dataString.indexOf(data[i].subString) != -1)
                                        return data[i].identity;
                        }
                        else if (dataProp)
                                return data[i].identity;
                }
        },
        searchVersion: function (dataString) {
                var index = dataString.indexOf(this.versionSearchString);
                if (index == -1) return;
                return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
        },
        dataBrowser: [
                {
                        string: navigator.vendor,
                        subString: "Apple",
                        identity: "Safari"
                },
                {
                        prop: window.opera,
                        identity: "Opera"
                },
                {
                        string: navigator.vendor,
                        subString: "iCab",
                        identity: "iCab"
                },
                {
                        string: navigator.vendor,
                        subString: "KDE",
                        identity: "Konqueror"
                },
                {
                        string: navigator.userAgent,
                        subString: "Firefox",
                        identity: "Firefox"
                },
                {       // for newer Netscapes (6+)
                        string: navigator.userAgent,
                        subString: "Netscape",
                        identity: "Netscape"
                },
                {
                        string: navigator.userAgent,
                        subString: "MSIE",
                        identity: "Explorer",
                        versionSearch: "MSIE"
                },
                {
                        string: navigator.userAgent,
                        subString: "Gecko",
                        identity: "Mozilla",
                        versionSearch: "rv"
                },
                {       // for older Netscapes (4-)
                        string: navigator.userAgent,
                        subString: "Mozilla",
                        identity: "Netscape",
                        versionSearch: "Mozilla"
                }
        ],
        dataOS : [
                {
                        string: navigator.platform,
                        subString: "Win",
                        identity: "Windows"
                },
                {
                        string: navigator.platform,
                        subString: "Mac",
                        identity: "Mac"
                },
                {
                        string: navigator.platform,
                        subString: "Linux",
                        identity: "Linux"
                }
        ]
};

BrowserDetect.init();
function detect(){
//browser detect
if (BrowserDetect.browser == "Firefox"){var result=32;}
else {var result=18;}
return result;
}

//function detect(){ hMenu1Att["height"] = detect(),
//var result = 0;
//browser detect
//if (BrowserDetect.browser == "Firefox")result=32;
//else result=18;
//return result;
//}
//document.write(BrowserDetect.browser);
function initSwipeMenu2() {
//      var hgt=32;
        hMenu1Att = new Array();
        hMenu1Att["width"] = 122,
        hMenu1Att["height"] = detect(),
        hMenu1Att["align"] = "center";
        hMenu1Att["font"] = "Arial";
        hMenu1Att["font_size"] = 11;
        hMenu1Att["font_weight"] = "normal";
        hMenu1Att["bg_off"] = "url(/images/M_blank.gif)";
        hMenu1Att["bg_on"] = "url(/images/M_blank.gif)";
        hMenu1Att["fg_off"] = "#000000";
        hMenu1Att["fg_on"] = "#000000";
        hMenu1Att["border"] = 0;
        hMenu1Att["border_color"] = "#000000";

        hMenu1SubAtt = new Array();
        hMenu1SubAtt["width"] = 122,
        hMenu1SubAtt["height"] = 22,
        hMenu1SubAtt["align"] = "center";
        hMenu1SubAtt["font"] = "Arial";
        hMenu1SubAtt["font_size"] = 11;
        hMenu1SubAtt["font_weight"] = "normal";
        hMenu1SubAtt["bg_off"] = "url(http://www.inigojones.co.uk/images/img_off.gif)";
        hMenu1SubAtt["bg_on"] = "url(http://www.inigojones.co.uk/images/img_on.gif)";
        hMenu1SubAtt["fg_off"] = "#ffffff";
        hMenu1SubAtt["fg_on"] = "#000000";
        hMenu1SubAtt["border"] = 0;
        hMenu1SubAtt["border_color"] = "#000000";

hMenu1 = new wipeMenu("hMenu1", "h", hMenu1Att, hMenu1SubAtt);
//MenuTypeEnd
//xMenu1
hMenu1.addMain("Menu1", true, "", "");

hMenu1.addSub("Menu1Sub1", "Menu1", "Slate Gifts", "/gifts.php");
hMenu1.addSub("Menu1Sub2", "Menu1", "Slate Garden Items", "/products/SlateGardenItems/page1.html");
hMenu1.addSub("Menu1Sub3", "Menu1", "Slate Nameplates", "/products/SlateNameplates/page1.html");
hMenu1.addSub("Menu1Sub4", "Menu1", "Slate Numberplates", "/products/SlateNumberplates/page1.html");
hMenu1.addSub("Menu1Sub5", "Menu1", "Slate Promotional Items", "/products/SlatePromotionalItems/page1.html");
hMenu1.addSub("Menu1Sub6", "Menu1", "Items made to order", "/products/ItemsMadetoOrder/page1.html");
hMenu1.addSub("Menu1Sub7", "Menu1", " Plaques", "/products/EngravedPlaques/page1.html");
hMenu1.addSub("Menu1Sub8", "Menu1", " Jewellery", "/giftresults.php?giftcat=36");
hMenu1.addSub("Menu1Sub9", "Menu1", " Technical Info", "/info/technical.html");

//xMenu1End
//xMenu2
        hMenu2Att = new Array();
        hMenu2Att["width"] = 100,
        hMenu2Att["height"] = detect(),
        hMenu2Att["align"] = "center";
        hMenu2Att["font"] = "Arial";
        hMenu2Att["font_size"] = 11;
        hMenu2Att["font_weight"] = "normal";
        hMenu2Att["bg_off"] = "url(/images/M_blank.gif)";
        hMenu2Att["bg_on"] = "url(/images/M_blank.gif)";
        hMenu2Att["fg_off"] = "#000000";
        hMenu2Att["fg_on"] = "#000000";
        hMenu2Att["border"] = 0;
        hMenu2Att["border_color"] = "#000000";

        hMenu2SubAtt = new Array();
        hMenu2SubAtt["width"] = 122,
        hMenu2SubAtt["height"] = 22,
        hMenu2SubAtt["align"] = "center";
        hMenu2SubAtt["font"] = "Arial";
        hMenu2SubAtt["font_size"] = 11;
        hMenu2SubAtt["font_weight"] = "normal";
        hMenu2SubAtt["bg_off"] = "url(http://www.inigojones.co.uk/images/img_off.gif)";
        hMenu2SubAtt["bg_on"] = "url(http://www.inigojones.co.uk/images/img_on.gif)";
        hMenu2SubAtt["fg_off"] = "#ffffff";
        hMenu2SubAtt["fg_on"] = "#000000";
        hMenu2SubAtt["border"] = 0;
        hMenu2SubAtt["border_color"] = "#000000";

hMenu2 = new wipeMenu("hMenu2", "h", hMenu2Att, hMenu2SubAtt);

hMenu2.addMain("Menu2", true, "", "");

hMenu2.addSub("Menu2Sub1", "Menu2", "General", "/info/tours.html");
hMenu2.addSub("Menu2Sub2", "Menu2", "Schools/Club visits", "/info/tours-groups.html");
hMenu2.addSub("Menu2Sub3", "Menu2", "Access", "/info/access.html");
hMenu2.addSub("Menu2Sub3", "Menu2", "Location", "/info/location.html");

//xMenu2End

//xMenu3




//xMenu3End
//XtraMenusEnd
hMenu1.buildMenu(132,80,1);
hMenu2.buildMenu(230,80,1);


//SwipeMenuEnd
}
-->

