$(document).ready(function() {

     // cufon for fonts
    Cufon.replace('h1')('h2');
    
    // IE6 png fixed
    if($.browser.msie && $.browser.version<7){
        DD_belatedPNG.fix('#content');
        DD_belatedPNG.fix('#menu');
    };
		
		$(".clickable").click(function() {  
	   	window.location = $(this).find("a:first").attr("href");  
		});
		$('.clickable').css("cursor","pointer");

    
		// antispam
		var iel = $("<input>").attr('type','hidden');
		iel.attr('value','autopap');
		iel.attr('name','anti');
		$('#form-faq').append(iel);
		
		/*
		$$('form.protect').each(function(form){
		  new Element('input', {
			  type: 'hidden',
				name: 'anti',
				value: 'makroflex'
			}).inject(form);
		});
		*/
});


function CycleImages() {
  // rotating images on homepage
  $(document).ready(function() {
    $('.cycle').cycle({
        fx: 'fade',
        speed:  1500,
        pause:  1
    });

  // rotating images on content page
    $('.cycle-image').cycle({
        fx: 'fade',
        speed:  1500,
        random: 1
    });
  });
}