/**** 
layout.css created December 2009 by Buttons Web Solutions unless otherwise stated.
The rounded boxes on the quality.php page used code from 456 Berea Street available at;
http://www.456bereastreet.com/archive/200406/css_teaser_box/
The rounded boxes on the product/market/applications pages (JavaScript and CSS) used code from All Crunchy available at;
http://www.allcrunchy.com/Web_Stuff/Rounded_Corners/
navigation.css 
The drop down navigation menu used code from TDK Design available at; www.TJKDesign.com/articles/Pure_CSS_dropdown_Menus.asp
****/

/* zeroing padding/margin for all elements */
#TJK_dropDownMenu,
#TJK_dropDownMenu * { margin:0;padding:0;}

/* "Master" UL (the whole Menu) */
#TJK_dropDownMenu {position:relative;background:#000000;width:100%;max-width:100%;/*opacity:100; */}

/* sub-menu ULs */
#TJK_dropDownMenu li ul {
	width:11em !important; /* leaves room for padding */
	cursor:default;
	position:absolute;
	height:auto;
	display:none;
	left:0;
/*	padding:2px ;*/
	background:url(/images/clear.gif);/* trick to keep'em open */
}

/* All LIs */
#TJK_dropDownMenu li {
	position:relative;
/*	width:20em;*/  /* controls the width of the main menu*/
	max-width:100%;
	cursor:pointer;
	float:left;
	text-align:left;
/*	padding-left:10px;*/
/*left: 10px;*/
	list-style-type:none;
	font-weight:bold;
/*	height: 3em;
	line-height:3em;*/
}

/* sub-menu LIs */
#TJK_dropDownMenu li ul li {
	/* width:34em; FF;  ?? */
	padding:0;
	border:none;
	max-width:220%;  /* this controls the width of the white border around the boxes of the sub menus*/
	border:5px solid #fff;
/*	background-color:#FFFFFF;*/
	/*border-top:none;*/
}

/* All anchors */
#TJK_dropDownMenu li a {  /* controls the text and links within main menu*/
	cursor:default;
	color:#fff;
	border:0;
	/*border:1px solid #33ffcc*/
	text-decoration:none;
	display:block;
	float:left;
	padding:0 32px 0 32px;
/*  uncomment the declaration below if you want to go "full width" */
/*	width:100%;*/
	height:2em;
	line-height:2em;
}

/* sub-menu Anchors */
#TJK_dropDownMenu li ul li a {
	width:19em;
	position:relative !important; /* ie Mac */
	cursor:pointer !important;
	white-space:nowrap;
	line-height:2em;
	height:2em;
	font-weight:normal;
	border:1px solid #000;
	padding: 0 0 0 10px;
/*	color:#fff;*/
	background-position:0 50% !important;
}

/* :colour of main menu background*/
#TJK_dropDownMenu li#AB  {background-color: #000000;}
#TJK_dropDownMenu li#CF  {background-color: #000000;}
#TJK_dropDownMenu li#GJ  {background-color: #000000;}
#TJK_dropDownMenu li#KR  {background-color: #000000;}
#TJK_dropDownMenu li#ST  {background-color: #000000;}
#TJK_dropDownMenu li#UZ  {background-color: #000000;}
#TJK_dropDownMenu li#AC {background-color: #000000;}

/* :hover and stuff - changes the text colour of main menu text when hovered over*/
#TJK_dropDownMenu li#AB a:hover { color:#6699FF;}
#TJK_dropDownMenu li#CF a:hover {color:#669966;}
#TJK_dropDownMenu li#GJ a:hover { color:#CC9900;}
#TJK_dropDownMenu li#KR a:hover {color:#CC6600;}
#TJK_dropDownMenu li#ST a:hover {color:#CC0000;}
#TJK_dropDownMenu li#UZ a:hover {color:#9370DB;}  
#TJK_dropDownMenu li#AC a:hover { color:#6699FF;}

/* move the declarations from the rule below the one above if you want a background swap on *all* anchors, including the top level ones */
#TJK_dropDownMenu ul a:hover,
#TJK_dropDownMenu ul a:focus,
#TJK_dropDownMenu ul a:active {color:#fff !important; background-color:#000000;}

