//Menu settings, where located in head of html before
//Moved into own js-file for better overview

$(document).ready(function(){ 
        $("ul.sf-menu").supersubs({ 
            minWidth:    1,   // minimum width of sub-menus in em units 
            maxWidth:    17,   // maximum width of sub-menus in em units 
            extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
        }).superfish();  // call supersubs first, then superfish, so that subs are 
                         // not display:none when measuring. Call before initialising 
                         // containing tabs for same reason. 
	$("ul li:first-child").each(
          function()
          {
		if($(this).parent().attr('class').indexOf("sf-menu") == -1)  $(this).css("border-top", "1px solid #747474");
          });

	$("ul li:last-child").each(
          function()
          {
		if($(this).parent().attr('class').indexOf("sf-menu") == -1)  $(this).css("border-bottom", "1px solid #747474");
          });
    }); 

