jQuery(document).ready(function(){
  $('.pl-row').inrow({item1:'.pl-productimg',item2:'.pl-productname',item3:'.pl-productspectprice'});
	$('.contentBoxContents tr').inrow({item1:'.productNameCell',item2:'.productImageCell'});
	$('.pl-row').each(function(){
    jQuery(this).find('.pl-item:last').css('margin', '0');
  })
  $('.pl-productimg').wrapInner('<div class="productListImg"></div>');
  $('select:not([id])').each(function(i){
    $(this).attr('id', 'selectId'+i)
  }) 
  var params = {
      changedEl: ".header_search select",
      visRows: 5,
      scrollArrows: true
    }
    cuSel(params);
  })
$(document).ready(function(){
		$('.selectedItem').hover(function () {
				$(this).addClass('itemHover');
				},function () {
				$(this).removeClass('itemHover');
			});
			$('.selectedItem').click(function () {
				$('.selectedItem').removeClass('itemOpen');
				$(this).addClass('itemOpen');
        price = $('.hiddenPrice', this).html();
        $(this).parents('.rowHover').find('.totalPrice').html(price);
        RRPprice = $('.RRPHidden', this).html();
        $(this).parents('.rowHover').find('.rrpPrice').html(RRPprice);
			});
					
			$('.rowHover').hover(function () {
				$(this).addClass('rowBg');
				},function () {
				$(this).removeClass('rowBg');
			});
			$('.rowHover').click(function () {
				$('.rowHover').removeClass('rowOpen');
				$(this).addClass('rowOpen');
			});		
	})
