jQuery(document).ready(function(){
  
  $(window).load(function(){
    $('.productRow').inrow({item1:'.productDescriptionCell',item2:'.productNameCell',item3:'.productImageCell'});
    $('.footerHolder').inrow({item1:'.footerHeight'});
    $('.categoriesBox tr').inrow({item1:'.categoryBox', item2: '.categoriesImageCell'});
    $('.productTopArea').inrow({item1:'.topHeight'});
  })
  
  $('.additionalImages a').each(function(){
    $(this).append('<span class="aiTopLeft"></span><span class="aiTopRight"></span><span class="aiBottomLeft"></span><span class="aiBottomRight"></span>')
  })
  
  $('.reviewsBox:last').css('border-bottom', 'none')
  
  $('.mainPageTabs').tabs();
  $('.tabNavigation a').click(function(){
    $('.productRow').inrow({item1:'.productDescriptionCell',item2:'.productNameCell',item3:'.productImageCell'});
  })
  $('.productPageTabs').tabs();
  
  if($("#slider img").length>1){
    //jQuery('#slider').nivoSlider({pauseTime:8000, directionNav:false});
    
    $('#slider').coinslider({navigation: true, delay: 8000, width: 762, height: 303});
  }
  $('input[type="text"], input[type="password"]').addClass('inputText');
  
});

