//*****************************************************************************
//IMPORTANT NOTE ON USING COLORS
//*****************************************************************************
// Colors can be specified in many different ways.  The most accurate is to
// specify the Hex value.  Hex values seven characters where the first is
// always a "#".
//    Values:
//     Hex color value (i.e. "#FFFFFF")
//     Named color (if known)  (i.e. "Red", "Black", "Cyan", etc.)
//     Also,"Transparent" works

//*****************************************************************************
//Default browsercheck - Leave this one
//*****************************************************************************
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw=new lib_bwcheck()


//*****************************************************************************
//GENERAL SETTINGS
//*****************************************************************************

// General debugging variable. 
//   0 = debugging
//   1 = alerts
//   2 = status debugging.
var mDebugging = 0

// Menu object name...  If using different menus on same page, use global
//   search and replace on the name defined in this next line.
oCMenu=new makeCoolMenu("oCMenu")

// Using this menu within frames?
//   0 = No
//   1 = Yes
oCMenu.useframes=0

// If using frames, enter the frame neame where the menus should appear.
//   leave blank if not using frames.
oCMenu.frame=""

// What Mouse action do you want to use to activate the menus?
//   0 = Mouse Over
//   1 = Clicking
oCMenu.useclick=0

// Netscape specific setting - ignored by Internet Explorer
// Use "hand" cursor when moving over links?
//   1 = hand cursor
//   0 = no hand cursor
oCMenu.useNS4links=1  

// Netscape specific setting - ignored by Internet Explorer
//  After adding the "hover effect" for netscape as well, 
//  all styles are lost. But if you want padding add it here.
oCMenu.NS4padding=2 

// If you have select boxes close to your menu, the menu will check
//  for that and hide them if they are in the way.
//  This feature does unfortunatly not work in NS4!
//   0 = No checking
//   1 = Yes, check for select boxes
oCMenu.checkselect=1

// If you choose to have this code inside a linked js, or if your 
//  using frames it's important to set these variables. 
//  This will help you get your links to link to the right place 
//  even if your files are in different folders.
//  The offlineUrl variable is the actual path to the
//  directory where you js file are locally. 
//  This is just so you can test it without uploading. 
//  Remember to start it with file:/// and only use slashes, 
//  no backward slashes!
//  Also, remember to end with a slash                                                                                        
oCMenu.offlineUrl="file:///C:/"

// The onlineUrl variable is the online path to your script. 
//  Place in the full path to where your js file is. 
//  Remember to end with a slash.
oCMenu.onlineUrl="http://"

// Page Check:  Do you want the menu to check whether any of the 
//  subitems are out of the bouderies of the page.  If so, move //  them in again.
//    0 = No
//    1 = Yes
oCMenu.pagecheck=1 

// Checkscroll:  This will check to see if the page has been scrolled.
//  Always set to 1 if using frames.
//    0 = No checking (menu will move with the page)
//    1 = Yes (for IE & Netscape), check (menu will NOT move with the page)
//    2 = Yes (for IE Only), check (menu will NOT move with the page)
oCMenu.checkscroll=0

// Resize check: Do you want the page to reload if it's resized? 
// Set to "Yes" if any of your customers use Netscape.
//    0 = No
//    1 = Yes
oCMenu.resizecheck=1

// Wait Time:  How long to wait before hiding the menu when mouse moves away from menu.
//    In milliseconds. (i.e. 1000 = 1 second)  Do not set below 500 for Netscape.
oCMenu.wait=1000


//*****************************************************************************
//BACKGROUND BAR PROPERTIES
//*****************************************************************************
// Use background bar?
//    0 = No
//    1 = Yes
oCMenu.usebar=1

// Background bar color: (see first note on using colors)
oCMenu.barcolor="menu"

// Background bar width
//    set in pixels (i.e. "150"),
//    set in percent (i.e. "10%"),
//    Or, use "menu" to use the same width as the menu.
oCMenu.barwidth="menu"

// Background bar height
//    set in pixels (i.e. "150"),
//    set in percent (i.e. "10%"),
//    Or, use "menu" to use the same height as the menu.
oCMenu.barheight="menu"

// Left position of the background bar
//    set in pixels (i.e. "150"),
//    set in percent (i.e. "10%"),
//    Or, use "menu" to use the same left position as the menu.
oCMenu.barx="menu"

// Top position of the background bar
//    set in pixels (i.e. "150"),
//    set in percent (i.e. "10%"),
//    Or, use "menu" to use the same top position as the menu.
oCMenu.bary="menu"

