$(document).ready(function(){
		
		// activate placeholder
		$('input[type=text]').placeholder();
		$('textarea').placeholder();
		
		// open job details
		$('.result-job').click(function(){
				if ($(this).hasClass('result-job-current') == false) {				
						$('.result-job-details').hide(250);
						$(this).children('.result-job-details').slideToggle(250);
						$('.result-job').removeClass('result-job-current');
						$(this).toggleClass('result-job-current');
				} //if
		});
		
		// sliding panel
		$('.yazik').click(function(){
				$('.panel-content').slideToggle();
				return false;
		});

		$('#fastcallform').ajaxForm({ 
				dataType: 'json', 
				success: showResponse,
		});
			
		// post-submit callback 
		function showResponse(responseText, statusText, xhr, $form)  { 
				$('#fastcallform').resetForm();
				//$('#ifsucces').slideDown('slow').fadeIn(500).fadeTo(15000, 0.5).slideUp('slow');
				$('#ifsucces').slideDown('slow').fadeIn(500).fadeTo(15000, 0.5).slideUp('slow');
		} 


});// all



































