<!--
//Swipe Menu : 1.9
function Is() {
  agent       = navigator.userAgent.toLowerCase();
  this.major  = parseInt(navigator.appVersion);
  this.minor  = parseFloat(navigator.appVersion);
  this.ns     = ((agent.indexOf('mozilla')   != -1) &&
                (agent.indexOf('spoofer')    == -1) &&
                (agent.indexOf('compatible') == -1) &&
                (agent.indexOf('opera')      == -1) &&
                (agent.indexOf('webtv')      == -1) &&
                (agent.indexOf('hotjava')    == -1) &&
      (agent.indexOf("msie")  == -1));
  this.ns2    = (this.ns && (this.major      ==  2));
  this.ns3    = (this.ns && (this.major      ==  3));
  this.ns4    = (this.ns && (this.major      ==  4));
  this.ns6    = (this.ns && (this.major      >=  5));
  this.ie     = ((agent.indexOf("msie")      != -1) &&
                (agent.indexOf("opera")      == -1));
  this.ie3    = (this.ie && (this.major      <   4));
  this.ie4    = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 4")     != -1));
  this.ie5    = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 5")     != -1) &&
                (agent.indexOf("msie 5.5")   == -1) &&
                (agent.indexOf("mac")        == -1));
  this.iem5   = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 5.")    != -1) &&
               (agent.indexOf("mac")        != -1));
  this.ie55   = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 5.5")   != -1));
  this.ie6    = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 6")     != -1));
  this.ie7    = (this.ie && (this.major      ==  4) &&
                (agent.indexOf("msie 7")     != -1));  
  this.moz = (agent.indexOf("gecko")!= -1)
  this.nsdom  = (this.ns4  || this.ns6);
  this.win = (agent.indexOf("win") != -1);
  this.iestrict = (this.win && this.ie6 && document.compatMode == "CSS1Compat");
  this.macstrict = (this.ie5 && this.iemac && document.doctype && document.doctype.name.indexOf(".dtd") != -1);
  this.strict = (this.iestrict || this.macstrict);
  this.iemac =(this.iem5);
  this.iewin = ((this.ie5 && !this.iemac || this.ie55 || this.ie6 || this.ie7) && this.win);
  this.dom = (this.iewin || this.ns6 || this.moz);
}
var is = new Is();
var css_px = (is.ns4 || is.ie4) ?"" : "px";

