$(document).ready( function(){
// doccument ready ////////////////////////////////////////
PEPS.rollover.init();

$('#tabWrap ul').tabs();


// $('#item076 a, #item077 a, #item078 a, #item079 a, #item080 a').css('visibility', 'hidden');

// $('#tab050 .iconArea a, #tab060 .iconArea a, #tab070 .iconArea a, #tab080 .iconArea a, #tab090 .iconArea a').css('visibility', 'hidden');

$("#inline").colorbox({ inline:true, href:"#pop", opacity:0.8});


$('#pop textarea').click(function(){
	$(this).select();
});

//End of doccument ready ////////////////////////////////////////
});


// Roll over ////////////////////////////////////////
PEPS = {};

PEPS.rollover =
{
   init: function()
   {
      this.preload();
     
      jQuery(".over").hover(
         function () { jQuery(this).attr( 'src', PEPS.rollover.newimage(jQuery(this).attr('src')) ); },
         function () { jQuery(this).attr( 'src', PEPS.rollover.oldimage(jQuery(this).attr('src')) ); }
      );
   },

   preload: function()
   {
      jQuery(window).bind('load', function() {
         jQuery('.over').each( function( key, elm ) { jQuery('<img>').attr( 'src', PEPS.rollover.newimage( jQuery(this).attr('src') ) ); });
      });
   },
   
   newimage: function( src )
   {
      return src.substring( 0, src.search(/(\.[a-z]+)$/) ) + '_over' + src.match(/(\.[a-z]+)$/)[0];
   },

   oldimage: function( src )
   {
      return src.replace(/_over\./, '.');
   }
};
// Roll over end ////////////////////////////////////////

