//vrhnja navigacija
$().ready(function(){
	if($('div.insurances h3').length==0)return;
	$('div.insurances h3',$('#header')).click(function(){
		if($(this).hasClass('active'))return false;
		$('div.insurances h3').removeClass('active');
		$(this).addClass('active');
		$('div.insurances ul').hide();
		if($(this).hasClass('private')){
			$('ul.private').show();
			$('div.categories').removeClass('r');
		}
		if($(this).hasClass('company')){
			$('ul.company').show();
			$('div.categories').addClass('r');
		}
		
	});
});
//input clean
$().ready(function(){
	$('.focus-clean').focus(function(){$(this).val('');});
});
//zavihki
$().ready(function(){
	if($('.tabs').length==0)return;
	$('.tabs-content .cms:first').show();
	$('.tabs li:first').addClass('active');
	$.each($('.tabs li'),function(i,el){
		$(el).click(function(){
			$('.tabs-content .cms').hide();
			$('.tabs-content .cms').eq(i).show();
			$('.tabs li').removeClass('active');
			$(this).addClass('active');
			return false;
		});
	});
});
$().ready(function(){
	if($('#go-to').length==0)return;
	$('#go-to').change(function(){
		var url = $(this).val();
		if(url!='')
			location.href = url;
	});
});
//wec_map desc location
$().ready(function(){
	var locs = $('#locations a');
	var descs = $('#desc div');

	locs.click(function (){
		descs.hide();
		descs.eq(locs.index(this)).show();
	});
});
// flash floater
setTimeout(
	function() {
		$("#floater_wrapper").remove();
	}, 13500);
// flash floater - close
function onFinishedPlaying(){
	$("#floater_wrapper").remove();
}
