$(document).ready(function() {
				$(document).ready(function () {
						$('#page_effect').fadeIn(2000);
						$('#loader').hide();
				      });
					
				$("a.img").fancybox();
				$(".wrapperbg1, .wrapperbg5, .wrapperbg4, .wrapperbg3, .wrapperbg2, .wrapperbg6").hide();
			$('li a').click(function() {
    			   $("ul li ul").css({ "display" : "none" });
    			   $("ul li a").removeClass("open");

						});

$("#cat1_list1 a ,#cat1_list2 a , #cat1_list3 a , #cat1_list4 a , #cat1_list5 a , #cat1_list6 a").click(function () {
		      $(".wrapperbg1").fadeIn("9000");
		      $(".wrapperbg2").fadeOut("slow");
		      $(".wrapperbg3").fadeOut("slow");
		      $(".wrapperbg4").fadeOut("slow");
		      $(".wrapperbg5").fadeOut("slow");
		      $(".wrapperbg6").fadeOut("slow");

		    });
$("#cat1_list3 a").click(function () {
		      $(".wrapper").fadeIn("9000");
		      $(".wrapperbg1").fadeOut("slow");
		      $(".wrapperbg2").fadeOut("slow");
		      $(".wrapperbg3").fadeOut("slow");
		      $(".wrapperbg4").fadeOut("slow");
		      $(".wrapperbg5").fadeOut("slow");
		      $(".wrapperbg6").fadeOut("slow");
		      
		    });

$(".menucat2 a").click(function () {
		      $(".wrapperbg1").fadeOut("slow");
		      $(".wrapperbg2").fadeIn("9000");
		      $(".wrapperbg3").fadeOut("slow");
		      $(".wrapperbg4").fadeOut("slow");
		      $(".wrapperbg5").fadeOut("slow");
		      $(".wrapperbg6").fadeOut("slow");

		    });
$(".menucat3 a").click(function () {
		      $(".wrapperbg1").fadeOut("slow");
		      $(".wrapperbg2").fadeOut("slow");
		      $(".wrapperbg3").fadeIn("9000");
		      $(".wrapperbg4").fadeOut("slow");
		      $(".wrapperbg5").fadeOut("slow");
		      $(".wrapperbg6").fadeOut("slow");
		    });
$(".menucat4 a").click(function () {
		      $(".wrapperbg1").fadeOut("slow");
		      $(".wrapperbg2").fadeOut("slow");
		      $(".wrapperbg3").fadeOut("slow");
		      $(".wrapperbg4").fadeIn("9000");
		      $(".wrapperbg5").fadeOut("slow");
		      $(".wrapperbg6").fadeOut("slow");
		    });
$(".menucat5 a").click(function () {
		      $(".wrapperbg1").fadeOut("slow");
		      $(".wrapperbg2").fadeOut("slow");
		      $(".wrapperbg3").fadeOut("slow");
		      $(".wrapperbg4").fadeOut("slow");
		      $(".wrapperbg5").fadeIn("9000");
		      $(".wrapperbg6").fadeOut("slow");
		    });

$(".menucat6 a").click(function () {
		      $(".wrapperbg1").fadeOut("slow");
		      $(".wrapperbg2").fadeOut("slow");
		      $(".wrapperbg3").fadeOut("slow");
		      $(".wrapperbg4").fadeOut("slow");
		      $(".wrapperbg5").fadeOut("slow");
		      $(".wrapperbg6").fadeIn("9000");
		    });

		$('.ajaxify').ajaxify({
		        target:'#toggleThis',
		        loadHash:'attr:rel'
		});
		        
				});
