// JavaScript 

jQuery.noConflict();

jQuery(document).ready(function() {
		var maxCount= jQuery('#content-image > *').length;
		var count=2;
		var previous=1;
		window.setInterval(function(){imageRotation();},3500); 
		
function imageRotation() {
		jQuery('#image-'+previous).fadeOut(500);
		jQuery('#image-'+count).fadeIn(500);
		previous = count;
		count ++;
		if(count==maxCount+1) {
			count=1;
		}
	};
});
		
jQuery(function () {
	jQuery('.link a').css({
        "opacity": 0
    });		

jQuery('.link a').hover(function () {
		var imageID = jQuery(this).attr('rel');
		
        jQuery('.'+ imageID).stop().animate({
            "opacity": .20
        }, 'fast');
		jQuery(this).stop().css({
            "opacity": 1
        });
    },

    function () {
		var imageID = jQuery(this).attr('rel');
        jQuery('.'+ imageID).stop().animate({
            "opacity": 1
        }, 'fast');
		jQuery(this).stop().css({
            "opacity": 0
        });
    });
});