function HM_fc_LL(menuname,linkname,on) {
	var theLink=(document.getElementById)?document.getElementById(linkname):
	            (document.all)?document.all(linkname):null;
	if(theLink) theLink.style.color=(on)?"#FFFF66":"";
	if(window.HM_b_CallToggle) HM_f_ToggleElementList(!on,['select'],'tag');
}

function HM_f_DoNothing() {return;}
if(typeof(HM_f_UpdateDefaults)=="undefined") {
	HM_f_UpdateDefaults=HM_f_DoNothing;
	HM_f_SetMenuTemplate=HM_f_DoNothing;
	HM_f_SetMenus=HM_f_DoNothing;
	HM_f_SetItems=HM_f_DoNothing;
	HM_NS4=HM_IE4=HM_IE55=false;
}

HM_NB=(HM_NS4||HM_IE4);

HM_f_UpdateDefaults({
	MenuWidth:150,
	ClickKill:0,
	MilliSecondsVisible:300,
	ScrollEnabled:1,
	ScrollOver:1,
	ScrollBothBars:1,
	ScrollInterval:20,
	FontWeight:"normal",
	FontColor:"blue",
	FontColorOver:"blue",
	BGColor:"#dddddd",
	BGColorOver:"#ffcccc",
	BorderColor:"black",
	SeparatorSize:2,
	SeparatorColor:"#d0ff00",
	KeepHilite:1,
	ShowLinkCursor:1,
	CreateOnLoad:false,
	NSFontOver:1
});

HM_f_SetMenuTemplate({
	MenuPaddingTop:2,
	MenuPaddingLeft:2,
	MenuPaddingBottom:2,
	MenuPaddingRight:2,
	MenuBGColor:"#999689",
	SeparatorColor:"black",
	FontWeight:"bold",
	FontColor:"white",
	FontColorOver:"white",
	FontColorSelected:(HM_NB)?"#FFFF66":"white",
	BGColor:"#999689",
	BGColorOver:(HM_NB)?"#663300":"#999689",
	BGColorSelected:(HM_NB)?"#663300":"#999689",
	ItemPadding:(HM_NB)?2:0,
	ButtonClass:"mbc1",
	ButtonClassOver:"mbc2",
	ButtonClassSelected:"mbc3",
	MenuOpacity:.9,
	FontFamily:"Verdana, Helvetica, sans-serif",
	FontSize:"12px",
	IEFilters:"progid:DXImageTransform.Microsoft.DropShadow(color='#66999999')",
	VariableWidthMinimum:150,
	MenuWidth:250,
	IsVariableWidth:1,
	ImageHorizSpace:3,
	StatusDisplayBuild:0,
	SeparatorSize:(HM_NB)?1:0
});

HM_f_SetMenus(
	{MenuID:"hm_m_sunstone",TopMenuY:"HM_f_GetElementXY('hm_l_latest','y')",
		TopMenuX:150,MenuWidth:150,CreateOnLoad:(window.HM_IE55)?1:0,
		ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6",
		TopUponDisplay:"HM_fc_LL('hm_m_sunstone','hm_l_sunstone',true)",
		TopUponHide:"HM_fc_LL('hm_m_sunstone','hm_l_sunstone',false)"},
	{MenuID:"hm_m_about",TopMenuY:"HM_f_GetElementXY('hm_l_about','y')",
		TopMenuX:150,MenuWidth:150,
		ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6",
		TopUponDisplay:"HM_fc_LL('hm_m_about','hm_l_about',true)",
		TopUponHide:"HM_fc_LL('hm_m_about','hm_l_about',false)"},
	{MenuID:"hm_m_faq",TopMenuY:"HM_f_GetElementXY('hm_l_faq','y')",
		TopMenuX:150,MenuWidth:150,
		ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6",
		TopUponDisplay:"HM_fc_LL('hm_m_faq','hm_l_faq',true)",
		TopUponHide:"HM_fc_LL('hm_m_faq','hm_l_faq',false)"},
	{MenuID:"hm_m_issues",TopMenuY:"HM_f_GetElementXY('hm_l_issues','y')",
		TopMenuX:150,MenuWidth:150,
		ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6",
		TopUponDisplay:"HM_fc_LL('hm_m_issues','hm_l_issues',true)",
		TopUponHide:"HM_fc_LL('hm_m_issues','hm_l_issues',false)"},
	{MenuID:"hm_m_bulletins",TopMenuY:"HM_f_GetElementXY('hm_l_bulletins','y')",
		TopMenuX:150,
		TopUponDisplay:"HM_fc_LL('hm_m_bulletins','hm_l_bulletins',true)",
		TopUponHide:"HM_fc_LL('hm_m_bulletins','hm_l_bulletins',false)"},
	{MenuID:"hm_m_docs",TopMenuY:"HM_f_GetElementXY('hm_l_docs','y')",
		TopMenuX:150,BaseURL:"/documentation/",
		TopUponDisplay:"HM_fc_LL('hm_m_docs','hm_l_docs',true)",
		TopUponHide:"HM_fc_LL('hm_m_docs','hm_l_docs',false)"},
	{MenuID:"hm_m_samples",TopMenuY:"HM_f_GetElementXY('hm_l_samples','y')",
		TopMenuX:150,BaseURL:"/samples/",
		TopUponDisplay:"HM_fc_LL('hm_m_samples','hm_l_samples',true)",
		TopUponHide:"HM_fc_LL('hm_m_samples','hm_l_samples',false)"}
);

