$(document).ready(function(){
						   
$("li:first-child").addClass("first");	
$("li:last-child").addClass("last");

// All form text input elements need a wrapper to have a flexible bg image
$('#search_query_top').wrap('<div class="bg-input-text"><span></span></div>');

// All form button input elements need a wrapper to have a flexible bg image
$('input.exclusive_large').wrap('<div class="btn-alternative"><p></p></div>');

// All btns must have span because of sprite backgorund image. We will achieve this with jquery since we don't want to edit all modules
$('a.ajax_add_to_cart_button, #cart-buttons a, a.button, a.button_large, p.logout a').wrapInner('<span></span>');

// adds a class for menu items which have submenus
$('ul.tree li li').parents("li").addClass("subsub");


// limit the titles of products in grid view (3 rows is also possible, without causing the layout to break)
	var the_obj = $('p.product_desc a').ThreeDots({
		max_rows: 5
	});
	var the_obj2 = $('.title-bar h1 ').ThreeDots({
		max_rows: 1
	});	
	var the_obj3 = $('.ajax_block_product h3 a ').ThreeDots({
		max_rows: 2
	});



});


