//MIKARE CMS
//public javascript functions
//Kristo Vaher - kristo@waher.net, kristo.vaher@mikare.net
function showtab(cl) {
	$(".acat").each(function() {
		$(this).hide();
	});
	$("." + cl).each(function() {
		$(this).show();
	});
	return false;
}
$(document).ready(function(){
	$('.pics').cycle('fade');
	$('.gal a').lightBox();
	$('.switchable').each(function() {
		var newsrc = $(this).attr("alt");
		var newhref = $(this).attr("href");
		$('#switch-url').lightBox();
		$(this).click(function() {
			$("#switch").attr({src:newsrc});
			$("#switch-url").attr({href:newhref});
			$('#switch-url').lightBox();
			return false;
		});
	});
	$(".catrow").click(function(){
		$(this).find("td > a").css('font-weight','bold');
		$(this).find("div").css('display','block');
	});
        
        //feedback spam protection - if JS is enabled, then the captcha is not needed
        jQuery('#captcha-image-row').remove();
        jQuery('#captcha-input-row').remove();
	
});
