/*****************************************************************************
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)

Modified by Brandon Petty 2005

DHTML coolMenus - Get it at coolmenus.dhtmlcentral.com
Version 4.0_beta
This script can be used freely as long as all copyright messages are
intact.

Extra info - Coolmenus reference/help - Extra links to help files **** 
CSS help: http://192.168.1.31/projects/coolmenus/reference.asp?m=37
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
******************************************************************************/

/*Browsercheck object - we have to move this into the page to prevent an error in NS4*/
function cm_bwcheck(){
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) && window.opera 
  this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) && window.opera   
  this.ie5 = (this.agent.indexOf("msie 5")>-1 && !this.op5 && !this.op6)
  this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
  this.ie6 = (this.agent.indexOf("msie 6")>-1 && !this.op5 && !this.op6)
	this.ie4=(this.agent.indexOf("msie")>-1 && document.all &&!this.op5 &&!this.op6 &&!this.ie5&&!this.ie6)
  this.ie = (this.ie4 || this.ie5 || this.ie6)
	this.mac=(this.agent.indexOf("mac")>-1)
	this.ns6=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ns4=(!this.dom && document.layers)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6)
  this.usedom= this.ns6//Use dom creation
  this.reuse = this.ie||this.usedom //Reuse layers
  this.px=this.dom&&!this.op5?"px":""
	return this
}
var bw=new cm_bwcheck()

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Netscape 4 - bug fix - 
//maybe -stupid NS4 - objects are not handled correctly when
//the object creator is in a linked file
if(bw.ns4) if(!oCMenu["makeMenu"] || !bw["ns4"]) self.location.reload()

//Frame properties
oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=75
oCMenu.rows=0
oCMenu.menuPlacement=0

oCMenu.offlineRoot="."
oCMenu.onlineRoot="."
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg=""
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=175
oCMenu.level[0].height=40
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0 
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].align="right" 


//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=175
oCMenu.level[1].height=30
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].style=""
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].borderX=1 
oCMenu.level[1].borderY=1
oCMenu.level[1].rows=0
oCMenu.level[1].align="bottom" 

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/

oCMenu.makeMenu('topa','','','','',0,0,'/images/home1.gif','/images/home2.gif','','','','','','chngMain("./home/index.html")')

oCMenu.makeMenu('top0','','','','',0,0,'/images/about1.gif','/images/about2.gif','','','','','','chngMain("./about/index.html")')
	
oCMenu.makeMenu('top1','','','','',0,0,'/images/history1.gif','/images/history2.gif','','','','','','chngMain("./history/index.html")')

//oCMenu.makeMenu('top2','','','','',0,0,'/images/mission1.gif','/images/mission2.gif','','','','','','chngMain("./mission/index.html")')
	
//oCMenu.makeMenu('top3','','','','',0,0,'/images/offer.gif','/images/offer.gif','','','','','','chngMain("blank.html/index.html")')

oCMenu.makeMenu('top4','','','','',0,0,'/images/services1.gif','/images/services2.gif','','','','','','chngMain("./services/index.html")')

oCMenu.makeMenu('top5','','','','',0,0,'/images/art1.gif','/images/art2.gif','','','','','','chngMain("./eclectic/index.html")')


oCMenu.makeMenu('top6','','','','',0,0,'/images/specials1.gif','/images/specials2.gif','','','','','','chngMain("./specials/index.html")')

oCMenu.makeMenu('top7','','','','',0,0,'/images/inventory1.gif','/images/inventory2.gif','','','','','','chngMain("./inventory/index.html")')
	//oCMenu.makeMenu('sub71','top7','&nbsp;Diamonds','http://66.133.158.252/cdiamond/sform.pl?id=2389&p=18008748768','',0,0,'','','','','','','','')
	oCMenu.makeMenu('sub72','top7','&nbsp;Silver Jewelry','','',0,0,'','','','','','','','chngMain("./inventory/Inven01.html")')
	oCMenu.makeMenu('sub73','top7','&nbsp;Antique Jewelry','','',0,0,'','','','','','','','chngMain("./inventory/Inven02.html")')
	oCMenu.makeMenu('sub74','top7','&nbsp;Rings','','',0,0,'','','','','','','','chngMain("./inventory/Inven03.html")')
	oCMenu.makeMenu('sub75','top7','&nbsp;Designer Jewelry','','',0,0,'','','','','','','','chngMain("./inventory/Inven06.html")')
	//oCMenu.makeMenu('sub76','top7','&nbsp;Rotating Images','','',0,0,'','','','','','','','chngMain("./inventory/Inven05.html")')
	oCMenu.makeMenu('sub77','top7','&nbsp;Miscellaneous','','',0,0,'','','','','','','','chngMain("./inventory/Inven04.html")')

oCMenu.makeMenu('top8','','','','',0,0,'/images/contact1.gif','/images/contact2.gif','','','','','','chngMain("./contact/index.html")')

oCMenu.makeMenu('top9','','','','',0,0,'/images/urban1.gif','/images/urban2.gif','','','','','','chngMain("http://www.ruurbankc.com")')


oCMenu.construct()
