﻿$(document).ready(function(){
	
	
	$(".testolungo blockquote").prepend("<span class='virgleft'>&#8220;</span>").append("<span class='virgright'>&#8221;</span>");

	
	$(".testolungo HR:first").replaceWith("<div class='more_img_insidetext'>" + $(".more_img:first").html() + "</div>");
	
	
	$(".more_img_insidetext IMG").load(function () {
		$(".more_img:first").hide();
	});
	
	$(".zfoglio").mouseover(function () {
      	var maxindex = $(".zfoglio:max(zIndex)").css("z-index");
		var zindexorig = $(this).css("z-index");
		var zindexnow = parseInt(maxindex)+1;
		$(this).css("z-index",zindexnow);
	});


	
	$(".menutrick").click(function () {
		var what = $(this).attr("rel");
		$("#segnala").toggle();
	});
	
	
	$(".link").click(function () {
		var where = $(this).attr("href");
		window.location(where);
	});
	
	
	$(".subdocs LI").prepend("<img src='/img/virgleft.png' />");


	$(function() {
	   $('a[@rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.6,
		imageLoading: '/img/loadingAnimation.gif',
		imageBtnClose: '/img/close.gif',
		imageBtnPrev: '/img/prev.gif',
		imageBtnNext: '/img/next.gif',
		containerResizeSpeed: 350,
		txtImage: 'image',
		txtOf: 'of'
	   });


$(".galleryitem_audio a[@href$='mp3']").flash(
	{ src: '/singlemp3player.swf', height: 20, width: 25, wmode: 'transparent'},
	{ version: 7 },
	function(htmlOptions) {
		$this = $(this);
		htmlOptions.flashvars.file = $this.attr('href');
		$this.before($.fn.flash.transform(htmlOptions));
	});
	

/*
$("#playsound *").mouseover(function () {	
		$("#playsound LABEL").toggle();
	});
*/	


/*
 citazioni ajax
*/
/*
		$("#citazione").click(function () {

			 $("#citazione A").load("_citazioni_ajax.php");

		});
*/

	
	});

});



