$.fn.fixWidth = function (options) { //meant to function on a ul of links
    var defaults = {

    };
    var options = $.extend(defaults, options);

    $(this).each(function () {
        //        var $this = $(this);
        //        var maxWidth = 866; //$(this).parent().width();
        //        var ulWidth = $(this).outerWidth(true);
        //        var liNum = $(this).children().size();
        //        var padding = (((maxWidth - ulWidth) - 1) / liNum) / 2; //the -1 is for a 1px border
        //        $(this).children('li').children('a').css('padding-left', padding); //have to grab the a tag inside the list
        //        $(this).children('li').children('a').css('padding-right', padding);
        //        $(this).children('li:last').children('a').css('padding-right', (padding + 1)); //adding more, since we are removing the 1px border
        var $this = $(this);
        var liNum = $(this).children().size();
        var liWidth = 866 / liNum;
        $(this).children('li').css('width', (liWidth - 1));
        $(this).children('li:last').children('a').css('width', liWidth);
    });
};

$(document).ready(function(){
	/* Show Selected Navigation : Hover */						
	$("#navigation span.headmenu a").mouseover(function(){ 
		
			/* Fade In */
			$("#navigation .headmenu").addClass('over');		
			$("#navigation .submenu").fadeIn();
	});
	
	/* Hide Navigation 	*/			   			
	$(document).mouseover(function(event){ 		
		
		var target = $(event.target);
		if (target.parents("#navigation").length == 0) {	
			$("#navigation .headmenu").removeClass('over'); 
			$("#navigation .submenu").hide();
			}	
	},function(){});
	
	/* FAQ Accordian */
  	$('div.accordian> div').hide(); 
  	$('div.accordian> h4').click(function() {
    	$(this).next('div').slideToggle('fast')
    	.siblings('div:visible').slideUp('fast');
  	});
});