// Inherit Border
//    0 = No, do not inherit border
//    1 = Yes, inherit border settings from the top menus
oCMenu.barinheritborder=0


//*****************************************************************************
//MENU PLACEMENT & BEHAIVOR PROPERTIES
//*****************************************************************************
// Menus as rows (up and down) or columns (left to right)
//    0 = Rows
//    1 = Columns
oCMenu.rows=1

// Placement from Left
//    set in pixels (i.e. "150"), or
//    set in percent (i.e. "10%")
oCMenu.fromleft=15

// Placement from Top
//    set in pixels (i.e. "150"), or
//    set in percent (i.e. "10%")
oCMenu.fromtop=152

// Space between menu items
//    set in pixels (i.e. "1"), or
//    set in percent (i.e. "10%")
oCMenu.pxbetween=0

// You have several different ways to place the top items. 
//  - You can have them right beside eachother (only adding the pxbetween variable)
//    by setting the oCMenu.menuplacement=0.
//
//  - You can have them aligned to one of the sides.
//    This is mostly when not using frames, but can be used in both conditions
//      Values (for menus that are palced in columns): 
//        left, right, center
//      Values (for menus that are palced in rows): 
//        top, bottom, center, or bottomcenter
oCMenu.menuplacement=0


//*****************************************************************************
//MENU ITEM PROPERTIES
//*****************************************************************************
//
// Now we are ready for the properties of each level. 
//
// level[0] = top items
// level[1] = sub items
// level[2] = sub2 items
// level[3] = sub3 items and so on....
// 
// All menus will inherit the properties from the previous level. Therefore, all
// level[0] (or Top Item) properties MUST be set. For lower level items; 
// If a level doesn't have on property spesified it will look for it on 
// the last level that was spesified, if it still doesn't exist it will get 
// the properties from level[0]
//
// Each property will be explained on Level[0] only as they mean the same on
//  each following level.


//*****************************************************************************
//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
//*****************************************************************************
// New Array-line required for each level
oCMenu.level[0]=new Array()

// Menu item width
oCMenu.level[0].width=90

// Menu Item height
oCMenu.level[0].height=15

// background color of menu items 
oCMenu.level[0].bgcoloroff="#C0D3C0"

// background color to change to when mouseover happens
oCMenu.level[0].bgcoloron="#65002A"

// text color of menu items
oCMenu.level[0].textcolor="#65002A"

// color to turn text when mouseover happens
oCMenu.level[0].hovercolor="white"

// menu item style
oCMenu.level[0].style="padding:2px; font-family:arial,helvetica; font-size:11px; font-weight:bold"

// border width
oCMenu.level[0].border=0

// border color
oCMenu.level[0].bordercolor="transparent"

// placement of the next sub menu in relation to this menu item. (x is left/right, y is up/down)
oCMenu.level[0].offsetX=1-oCMenu.level[0].width+20
oCMenu.level[0].offsetY=21

// used by Netscape, leave but ignore if using IE
oCMenu.level[0].NS4font="arial,helvetica,tahoma"
oCMenu.level[0].NS4fontSize="2"

// Animated Clip Effect (behavior of next sub menu level):  
//   1 = "slide" open
//   0 = just open
oCMenu.level[0].clip=1

// If you have clip spesified you can set how many pixels 
//  it will clip each timer in here to control the speed of the animation.
oCMenu.level[0].clippx=7

// This is the speed of the timer for the clip effect. Play with this 
// and the clippx to get the desired speed for the clip effect 
// (be carefull though and try and keep this value as high or possible 
// or you can get problems with NS4). - Value: milliseconds
oCMenu.level[0].cliptim=30 

// Filters - This can be used to get some very nice effect like fade, 
// slide, stars and so on. EXPLORER5.5+ ONLY - If you set // this to a value it will override the clip on the supported browsers
// VALUE: 0 = None or "filter specs"
oCMenu.level[0].filter=0 


// Align variable
//  This spesifies how the submenus of this level comes out. 
//   Values:
//     "bottom": The sub menus of this level will come out on the top of this item
//     "top": The sub menus of this level will come out on the bottom of this item
//     "left": The sub menus of this level will come out on the right of this item
//     "right": The sub menus of this level will come out on the left of this item
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 Array() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=150
oCMenu.level[1].border=1
oCMenu.level[1].bordercolor="#8BB08B"
oCMenu.level[1].bgcoloroff="white"
oCMenu.level[1].bgcoloron="#65002A"
oCMenu.level[1].textcolor="#65002A"
oCMenu.level[1].hovercolor="white"
oCMenu.level[1].offsetX=1-oCMenu.level[0].width+20
oCMenu.level[1].offsetY=0

