
jQuery(document).ready(function() {
	
	var inContextEditingEnabled = false;
	if ( typeof(Kore) != "undefined") inContextEditingEnabled = true;
	
	if (!inContextEditingEnabled)
	{
		/* Vymena fontu za Myriad Pro */
		Cufon.replace('h1, h2', { fontFamily: 'Myriad Pro Light' });
		Cufon.replace('#welcomeNoteFirst, #welcomeNoteSecond, a.button, #homeRozcestnik a, #sb-roz a', { fontFamily: 'Myriad Pro Regular' });

		url = window.location.pathname;

		jQuery("#menu a").each(function(){
			if (jQuery(this).attr("href") == url) jQuery(this).parent("li").attr("active", "0");
		});
	}
	
	$("#whyPhytin a").each(function(){
		$(this).click(function(){
			$(this).find("span").toggle();
			return false;
			
		});
		
	});
	
});
