/*------------------------------------------------
/ Design for Webmaster.spb.ru
/ Develop by : Petrov Nikolay
/ Date : 2009
------------------------------------------------*/



$(function(){
	
	/*$('.onlineConsultStatus').click(function(){
		
		$(this).parent().toggleClass("on");
		return false;
		
	});*/
	
	
	
	$('.askQuestionLink').click(function(){
		
		$(this).parents(".askQuestionTitle").toggleClass("askQuestionTitleInvisible").next().slideToggle();
		
		return false;
		
	});
	
	
	
	
	



	$('.folderTitle a').click(function(){
		
		$(this).parent().next(".folderContent").slideToggle();
		
		return false;
		
		
	});
	
	
	
	


	$('.hintLink').click(function(){
		
		return false;
		
	});

	$('.hintLink').hover(
		
		function (e){
			
			var hint = $(this).parent().next();
			hint.css("display", "block");
			hint.css({left: e.pageX + 20, top: e.pageY - 10 });
			
		},
		
		function (){
			
			
			$(this).parent().next().css("display", "none");
			
		}
		
	);


	$('.headerCalculateBoxTitle a').click(function(){
	
		
		$(this).parent().parent().toggleClass("closed");
		$(this).parent().next().slideToggle();
		
		return false;
	});

	$('.toggleBoxIndex .headerCalculateBoxTitle a').click(function(){
		
		return false;
		
	});

	
	$('.headerCalculateItems .calculateItem').hover(
		
		function (){
			
			$(this).addClass('hover');
			
		}, function (){
			
			$(this).removeClass('hover');
			
			
		}
	
	);
	
	
	/* исчезновение текста в инпутах */
	//$('input[type="text"].hideText, textarea.hideText').inputValue1();
	
	
	/* дефолтные подписи к картинкам */
	//$('.defaultImage').defImg();

	
	/* дефолтная таблица (last TD) */
	// $('.default table tr td:last-child').addClass('lastTd');
	
	/* дефолтная таблица (чередование линий) */
	$('.default>table tbody tr:odd').addClass('odd');
	
	/* gallery by Pasha Pulin & Petrov Nikolay */
	//$('#ph3').slideGallery('105', 4);
	
}); //  onLoad