/* display and z-index for the sub-menus */
#TJK_dropDownMenu li:hover ul,
#TJK_dropDownMenu li.msieFix ul {display:block;z-index:10;top:2em !important;}

/* safari: users can keep sub-menus up by from sub-menus to next top level  */
/* didn't find a solution for users going back from the last one. I prefer  */
/* to leave it like that vs. taking the last sub-menu *out of* the wrapper  */
#TJK_dropDownMenu li#AB {z-index:7;}
#TJK_dropDownMenu li#CF {z-index:6;}
#TJK_dropDownMenu li#GJ {z-index:5;}
#TJK_dropDownMenu li#KR {z-index:4;}
#TJK_dropDownMenu li#ST {z-index:3;}
#TJK_dropDownMenu li#UZ {z-index:2;}
#TJK_dropDownMenu li#AC {z-index:1;}

/* Current location - class on Body must match LI's id - normal text colour of main menu??
.AB #TJK_dropDownMenu li#AB a,
.CF #TJK_dropDownMenu li#CF a,
.GJ #TJK_dropDownMenu li#GJ a,
.KR #TJK_dropDownMenu li#KR a,
.ST #TJK_dropDownMenu li#ST a,
.UZ #TJK_dropDownMenu li#UZ a,
.AC #TJK_dropDownMenu li#AC a {color:#fff; }*/

/* Keeping current menu accessible to JAWS */
.AB #TJK_dropDownMenu li#AB ul,
.CF #TJK_dropDownMenu li#CF ul,
.GJ #TJK_dropDownMenu li#GJ ul,
.KR #TJK_dropDownMenu li#KR ul,
.ST #TJK_dropDownMenu li#ST ul,
.UZ #TJK_dropDownMenu li#UZ ul,
.AC #TJK_dropDownMenu li#AC ul {display:block;top:-1000px}


/* sub menu background colors */
#AB,#AB li a {background-color:#6699FF;}
#CF,#CF li a {background-color:#669966;} 
#GJ,#GJ li a {background-color:#CC9900;}
#KR,#KR li a {background-color:#CC6600;}
#ST,#ST li a {background-color:#CC0000;}
#UZ,#UZ li a {background-color:#9370DB;}
#AC,#AC li a {background-color:#6699FF;}


/* main menu background colors 
#AB,#AB li  {background-color:#000000;}
#CF,#CF li {background-color:#000000;}
#GJ,#GJ li  {background-color:#000000;}
#KR,#KR li  {background-color:#000000;}
#MD,#MD li  {background-color:#000000;}
#ST,#ST li  {background-color:#000000;}
#UZ,#UZ li  {background-color:#000000;}
#AC,#AC li {background-color:#000000;}*/


/* "trigger" and "msieFix" classes */
#TJK_dropDownMenu li.msieFix a {}

/* last nested UL. keeping it in */
#TJK_dropDownMenu li#AC ul {left:-13em !important;}

/* If JS is OFF we need to style the links in the sub-menu of the current page     */
/* so they are accessible to keyboard users. Using a class on each link would let  */
/* us stick each link in the same place, but we would have to plug a lot of        */
/* attributes in the markup and many rules here, so...                             */
.AB #TJK_dropDownMenu li#AB ul li a:focus,
.AB #TJK_dropDownMenu li#AB ul li a:active,
.CF #TJK_dropDownMenu li#CF ul li a:focus,
.CF #TJK_dropDownMenu li#CF ul li a:active,
.GJ #TJK_dropDownMenu li#GJ ul li a:focus,
.GJ #TJK_dropDownMenu li#GJ ul li a:active,
.KR #TJK_dropDownMenu li#KR ul li a:focus,
.KR #TJK_dropDownMenu li#KR ul li a:active,
.ST #TJK_dropDownMenu li#ST ul li a:focus,
.ST #TJK_dropDownMenu li#ST ul li a:active,
.UZ #TJK_dropDownMenu li#UZ ul li a:focus,
.UZ #TJK_dropDownMenu li#UZ ul li a:active,
.AC #TJK_dropDownMenu li#AC ul li a:focus,
.AC #TJK_dropDownMenu li#AC ul li a:active {position:absolute !important;top:1028px !important;}
