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

if(jQuery.browser.msie && jQuery.browser.version==6){
jQuery('#contactForm').keyup(function(){
jQuery('#contactForm .formBtn').hide().show();
});
jQuery('#contactForm .formBtn').click(function(){
jQuery(this).hide().show();
});
}



//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 ////////////////////////////////////////

function sampleView(url) {
	window.open(url,'popup',"width=960,height=700,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1").focus();
}



