 jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}


 $(document).ready(function(){
      $('.button').dropShadow();
      $('.shadow').dropShadow();

      $("a[rel^='prettyPhoto']").prettyPhoto({
        animationSpeed: 'normal', /* fast/slow/normal */
        padding: 40, /* padding for each side of the picture */
        opacity: 0.35, /* Value betwee 0 and 1 */
        showTitle: true, /* true/false */
        allowresize: true, /* true/false */
        counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
        theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
        callback: function(){}
      });

      $("area[rel^='prettyPhoto']").prettyPhoto({
        animationSpeed: 'normal', /* fast/slow/normal */
        padding: 40, /* padding for each side of the picture */
        opacity: 0.35, /* Value betwee 0 and 1 */
        showTitle: true, /* true/false */
        allowresize: true, /* true/false */
        counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
        theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
        callback: function(){}
      });

      $("area[rel^='pp_MM']").prettyPhoto({
        animationSpeed: 'normal', /* fast/slow/normal */
        padding: 40, /* padding for each side of the picture */
        opacity: 0.35, /* Value betwee 0 and 1 */
        showTitle: true, /* true/false */
        allowresize: true, /* true/false */
        counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
        theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
        callback: function(){}
      });

    $(".close_button").click(function(evt){
        evt.preventDefault();
        $(".video_holder").hide();
         $(".video_holder_w").hide();
         location.reload();
    });

        $("#JThumb").click(function(evt){
          evt.preventDefault();
        $(".video_holder").show();
    });

    $("#VEquip1").click(function(evt){
        evt.preventDefault();
        $("#Part1").show();
    });

    $("#VEquip2").click(function(evt){
        evt.preventDefault();
        $("#Part2").show();
    });

    $(".video_holder").draggable();
    $(".video_holder_w").draggable();

 });







