$(document).ready(function(){
	
	$("#vsebina").css("fontSize") == "12px";
	
	var hitr = 100;
	
	$("#fontL").click(function(){
		if( $("#vsebina").css("fontSize") != "14px" )
			if( $("#vsebina").css("fontSize") == "10px" )
				$("#vsebina").animate({ fontSize: "12px" },hitr);
			else
				$("#vsebina").animate({ fontSize: "14px" },hitr);
	});
	$("#fontS").click(function(){
		if( $("#vsebina").css("fontSize") != "10px" )
			if( $("#vsebina").css("fontSize") == "14px" )
				$("#vsebina").animate({ fontSize: "12px" },hitr);
			else
				$("#vsebina").animate({ fontSize: "10px" },hitr);
	});
	
	$("a[rel=lightbox]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	
	$("#povecavaCrk").animate({opacity: 0.6}, 200 );
	
	$("#povecavaCrk").bind("mouseenter",function(){
		$("#povecavaCrk").animate({opacity: 1},100);
	}).bind("mouseleave",function(){
		$("#povecavaCrk").animate({opacity: 0.6},200);
	});
	//});
	
	$("#eng").animate({opacity: 0.6}, 200 );
	
	$("#eng").bind("mouseenter",function(){
		$("#eng").animate({opacity: 1},100);
	}).bind("mouseleave",function(){
		$("#eng").animate({opacity: 0.6},200);
	});
	
	
	$(".noLnk").click(function(){
		$('html, body').animate({scrollTop:0}, 200);
		return false;
	});
});



var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21073480-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

