$(document).ready(function(){	 
	$("#s_text").focus(
		function () {if($(this).val() == 'поиск по сайту')$(this).val('');}
	);
	$("#s_text").blur(
		function () {if($(this).val() == '')$(this).val('поиск по сайту');}
	);
	//$(document).ready(function(){	
				$(".ask").colorbox({width:"790px", height:"585px", iframe:true}); //595*587				
	//});
	$(".navigation li:first").addClass("act");
        $("#section1").addClass("activ");

	$(".navigation li").click(function()
	{
		$(".navigation li").removeClass("act");
		$(this).addClass("act");
	})          
	

	if(document.getElementById("faq_cat")){
		var tempValue=self.location+"";
		tempValue=tempValue.slice(7);
		tempValue=tempValue.slice(tempValue.indexOf("/"));
		tempValue=tempValue.slice(0,tempValue.lastIndexOf("/")+1);			
		for(var i=0;i<3;i++){
			if(document.getElementById("faq_cat").options[i].value==tempValue){
				document.getElementById("faq_cat").selectedIndex=i;
				break;
			}
		}		
	}
}); 
function loadCoiseCategory(link){
	self.location=link;				
}

