// Drop Bown Menu - Head Script
// copyright Stephen Chapman, 4th March 2005, 5th February 2006
// you may copy this menu provided that you retain the copyright notice

var fix = 1; var delay = 200; var modd = 0;
var bar = new menuBar();

bar.addMenu('Fireplaces&nbsp;&nbsp;&nbsp;|');
bar.addItem('../Custom-Fireplaces.html','&nbsp;&nbsp;&nbsp;Unique');
bar.addItem('../Stone-Fireplaces.html','&nbsp;&nbsp;&nbsp;Ornate');
bar.addItem('../Marble-Fireplaces.html','&nbsp;&nbsp;&nbsp;Traditional');
bar.addItem('../Friezes.html','&nbsp;&nbsp;&nbsp;Friezes');
bar.addItem('../Fireplace-Mantels.html','&nbsp;&nbsp;&nbsp;Simple');
bar.addItem('../Modern-Fireplaces.html','&nbsp;&nbsp;&nbsp;Modern');
bar.addItem('../BuyFireplaces-ForSale.html','&nbsp;&nbsp;&nbsp;Available');   
bar.addMenu('Architectural&nbsp;&nbsp;&nbsp;|');
bar.addItem('../Architectural-Carvings.html','&nbsp;&nbsp;&nbsp;Ornamentation');
bar.addItem('../Signage.html','&nbsp;&nbsp;&nbsp;Signage, Crests');
bar.addItem('../keystone.html','&nbsp;&nbsp;&nbsp;Keystones');
bar.addMenu('Sculpture&nbsp;&nbsp;&nbsp;|');
bar.addItem('../Large-Sculptures.html','&nbsp;&nbsp;&nbsp;Monumental, Public');
bar.addItem('../Stone-Statues.html','&nbsp;&nbsp;&nbsp;Small Sculpture');
bar.addMenu('Religious&nbsp;&amp;&nbsp;Memorial&nbsp;&nbsp;&nbsp;|');
bar.addItem('../Religious-Statues.html','&nbsp;&nbsp;&nbsp;Religious');
bar.addItem('../Memorials-Monuments.html','&nbsp;&nbsp;&nbsp;Memorials&nbsp;&nbsp;');
bar.addMenu('Gargoyles&nbsp;&nbsp;&nbsp;|');
bar.addItem('../gargoyle.html','&nbsp;&nbsp;&nbsp;Gargoyles, Grotesques');
bar.addItem('../Stone-Sculptures.html','&nbsp;&nbsp;&nbsp;National Cathedral');
bar.addItem('../greenman.html','&nbsp;&nbsp;&nbsp;Greenmen, Gnomes');
bar.addItem('../create.html','&nbsp;&nbsp;&nbsp;Carving Gargoyles');
bar.addMenu('Home&nbsp;&amp;&nbsp;Garden&nbsp;&nbsp;&nbsp;|');
bar.addItem('../Garden-Sculpture.html','&nbsp;&nbsp;&nbsp;Fountains, Garden');
bar.addItem('../Home-Decor.html','&nbsp;&nbsp;&nbsp;Sculpture for the Home');
bar.addMenu('Resources&nbsp;&nbsp;&nbsp;|');
bar.addItem('../resources.html','&nbsp;&nbsp;&nbsp;Carving Tools');
bar.addItem('../create.html','&nbsp;&nbsp;&nbsp;Carving Gargoyles');
bar.addItem('../gargoyles/indiana.html','&nbsp;&nbsp;&nbsp;Carving a Grotesque');
bar.addItem('../stegosaurus.html','&nbsp;&nbsp;&nbsp;Carving a Dinosaur');
bar.addItem('../Marble-Statues.html','&nbsp;&nbsp;&nbsp;Installing a Full Figure');
bar.addItem('../treestump.html','&nbsp;&nbsp;&nbsp;Carving a Memorial');
bar.addItem('../archwork.html','&nbsp;&nbsp;&nbsp;Designing a Fireplace');
bar.addItem('../gargoyles/wisconsin.html','&nbsp;&nbsp;&nbsp;Wisconsin Gargoyles');
bar.addItem('../benches.html','&nbsp;&nbsp;&nbsp;Athlete Benches');
bar.addItem('../lab-school.html','&nbsp;&nbsp;&nbsp;Lab School Panels');
bar.addItem('../gargoyles/indiana.html','&nbsp;&nbsp;&nbsp;Carving a Grotesque  ______________');

