//Gestine PNG con JS
//Attivazione CufOn

//$(function(){
//    if($.browser.version < 7){
//        pngfix();
//    }
//    Cufon.replace(".cufon-normal", {
//        fontFamily: 'HelveticaNeue',
//        hover : true
//    });
//    Cufon.replace(".cufon-thin", {
//        fontFamily: 'HelveNueThin',
//        hover : true
//    });
//});


// galleriffic

//$('div.navigation').css({'width' : '300px', 'float' : 'left'});
//$('div.content').css('display', 'block');


(function ($) {
// VERTICALLY ALIGN FUNCTION
$.fn.vAlign = function() {
	return this.each(function(i){
	var ah = $(this).height();
	var ph = $(window).height();
	var mh = (ph - ah) > 0 ? (ph - ah) / 3 : 0;
	$(this).css('margin-top', mh);
	});
};
})(jQuery);

$(document).ready(function() {
    // Initialize Minimal Galleriffic Gallery
    $('#gallery').galleriffic('#thumbs-min', {
        delay:                     0,
        imageContainerSel:      '#slideshow',
        controlsContainerSel:   '#controls',
        captionContainerSel:    '#caption',
        numThumbs:              7,
        onTransitionOut:        function(callback) {
            $('#slideshow').fadeTo('fast', 0.0, callback);
        },
        onTransitionIn:         function() {

            $('#slideshow').fadeTo('fast', 1.0);
        },
        nextPageLinkText:       '&rsaquo;',
        prevPageLinkText:       '&lsaquo;'
    });
//    for (i = 0; i < 10; i++) {
//        $("div.pagination a:contains('"+i+"')").css('display','none');
//        $("div.pagination span:contains('"+i+"')").css('display','none');
//    }
    $('#container').vAlign();
});





