$(document).ready(function() {
//JS-Detection
	$('html').removeAttr('id');

// Labels
	$("input.search-form-query").labelify({text: "label"});

// Tabs

	$('.tab').hide();
	$('.tab:first').show();
	$('.tabs h3:first a').addClass('active');
	$('#insurance_fiz_tab .tab:first').show();
	$('#insurance_yur_tab .tab:first').show();
	$('#insurance_fiz_tab .tabs h3:first a').addClass('active');
	$('#insurance_yur_tab .tabs h3:first a').addClass('active');
	$('.tabs h3 a').click(function(){
		$(this).parent().siblings().find('a').removeClass('active');
		$(this).addClass('active');
		var currentTab = $(this).attr('href');
		$(this).parent().parent().parent().find('.tab').hide();
		$(currentTab).show();
		return false;
	});

	
// FancyBox
$(".addcomment").fancybox({
		'scrolling' : 'no',
		'titleShow'	: false,
		'transitionIn'	: 'none',
		'transitionOut'	: 'none'
	});


});

// Accordeon
$(document).ready(function() {
	$("#myAccordion").myAccordion({
		speed: "fast",
		defautContent: 100
	});
});

