$(document).ready(function(){

	$('.hovs').hover(function(){
		$(this).attr('src',$(this).attr('src').replace('normal','rollover'));
	},function(){
		$(this).attr('src',$(this).attr('src').replace('rollover','normal'));
	});
	$('img.hov').hover(function(){
		$(this).attr('src',$(this).attr('src').replace('.','_h.'));
	},function(){
		$(this).attr('src',$(this).attr('src').replace('_h.','.'));
	});
	


	var tabContainers = $('div.tabs > div');
	tabContainers.hide().filter(':first').show();
	
	$('div.tabs ul.tabNavigation a').click(function () {
		tabContainers.hide();
		tabContainers.filter(this.hash).show();
		$('div.tabs ul.tabNavigation a').removeClass('selected');
		$(this).addClass('selected');
		return false;
	}).filter(':first').click();
	
	$('.tabNavigation a').each(function(){
		$(this).append('<img src="/public/images/front/arrow3.png" alt=" "/>');
	});


});



// This adds 'placeholder' to the items listed in the jQuery .support object. 
jQuery(function() {
   jQuery.support.placeholder = false;
   test = document.createElement('input');
   if('placeholder' in test) jQuery.support.placeholder = true;
});
// This adds placeholder support to browsers that wouldn't otherwise support it. 
$(function() {
   if(!$.support.placeholder) { 
      var active = document.activeElement;
      $(':input').focus(function () {
         if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) {
            $(this).val('').removeClass('hasPlaceholder');
         }
      }).blur(function () {
         if ($(this).attr('placeholder') != '' && ($(this).val() == '' || $(this).val() == $(this).attr('placeholder'))) {
            $(this).val($(this).attr('placeholder')).addClass('hasPlaceholder');
         }
      });
      $(':input').blur();
      $(active).focus();
      $('form:eq(0)').submit(function () {
         $(':input.hasPlaceholder').val('');
      });
   }
});

