/********************************************************************************
Variables to set.
********************************************************************************/
if (bw.ie4 || bw.ie5)
	padding = 'padding:4px;'
else
	padding = 'padding-top:2px;padding-left:2px;'

mainmenu_items = 4
mainwidths = new Array (mainmenu_items)
mainwidths = [52,110,140,120]

//Making a menu object
oMenu=new menuObj('oMenu') //Place a name for the menu in there. Must be uniqe for each menu

//Setting menu object variables

//Style variables NOTE: The stylesheet have been removed. Use this instead! (some styles are there by default, like position:absolute ++)
oMenu.clMain='padding:6px; font-family:verdana; font-size:10px; ' //The style for the main menus
oMenu.clSub='margin-left:1;margin-top:0;border-top-width:1;border-right-width:0;border-left-width:0;border-bottom-width:0;border-color:black;border-style:solid;'+padding+' font-family:verdana; font-size:10px' //The style for the submenus
oMenu.clSubSub='padding:0px; font-family:verdana; font-size:10px' //The style for the subsubmenus
oMenu.clAMain='text-decoration:none; color:#25194a' //The style for the main links
oMenu.clASub='text-decoration:none; color:#25194a' //The style for the sub links
oMenu.clASubSub='text-decoration:none; color:#25194a' //The style for the subsub links

//Background bar properties
oMenu.backgroundbar=0 //Set to 0 if no backgroundbar
oMenu.backgroundbarfromleft=0 //The left placement of the backgroundbar in pixel or %
oMenu.backgroundbarfromtop=0 //The top placement of the backgroundbar  in pixel or %
oMenu.backgroundbarsize="100%" //The size of the bar in pixel or %
oMenu.backgroundbarcolor="#5D629F" //The backgroundcolor of the bar

oMenu.mainheight=25 //The height of the main menuitems in pixel or %
oMenu.mainwidth=170 //The width of the main menuitems  in pixel or %

mainheights = new Array ()
for (i=0;i<mainmenu_items;i++)
{
	mainheights[i] = oMenu.mainheight;
}

/*These are new variables. In this example they are set like the previous version*/
oMenu.subheight=22 //The height of the subitems in pixel or % 
oMenu.subwidth=170 // ** NEW ** The width of the submenus

oMenu.subsubwidth=oMenu.subwidth // ** NEW ** The width of the subsubmenus in pixel or % 
oMenu.subsubheight=oMenu.subheight //** NEW ** The height if the subsubitems in pixel or % 


//Writing out the style for the menu (leave this line!)
oMenu.makeStyle()

oMenu.subplacement=oMenu.mainheight //** NEW ** Relative to the main item
oMenu.subsubXplacement=oMenu.subwidth/2 //** NEW ** The X placement of the subsubmenus, relative to the sub item
oMenu.subsubYplacement=7 //** NEW ** The Y placement of the subsubmenus, relative to the sub item

oMenu.mainbgcoloroff='#90C1E8' //The backgroundcolor of the main menuitems
oMenu.mainbgcoloron='#A6CDED' //The backgroundcolor on mouseover of the main menuitems
oMenu.subbgcoloroff=oMenu.mainbgcoloroff //The backgroundcolor of the sub menuitems
oMenu.subbgcoloron=oMenu.mainbgcoloron //The backgroundcolor on mouseover of the sub menuitems
//oMenu.subsubbgcoloroff='#353b87' //The backgroundcolor of the subsub menuitems
//oMenu.subsubbgcoloron='#5D629F' //The backgroundcolor on mouseover of the subsub menuitems
oMenu.stayoncolor=0 //Do you want the menus to stay on the mouseovered color when clicked?

oMenu.menuspeed=100 //The speed of the clipping in px
oMenu.menusubspeed=100 //The speed of the submenus clipping in px

oMenu.menurows=1 //Set to 0 if you want rows and to 1 if you want columns

oMenu.menueventon="mouse" //Set this to "mouse" if you want the menus to appear onmouseover, set it to "click" if you want it to appear onclick
oMenu.menueventoff="mouse" //Set this to "mouse" if you them to disappear onmouseout, if not set it to "click"