function menuObj(obj, par, nst, p) {
    page = new Object();
    page.width = (is.ns6 || is.ns4 || is.moz) ? innerWidth : document.body.clientWidth;
    page.height = (is.ns6 || is.ns4 || is.moz) ? innerHeight : document.body.clientHeight;
    if (!is.ns4) {
        this.lyr = (is.dom || is.iemac) ? document.getElementById(obj) : document.all[obj];
    } else {
        this.lyr = (!nst) ? document.layers[obj] : document.layers[nst].document.layers[obj];
    }
    this.sty = (!is.ns4) ? this.lyr.style : this.lyr;
    this.parent = par;
    this.obj = obj + "SwipeLayer";
    eval(this.obj + "= this");
}
menuObj.prototype.timer = null;
menuObj.prototype.wipe = 0;
if (is.iemac){
menuObj.prototype.offX = Function('oX = this.lyr.offsetLeft -6+-(mAtt.border)+0; return oX');
menuObj.prototype.offY = Function('oY = this.lyr.offsetTop-2+-(mAtt.border)+0+(0);return oY;');
} else {
menuObj.prototype.offX = Function('oX = (is.dom || is.ie4) ? this.lyr.offsetLeft  : parseInt(this.sty.left);return oX');
menuObj.prototype.offY = Function('oY = (is.dom || is.ie4) ? this.lyr.offsetTop  : parseInt(this.sty.top);return oY;');
}
menuObj.prototype.offW = Function('oW = (!is.ns4) ? this.lyr.offsetWidth : this.lyr.clip.width; return oW;')
menuObj.prototype.offH = Function('oH = (!is.ns4) ? this.lyr.offsetHeight : this.lyr.clip.height; return oH;')
menuObj.prototype.maxWipe = function() {
   	if(!is.ns4) return this.offH()+10;
		else return (sAtt.height*this.lyr.document.layers.length)+10;
}
wipeMenu.prototype.addMain = function(name, hasSub, txt, url) {
	menuName = this.name, wipePos = this.pos, mAtt = this.mAtt, sAtt = this.sAtt;
	var pf = Math.ceil(((mAtt.height-mAtt.font_size)/2)-2);
	var pd = "padding:0px 6px 0px 6px;";
	var styStr2 = "position:absolute; visibility:hidden; clip:rect(0px 1000px 0px 0px); border:solid 1px "+sAtt.border_color+"; border-width:"+sAtt.border+"px 0px 0px 0px; cursor:default;";
	if(this.main[name]) return;
	if(is.ns4) {
		var mainMenu = new Layer(mAtt.width);
		var styStr = "text-decoration:none; font-weight:"+mAtt.font_weight+"; z-index:1; color:"+mAtt.fg_off+"; padding:"+((mAtt.height/2)-(mAtt.font_size/2)-1)+"px 0px 0px 0px; font-size:"+mAtt.font_size+"px; font-family:"+mAtt.font+";"
		mainMenu.document.write('<div align="'+mAtt.align+'" style="'+pd+'"><a href="'+url+'" style="'+styStr+'">'+txt+'</a></div>');
		mainMenu.document.close();
		var mainMenu1 = new Layer(mAtt.width);
		mainMenu.captureEvents(Event.MOUSEUP);
		mainMenu.resizeTo(mAtt.width,mAtt.height);
		if(mAtt.bg_off.indexOf("url") != -1) {
			mainMenu.background.src = mAtt.bg_off.substring(4,mAtt.bg_off.length-1);
			mainMenu.background.src = mAtt.bg_off.substring(4,mAtt.bg_off.length-1);
		} else mainMenu.bgColor = mAtt.bg_off;
		mainMenu.visibility = "visible";
		}
	if(is.dom || is.iemac) {
		var mainMenu = document.createElement("DIV");
		var wf = (is.ns6 || is.moz || is.strict) ? 12 : 0;
		var pf2 = (mAtt.height%2 == 0) ? 1 : 0;
		var styStr = "position:absolute; font-weight:"+mAtt.font_weight+"; z-index:1; width:"+(mAtt.width-wf)+"px; border:solid "+mAtt.border+"px "+mAtt.border_color+"; color:"+mAtt.fg_off+";  text-align:"+mAtt.align+"; font-size:"+mAtt.font_size+"px; font-family:"+mAtt.font+"; padding:"+pf+"px 6px "+(pf+pf2)+"px 6px; background:"+mAtt.bg_off+"; cursor:pointer; cursor:hand;"
		mainMenu.innerHTML = txt;
		mainMenu.id = name+menuName;
		mainMenu.style.cssText = styStr;
		mainMenu.setAttribute("style", styStr);
		document.body.appendChild(mainMenu);
	}
	if(is.ie4) {
		var wf = 6; 
		var styStr = "position:absolute; width:"+(mAtt.width-wf)+"px; font-weight:"+mAtt.font_weight+"; z-index:1; border:solid "+mAtt.border+"px "+mAtt.border_color+"; color:"+mAtt.fg_off+"; text-align:"+mAtt.align+"; font-size:"+mAtt.font_size+"px; font-family:"+mAtt.font+"; padding:"+pf+"px 6px "+(pf+pf2)+"px 6px; background:"+mAtt.bg_off+"; cursor:pointer; cursor:hand;"
		var mM = '<div id="'+name+menuName+'" style="'+styStr+'">'+txt+'</div>';
		document.body.insertAdjacentHTML("beforeEnd", mM);
		var mainMenu = document.all[name+menuName];
	}
	mainMenu.onmouseover = new Function('if('+hasSub+')'+menuName+'.subs["'+name+'"].show("'+wipePos+'"); over_out(this, "'+mAtt.bg_on+'", "'+mAtt.fg_on+'")');
	mainMenu.onmouseout = new Function('if('+hasSub+')'+menuName+'.subs["'+name+'"].hide();over_out(this, "'+mAtt.bg_off+'", "'+mAtt.fg_off+'")');
	mainMenu.onmousedown = new Function('location.href = "'+url+'"');
	this.main[name] = new menuObj(mainMenu.id);
	this.mainNum[this.mainNum.length] = this.main[name];
	if(!hasSub) return;
	if(is.ns4) {
		var subC = new Layer(sAtt.width);
		subC.resizeTo(sAtt.width,0);
		subC.visibility = "hidden";
	}
	if(is.dom || is.iemac) {
		var subC = document.createElement("DIV");
		subC.id = name+menuName+"Sub";
		var wf = (is.ns6 || is.moz) ? 4 : 0;
		subC.style.cssText = styStr2;
		subC.setAttribute("style", styStr2);
		document.body.appendChild(subC);
	}
	if(is.ie4) {
		var sC = '<div id="'+name+menuName+'Sub" style="'+styStr2+'"></div>';
		document.body.insertAdjacentHTML("beforeEnd", sC);
		var subC = document.all[name+menuName+"Sub"];
	}
	this.subs[name] = new menuObj(subC.id, this.main[name]);
	subC.onmouseover = new Function(menuName+'.subs["'+name+'"].show("'+wipePos+'");');
	subC.onmouseout = new Function(menuName+'.subs["'+name+'"].hide();');
}
wipeMenu.prototype.addSub = function(name, parent, txt, url) {
	var pf2 = (mAtt.height%2 == 0) ? 1 : 0;
	var pf = Math.ceil(((sAtt.height-sAtt.font_size)/2)-2);
	var pd = "padding:0px 6px 0px 6px;";
	if(is.ns4) {
		var tempsub = new Layer(sAtt.width, this.subs[parent].lyr);
		var styStr = "text-decoration:none; font-weight:"+sAtt.font_weight+"; color:"+sAtt.fg_off+"; padding:"+((sAtt.height/2)-(sAtt.font_size/2)-2)+"px 0px 0px 0px; font-size:"+sAtt.font_size+"px; font-family:"+sAtt.font+";"
		tempsub.document.write('<div align="'+sAtt.align+'" style="'+pd+'"><a href="'+url+'" style="'+styStr+'">'+txt+'</a></div>');
		tempsub.document.close();
		tempsub.captureEvents(Event.MOUSEUP);
		tempsub.resizeTo(sAtt.width,sAtt.height);
		tempsub.moveTo(0,(sAtt.height*(this.subs[parent].lyr.document.layers.length-1)));
		if(sAtt.bg_off.indexOf("url") != -1) {
			tempsub.background.src = sAtt.bg_off.substring(4,sAtt.bg_off.length-1);
			tempsub.background.src = sAtt.bg_off.substring(4,sAtt.bg_off.length-1);
		} 
		else tempsub.bgColor = sAtt.bg_off;
		tempsub.visibility = "inherit";
	}
	if(is.dom || is.iemac) {
		var tempsub = document.createElement("DIV");
		var wf = (is.ns6 || is.moz || is.strict) ? 12 : 0;
		var styStr = "width:"+(sAtt.width-wf)+"px; font-weight:"+sAtt.font_weight+"; border:solid "+sAtt.border+"px "+sAtt.border_color+"; border-top-width:0px; color:"+sAtt.fg_off+";  text-align:"+sAtt.align+"; font-size:"+sAtt.font_size+"px; font-family:"+sAtt.font+"; padding:"+pf+"px 6px "+(pf+pf2)+"px 6px; background:"+sAtt.bg_off+"; cursor:pointer; cursor:hand;"
		tempsub.id = name+menuName+"SubItem";
		tempsub.innerHTML = txt;
		tempsub.style.cssText = styStr;
		tempsub.setAttribute("style", styStr);
		this.subs[parent].lyr.appendChild(tempsub);
	}
	if(is.ie4) {
		var wf =  12; 
		var styStr = "width:"+(sAtt.width-wf)+"px; font-weight:"+sAtt.font_weight+"; border:solid "+sAtt.border+"px "+sAtt.border_color+"; border-top-width:0px; color:"+sAtt.fg_off+"; text-align:"+sAtt.align+"; font-size:"+sAtt.font_size+"px; font-family:"+sAtt.font+"; padding:"+pf+"px 6px "+(pf+pf2)+"px 6px; background:"+sAtt.bg_off+"; cursor:pointer; cursor:hand;"
		var ts = '<div id="'+name+menuName+'SubItem" style="'+styStr+'">'+txt+'</div>';
		this.subs[parent].lyr.insertAdjacentHTML("beforeEnd", ts);
		tempsub = document.all[name+menuName+"SubItem"];
	}
		tempsub.onmouseover = new Function('over_out(this, "'+sAtt.bg_on+'", "'+sAtt.fg_on+'")');
		tempsub.onmouseout = new Function('over_out(this, "'+sAtt.bg_off+'", "'+sAtt.fg_off+'")');
		tempsub.onmousedown = new Function('location.href = "'+url+'"');
}
menuObj.prototype.show = function(p) {
 if (p == "h") {
  	this.sty.left = this.parent.offX()+css_px;
  	this.sty.top = this.parent.offY()+this.parent.offH()+css_px;
 } else if(p == "v") {
 	if(is.iemac) {
 	this.sty.left = this.parent.offX()+mAtt.width+css_px;
  this.sty.top = this.parent.offY()+(mAtt.height%2);
 	} else {
  this.sty.left = this.parent.offX()+this.parent.offW()+css_px;
  this.sty.top = this.parent.offY()+css_px;
 	}
 }
 this.sty.zIndex = "1";
 this.sty.visibility = "visible";
 this.doShow();
}
menuObj.prototype.doShow = function() {
	clearTimeout(this.timer);
	this.clipIt(0, this.offW(), this.wipe, 0);
	this.wipe += 10;
	if(this.wipe <= this.maxWipe()) this.timer = setTimeout(this.obj + ".doShow()", 20);
}
menuObj.prototype.hide = function() {
	clearTimeout(this.timer);
	if(is.ns4 || is.iemac) this.clipIt(0, this.offW(), this.wipe-10, 0);
	else this.clipIt(0, this.offW(), this.wipe, 0);
	this.wipe -= 10;
	if(this.wipe >= 0) this.timer = setTimeout(this.obj + ".hide()", 20);
	else this.sty.visibility = "hidden";
}
function over_out(obj, bg, fg) {
	if(is.ns4) {
		if(bg.indexOf("url") != -1) obj.background.src = bg.substring(4,bg.length-1)
		else obj.background.src = "", obj.bgColor = bg;
	}
	else {
		if(bg.indexOf("url") != -1) obj.style.backgroundImage = bg;
		else obj.style.backgroundImage = "url(blank)", obj.style.backgroundColor = bg;
		obj.style.color = fg;
	}
}
menuObj.prototype.clipIt = function(t,r,b,l) {
	if(!is.ns4) this.sty.clip = "rect("+t+"px, "+r+"px, "+b+"px, "+l+"px)";
	else {
		this.sty.clip.top = t;
		this.sty.clip.right = r;
		this.sty.clip.bottom = b;
		this.sty.clip.left = l;
	}
}
wipeMenu.prototype.buildMenu = function(x,y,spacing) {
	this.mainNum[0].sty.left = x+css_px;
	this.mainNum[0].sty.top = y+css_px;
	if(!is.ns4 && spacing == 0) var spacing = -this.mAtt.border;
	for(i = 1; i < this.mainNum.length; i++) {
		if(this.pos == "h") {
			this.mainNum[i].sty.left = this.mainNum[i-1].offX()+this.mainNum[i-1].offW()+spacing+css_px;
			this.mainNum[i].sty.top = this.mainNum[i-1].offY()+css_px;
		} else {
			this.mainNum[i].sty.left = this.mainNum[i-1].offX()+css_px;
			this.mainNum[i].sty.top = this.mainNum[i-1].offY()+this.mainNum[i-1].offH()+spacing+css_px;
	}
	}
}

