
// dynamic navigtion menu system 
// mia.walczak@reuters.com
// Reuters Group Communications Studio
// v1.2 // 19.12.02
// FUNCTIONS USED TO LOAD MENU VARIABLES

function init(navoni){
initJnr();
// declare which top nav item will show 'on' style
on = topnav[navoni];

}

function initJnr(){

// declare right navigation items
rsubnav = new Array()

rsubnav[0] = "About Us"
rsubnav[1] = "Investors"
rsubnav[2] = "Press Office"
rsubnav[3] = "Products & Services"
rsubnav[4] = "Careers"
rsubnav[5] = "CSR & Governance"
rsubnav[6] = "Alliances"


// declare right navigation items
rsuburl = new Array()

rsuburl[0] = "/aboutus/"
rsuburl[1] = "/investors/"
rsuburl[2] = "/pressoffice/"
rsuburl[3] = "/productinfo/"
rsuburl[4] = "/careers/"
rsuburl[5] = "/csr/"
rsuburl[6] = "/alliances/"

rlen = rsubnav.length		// rightlength



// declare all other menu variables
topwidth   = 	754  			// width of topnav table
topbgcolor = 	"#CCCCCC"		// background colour of topnav outer table

subwidth   = 	"100px"  		// width of subnav table
subbgcolor = 	"#CCCCCC"		// background colour of subnav table
subtd      = 	"#f1f1f1"		// background colour of subnav cell

rsubwidth   = 	100  			// width of right subnav table
rsubbgcolor = 	"#666666"		// background colour of right subnav table
rsubtd      = 	"#f1f1f1"		// background colour of right subnav cell
rsubx	    =	(topwidth-rsubwidth)-37	// x co-ordinate of right sub nav
rsuby	    =   30			// y co-ordinate of right sub nav

rsubxns	    =	(topwidth-rsubwidth)-37	// x co-ordinate of right sub nav - netscape
rsubyns	    =   30			// y co-ordinate of right sub nav - netscape

rsubalign   =	"right"			// alignment of text in right subnav

diffx 	   = 	-9			// offset of x position of subnav from anchor image -ie
diffy      = 	4			// offset of y position of subnav from anchor image -ie

ndiffx 	   = 	-9			// offset of x position of subnav from anchor image -ns
ndiffy      = 	8			// offset of y position of subnav from anchor image -ns


subv 	   =    'sub'			// named values used for ns to identify document objects
imgv   	   = 	'im'			// named values used for ns to identify document objects
rimgv      = 	'rim'			// named values used for ns to identify document objects

topbarwidth = topwidth-2		// width of transparent gif in top bar	


tlen = topnav.length			// topnav length
slen = subnav.length			// subnavlength



ie4 = navigator.appVersion.substring(0,1) == '4'
ie5 = navigator.appVersion.substring(0,1) == '5'
ie6 = navigator.appVersion.substring(22,23) == '6'


}