$(document).ready(function(){  
  $(document).bind("contextmenu",function(e){  
        return false;  
    });  
});  

// Fix for IE background image flickering
try {
  document.execCommand('BackgroundImageCache', false, true);
}
catch(e) {}

		
// ROLLOVER IMAGE

$(document).ready( function()
{
   PEPS.rollover.init();
});

PEPS = {};

PEPS.rollover =
{
   init: function()
   {
      this.preload();
     
      $(".ro").hover(
         function () { $(this).attr( 'src', PEPS.rollover.newimage($(this).attr('src')) ); },
         function () { $(this).attr( 'src', PEPS.rollover.oldimage($(this).attr('src')) ); }
      );
   },

   preload: function()
   {
      $(window).bind('load', function() {
         $('.ro').each( function( key, elm ) { $('<img>').attr( 'src', PEPS.rollover.newimage( $(this).attr('src') ) ); });
      });
   },
   
   newimage: function( src )
   {
      return src.substring( 0, src.search(/(\.[a-z]+)$/) ) + '_o' + src.match(/(\.[a-z]+)$/)[0];
   },

   oldimage: function( src )
   {
      return src.replace(/_o\./, '.');
   }
};

// GALLERY MENU

$(document).ready(function()
{
  //hide the all of the element with class msg_body
  $("#galleries").show();
  //toggle the componenet with class msg_body
  $("#nav_gallery").click(function()
  {
    $("#galleries").slideToggle(600);
  });
});

		$(document).ready(function(){	
			$("#slider").easySlider();
		});	