// centra i div in vert e orizz
jQuery.fn.center = function () {
    this.css("position","absolute");
    this.css("top", (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop() + "px");
    this.css("left", (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft() + "px");
    return this;
}

$(function () {
	
	// animazione tre punti
    var counter = 0,
        spans = $('#span1, #span2, #span3');

    function colorSpan () {
        spans.css('color','#000') // color all span black
             .filter(function (index) { return index == counter % 3; }) // colora lo span corretto
            .css('color','red'); // and change color

        counter++;
    }; // function to loop through divs and show correct div

    colorSpan(); // color first span    

    setInterval(function () {
        colorSpan(); // color next span
    }, 1 * 200); // do this every 10 seconds    
	// fine


	// link ci sto lavorando
	$('#workInProgress').click(function(){
		alert('LAVORI IN CORSO... A BREVE SARÀ ON-LINE')
	});

	
	


});






