jQuery(document).ready(function() {
			
	//jQuery("#menu *").removeAttr("style");   jQuery("#menu *").removeAttr("onmouseover");   jQuery("#menu *").removeAttr("onmouseout");  

	jQuery("#menu img").remove();
	
	jQuery("#menu li").bind("mouseover", function(){
		jQuery(this).find("ul").show();
	}).bind("mouseout", function(){
		jQuery(this).find("ul").hide();
	});

	url = window.location.pathname;
	
	jQuery("#menu a").each(function(){
		if (jQuery(this).attr("href") == url) jQuery(this).parent("li").attr("active", "0");
	});

	if (url == "/" || url == "/homepage") {
		jQuery("#ffOptimalizace").slideDown();
	}

	
	if (url == "/internetovy-marketing") {
		jQuery("#ffOptimalizace").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Ostatní']").attr('selected', 'selected');
	}
	
	if (url == "/analyza-stranek-strategie-rozvoje-na-internetu") {
		jQuery("#ffOptimalizace").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Základní analýza stránek ZDARMA']").attr('selected', 'selected');
		$("#mProcess .mProcessStatus").eq(1).addClass("active");
	}
		
	if (url == "/optimalizace-pro-vyhledavace-navstevnika") {
		jQuery("#ffOptimalizace").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Optimalizace stránek']").attr('selected', 'selected');
		$("#mProcess .mProcessStatus").eq(2).addClass("active");
	}
		
	if (url == "/internetova-reklama") {
		jQuery("#ffReklama").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Internetová reklama']").attr('selected', 'selected');
		$("#mProcess .mProcessStatus").eq(3).addClass("active");
	}
		
	if (url == "/branding-budovani-znacky") {
		jQuery("#ffReklama").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Branding - budování značky']").attr('selected', 'selected');
		$("#mProcess .mProcessStatus").eq(4).addClass("active");
	}

	if (url == "/tvorba-stranek") {
		jQuery("#ffOptimalizace").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Tvorba stránek']").attr('selected', 'selected');
		$("#mProcess .mProcessStatus").eq(0).addClass("active");

		}
		
	if (url == "/profil-spolecnosti") {
		jQuery("#ffReklama").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Ostatní']").attr('selected', 'selected');
		}
		
	if (url == "/kontakt") {
		jQuery("#ffReklama").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Ostatní']").attr('selected', 'selected');
		}

	if (url == "/balicek-start") {
		jQuery("#ffOptimalizace").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Balíček START']").attr('selected', 'selected');
	}
	
	if (url == "/balicek-advanced") {
		jQuery("#ffReklama").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Balíček ADVANCED']").attr('selected', 'selected');
	}
	
	if (url == "/balicek-experienced") {
		jQuery("#ffReklama").slideDown();
		$("#contactForm select[name='CAT_Custom_153052'] option[value='Balíček EXPERIENCED']").attr('selected', 'selected');
	}

	/* Vymena fontu za Myriad Pro */
			Cufon.replace('h1, .h1, h2, .h2, ul.cube li, .rozcestnikTitle', { fontFamily: 'Myriad Pro' });
			//Cufon.replace('', { fontFamily: 'Myriad Pro Regular' });

});

