



/*****************************************************************************
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() 

var mDebugging=0 //General debugging variable. Set to 0 for no debugging, 1 for alerts or 2 for status debugging.

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0 
oCMenu.frame="frmMain" 
oCMenu.useclick=0 
oCMenu.useNS4links=1  
oCMenu.NS4padding=0 
oCMenu.checkselect=0
oCMenu.offlineUrl="" 
oCMenu.onlineUrl="" 
oCMenu.pagecheck=0 
oCMenu.checkscroll=0
oCMenu.resizecheck=1 
oCMenu.wait=800 
oCMenu.usebar=0 

//Placement properties
oCMenu.rows=1 
oCMenu.fromleft=0
oCMenu.fromtop=75
oCMenu.pxbetween=0 
oCMenu.menuplacement="center"

//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array() 
oCMenu.level[0].width="60"
oCMenu.level[0].height="17"
oCMenu.level[0].bgcoloroff="#ffffff"
oCMenu.level[0].bgcoloron="#ffffff"
oCMenu.level[0].textcolor="#000000"
oCMenu.level[0].hovercolor="#CE0000"
oCMenu.level[0].style="padding:1px 0 0 0; font-family:Arial,helvetica; font-size:11px;"
oCMenu.level[0].border=0
oCMenu.level[0].bordercolor="#000000"
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=0
oCMenu.level[0].NS4font="tahoma,arial,helvetica"
oCMenu.level[0].NS4fontSize="2"

/*New: Added animation features that can be controlled on each level.*/
oCMenu.level[0].clip=0 
oCMenu.level[0].clippx=0 
oCMenu.level[0].cliptim=0
oCMenu.level[0].filter=0 
oCMenu.level[0].align="bottom" 

/* Sub level */
oCMenu.level[1]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[1].width="60"
oCMenu.level[1].height="17"
oCMenu.level[1].bgcoloroff="#ffffff"
oCMenu.level[1].bgcoloron="#ffffff"
oCMenu.level[1].textcolor="#000000" 
oCMenu.level[1].hovercolor="#CE0000" 
oCMenu.level[1].style="padding:0 0 0 0; font-family:Arial,helvetica; line-height: 17px; font-size:11px; border-left: 1px solid #000000; border-right: 1px solid #000000;"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=0
oCMenu.level[1].bordercolor="#000000"
oCMenu.level[1].NS4font="Arial,helvetica"
oCMenu.level[1].NS4fontSize="2"


var sMenuItemWidth = '152';
if (bw.ns6) sMenuItemWidth = '152';

oCMenu.makeMenu('top0','','http://www.at.dk/sw5613.asp','ost','','149','17','graphics/at/common/bot_logo.gif','graphics/at/common/bot_logo.gif')

oCMenu.makeMenu('top1','','<a href="http://www.at.dk/sw5441.asp" class="menulink" tabindex="1">Arbejdstilsynet</a>','','','95','17','')
	oCMenu.makeMenu('sub1-1','top1','','','','152','2','graphics/at/common/subTop.gif','graphics/at/common/subTop.gif')
	oCMenu.makeMenu('sub1-2','top1','&nbsp;&nbsp;Formål og opgaver','http://www.at.dk/sw5441.asp','',sMenuItemWidth,'','')	
	oCMenu.makeMenu('sub1-3','top1','&nbsp;&nbsp;Organisation','http://www.at.dk/sw273.asp','',sMenuItemWidth,'','')
	oCMenu.makeMenu('sub1-4','top1','&nbsp;&nbsp;Arbejdsmiljøsystemet','http://www.at.dk/sw5459.asp','',sMenuItemWidth,'','')
	oCMenu.makeMenu('sub1-5','top1','&nbsp;&nbsp;Kontakt os','http://www.at.dk/sw5460.asp','',sMenuItemWidth,'','')
	oCMenu.makeMenu('sub1-6','top1','&nbsp;&nbsp;Ledige stillinger','http://www.at.dk/sw5461.asp','',sMenuItemWidth,'','')
	oCMenu.makeMenu('sub1-7','top1','','','',sMenuItemWidth,'2','graphics/at/common/subBot.gif','graphics/at/common/subBot.gif')
	