bar.addItem('../teaching.html','&nbsp;&nbsp;&nbsp;Teachers Q&A');
bar.addItem('../union.html','&nbsp;&nbsp;&nbsp;The Stonecutters Union');
bar.addItem('../newsletter.html','&nbsp;&nbsp;&nbsp;My Gargoyle Newsletter');
bar.addItem('../fonts.html','&nbsp;&nbsp;&nbsp;Scalable Fonts');
bar.addItem('../postcard.html','&nbsp;&nbsp;&nbsp;Postcards');
bar.addItem('../marble.html','&nbsp;&nbsp;&nbsp;Types of Marble');
bar.addItem('../scullink.html','&nbsp;&nbsp;&nbsp;External Links');
bar.addItem('../gargoyles/index.html','&nbsp;&nbsp;&nbsp;Gargoyles of the World');
bar.addItem('../gargoyle-books.html','&nbsp;&nbsp;&nbsp;Recommended Books');

bar.addMenu('Gargoyle Store&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
bar.addItem('../Garden-Sculptures.html','&nbsp;&nbsp;&nbsp;Cast Reproductions');
bar.addItem('../Sculptures-ForSale.html','&nbsp;&nbsp;&nbsp;Original Stone Sculpture');




// do not change anything below this line
var blc = '#8e1313';var blh = '#8e1313';var bla = '#8e1313';var lc = '#ffffff';var lh = '#ffffff';var la = '#ffffff';
function menuBar() {this.jj = -1;this.kk = 0;this.mO = new Array();this.addMenu = addMenu;this.addItem = addItem;this.writeBar = writeBar;this.writeDrop = writeDrop;}function addMenu(main) {this.mO[++this.jj] = new Object();this.mO[this.jj].main = main;this.kk = 0;this.mO[this.jj].link = new Array();this.mO[this.jj].name = new Array();}function addItem(link,name) {this.mO[this.jj].link[this.kk] = link;this.mO[this.jj].name[this.kk++] = name;}function writeBar() {for (var i=1;i <= this.mO.length; i++){document.write('<span id="navMenu'+i+'" class="mH">'+this.mO[i-1].main+'<\/span>');}}function writeDrop() {for (var i=1;i <= this.mO.length; i++){document.write('<div id="dropMenu'+i+'" class="mD">\r\n');for (var h=0;h < this.mO[i-1].link.length; h++){document.write('<a class="mL" href="'+this.mO[i-1].link[h]+'">'+this.mO[i-1].name[h]+'<\/a>\r\n');}document.write('<\/div>\r\n');}}
if (fix) window.onscroll=sMenu;window.onload=iMenu;var onm = null;var ponm = null;var podm = null;var ndm = bar.mO.length;
/* Took this out because it made the menubar float in the same location on the screen regardless of the rest of the page formatting: function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;} */
function sMenu() {document.getElementById('mB').style.top = posY() + 'px'; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i;odm = document.getElementById(menuName); if (onm) {var yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight;odm.style.top = yPos + 'px';}}}
function iMenu() {if (document.getElementById) {document.onclick = mHide; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i; navName = 'navMenu' + i; odm = document.getElementById(menuName); onm = document.getElementById(navName); odm.style.visibility = 'hidden'; onm.onmouseover =  mHov; onm.onmouseout = mOut;} onm = null;} return;}
function  mHov(e) {if (modd) clearTimeout(modd);document.onclick = null; honm = document.getElementById(this.id); if (honm != onm) {honm.style.color = lh; honm.style.backgroundColor = blh;} menuName = 'drop' + this.id.substring(3,this.id.length); odm = document.getElementById(menuName); if (podm == odm) {mHide(); return;} if (podm != null) mHide(); onm = document.getElementById(this.id); if ((ponm != onm ) || (podm == null)) {onm.style.color = la; onm.style.backgroundColor = bla;} if (odm) {xPos = onm.offsetParent.offsetLeft + onm.offsetLeft; yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight; odm.style.left = xPos + 'px'; odm.style.top = yPos + 'px'; odm.style.visibility = 'visible'; odm.onmouseover = omov; odm.onmouseout = omot; podm = odm; ponm = onm;}}
function omov() {if (modd) clearTimeout(modd);}
function omot() {modd = setTimeout('mHide()',delay);}
function mOut(e) {modd = setTimeout('mHide()',delay);document.onclick = mHide;oonm = document.getElementById(this.id); if (oonm != onm) {oonm.style.color = lc; oonm.style.backgroundColor = blc;}}
function mHide() {document.onclick = null; if (podm) {podm.style.visibility = 'hidden'; podm = null; ponm.style.color = lc; ponm.style.backgroundColor = blc;} onm = null;}
if (fix) {var ag = navigator.userAgent.toLowerCase();var isG = (ag.indexOf('gecko') != -1);var isR=0;if (isG) {t = ag.split("rv:"); isR = parseFloat(t[1]);}if (isR && isR<1) setInterval('sMenu()',50);}
