

$(document).ready(function () {  
  
  $(".jPlayer").each(function(){
    $(this).parent().children('a').hide();
    var player = $(this);
    player.jPlayer({
        cssSelectorAncestor: '#' + $(this).parent().attr('id'),
         ready: function () {
          $(this).jPlayer("setMedia", {
            mp3: $(this).parent().children('a').attr('href') // Defines the mp3 url
          });
        },
        swfPath: "/totallycatholicvbs/scripts"
    });
});
  
    // Setup Ajax Form
    /*
    var ajax_load = "<img src='/images/load.gif' alt='loading...' />";
    var currentUrl = $(location).attr('href');
    
    $("#contactFormButton").click(function () {
        var  getRequestUrl = currentUrl + "?contactName=" + $("#contactName").val() +  "&amp;" + "contactEmail=" + $("#contactEmail").val() + "&amp;" +  "contactPhone=" + $("#contactPhone").val() + "&amp;" +  "contactCheck=" + $("#contactCheck").val();
        $("#contactFormResponse").html(ajax_load).load(getRequestUrl);
        
    });*/
$("a[rel^='prettyPhoto']").prettyPhoto({ theme: 'dark_rounded' });
  
    // Setup prettyPhoto
    $("a[rel^='ppVideo']").prettyPhoto({
        theme: 'dark_rounded',
        default_width: 680,
        default_height: 650,
        show_title: false
    });

    
    $("a[rel^='ppVideoForm']").prettyPhoto({
        theme: 'dark_rounded',
        default_width: 680,
        default_height: 650,
        show_title: false
    });
  
    // Home Page Video Image Fade In
    $('#HomeVideoImage').fadeIn(1500);

  
  
  });
