function runAll(){

	if(($.browser.msie && $.browser.version != '7.0')|| !$.browser.msie){
		linksToAnchor('#content-inner ul.menu a');
		linksToAnchor('#content-inner h1.title a');
		linksToAnchor('#content-inner ul.pager a');
		linksToAnchor('#content-inner span.read-more a');
		linksToAnchor('div#pagination-toc a');
	}
	/*Effetto hover nel menu� programmazione*/
	$('#content ul.menu li').ahover({toggleEffect: 'height',toggleSpeed:  1});
	
	/* Ottimizzazione per IE7 
	if($.browser.msie){
		if($.browser.version == '7.0'){
			 $("ul.thumb").css('margin-right','180px');
		}
	}*/
	
	zoomHover("ul.thumb li");
	
	/*Effetti fade su scritte e immagini del blocco home*/
	if(!$.browser.msie){
		$('#toslide').cycle({
			 fx:'fade',
			 timeout: 9000,
			 delay: -6000
		});
	}
	$('#imgslide').cycle({
		 fx:'fade',
		 timeout: 9000,
		 delay: -6000
	});
	
	/*attvo tipTip sulle immagini*/
	$("div.share [title]").tipTip();	
	$("#primary li.menu-594 a").tipTip();	
	$("a.flag_ita").tipTip();

    /*effetti bandiere*/
	$('img.flag_front').each(function () {
		var img = $(this);
		img.hover(function () {
			img.stop().fadeTo(500, 0);
		}, function () {
			img.stop().fadeTo(500, 1);
		});
	});
	
	/*$('#imgslide').cjFlashySlideShow({
      xBlocks: 3,
      yBlocks: 3,
      minBlockSize: 80,
      delay: 1250,
      direction: 'random',
      translucent: true,
      sloppy: true
   });*/
	
	function zoomHover(element){
		/*Crea efetto zoom sulle foto*/
		$(element).hover(
		    function() {
				$(this).css('z-index','190');/* Add a higher z-index value so this image stays on top*/ 
				$(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
					.animate({
						marginTop: '-50px', /* The next 4 lines will vertically align this image */ 
						marginLeft: '-70px',				
						width: '254px', 
						height: '254px' /* Set new height */		
					}, 200,function(){
							$(this).parent().find('.shadow').css('display','block');
					}); /* this value of "200" is the speed of how fast/slow this hover animates */
			} , 
			
			function() {
				$(this).find('.shadow').css('display','none');
				$(this).css('z-index' , '10');
				$(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
				.animate({
						marginTop: '0', /* Set alignment back to default */
						marginLeft: '0',			
						width: '110px', /* Set width back to default */
						height: '110px' /* Set height back to default */
					}, 400, function(){
						$(this).parent().css('z-index' , '0');
					}
				);
			 /* Set z-index back to 0 */
		});
	}
	
	$("a.fancybox").fancybox({
				'hideOnContentClick': true,
				'titleShow': false
     });

	 /* $('#tweets').tweet({
            username: "gigi_igig"  ,
            join_text: "auto",
            avatar_size: 32,
            count: 5,
            auto_join_text_default: "we said,", 
            auto_join_text_ed: "we",
            auto_join_text_ing: "we were",
            auto_join_text_reply: "we replied to",
            auto_join_text_url: "we were checking out",
            loading_text: "loading tweets..."
     });*/
	 
	 $('#tweets').twit('gigi_igig', {
             limit: 1
         });
	 
	 /*Scroll  nei pagers*/
	 $('.item-list ul.pager li a ').click(function (){	 
		$('html, body').animate({scrollTop:0}, 'slow');
		}
	 );
	 $('div#pagination-toc a').click(function (){	 
		$('html, body').animate({scrollTop:0}, 'slow');
		}
	 );

	 $('#content ul.menu li').click(function (){	 
		$('html, body').animate({scrollTop:0}, 'slow');
		}
	 );
	 
 
}	 
	 
function PopupCentrata(file,w,h) {
		if(w == null){
			w=800;
		}
		if(h == null){
			h=600;
		}
		var l = Math.floor((screen.width-w)/2);
		var t = Math.floor((screen.height-h)/2);
		window.open(file,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l+",scrollbars=yes,resizable=yes");
	}