oCMenu.level[2]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=150
oCMenu.level[2].border=1
oCMenu.level[2].bordercolor="#8BB08B"
oCMenu.level[2].bgcoloroff="#B58D59"
oCMenu.level[2].bgcoloron="#65002A"
oCMenu.level[2].textcolor="#65002A"
oCMenu.level[2].hovercolor="white"

// Variables for each menu item: (** means that they have to be spesified!)
//  name:       The name of the item. This must be unique for each item. 
//              Do not use spaces or strange charachters in this one! **
//
//  parent:     The name of the menuitem you want this to belong under. 
//              This will be a submenu of the item that have the name you
//              place in here. ** for all other then the topitems
//
//  text:       The text you want in the item. ** (except if you use images) 
//
//  link:       The page you want this item to link to.
//
//  target:     The target window or frame you want the link to go to 
//              (Default is same window if you're not using frames, and the //              mainframe if you're using frames)
//
//  width:      The width of the element. If not spesified it will get 
//              the default width spesified above.
//
//  height:     The height of the element. If not spesified it will get 
//              the default height spesified above.
//
//  img1:       The "off" image for element if you want to use images.
//
//  img2:       The image that appears onmouseover if using images.
//
//  bgcoloroff: The background color for this item. If not 
//              spesified it will get the default background 
//              color spesified above.
//
//  bgcoloron:  The "on" background color for this item. If not spesified
//              it will get the default "on" background color spesified
//              above.
//
//  textcolor:  The text color for this item. If not spesified it will
//              get the default text color spesified above.
//
//  hovercolor: The "on" text color for this item. If not spesified it 
//              will get the default "on" text color spesified above.
//              Netscape4 ignores this
//
//  onclick:    If you want something to happen when the element is 
//              clicked (different from going to a link) spesifiy it here.
//
//  onmouseover:This will happen when you mouseover the element. 
//              Could be status text, another imageswap or whatever.
//
//  onmouseout: This will happen when you mouseout the element.
//
//
// Remember you can have as many levels/sublevels as you want. 
// Just make sure you spesify the correct "parent" for each item.
// To set styles for each level see above.
//
// Syntax for each item:
// oCMenu.makeMenu(name, parent, text, link, target, width, height, _
//                  img1, img2, bgcoloroff, bgcoloron, textcolor,   _
//                   hovercolor, onclick, onmouseover, onmouseout)
//