//Placement of the menuitems

//Example in %:
//oMenu.menuplacement=new Array("20%","40%","60%","50%","65%") //Remember to make the arrays contain as many values as you have main menuitems

//Example in px: (remember to use the ' ' around the numbers)
//oMenu.menuplacement=new Array(114,194,329)

//Example right beside eachother (only adding the pxbetween variable)
oMenu.menuplacement=0

//If you use the "right beside eachother" you cant specify how many pixel there should be between each here
oMenu.pxbetween=0 //in pixel or %

//And you can set where it should start from the left here
oMenu.fromleft=114 //in pixel or %

//This is how much from the top the menu should be.
oMenu.fromtop=90 //in pixel or %

document.writeln('<div id="TopBar" style="position:absolute;left:2; top:92; width:770px;z-index:40;"><table border=0 cellpadding=0 cellspacing=0 height=25 width=770><tr><td bgcolor="'+oMenu.mainbgcoloroff+'" width=766>&nbsp;</td><td width=6>\n<img src="images/nav2/4right_l.gif" width="6" height="25" border="0"></td></tr></table></div>')
/********************************************************************************
Construct your menus below
********************************************************************************/

//MAIN 0

//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
//oMenu.makeMain(0,'Customer&nbsp;Services','customerservices.htm')
	//Sub items:
	// makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL,'FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
		//SubSub items:
		// makeSubSub(MAIN_NUM,SUB_NUM,SUBSUB_NUM,'TEXT','LINK',TOTAL,'FRAME_TARGET')

//MAIN 1		
oMenu.makeMain(0,'<a href="claims.htm" style="text-decoration:none; color:#25194a">Claims</a>',0)
	oMenu.makeSub(0,0,'Individual&nbsp;&amp;&nbsp;Corporate','claims.htm',2)
	oMenu.makeSub(0,1,'Claim&nbsp;Forms','claimform.htm',2)

//MAIN 2		
oMenu.makeMain(1,'Company&nbsp;Offices','companyoff.htm')
	
//MAIN 3
oMenu.makeMain(2,'Intermediaries&nbsp;Centre','inter.htm')		
//oMenu.makeMain(2,'<a href="inter.htm" style="text-decoration:none; color:#25194a">Intermediaries&nbsp;Centre</a>',0)
//	oMenu.makeSub(2,0,'Intermediaries&nbsp;News','inter.htm',3)
//	oMenu.makeSub(2,1,'Our&nbsp;Agents','ourage.htm',3)
//	oMenu.makeSub(2,2,'Our&nbsp;Key&nbsp;Brokers','ourkey.htm',3)
	
//MAIN 4		
oMenu.makeMain(3,'Insurance&nbsp;Glossary','insuranceglossary.htm')


/********************************************************************************
End menu construction
********************************************************************************/

//When all the menus are written out we initiates the menu
oMenu.construct()	