HM_f_SetItems(
	{MenuID:"hm_m_sunstone",TextAlign:"center",DisplayText:"light truck tire",IsPermHilite:1,IsRollover:0,LinkURL:"/sunstone/"},
	{MenuID:"hm_m_about",TextAlign:"center",DisplayText:"Contact information, features and benefits of the HierMenus script",IsPermHilite:1,IsRollover:0,LinkURL:"/about/"},
	{MenuID:"hm_m_faq",TextAlign:"center",DisplayText:"Got a question?<br />Our Frequently Asked Questions list is the place to start",IsPermHilite:1,IsRollover:0,LinkURL:"/faq/"},
	{MenuID:"hm_m_issues",TextAlign:"center",DisplayText:"Having a problem?<br />Check out this browser-by-browser list of known HierMenus issues",IsPermHilite:1,IsRollover:0,LinkURL:"/issues/"}
);

HM_f_SetItems(
	{MenuID:"hm_m_bulletins",DisplayText:"Release Notes",ChildID:"hm_m_rnotes"},
	{MenuID:"hm_m_bulletins",DisplayText:"Tutorials",ChildID:"hm_m_tutorials"}
);

HM_f_SetMenus(
	{MenuID:"hm_m_archive",BaseURL:"/documentation/archive/"},
	{MenuID:"hm_m_ref",BaseURL:"/documentation/reference/",
		ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6"},
	{MenuID:"hm_m_setup",BaseURL:"/documentation/setup/",
		ButtonClass:"mbc4",ButtonClassOver:"mbc5",ButtonClassSelected:"mbc6"},
	{MenuID:"hm_m_rnotes",BaseURL:"/bulletins/"},
	{MenuID:"hm_m_tutorials",BaseURL:"/bulletins/"}
);

HM_f_SetItems(
	{MenuID:"hm_m_rnotes",DisplayText:"HierMenus 6.0.2",LinkURL:"16/"},
	{MenuID:"hm_m_rnotes",DisplayText:"HierMenus 6.0.1",LinkURL:"15/"},
	{MenuID:"hm_m_rnotes",DisplayText:"HierMenus 6.0",LinkURL:"14/"},
	{MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.3.1",LinkURL:"10/"},
	{MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.3",LinkURL:"9/"},
	{MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.2.1",LinkURL:"8/"},
	{MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.2",LinkURL:"7/"},
	{MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.1",LinkURL:"5/"},
	{MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.0.1",LinkURL:"3/"},
	{MenuID:"hm_m_rnotes",DisplayText:"HierMenus 5.0",LinkURL:"2/"}
);

HM_f_SetItems(
	{MenuID:"hm_m_tutorials",DisplayText:"Version 6 Preview",LinkURL:"13/"},
	{MenuID:"hm_m_tutorials",DisplayText:"Synchronized Rollovers",LinkURL:"12/"},
	{MenuID:"hm_m_tutorials",DisplayText:"When TLC Isn't Enough",LinkURL:"11/"},
	{MenuID:"hm_m_tutorials",DisplayText:"Hiding Page Elements",LinkURL:"6/"},
	{MenuID:"hm_m_tutorials",DisplayText:"Conditional Parameters",LinkURL:"4/"},
	{MenuID:"hm_m_tutorials",DisplayText:"Adding Opera (HM5)",LinkURL:"1/"}
);

HM_f_SetItems(
	{MenuID:"hm_m_docs",DisplayText:"Setting Up",LinkURL:"setup/",ChildID:"hm_m_setup"},
	{MenuID:"hm_m_docs",DisplayText:"Reference",LinkURL:"reference/",ChildID:"hm_m_ref"},
	{MenuID:"hm_m_docs",DisplayText:"Archive",LinkURL:"archive/",ChildID:"hm_m_archive"},
	{MenuID:"hm_m_docs",DisplayText:"Upgrading",LinkURL:"upgrade/"},
	{MenuID:"hm_m_docs",DisplayText:"Compatibility",LinkURL:"compatibility/"}
);

HM_f_SetItems(
	{MenuID:"hm_m_archive",DisplayText:"HM Version 4",LinkURL:"v4/"},
	{MenuID:"hm_m_archive",DisplayText:"HM Version 5",LinkURL:"v5/"}
);

HM_f_SetItems(
	{MenuID:"hm_m_ref",TextAlign:"center",DisplayText:"Parameter Reference",IsPermHilite:1,IsRollover:0},
	{MenuID:"hm_m_ref",DisplayText:"By Topic",LinkURL:"index.html#topical"},
	{MenuID:"hm_m_ref",DisplayText:"Alphabetically",LinkURL:"index.html#alpha"},
	{MenuID:"hm_m_ref",TextAlign:"center",DisplayText:"Mini-Tutorials",IsPermHilite:1,IsRollover:0},
	{MenuID:"hm_m_ref",DisplayText:"Menu Positioning",LinkURL:"menupositioning.html"},
	{MenuID:"hm_m_ref",DisplayText:"Using Classes",LinkURL:"usingclasses.html"},
	{MenuID:"hm_m_ref",DisplayText:"Custom Transitions",LinkURL:"customtransitions.html"},
	{MenuID:"hm_m_ref",DisplayText:"Menu Event Hooks",LinkURL:"menueventhooks.html"}
);

HM_f_SetItems(
	{MenuID:"hm_m_setup",DisplayText:"Installing the Scripts",LinkURL:"installing.html"},
	{MenuID:"hm_m_setup",DisplayText:"Creating a Configuration File",LinkURL:"configuring.html"},
	{MenuID:"hm_m_setup",DisplayText:"Applying HM to Pages",LinkURL:"applying.html"},
	{MenuID:"hm_m_setup",TextAlign:"center",DisplayText:"Advanced Topics",IsPermHilite:1,IsRollover:0},
	{MenuID:"hm_m_setup",DisplayText:"Custom Code",LinkURL:"customcode.html"},
	{MenuID:"hm_m_setup",DisplayText:"HM and Databases",LinkURL:"database.html"},
	{MenuID:"hm_m_setup",DisplayText:"Disabling a Browser",LinkURL:"disabling.html"},
	{MenuID:"hm_m_setup",DisplayText:"Using v4/5 Arrays",LinkURL:"usingarrays.html"},
	{MenuID:"hm_m_setup",DisplayText:"Page Specific Variables",LinkURL:"pagespecific.html"},
	{MenuID:"hm_m_setup",DisplayText:"Earlier Image Preloading",LinkURL:"pagepreload.html"},
	{MenuID:"hm_m_setup",DisplayText:"The Space Optimized Code Set:<br />Developer's Considerations",LinkURL:"spaceoptimized.html#developer"}
);

HM_f_SetItems(
	{MenuID:"hm_m_samples",DisplayText:"Popup Menus",LinkURL:"popups.html"},
	{MenuID:"hm_m_samples",DisplayText:"Permanent Menus",LinkURL:"permmenus.html"},
	{MenuID:"hm_m_samples",DisplayText:"Cross Frames",LinkURL:"crossframes.html"},
	{MenuID:"hm_m_samples",DisplayText:"Transitions and Filters",LinkURL:"transfilters.html"},
	{MenuID:"hm_m_samples",DisplayText:"Image Rollovers",LinkURL:"imagerollovers.html"},
	{MenuID:"hm_m_samples",DisplayText:"Background Images",LinkURL:"bgimages.html"},
	{MenuID:"hm_m_samples",DisplayText:"Buttons",LinkURL:"buttons.html"},
	{MenuID:"hm_m_samples",DisplayText:"Fixed Position /<br />Reposition On Scroll",LinkURL:"fixedscroll.html"},
	{MenuID:"hm_m_samples",DisplayText:"Sliding Menus",LinkURL:"sliding.html"},
	{MenuID:"hm_m_samples",DisplayText:"IFRAME Masking",LinkURL:"iframe.html"},
	{MenuID:"hm_m_samples",DisplayText:"Featured Sites",BaseURL:"",LinkURL:"/sites/"}
);
