﻿$(document).ready(function() {



	



	$('#color-configuration-container, #toggle-disable').hide();



	$("#configurator-toggle").click(function() {



 		$('#color-configuration-container').toggle(500);



 		$('#toggle-enable').toggle();



 		$('#toggle-disable').toggle();



 	});



$("li.cat-item a").each(function(){ // Remove Titles from wp_list_categories



	$(this).removeAttr('title');



})                



 



$("li.page_item a").each(function(){ // Remove Titles from wp_list_pages



	$(this).removeAttr('title');



})



	



	$("#main-menu-bar ul li:not(#main-menu-bar ul li ul li)").hover(



		function() {



			$(this).children("ul").slideDown(350);



		},



		function() {



			$(this).children("ul").slideUp(150);



		});



	$("#main-menu-bar ul li ul li").hover(



		function() {



			$(this).children("ul").show(300);



		},



		function() {



			$(this).children("ul").hide(100);



		}



	)





	$(window).scroll(function() {

		var bar = $('#main-menu-bar-shadow');

		if($(this).scrollTop() > 50) {

			$("#main-menu-bar-shadow").slideDown(500);

		} else {

			$("#main-menu-bar-shadow").slideUp(200);

		}

	});

	$("#hide-animation").click(function() {

		$("#hide-animation").hide();

		$("#show-animation").show();

		$("#big-animation").slideUp(800);

	})

	$("#show-animation").click(function() {

		$("#hide-animation").show();

		$("#show-animation").hide();



		$("#big-animation").slideDown(800);

	})





});