oCMenu.makeMenu('top2','','<a href="http://www.at.dk/sw5442.asp" class="menulink" tabindex="2">Nyheder</a>','','','62','17','')
	oCMenu.makeMenu('sub2-1','top2','','','',sMenuItemWidth,'2','graphics/at/common/subTop.gif','graphics/at/common/subTop.gif')
	oCMenu.makeMenu('sub2-2','top2','&nbsp;&nbsp;Nyheder','http://www.at.dk/sw5442.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub2-3','top2','&nbsp;&nbsp;Pressemeddelelser','http://www.at.dk/sw7424.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub2-4','top2','&nbsp;&nbsp;Elektroniske nyhedsbreve','http://www.at.dk/sw5468.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub2-5','top2','&nbsp;&nbsp;Puljer','http://www.at.dk/sw5445.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub2-6','top2','','','',sMenuItemWidth,'2','graphics/at/common/subBot.gif','graphics/at/common/subBot.gif')
	
oCMenu.makeMenu('top3','','<a href="http://www.at.dk/sw5448.asp" class="menulink" tabindex="3">Tilsyn</a>','','','50','17','')
	oCMenu.makeMenu('sub3-1','top3','','','',sMenuItemWidth,'2','graphics/at/common/subTop.gif','graphics/at/common/subTop.gif')
	oCMenu.makeMenu('sub3-2','top3','&nbsp;&nbsp;Tilsynsmetoder','http://www.at.dk/sw5448.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub3-3','top3','&nbsp;&nbsp;Tilpasset tilsyn','http://www.at.dk/sw5470.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub3-4','top3','&nbsp;&nbsp;Detailtilsyn','http://www.at.dk/sw5471.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub3-5','top3','&nbsp;&nbsp;Leverandørtilsyn','http://www.at.dk/sw9407.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub3-6','top3','&nbsp;&nbsp;Indsatser','http://www.at.dk/sw5607.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub3-7','top3','','','',sMenuItemWidth,'2','graphics/at/common/subBot.gif','graphics/at/common/subBot.gif')
	
oCMenu.makeMenu('top4','','<a href="http://www.at.dk/sw5449.asp" class="menulink" tabindex="4">Regler</a>','','','50','17','')
	oCMenu.makeMenu('sub4-1','top4','','','',sMenuItemWidth,'2','graphics/at/common/subTop.gif','graphics/at/common/subTop.gif')
	oCMenu.makeMenu('sub4-2','top4','&nbsp;&nbsp;Regler i arbejdsmiljøet','http://www.at.dk/sw5449.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub4-3','top4','&nbsp;&nbsp;Love','http://www.at.dk/sw5473.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub4-4','top4','&nbsp;&nbsp;Bekendtgørelser','http://www.at.dk/sw5474.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub4-5','top4','&nbsp;&nbsp;Domme','http://www.at.dk/sw5475.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub4-6','top4','&nbsp;&nbsp;At-vejledninger','http://www.at.dk/sw5476.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub4-7','top4','&nbsp;&nbsp;At-anvisninger','http://www.at.dk/sw5478.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub4-8','top4','&nbsp;&nbsp;At-meddelelser','http://www.at.dk/sw5477.asp','',sMenuItemWidth,'17','')	
	oCMenu.makeMenu('sub4-9','top4','&nbsp;&nbsp;Tekniske forskrifter','http://www.at.dk/sw5479.asp','',sMenuItemWidth,'17','')	
	oCMenu.makeMenu('sub4-10','top4','&nbsp;&nbsp;Samarbejdscirkulærer','http://www.at.dk/sw5480.asp','',sMenuItemWidth,'17','')	
	oCMenu.makeMenu('sub4-11','top4','&nbsp;&nbsp;At-cirkulæreskrivelser','http://www.at.dk/sw5481.asp','',sMenuItemWidth,'17','')	
	oCMenu.makeMenu('sub4-12','top4','&nbsp;&nbsp;Regler for Grønland','http://www.at.dk/sw5482.asp','',sMenuItemWidth,'17','')	
	oCMenu.makeMenu('sub4-13','top4','&nbsp;&nbsp;Produktdirektiver','http://www.at.dk/sw9376.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub4-14','top4','','','',sMenuItemWidth,'2','graphics/at/common/subBot.gif','graphics/at/common/subBot.gif')
	
