/* Horizontal menu for the CMS CSS Menu Module */
/* by Alexander Endresen */

#menu_vert {
   margin-left: 1px;
   margin-right: 1px;
}

/* The wrapper clears the floating elements of the menu */

/* Fix for Opera 8 */
.clearb { clear: both; }
#menuwrapper { 
   /* Fix for Opera 8 */ 
   /*   overflow: hidden;  */
   background-color:  #0000CD; /* background of menu blue was #C0C0C0; */
   border-bottom: 1px solid #C0C0C0;
   width: 100%;
}

/* Set the width of the menu elements at second level. Leaving first level flexible. */
.sf-menu li li { 
   width: 200px;
}

/* Unless you know what you do, do not touch this */ 
.sf-menu, .sf-menu ul { 
   list-style: none; 
   margin:  0px; 
   padding: 0px;
}
.sf-menu ul { 
   position: absolute; 
   top: auto;
   z-index: 100;
   display: none; 
}
.sf-menu ul ul { 
   margin-top: 1px;
   margin-left: -1px;
   left: 100%; 
   top: 0px; 
}
	
.sf-menu li { 
   margin-left: -1px;
   float: left; 
}
.sf-menu li li { 
   margin-left: 0px;
   margin-top: -2px; /*-1px*/
   float: none; 
   position: relative; 
}

/* Styling the basic apperance of the menu elements */
.sf-menu a { 
   display: block;
   margin: 0px; 
   padding: 5px 10px; 
   text-decoration: none; 
   color: white; /*006699*/
}
.sf-menu li a { 
   border-right: 1px solid #C0C0C0;
   border-left: 1px solid #C0C0C0;
}
.sf-menu li li a { 
   border: 1px solid black;
}	
.sf-menu li, .sf-menu li.menuparent { 
   background-color: #0000CD; /*Blue*/
}

/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */

.sf-menu li.menuactive { 
   background-color: #DC143C; /*was grey - this make highlighted red*/
}


/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
.sf-menu ul li.menuparent, 
.sf-menu ul li.menuparent:hover, 
.sf-menu ul li.menuparenth { 
/* arrow for menuparents */
/* background-image: url(..//uploads/johnstones/arrow.gif); */
   background-position: center right; 
   background-repeat: no-repeat;
} 


/* Styling the apperance of menu items on hover */

.sf-menu li:hover,
.sf-menu li.menuh,
.sf-menu li.menuparenth, 
.sf-menu li.menuactiveh { 
   background-color: #DC143C;  /*E7AB0B- makes orange when in drop down  DC143C - keeps red when in drop down*/
}


/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */

/* 
just add 
.sf-menu li:hover ul ul, 
.sf-menu li.menuparenth ul ul ul,
for fourth level 
*/
.sf-menu ul, 
.sf-menu li:hover ul, 
.sf-menu li:hover ul ul, 
.sf-menu li.menuparenth ul, 
.sf-menu li.menuparenth ul ul { 
   display: none; 
}

/* add 
.sf-menu ul ul ul li:hover ul, 
.sf-menu ul ul ul li.menuparenth ul,
for fourth level
*/
.sf-menu li:hover ul, 
.sf-menu ul li:hover ul, 
.sf-menu ul ul li:hover ul, 
.sf-menu li.menuparenth ul, 
.sf-menu ul li.menuparenth ul, 
.sf-menu ul ul li.menuparenth ul { 
   display: block; 
}


/* IE Hacks */
.sf-menu li li { 
   float: left; 
   clear: both; 
}
.sf-menu li li a { 
   height: 1%; 
}

/* ACCESSIBILITY */

/* 
menu links accesskeys 
*/
span.accesskey {
   text-decoration:none;
}

/* 
accessibility divs are hidden by default 
text, screenreaders and such will show these 
*/
.accessibility, hr {
   position: absolute;
   top: -999em;
   left: -999em;
}

/* 
definition tags are also hidden 
these are also used for menu links    
*/
dfn {
   position: absolute;
   left: -1000px;
   top: -1000px;
   width: 0;
   height: 0;
   overflow: hidden;
   display: inline;
}
/* end accessibility */


/* wiki style external links */
/* external links will have "(external link)" text added, lets hide it */
a.external span {
  position: absolute;
  left: -5000px;
  width: 4000px;
}

/* make some room for the image */
a.external {
/* css shorthand rules, read: first top padding 0 then right padding 12px then bottom then right */
  padding: 0 12px 0 0;
}
/* colors for external links */
a.external:link {
  color: #18507C;
/* background image for the link to show wiki style arrow */
  background: url(../uploads/Johnstones/external.gif) no-repeat 100% 0;
}
a.external:visited {
  color: #18507C; /* a different color can be used for visited external links */

/* 
Set the last 0 to -100px to use that part of the external.gif image for different color for active links 
external.gif is actually 300px tall, we can use different positions of the image to simulate rollover image changes.
*/
  background: url(../uploads/johnstones/external.gif) no-repeat 100% 0; 
}

a.external:hover {
  color: #18507C;
/* Set the last 0 to -200px to use that part of the external.gif image for different color on hover */
  background: url(../uploads/johnstones/external.gif) no-repeat 100% 0; 
  background-color: #C3D4DF;
}
/* end wiki style external links */


/* clearing */
/* 
clearfix is a hack for divs that hold floated elements. it will force the holding div to span all the way down to last floated item.
We strongly recommend against using this as it is a hack and might not render correctly but it is included here for convenience.
Do not edit if you dont know what you are doing
*/
	.clearfix:after {
		content: "."; 
		display: block; 
		height: 0; 
		clear: both; 
		visibility: hidden;
	}
	* html>body .clearfix {
		display: inline-block; 
		width: 100%;
	}
	
	* html .clearfix {
		/* Hides from IE-mac \*/
		height: 1%;
		/* End hide from IE-mac */
	}

/* end clearing */