	$(document).ready(function() {
			$("div.switcher").css("display", "none");
			
			var curtab = window.location.href;
			curtab = curtab.split("#");
			curtab = "#" + curtab[1];
			
			$("#a").each(function(i) {
				if(curtab == $(this).attr("href")) {
					$(this).attr("id", "current_page_item");
				} else {
					$(this).attr("id", "");
					
				}
			});	
			
			if (curtab !== '#undefined') {
				$(curtab).css("display", "block");
			} else {
				$(".default").css("display", "block");
				var defid = "#" + $(".default").attr("id");
							
				$("a").each(function(i) {
					if(defid == $(this).attr("href")) {
						$(this).attr("id", "current_page_item");
				  }
				})  
				
			}
							
			$(".switcherlinks ul li").click(function() {
			  $(".switcherlinks ul li").children().attr("id", "");
			  $(this).children().attr("id", "current_page_item");
			  var tabtocall = $(this).children().attr("href");
			  $("div.switcher").fadeOut ("fast");			  
			  $(tabtocall).fadeIn ("fast").addClass("current_slide");
			  			  return false;
			});
		});