function wipeMenu(menu, p, ma, sa) {
    this.name = menu;
    this.pos = p;
    this.mAtt = ma;
    this.sAtt = (!sa) ? ma : sa;
    this.main = [];
    this.mainNum = [];
    this.subs = [];
}
function wipeMenu(menu, p, ma, sa) {
    this.name = menu;
    this.pos = p;
    this.mAtt = ma;
    this.sAtt = (!sa) ? ma : sa;
    this.main = [];
    this.mainNum = [];
    this.subs = [];
}
function macGo(){
 if (is.iemac){history.go(0);}
}
  if(document.layers) { 
var pX = innerWidth;
var pY = innerHeight; 
	onresize= function(){ 
		if(pX!= innerWidth || pY!= innerHeight) history.go(0);}
}
image1 = new Image()
image1.src = "images/green_tablebg.jpg"
image2 = new Image()
image2.src = "images/green_bg.jpg"
image3 = new Image()
image3.src = ""
image4 = new Image()
image4.src = ""
//M2Preload
//FinishM2

function initSwipeMenu() {
	hMenu1Att = new Array();
	hMenu1Att["width"] = 106,
	hMenu1Att["height"] = 20,
	hMenu1Att["align"] = "center";
	hMenu1Att["font"] = "Arial";
	hMenu1Att["font_size"] = 12;
	hMenu1Att["font_weight"] = "normal";
	hMenu1Att["bg_off"] = "url(images/green_tablebg.jpg)";
	hMenu1Att["bg_on"] = "url(images/green_bg.jpg)";
	hMenu1Att["fg_off"] = "#FFFFFF";
	hMenu1Att["fg_on"] = "#FFFFFF";
	hMenu1Att["border"] = 1;
	hMenu1Att["border_color"] = "#4B6923";

	hMenu1SubAtt = new Array();
	hMenu1SubAtt["width"] = 212,
	hMenu1SubAtt["height"] = 20,
	hMenu1SubAtt["align"] = "center";
	hMenu1SubAtt["font"] = "Arial";
	hMenu1SubAtt["font_size"] = 12;
	hMenu1SubAtt["font_weight"] = "normal";
	hMenu1SubAtt["bg_off"] = "url(images/green_bg.jpg)";
	hMenu1SubAtt["bg_on"] = "url(images/green_tablebg.jpg)";
	hMenu1SubAtt["fg_off"] = "#FFFFFF";
	hMenu1SubAtt["fg_on"] = "#4B6923";
	hMenu1SubAtt["border"] = 1;
	hMenu1SubAtt["border_color"] = "#4B6923";

hMenu1 = new wipeMenu("hMenu1", "h", hMenu1Att, hMenu1SubAtt);
//MenuTypeEnd
//xMenu1
hMenu1.addMain("Menu1", true, "Home", "");
//xMenu1End
//xMenu2
hMenu1.addMain("Menu2", true, "Products", "");
hMenu1.addSub("Menu2Sub1","Menu2","Sundials and Armillary","sundials-armillary.asp");hMenu1.addSub("Menu2Sub2","Menu2","Horizontal sundials","horizontal-sundials.asp");hMenu1.addSub("Menu2Sub3","Menu2","Modern Sundials","modern-sundials.asp");hMenu1.addSub("Menu2Sub4","Menu2","Inscriptions","sundial-inscriptions.asp");hMenu1.addSub("Menu2Sub5","Menu2","Plinths and pedestals","sundial-plinths-pedestals.asp");hMenu1.addSub("Menu2Sub6","Menu2","Commissions","sundial-commissions.asp");hMenu1.addSub("Menu2Sub7","Menu2","Walldials","walldials.asp");hMenu1.addSub("Menu2Sub8","Menu2","Sundial Gifts & Accessories","sundials-gifts-accessories.asp");hMenu1.addSub("Menu2Sub9","Menu2","Ordering","sundials-ordering.asp");
//xMenu2End
//xMenu3

//hMenu1.addMain("Menu3", true, "Services", "page_index.asp?MenuTypeId=2");
//
//xMenu3End
//xMenu4
//hMenu1.addMain("Menu4", true, "About Us", "page_index.asp?MenuPageId=29&MenuTypeId=3");
//xMenu4End
//xMenu5
hMenu1.addMain("Menu5", true, "Contact Us", "contact_index.asp?MenuPageId=2&MenuTypeId=4");
//xMenu5End
//xMenu6

hMenu1.addMain("Menu6", true, "Links", "resources/cat.htm");
//xMenu6End
//xMenu7
//hMenu1.addMain("Menu7", true, "News", "news_index.asp?MenuTypeId=5");
//xMenu7End
//xMenu8
//hMenu1.addMain("Menu8", true, "Opportunities", "page_index.asp?MenuPageId=52&MenuTypeId=8");
//xMenu8End
//xMenu9
//xMenu9End
//XtraMenusEnd
if (page.width==800) {
hMenu1.buildMenu(399,32,0);
   } else {
hMenu1.buildMenu(page.width*.5-90,32,0);
}
//hMenu1.buildMenu(page.width*.5-375,103,0);
//Additional
}
//SwipeMenuEnd
//-->


