$(document).ready(function() {
						   
	$(document).pngFix(); 
	
	$(".faq01-question").click(function() {
		if($("."+$(this).attr("id")).css("display")=="none") {
			$(this).attr("class","faq01-question-a");
			$("."+$(this).attr("id")).fadeIn(300);
		}
		else {
			$("."+$(this).attr("id")).fadeOut(300);
			$(this).attr("class","faq01-question");
		}
	});
	
	$(".faq01-group-name").click(function() {
		if($("."+$(this).attr("id")).css("display")=="none") {
			$(this).attr("class","faq01-group-name-a");
			$("."+$(this).attr("id")).fadeIn(300);
		}
		else {
			$("."+$(this).attr("id")).fadeOut(300);
			$(this).attr("class","faq01-group-name");
		}
	});
	
	$(".contacts01-cursor").click(function() {
		if($("."+$(this).attr("id")).css("display")=="none") {
			$(this).attr("class","contacts01-tr-a contacts01-cursor");
			$("."+$(this).attr("id")).fadeIn(300);
		}
		else {
			$("."+$(this).attr("id")).fadeOut(300);
			$(this).attr("class","contacts01-tr contacts01-cursor");
		}
	});
	
	$(".gallery01-image").mouseover(function() {
		$(this).css("border", "3px solid #018088");
	});
	$(".gallery01-image").mouseleave(function() {
		$(this).css("border", "3px solid #fff");
	});
	
	$(".tab").mouseover(function() {
		$(this).attr("class", "tab-a");
	});
	$(".tab").mouseleave(function() {
		$(this).attr("class", "tab");
	});
	
	$(".more01").mouseover(function() {
		$(this).attr("class", "more01-a");
	});
	$(".more01").mouseleave(function() {
		$(this).attr("class", "more01");
	});
	
	$(".menu-move").each(function(index) {
		var offset = Math.round(($(this).parents('.menu').width()-$(this).parents('.menu-td').width())/2)+1;
		$(this).css("margin-left",offset+"px");
	});	
	
	$(".tab-span").each(function(index) {
		$(this).css("width",($(this).parent("a").width()+5)+"px");
	});
	
	$.ajaxSetup ({cache: false});
	var loadUrl = http_path + "/index.php?ajax=1";
	var ajax_loader = '<img src="'+http_path+'/web/images/ajax-loader.gif" alt="" class="cal-loader"/>';
	$(".cal-next, .cal-prev").click(function(){
		$(".cal-ajax").html(ajax_loader);
		$("#cal_reload").load(loadUrl, { act:"cal-reload", date:$(this).attr("title") }, function(){ $(".cal-ajax").html("&nbsp;"); $("#cal_height").css("height",($("#cal_reload").height()+19)+"px"); });
		return false;
	});
	
});


