function mlang(lg){
   	var _ajax = new ajax.ContentLoader('ajax.php?lang='+lg,
	   	function(){
	   		location.reload();
	    });
}
/*function hid(){
	if(document.getElementById('bgg').style.display='none')
	   		document.getElementById('bgg').style.display='block';
			else
			document.getElementById('bgg').style.display='none';
	    };*/

/*
$(function() {
	$("#nav-one").lavaLamp({
    	fx: "backout", 
        speed: 700
	});
});

*/ 
$(document).ready(function(){
	$(".chk_li").hover(function(){ 
		hide_show($(this).attr('name')); }, 
		function() {
			if($(".chk_txt:checked").attr('value'))	hide_show($(".chk_txt:checked").attr('value'));
			else $('.disp_none').hide();
		} 
	);
	$(".chk_txt").click(function(){ 
		hide_show($(this).attr('value'));
	});
	$("#nav-one li").hover(
		function(){ $("ul", this).fadeIn("fast"); }, 
		function() { } 
	);
	if (document.all) {
		$("#nav-one li").hoverClass ("sfHover");
	}
	
});
	

function hide_show(id){
	$('.disp_none').hide();
	$('#option_text_'+id).show();
}

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};	
		
function ffind(){
	document.getElementById('ffi').submit()
}
function cont_send(){
	document.getElementById('theForm').submit()
}
function cont_send2(){
	if(document.getElementById('email').value)
		document.getElementById('theForm').submit()
	else alert('Поле контакты обязательно для заполнения!')
}
var cc= new Array();
function cl(id,name){
	if(!cc[id]){
		document.getElementById(name).value='';
		cc[id]=1;
	}
}
/*
function changetxt(id){
	$('.disp_none').hide();
	$('#option_text_'+id).show();
    //document.getElementById('option_text_1').className = 'vis_on';
}*/
function changecl() {
	document.getElementById('option_text_1').className = 'vis_off';
	
}
