$(document).ready(function(){
	$("a.switch_thumb").toggle(function(){
		// Uklanja class swap na anchor
		$(this).removeClass("swap");
		// Izvrsavanje animacije na block Story Browser i dodaje class thumView
		$("div.storyBrowser").fadeOut("fast", function() {
			$(this).fadeIn("fast").addClass("thumbView");
			// Svakom drugom block-u Story Browser dodaje class thumbViewLast
			$('div.storyBrowser:odd').addClass("thumbViewLast");
		});
	}, function () {
		// Dodaje class swap na anchor
		$(this).addClass("swap");
		// Izvrsavanje animacije na block Story Browser i uklanja class thumView
		$("div.storyBrowser").fadeOut("fast", function() {
			$(this).fadeIn("fast").removeClass("thumbView");
			// Svakom drugom block-u Story Browser uklanja class thumbViewLast
			$('div.storyBrowser:odd').removeClass("thumbViewLast");
		});
	}); 
});
