/*Browsercheck object - we have to move this into the page to prevent an error in NS4*/
function cm_bwcheck(){
	//In theory we should use object detection, but this script needs work-arounds for almost every browser...
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.ns4=(!this.dom && document.layers)?1:0;
	this.op=window.opera 
	this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ie=this.agent.indexOf("msie")>-1 && !this.op
	if(this.op){
		this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
		this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
		this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
	}else if(this.moz) this.ns6 = 1
	else if(this.ie){
		this.ie4 = !this.dom && document.all
  	this.ie5 = (this.agent.indexOf("msie 5")>-1)
  	this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
  	this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
	}
	this.mac=(this.agent.indexOf("mac")>-1)
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
  this.usedom= this.ns6||this.op7//Use dom creation
  this.reuse = this.ie||this.op7||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

if(bw.ns4) if(!oCMenu["makeMenu"] || !bw["ns4"]) self.location.reload()

//Frame properties
oCMenu.frames = 1

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=5 
oCMenu.fromTop=165  
oCMenu.rows=1
oCMenu.menuPlacement="center"
                                                             
oCMenu.offlineRoot=""
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg=""
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=0
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=150
oCMenu.level[0].height=20 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=2
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=-2
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify 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=145
oCMenu.level[1].height=20
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=-2
oCMenu.level[1].rows=0
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].align="right"