oCMenu.makeMenu('D','',' : Communities','','')	
  oCMenu.makeMenu('DA','D','&#149; Southeast/Inside Passage','','')
    oCMenu.makeMenu('DAA','DA','&#149; Glacier Bay','http://www.alaskaheritage.com/Communities/GlacierBay.htm','')
    oCMenu.makeMenu('DAB','DA','&#149; Gustavus','http://www.alaskaheritage.com/Communities/Gustavus.htm','')
    oCMenu.makeMenu('DAC','DA','&#149; Haines','http://www.alaskaheritage.com/Communities/Haines.htm','')
    oCMenu.makeMenu('DAD','DA','&#149; Juneau','http://www.alaskaheritage.com/Communities/Juneau.htm','')
    oCMenu.makeMenu('DAE','DA','&#149; Ketchikan','http://www.alaskaheritage.com/Communities/Ketchikan.htm','')
    oCMenu.makeMenu('DAF','DA','&#149; Petersburg','http://www.alaskaheritage.com/Communities/Petersburg.htm','')
    oCMenu.makeMenu('DAG','DA','&#149; Sitka','http://www.alaskaheritage.com/Communities/Sitka.htm','')
    oCMenu.makeMenu('DAH','DA','&#149; Skagway','http://www.alaskaheritage.com/Communities/Skagway.htm','')
    oCMenu.makeMenu('DAI','DA','&#149; Wrangell','http://www.alaskaheritage.com/Communities/Wrangell.htm','')
  oCMenu.makeMenu('DB','D','&#149; Southwest','','')
    oCMenu.makeMenu('DBA','DB','&#149; Kodiak','http://www.alaskaheritage.com/Communities/Kodiak.htm','')
    oCMenu.makeMenu('DBB','DB','&#149; Kotzebue','http://www.alaskaheritage.com/Communities/Kotzebue.htm','')
    oCMenu.makeMenu('DBC','DB','&#149; Nome','http://www.alaskaheritage.com/Communities/Nome.htm','')
  oCMenu.makeMenu('DC','D','&#149; Southcentral','','')
    oCMenu.makeMenu('DCA','DC','&#149; Anchorage','http://www.alaskaheritage.com/Communities/Anchorage.htm','')
    oCMenu.makeMenu('DCB','DC','&#149; Homer','http://www.alaskaheritage.com/Communities/Homer.htm','')
    oCMenu.makeMenu('DCC','DC','&#149; Hubbard Glacier','http://www.alaskaheritage.com/Communities/Hubbard.htm','')
    oCMenu.makeMenu('DCD','DC','&#149; Kenai','http://www.alaskaheritage.com/Communities/Kenai.htm','')
    oCMenu.makeMenu('DCE','DC','&#149; Seward','http://www.alaskaheritage.com/Communities/Seward.htm','')
    oCMenu.makeMenu('DCF','DC','&#149; Valdez','http://www.alaskaheritage.com/Communities/Valdez.htm','')
    oCMenu.makeMenu('DCG','DC','&#149; Whittier','http://www.alaskaheritage.com/Communities/Whittier.htm','')
  oCMenu.makeMenu('DD','D','&#149; Far North','','')
    oCMenu.makeMenu('DDA','DD','&#149; Barrow','http://www.alaskaheritage.com/Communities/Barrow.htm','')
    oCMenu.makeMenu('DDB','DD','&#149; Kotzebue','http://www.alaskaheritage.com/Communities/Kotzebue.htm','')
    oCMenu.makeMenu('DDC','DD','&#149; Nome','http://www.alaskaheritage.com/Communities/Nome.htm','')
    oCMenu.makeMenu('DDB','DD','&#149; Prudhoe Bay','http://www.alaskaheritage.com/Communities/PrudhoeBay.htm','')
  oCMenu.makeMenu('DE','D','&#149; Interior','','')
    oCMenu.makeMenu('DEA','DE','&#149; Chicken','http://www.alaskaheritage.com/Communities/Chicken.htm','')
    oCMenu.makeMenu('DEB','DE','&#149; Denali','http://www.alaskaheritage.com/Communities/Denali.htm','')
    oCMenu.makeMenu('DEC','DE','&#149; Fairbanks','http://www.alaskaheritage.com/Communities/Fairbanks.htm','')
    oCMenu.makeMenu('DED','DE','&#149; Talkeetna','http://www.alaskaheritage.com/Communities/Talkeetna.htm','')
    oCMenu.makeMenu('DEE','DE','&#149; Tok','http://www.alaskaheritage.com/Communities/Tok.htm','')
  oCMenu.makeMenu('DF','D','&#149; Yukon Canada','','')
    oCMenu.makeMenu('DFA','DF','&#149; Dawson,YK','http://www.alaskaheritage.com/Communities/Dawson.htm','')
    oCMenu.makeMenu('DFB','DF','&#149; Whitehorse,YK','http://www.alaskaheritage.com/Communities/Whitehorse.htm','')
  oCMenu.makeMenu('DG','D','&#149; Other Gateway cities','','')	
    oCMenu.makeMenu('DGA','DG','&#149; Seattle, WA','http://www.alaskaheritage.com/Communities/Seattle.htm','')
    oCMenu.makeMenu('DGB','DG','&#149; Vancouver, B.C.','http://www.alaskaheritage.com/Communities/Vancouver.htm','')
    oCMenu.makeMenu('DGC','DG','&#149; Victoria, B.C.','http://www.alaskaheritage.com/Communities/Victoria.htm','')
oCMenu.makeMenu('C','',' : BOOK IT!','','')
  oCMenu.makeMenu('CA','C','&#149; Excursion Request','http://www.alaskaheritage.com/ContactUs/ExcursionRequestForm.htm','')
  oCMenu.makeMenu('CB','C','&#149; Travel/Cruise Request','http://www.alaskaheritage.com/ContactUs/IndividualRequestForm.htm','')
  oCMenu.makeMenu('CC','C','&#149; Group Request','http://www.alaskaheritage.com/ContactUs/GroupRequestForm.htm','')
  oCMenu.makeMenu('CD','C','&#149; Incentive/Charter Request','http://www.alaskaheritage.com/ContactUs/CharterIncentiveForm.htm','')
  oCMenu.makeMenu('CE','C','&#149; Incentive/Charter Info','http://www.alaskaheritage.com/ContactUs/CharterIncentiveInfo.htm','')	

//*****************************************************************************
//FOLLOWING LINE REQUIRED AND MUST BE LAST.
//*****************************************************************************
oCMenu.makeStyle(); oCMenu.construct()		


