/*YMenu0.jsCopyright (c) 2005 Joseph de Dios-Valerio, Esq.All Rights Reserved2005/02/12*/window.onload = iMenuwindow.onerror = nullfunction uA(){this.dom1 = (document.createElement) ? 1 : 0this.moz = (window.navigator.userAgent.indexOf('Gecko') > 0) ? 1 : 0this.ie = (document.all && !this.moz) ? 1 : 0this.saf = (window.navigator.userAgent.indexOf('Safari') > 0) ? 1 : 0this.mac = (window.navigator.userAgent.indexOf('Mac') > 0) ? 1 : 0this.ie6 = (this.dom1 && this.ie) ? 1 : 0this.ie6css1 = (this.ie6 && document.compatMode == 'CSS1Compat') ? 1 : 0this.ns4 = (document.layers) ? 1 : 0this.ie4mac = (!this.dom1 && this.ie && this.mac) ? 1 : 0}var ua = new uA()if (!ua.dom1) window.location = 'Upgrade.htm'var w = 150, h = 35, offonbgi = 'BlueRubyFoam.jpg', offbgc = '', onbgc = '', offcolour = 'white', oncolour = 'white', W, H, T, M_if (offonbgi != ''){var img = new Image(w,h)img.src = offonbgi}function iMenu(){if (M_) returnif (window.innerWidth){W = window.innerWidth - 20H = window.innerHeight - 20}else{var el = (ua.ie6css1) ? document.documentElement : document.bodyW = el.clientWidthH = el.clientHeight}window.onresize = function (){window.history.go(0)}iY()M_.style.left = ((W - parseInt(M_.style.width)) * .5 -7) + 'px'M_.style.top = '70px'}function MenuY(name,items,urls){var parent = (name == 'M_') ? document.body : self[name.substring(0,name.length-1)]var O = parent.appendChild(document.createElement('div'))var l = O.l = items.lengthO.nom = namewith (O.style){position = 'absolute'zIndex = 100border = '1px solid navy'padding = '0'}if (name == 'M_'){with (O.style){top = left = '0'width = (l * w * .75 ) + 'px'height = h + 'px'margin = '0 auto'visibility = 'visible'}for (var i = 0, x = 0; i < l; i++, x += (w * .75)) self[name+i] = new ItemY(O,x,0,items[i],urls[i])}else{with (O.style){width = w + 'px'height = l * h + 'px'margin = '0'visibility = 'hidden'if (name.split('_').length < 4){left = '0'top = h + 'px'}else{left = (parseInt(self['M_' + name.split('_')[1]].style.left) + w >= parseInt(M_.style.width)) ? ((name.split('_').length-1) % 2 > 0) ? -w + 'px' : w + 'px' : ((name.split('_').length-1) % 2 > 0) ? w + 'px' : -w + 'px'top = '0'}} for (var i = 0, y = 0; i < l; i++, y += h) self[name+i] = new ItemY(O,0,y,items[i],urls[i])}return O}function ItemY(parent,x,y,item,url){var I = parent.appendChild(document.createElement('div'))I.appendChild(document.createTextNode(item))var lh = (item.length < 23) ? h : h * .45with (I.style){position = 'absolute'left = x + 'px'top = y + 'px'if (parent.nom == 'M_'){width = (w * .75) + 'px'margin = '0'padding = '0 5px'}else{width = w + 'px'margin = padding = '0'}height = h + 'px'font = '12px\/' + lh + 'px Verdana,"Lucida Sans",Arial,Helvetica,sans-serif'color = offcolourtextAlign = 'center'if (offonbgi != '') background = 'url(' + offonbgi + ')'else background = offbgccursor = (ua.ie6css1 || ua.moz) ? 'pointer' : 'hand'visibility = 'inherit'}I.url = urlI.onmouseover = function (){with (this){style.color = oncolourif (offonbgi != '') style.backgroundPosition = '0 75'else style.background = onbgcif (childNodes.length > 1) lastChild.style.visibility = 'visible'}}I.onmouseout = function (){with (this){style.color = offcolourif (offonbgi != '') style.backgroundPosition = '0 0'else style.background = offbgcif (childNodes.length > 1) lastChild.style.visibility = 'hidden'}}I.onclick = function goLink(){with (this) (url == null) ? '' : (url.indexOf('http') < 0) ? window.location.href = url : window.open(url)}return I}/**/