jQuery.noConflict();

jQuery(document).ready( function($) {
	// init all global front end features here
	
	jQuery('#navbar .dropdown ul').hide();
	
	jQuery('#navbar .dropdown').hover(
		function(){
			 $(this).css({'background-color': '#FFF'});
			 $(this).find('ul').toggleClass('hoverhide');
			 $(this).find('ul').show();
			 //$(this).find('ul').animate({ width: 'toggle' }, "slow");

		},
		function(){
			 $(this).find('ul').toggleClass('hovershow');
			 $(this).css({'background-color': 'transparent'});
			 $(this).find('ul').hide();
			 //$(this).find('ul').animate({ width: 'toggle' }, "slow");
		}
	);
	
	//add commentform validation
	$("#comment-form").validate();
	
	addClassLast('#sidebar .catlist li:last');


});

function addClassLast(target){
	jQuery(target).addClass('last');
}