// Rollover menu for customer center section
str=''
str+='<div id="rollover" style="position:absolute; width:467px; height:38px; z-index:2; left:0px; top:54px">\n\n'
str+='<table width="467" border="0" cellspacing="0" cellpadding="0">\n\n'
str+='  <tr>\n\n'
str+='    <td><a href="index.htm"><img src="images/logo.gif" width="106" height="38" alt="" border="0"></a></td>\n\n'
str+='    <td><img src="images/nav1/about1_l.gif" width="8" height="38" name="gap1"></td>\n\n'
str+='    <td><a href="about.htm" onMouseOut="MM_swapImage(\'about\',\'\',\'images/nav1/about_l.gif\',1);MM_swapImage(\'gap1\',\'\',\'images/nav1/about1_l.gif\',1);MM_swapImage(\'gap2\',\'\',\'images/nav1/about2_l.gif\',1);MM_swapImage(\'customer\',\'\',\'images/nav1/customer_h.gif\',1);MM_swapImage(\'gap3\',\'\',\'images/nav1/customer1_h.gif\',1);MM_swapImage(\'gap4\',\'\',\'images/nav1/customer2_h.gif\',1)"\n\n'
str+='		 onMouseOver="MM_swapImage(\'about\',\'\',\'images/nav1/about_h.gif\',1);MM_swapImage(\'gap1\',\'\',\'images/nav1/about1_h.gif\',1);MM_swapImage(\'gap2\',\'\',\'images/nav1/about2_h.gif\',1);MM_swapImage(\'customer\',\'\',\'images/nav1/customer_l.gif\',1);MM_swapImage(\'gap3\',\'\',\'images/nav1/customer1_l.gif\',1);MM_swapImage(\'gap4\',\'\',\'images/nav1/customer2_l.gif\',1)"><img src="images/nav1/about_l.gif" width="67" height="38" name="about" border="0"></a></td>\n\n'
str+='    <td><img src="images/nav1/insurance1_l.gif" width="9" height="38" name="gap2"></td>\n\n'
str+='    <td><a href="insurance.htm" onMouseOut="MM_swapImage(\'insurance\',\'\',\'images/nav1/insurance_l.gif\',1);MM_swapImage(\'gap2\',\'\',\'images/nav1/insurance1_l.gif\',1);MM_swapImage(\'gap3\',\'\',\'images/nav1/insurance2_l.gif\',1);MM_swapImage(\'customer\',\'\',\'images/nav1/customer_h.gif\',1);MM_swapImage(\'gap3\',\'\',\'images/nav1/customer1_h.gif\',1);MM_swapImage(\'gap4\',\'\',\'images/nav1/customer2_h.gif\',1)"\n\n'
str+='		 onMouseOver="MM_swapImage(\'insurance\',\'\',\'images/nav1/insurance_h.gif\',1);MM_swapImage(\'gap2\',\'\',\'images/nav1/insurance1_h.gif\',1);MM_swapImage(\'gap3\',\'\',\'images/nav1/insurance2_h.gif\',1);MM_swapImage(\'customer\',\'\',\'images/nav1/customer_l.gif\',1);MM_swapImage(\'gap4\',\'\',\'images/nav1/customer2_l.gif\',1)"><img src="images/nav1/insurance_l.gif" width="67" height="38" name="insurance" border="0"></a></td>\n\n'
str+='    <td><img src="images/nav1/customer1_h.gif" width="9" height="38" name="gap3"></td>\n\n'
str+='    <td><a href="customer.htm"><img name="customer" border="0" src="images/nav1/customer_h.gif" width="102" height="38"></a></td>\n\n'
str+='    <td><img src="images/nav1/customer2_h.gif" width="9" height="38" name="gap4"></td>\n\n'
str+='    <td><a href="press.htm" onMouseOut="MM_swapImage(\'press\',\'\',\'images/nav1/press_l.gif\',1);MM_swapImage(\'gap4\',\'\',\'images/nav1/press1_l.gif\',1);MM_swapImage(\'gap5\',\'\',\'images/nav1/press2_l.gif\',1);MM_swapImage(\'customer\',\'\',\'images/nav1/customer_h.gif\',1);MM_swapImage(\'gap3\',\'\',\'images/nav1/customer1_h.gif\',1);MM_swapImage(\'gap4\',\'\',\'images/nav1/customer2_h.gif\',1)"\n\n'
str+='		 onMouseOver="MM_swapImage(\'press\',\'\',\'images/nav1/press_h.gif\',1);MM_swapImage(\'gap4\',\'\',\'images/nav1/press1_h.gif\',1);MM_swapImage(\'gap5\',\'\',\'images/nav1/press2_h.gif\',1);MM_swapImage(\'customer\',\'\',\'images/nav1/customer_l.gif\',1);MM_swapImage(\'gap3\',\'\',\'images/nav1/customer1_l.gif\',1)"><img name="press" border="0" src="images/nav1/press_l.gif" width="81" height="38"></a></td>\n\n'
str+='    <td><img src="images/nav1/press2_l.gif" width="9" height="38" name="gap5"></td>\n\n'
str+='  </tr>\n\n'
str+='</table>\n\n'
str+='</div>\n\n'
document.write(str)
