$(function(){
	/*$('div.leng > a.act').mouseover(function(){
		$('div.leng > a').each(function(){
			this.style.visibility = "visible";
		});
	});
	$('div.leng').mouseout(function(){
		$('div.leng > a').each(function(){
			this.style.visibility = "hidden";
		});
		$('div.leng > a.act').css("visibility", "visible");
	});
	$('div.leng > a').mouseout(function(){
		return false;
	});
	*/
	//---------------------- управление подсказками
	obA = $('span.coments > a.questionText');
	obA.mouseover(function(e){
		ob = $("span.description", $(this).parent());
		ob.css("left", e.pageX-($(window).width()-924)/2);
		ob.css("display", "block");
	});
	obA.mouseout(function(){
		ob = $("span.description", $(this).parent());
		ob.css("display", "none");
	});
	
	
	obA = $('span.coments > a.question');
	obA.mouseover(function(e){
		ob = $("span.description", $(this).parent());
		ob.css("left", e.pageX-($(window).width()-924)/2);
		ob.css("display", "block");
	});
	obA.mouseout(function(){
		ob = $("span.description", $(this).parent());
		ob.css("display", "none");
	});
	
	
	obA = $('span.coments1 > a.question');
	obA.mouseover(function(e){
		ob = $("span.description", $(this).parent());
		ob.css("left", e.pageX-($(window).width()-924)/2);
		ob.css("display", "block");
	});
	obA.mouseout(function(){
		ob = $("span.description", $(this).parent());
		ob.css("display", "none");
	});
	
	
	obA = $('span.coments2 > a.question');
	obA.mouseover(function(e){
		ob = $("span.description", $(this).parent());
		ob.css("left", e.pageX-($(window).width()-924)/2);
		ob.css("display", "block");
	});
	obA.mouseout(function(){
		ob = $("span.description", $(this).parent());
		ob.css("display", "none");
	});
	
	
	obA = $('span.coments3 > a.question');
	obA.mouseover(function(e){
		ob = $("span.description", $(this).parent());
		ob.css("left", e.pageX-($(window).width()-924)/2);
		ob.css("display", "block");
	});
	obA.mouseout(function(){
		ob = $("span.description", $(this).parent());
		ob.css("display", "none");
	});
	
	
	obA = $('span.coments4 > a.question');
	obA.mouseover(function(e){
		ob = $("span.description", $(this).parent());
		ob.css("left", e.pageX-($(window).width()-924)/2);
		ob.css("display", "block");
	});
	obA.mouseout(function(){
		ob = $("span.description", $(this).parent());
		ob.css("display", "none");
	});
	
	
	obA = $('span.coments5 > a.question');
	obA.mouseover(function(e){
		ob = $("span.description", $(this).parent());
		ob.css("left", e.pageX-($(window).width()-924)/2);
		ob.css("display", "block");
	});
	obA.mouseout(function(){
		ob = $("span.description", $(this).parent());
		ob.css("display", "none");
	});
});	

function SelectCurrency(ob, currency){
	$('#PricesCurrency > div.Currency').each(function(){
		$(this).css("display", "none");
	});
	$('#PricesCurrency > div.'+currency).css("display", "block");
	
	$('#PricesSelect > li > a').removeClass("act");
	ob.className = "act";
	return false;
}

//----------- открытие окна для принт версии
function wopenPrint(src){
	var top = ($('body').height() - 700)/2;
	var left = ($('body').width() - 795)/2;
	w=window.open(src, "WPrint", "toolbars:no,scrollbars=1,width=795,height=700,top="+top+",left="+left);
	w.focus();
	return false;
}