﻿        $(document).ready(function() {
						
						//Add hoverable state for ribbon elements for IE6
            $(".hoverable").hover(function() {
                $(this).addClass('hovered');
            }, function() {
                $(this).removeClass('hovered');
            });
						
						//Calculate and set width of navigation to allow right align in IE
						var width = 0;
						$(".masthead .navigation > li").each(function(){
							$(this).children("a").wrapInner("<em />").wrapInner("<span />"); 							
							width += $(this).width();  
						});
						$(".masthead .navigation").width(width);
					
						//Remove double bottom border on nested sub navigation
						$(".left-column li").each(function(){
						  if($(this).children().size() > 1){
						    $(this).css("border-bottom-width", "0");
						  }
						});

						$(".left-column li ul li:contains('News Item')").parent().hide().parent().css("border-bottom-width", "2px" );
						
						//If nav dropdown is on right half of page, align its right edge 
						//to right edge of parent
					  $(".masthead .navigation > li").each(function(){
							var position = $(this).position();
  						if(position.left  > 430){
  							$(this).children("ul").css({"left":"auto", "right":"-2px"});
  						}
						});
						
						//Create dropdown hover function for IE6
						$(".masthead .navigation li").hover(function(){
						  $(this).addClass("menuLinkOn").children("ul").show();
						},function(){
						  $(this).removeClass("menuLinkOn").children("ul").hide();
						});
						
						//Bind call back modal to all links that invoke it
						$(".request-call-back").click(function(){
							$('#callbackModal').jqmShow();
						  return false;
						});
						
						//Make find out more boxes clickable
						$(".box-med").click(function(){
							$(this).find("a").each(function(){
							  window.location = this.href
							});
						});
						
						//Remove last border from footer links
						$(".footer li a:last").css("border","none");

						
        });
