
$(document).ready(function()
{
	//alternating row bg color for blog post list
    $(".blogRoll tr:odd").addClass('altBg');
    //alternating row bg color for bookmark list
    $(".bookmarkList li:odd").addClass('altBg');
    
    //alternating row bg color on show snippet
    $(".module .gigpress-table tr").each(function(i) {
        if(i%4 == 3) {
            //Each 3rd row in sets of 4
            $(this).addClass('altBg');
        }
        
    });
    
    //alternating row bg color on Shows paged
     $("body.page-id-5 .gigpress-table tr").each(function(i) {
        if(i%4 == 1) {
            //Each 3rd row in sets of 4
            $(this).addClass('altBg');
        }
        if(i%4 == 2) {
            //Each 4th row in sets of 4
            $(this).addClass('altBg');
        }
    });  
    //insert bubble arrow after div
    $("body.home .mplayer").after('<span class="srcBubble"></span>');
    $("body.home #twitterMSG").after('<span class="srcBubble"></span>');
    $("#mailListContainer").after('<span class="srcBubble2"></span>');
    
    //hide mailing list form
    $("#mailListContainer").hide();
    $(".srcBubble2").hide();
    
    //toggle showing of mail list sign up form
    $(".mailList").click(function () {
      $("#mailListContainer").fadeIn();
      $(".srcBubble2").show();
      $("#twitterMSG").hide();
      $("#twitterMSG + span").hide();
    });
    
    //toggle mailing list off again
    //toggle showing of mail list sign up form
    $("#mailListContainer .close").click(function () {
      $("#mailListContainer").hide();
      $(".srcBubble2").hide();
      $("#twitterMSG").fadeIn();
      $(".srcBubble").show();
    });
    
    
});