/******************************************
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('top0','','FSA Education','','',90,35)
	oCMenu.makeMenu('sub00','top0','FSA Webinar with Narration','docs/webinar/webinar.html','','',35)
	oCMenu.makeMenu('sub01','top0','FSA PowerPoint w/o Sound w/Text','docs/webinar/Webcasts - FSA w - New Benny 2009 - Without Narration.pps','','',35)
	oCMenu.makeMenu('sub02','top0','Beneflex FSA Video','docs/webinar/BeneFlex-FSA.html','_blank','')
oCMenu.makeMenu('top1','','SERVICES','','',75,35)
	oCMenu.makeMenu('sub10','top1','Section 125','docs/service/svc_125.html')    
	oCMenu.makeMenu('sub11','top1','Printable Marketing Brochure','docs/service/Marketing Brochure-A.pdf','_blank')
	oCMenu.makeMenu('sub12','top1','COBRA Administration','docs/service/svc_cobra.html')
	oCMenu.makeMenu('sub13','top1','Online Enrollment','docs/service/svc_online.html')
	oCMenu.makeMenu('sub14','top1','Employee Benefit Database Management','docs/service/svc_database.html')
	oCMenu.makeMenu('sub15','top1','Centralized Billing','docs/service/svc_CentBill.html')
	oCMenu.makeMenu('sub16','top1','Employee Benefit Statements','docs/service/svc_empbene.html')
	oCMenu.makeMenu('sub17','top1','Retiree Billing','docs/service/svc_retiree.html')
	oCMenu.makeMenu('sub18','top1','Other HR Services','docs/service/svc_other.html')
		
oCMenu.makeMenu('top2','','SECTION 125 and HRA','','',95,35)
	oCMenu.makeMenu('sub30','top2','Employee Account Information','http://www.myflexonline.com','_blank','',35)
	oCMenu.makeMenu('sub31','top2','General Section 125 Information','http://www.ezflexplan.com/beneflex','_blank')
	oCMenu.makeMenu('sub32','top2','Debit Card','docs/125/Important Information for Cardholders.pdf','_blank')
	oCMenu.makeMenu('sub33','top2','Printable Marketing Brochure','docs/service/Marketing Brochure-A.pdf#page=1','_blank')
	oCMenu.makeMenu('sub34','top2','Printable Forms')
		oCMenu.makeMenu('sub140','sub34','FSA Claim Form','docs/125/2010_2011_claimform_A.pdf','_blank')
		oCMenu.makeMenu('sub141','sub34','TMA Claim Form','docs/125/TMA_Claim_Form-A.pdf','_blank')
		oCMenu.makeMenu('sub142','sub34','Guidelines for Claims Submission','docs/125/Guidelines for Claims.pdf','_blank')
		oCMenu.makeMenu('sub143','sub34','Direct Deposit Form','docs/125/Employee Direct Deposit Form 1-page 2010-A.pdf','_blank')
		oCMenu.makeMenu('sub144','sub34','Change Form','docs/125/Change Form-A.pdf','_blank')
	oCMenu.makeMenu('sub35','top2','NISC Forms')
		oCMenu.makeMenu('sub150','sub35','FSA-2010 Claim Form','docs/125/NISC FSA - 2010 claim form.pdf','_blank')

oCMenu.makeMenu('top3','','COBRA','','',60,35)
	oCMenu.makeMenu('sub20','top3','Form 941 (Form Only)','http://www.forms.gov/bgfPortal/docDetails.do?dId=9734','_blank')
	oCMenu.makeMenu('sub21','top3','Form 941 Instructions','http://www.forms.gov/bgfPortal/docDetails.do?dId=10129','_blank')
	oCMenu.makeMenu('sub22','top3','Dpt. of Labor - COBRA ARRA','http://www.dol.gov/ebsa/cobra.html','_blank','','35')
	oCMenu.makeMenu('sub23','top3','COBRA Clients','https://www.beneflexhr.com/docs/cobra/loginForm.html','_blank')
			
oCMenu.makeMenu('top4','','RESOURCES','docs/resource/resource.html','',90,35)
	
oCMenu.makeMenu('top5','','CONTACT US','docs/forms/contact.html','',90,35)

//oCMenu.makeMenu('top5','','ONLINE ENROLLMENT','orig_docs/login.html','',80,35)
		
oCMenu.makeMenu('top6','','HCSO HRA','', '_blank',90,35)
	oCMenu.makeMenu('sub50','top6','EMPLOYEE RESOURCES')
	oCMenu.makeMenu('sub610','sub50','Check Your Account Balance','http://www.myflexonline.com','_blank','',35)
	oCMenu.makeMenu('sub620','sub50','HCSO HRA Employee Overview','docs/hcso/HCSO HRA Employee Overview-A.pdf','_blank','',35)
	oCMenu.makeMenu('sub630','sub50','HCSO Claim Form','docs/hcso/HCSO - Claim form-A_2010.pdf','_blank')
	oCMenu.makeMenu('sub640','sub50','HCSO How to file a Claim','docs/hcso/HCSO How to File a Claim-A.pdf','_blank')
	oCMenu.makeMenu('sub650','sub50','HCSO Direct Deposit','docs/hcso/HCSO - Employee Direct Deposit Form - A.pdf','_blank')
	oCMenu.makeMenu('sub660','sub50','Sample HCSO Qualified Item','docs/hcso/Sample HCSO HRA Eligible Expenses_2010.pdf','_blank','','35')
	oCMenu.makeMenu('sub670','sub50','HCSO en Espanola Para el Empleado','docs/hcso/HCSO HRA EE Overview Standard Spanish Version 2010-A.pdf','_blank','','35')
	oCMenu.makeMenu('sub51','top6','EMPLOYER RESOURCES')
	oCMenu.makeMenu('sub700','sub51','HCSO FAQs Employer','docs/hcso/HCSO FAQs Employer.pdf','_blank')
	oCMenu.makeMenu('sub710','sub51','HCSO Details Employer','docs/hcso/HCSO Details Employer.pdf','_blank')	

oCMenu.makeMenu('top7','','IIAS Info','', '_blank',60,35)
	oCMenu.makeMenu('sub60','top7','What is IIAS?','docs/125/How does the IIAS work with the Benny Card (Revised).pdf', '_blank')
	oCMenu.makeMenu('sub61','top7','IIAS Merchants','http://www.sig-is.org/imwp/idms/popups/pop_download.asp?contentID=12418', '_blank')
	oCMenu.makeMenu('sub62','top7','90% Merchants','http://www.sig-is.org/imwp/web3/forms/sigis/Reports.aspx?ReportName=DBAList&ReportFormat=PDF', '_blank')

oCMenu.makeMenu('top8','','RETIREE CLAIM FORMS','', '_blank',145,35)
	oCMenu.makeMenu('sub70','top8','Peabody Claim Form','docs/online_plus/Peabody_Retiree_Medical_Account_Claim_Form_A.pdf', '_blank')
	oCMenu.makeMenu('sub71','top8','Patriot Claim Form','docs/online_plus/Patriot Coal - Retiree Medical Account Claim Form-A.pdf', '_blank')

//Leave this line - it constructs the menu

oCMenu.construct()
top.frmMain.location.reload()
