$(document).ready(function(){
	
	//izravnqvane na koloni
	var cont 	= $('#content').height();
	var right 	= $('#right').height();
	var left	= $('#left').height();
	
	var array = [ cont ,  right];
	var max = Math.max.apply(null, array);
	/*
	$('#right').height( max );
	$('#content').height( max );
	
	if ( max < ( left - 130 ) ) {
		$('#right').height( left - 130 );
		$('#content').height( left - 130);
	}
	*/
	/*
	if ( left > cont ) {
		$('#content').height( max - 100 );
	}
	
	if ( cont > right ) {
		('#right').height( max - 80 );
	}
	*/
	
	
	$('#newproducts li:last').css({'padding':0});
	
	
	$('.srh a').click( function() {

		var id = $(this).attr('class').split("-")[2];
			
		$el = $('#s-menu-' + id );
			
		if ( $el.is(':hidden') ) {
			$el.fadeIn(300);
		} else {
			$el.fadeOut(300);
		}

		return false;
	});			
	
	
	
	
});

