// JavaScript Document
var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;

/*
var imagePreview = function(){
	var thumbs = $("ul.thumbnails li a");
	if(thumbs.length == 0) return;
	
	var xOffset = 0;
	var yOffset = 0;
	
	thumbs.hover(
	
		//mouse over
		function(evt) {
			var jqel = $(this);
			var jqel_pos = jqel.parent("li").position();
			var win_width = $(window).width();
			this.t = this.title;
			this.title = "";
			var c = (this.t != "") ? "<br/>" + this.t : "";
			$("body").append("<p id='expanded_thumbnail'><img src='"+ this.href +"' alt='Zoom' />"+ c +"</p>");
			
			var expanded_thumbnail = $("#expanded_thumbnail");
			
			if(IE6) {
				expanded_thumbnail
			    .css("left", (jqel_pos.left > 0.5*win_width ? jqel_pos.left-(expanded_thumbnail.width())+100 : jqel_pos.left)+ "px")
				.css("top",(jqel_pos.top+50) + "px")
				.css("display","block")
			}  else {
				expanded_thumbnail
			    .css("left", (jqel_pos.left > 0.5*win_width ? jqel_pos.left-(expanded_thumbnail.width())+100 : jqel_pos.left)+ "px")
				.css("top",(jqel_pos.top+50) + "px")
				.fadeIn("fast")
			}
			
        },
		
		//mouse out
		function(evt){
			this.title = this.t;	
			$("#expanded_thumbnail").remove();
	    }
	);	
	
 
}; 
*/

function slide(el) {
		var jqel = $("#"+el)
		if(jqel.css("display") == "none") {
			jqel.slideDown();
		} else {
			jqel.slideUp();
		}
}  

// al caricamento della pagina...
/*
$(document).ready(function(){
	imagePreview();
});
*/