oCMenu.makeMenu('top5','','<a href="http://www.at.dk/sw5450.asp" class="menulink" tabindex="5">Information</a>','','','74','17','')
	oCMenu.makeMenu('sub5-1','top5','','','',sMenuItemWidth,'2','graphics/at/common/subTop.gif','graphics/at/common/subTop.gif')
	oCMenu.makeMenu('sub5-2','top5','&nbsp;&nbsp;Information om arbejdsmiljø','http://www.at.dk/sw5450.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub5-3','top5','&nbsp;&nbsp;Arbejdsmiljøvejvisere','http://www.at.dk/sw5451.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub5-4','top5','&nbsp;&nbsp;APV-checklister','http://www.at.dk/sw5588.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub5-5','top5','&nbsp;&nbsp;Andre informationsmaterialer','http://www.at.dk/sw5452.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub5-6','top5','&nbsp;&nbsp;De 49 branchegrupper','http://www.at.dk/sw9221.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub5-7','top5','&nbsp;&nbsp;Blanketter','http://www.at.dk/sw5512.asp','',sMenuItemWidth,'17','')
	// oCMenu.makeMenu('sub5-8','top5','&nbsp;&nbsp;Temahjemmesider','http://www.at.dk/sw7023.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub5-8','top5','&nbsp;&nbsp;Branchearbejdsmiljørådene','http://www.at.dk/sw5505.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub5-9','top5','','','',sMenuItemWidth,'2','graphics/at/common/subBot.gif','graphics/at/common/subBot.gif')

oCMenu.makeMenu('top6','','<a href="http://www.at.dk/sw5695.asp" class="menulink" tabindex="6">Kort og godt</a>','','','80','17','')
//	oCMenu.makeMenu('sub6-1','top6','','','',sMenuItemWidth,'2','graphics/at/common/subTop.gif','graphics/at/common/subTop.gif')
//	oCMenu.makeMenu('sub6-2','top6','&nbsp;&nbsp;link','http://www.at.dk/sw241.asp','',sMenuItemWidth,'17','')
//	oCMenu.makeMenu('sub6-3','top6','','','',sMenuItemWidth,'2','graphics/at/common/subBot.gif','graphics/at/common/subBot.gif')

oCMenu.makeMenu('top7','','<a href="http://www.at.dk/sw5678.asp" class="menulink" tabindex="7">Arbejdsmiljø i tal</a>','','','110','17','')
	oCMenu.makeMenu('sub7-1','top7','','','',sMenuItemWidth,'2','graphics/at/common/subTop.gif','graphics/at/common/subTop.gif')
	oCMenu.makeMenu('sub7-2','top7','&nbsp;&nbsp;Oversigt','http://www.at.dk/sw5678.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub7-3','top7','&nbsp;&nbsp;Årsopgørelser','http://www.at.dk/sw5681.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub7-4','top7','&nbsp;&nbsp;Nyhedsbreve','http://www.at.dk/sw5686.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub7-5','top7','&nbsp;&nbsp;Fælles statistikker','http://www.at.dk/sw5690.asp','',sMenuItemWidth,'17','')
	oCMenu.makeMenu('sub7-6','top7','','','',sMenuItemWidth,'2','graphics/at/common/subBot.gif','graphics/at/common/subBot.gif')


oCMenu.makeMenu('top8','','<a href="http://www.at.dk/sw5693.asp" class="menulink" tabindex="8">Links</a>','','','71','17','')
//	oCMenu.makeMenu('sub8-1','top8','','','',sMenuItemWidth,'2','graphics/at/common/subTop.gif','graphics/at/common/subTop.gif')
//	oCMenu.makeMenu('sub8-2','top8','&nbsp;&nbsp;link','http://www.at.dk/sw241.asp','',sMenuItemWidth,'17','')
//	oCMenu.makeMenu('sub8-3','top8','','','',sMenuItemWidth,'2','graphics/at/common/subBot.gif','graphics/at/common/subBot.gif')
	
	
//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()			


