ChiliBook.automatic = false;
ChiliBook.recipeFolder = "http://www.gcmingati.net/wordpress/wp-content/themes/giancarlo-mingati/js/chili/";  
ChiliBook.stylesheetFolder = "http://www.gcmingati.net/wordpress/wp-content/themes/giancarlo-mingati/js/chili/";


$(function(){


/* calcola la larghezza delle immagini thickbox con link, la assegna inline alla div che le avvolge per fare in modo che su Opera 9 la gif "+" si posizioni correttamente ed in più aggiunge la gif "+" così si capisce che si può ingrandire l'immagine */
var tbWrapperWidth = ($('img.dropshadow').width() +34);
$('div.tb-wrapper').css({ width: tbWrapperWidth });

$(".tb-wrapper a.thickbox").prepend("<img class='tb-larger' src='http://www.gcmingati.net/wordpress/wp-content/uploads/tblarger.gif' alt='larger view' />");

if($.browser.msie) {$( function(){
$('div.tb-wrapper').css({ float: 'left' });
/*elimina l'icona calendar da p.postmetadata alt small */
$('p.postmetadata small').css('background-image','none');
});}
if($.browser.mozilla) {$( function(){$('div.tb-wrapper').css("min-width",184);});}

$("img.dropshadow").wrap("<div class='wrap0'><div class='wrap1'><div class='wrap2'>" + "<div class='wrap3'></div></div></div></div>");

/* pulls up .navigation .postdigg*/
$(".postdigg").css("margin-top", "-84px");

/* adds a Portfolio link */
$("li.pagenav ul li:eq(2)").after('<li class="page_item"><a href="http://summer.gcmingati.net" title="Portfolio">Portfolio</a></li>');
/* show more/less resume info */
$("a#resml").toggle(
		function(){
				$(this).addClass("more");
				$("#resmore").fadeIn("slow");
		},function(){
				$(this).removeClass("more");
				$("#resmore").fadeOut("slow");
});

/* toggle the #infobox if we're not on the index page*/
var locationObj = document.URL;
if(locationObj == 'http://www.gcmingati.net/wordpress/'){
$("#infobox").show("fast");
$("#infobox span:first").css("margin-top", "0");
$("#infobox span:last").css("margin-bottom", "0"); 
}

//22-06-2009 miniZoomPan
$("#minizoom").miniZoomPan({
sW: 98,
sH: 98,
lW: 196,
lH: 196
})

}); //ends $(function()

/* slideViewer galleries */
$(window).bind("load", function() {
// chili syntax highlighter
$("code").chili();


$("div#burningsaltwater, div#marspanorama, div#sstwo").slideView(); 
// digg widget with jquery.cycle 21.12.2007 
$('#digg-widget-container ul').cycle({ 
    fx: 'fade',
    timeout: 5000,
    pause: true
});

}); //ends bind("load")