	function showSearch(){
		if($('#search-form').css('display')!='block'){
			$('#search-form').show()
			            	.animate({height:"90px"},40,
								function(){
									$('#search-form :not(script)').fadeIn();
									$('#search-form input[type="search"]').focus();
								}
							);
			$('.ad *').hide();
			$('.fader').show();
			$('#search').addClass('active');
		}
		else{
			$('#search-form *').fadeOut(function(){
				$('.fader').hide();
				$('#search-form').animate({height:"0px"},40,function(){$('#search-form').css('display','none');
					$('.ad :not(script)').show();
				});
				$('#search').removeClass('active');
			});
		}
		return false;
	}
var currentLocation;
	function checkLocation(){
		if(currentHash!=location.hash){
			switch(location.hash){
				case "#":
				case "":
					if(currentLocation){
						backSlide();
					}
				break;
				default:
					var hash=location.hash.replace("#_","");
					if(currentLocation!=hash){
						nextSlide(hash);
					}
				break;
			}			
			currentHash=location.hash;
		}
		else{
			
		}
		setTimeout("checkLocation()",100);
	}
	function nextSlide(item,obj,level){
		
		if(!obj){		
			level=0;
			var obj=$("#"+item).parent("dl").children("h2, h3").children("dt").children("a");
			
			if($("#"+item).parents("ul:first").hasClass("main")){
				level=1;
			}
			else if($("#"+item).parents("ul:first").hasClass("sub")){
				level=2
				
				var posper=$("#"+item).parents("ul:first").parent("dd").parent("dl").position();
				$("#genres").css('margin-top',"-"+posper.top+"px");
			}
			//alert(level);
		}
		
		if(level==2){
			var action="genres";
		}
		
		
		switch(action){
			case "genres":
				$("#back_btn").html("Genres").removeAttr("onclick").attr("href","#_genres");				
				break;
			default:
				$("#back_btn").html("Home").attr("href","#");
				break;
		}
		currentLocation=item;
		$("dd.active").removeClass('active');
		
		$(obj).parents('dd').addClass('active');
		$("#"+item).addClass('active');
		var pos = $(obj).position();
		if(pos){
			$("#"+item).css('margin-top',"-"+pos.top+"px");
		}
		var koef=parseInt(level)*parseInt(100);
		if(serverLoad){
			$('div.menu').css('left',"-"+koef+"%");
			serverLoad=0;
		}
		else{
			$('div.menu').animate({left:"-"+koef+"%"},300);
		}
		$("#back_btn").show();
		
		return true;
	}
	
	function backSlide(){
		currentLocation="";		
		$('div.menu').animate({left:"0%"},300);
		$("#back_btn").hide();
		return false;
	}
	