/**
 * PHS - JS: Animationen
 *
 *
 * @author Danny Otto | pixelbrand.net
 * @date   2011-03
 *
 *
 */
jQuery(document).ready(function() {
  
  /* Printlink */
  $('.footerbar .col1').html('<a href=\"javascript:window.print();\">Seite drucken</a>');
  
  /* Lightbox */
  $('.lightbox').fancybox({'titlePosition':'inside'});
  
  /* Höhe synchronisieren */
  $('.topproduct-listitem .text h4').syncHeight();
  
  /* Produktfilter */
  if($.browser.msie){ $('#ps-form select, #pf-form select, #ps-manufacturer select').mousedown( function () { $(this).addClass('iehover'); } ).blur( function () { $(this).toggleClass('iehover'); } ); }
  $('form#ps-form, form#pf-form').dropdownmenu();
  
  /* Suche */
  $('html[lang=de] #search .type-text input').attr('value','Suche');
  $('html[lang=de] #search .type-text input').blur( function() { if(this.value=='') { this.value='Suche'; } } ).focus( function () { if(this.value=='Suche') { this.value=''; } } );
  
  /* Newsletter */
  $('html[lang=de] #box-newsletter .type-text input').attr('value','E-Mail-Adresse');
  $('html[lang=de] #box-newsletter .type-text input').blur( function() { if(this.value=='') { this.value='E-Mail-Adresse'; } } ).focus( function () { if(this.value=='E-Mail-Adresse') { this.value=''; } } );
  
  /* Marken-Filter */
  $('#brand-selector ul li a').css({ opacity: 0.3 });
  $('#brand-selector ul li a').hover( function () { $(this).css({ opacity: 1.0 }); }, function () { $(this).css({ opacity: 0.3 }); } );
  
});
