$(document).ready(function() { 
    /*$('ul.sf-menu').superfish();*/
    
    $('.menu-main-container #menu-main li a:first-child').each(function() {
    	$(this).addClass("header");
    });
    
    $('.menu-main-container ul.sub-menu li a').each(function() {
    	$(this).addClass("sub-sub");
    });
    
 	$('.menu-main-container ul.sub-menu li a').each(function() {
    	$(this).removeClass("header");
    });
 
    $('.post:odd').css('background','#EFE8D1');
	
	$('img#wpstats').css('display','none');
    
    $(".aside-header a").each(function() {
        var wordArray = $(this).text().split(" ");
        wordArray[wordArray.length-2] += "&nbsp;" + wordArray[wordArray.length-1];
        wordArray.pop();
        $(this).html(wordArray.join(" "));
	});
	
	$("#newsletterShow").click(function () {
	  $("#newsletterForm").fadeIn("slow");
	  $("#newsletterForm_Content").fadeIn("slow");
	  $("#newsletterForm_Content").load('http://www.msialaska.com/dev/kef/025/wp-content/themes/kef/newsletter.php');
	});
	
	$("#newsletterClose").click(function () {
	  $("#newsletterForm").fadeOut("slow");
	  $("#newsletterForm_Content").fadeOut("slow");
	});
	
	$("#e2ma_signup_submit_button").click(function () {
	  $("#newsletterForm").fadeOut("slow");
	  $("#newsletterForm_Content").fadeOut("slow");
	 });
								  
});


