$(document).ready(function () {

	/*$('.didattica').click(function(){
		//alert("L'AREA DOCENTI TORNERA' ATTIVA DAL 12 SETTEMBRE 2011 CON I TESTI DELLE NUOVE PRODUZIONI");
		//return false;
	});*/
	$('#wrapper').height($(document).height());
	$('.column').height($('#content-wrapper').height());
	
	/*flowplayer("videoplayer", "/fileadmin/templates/wr_LNRB_HeaderSlim/js/flowplayer-3.2.7.swf", {
	    clip:  {
	        autoPlay: true,
	        loop: true,
	        autoBuffering: true,
	        onFinish: function () {
	              this.play();
	            }
	    },
	    plugins: {
	    	controls: null
	    }
	
	});*/
/*	$(document).ready(function() 
	{
		// Local copy of jQuery selectors, for performance.
		var jpPlayTime = $("#jplayer_play_time");
		var jpTotalTime = $("#jplayer_total_time");
	
		$("#jquery_jplayer").jPlayer({
			ready: function () {
				this.element.jPlayer("setFile", "http://pk.partnertecnologico.it/fileadmin/templates/wr_LNRB_HeaderSlim/audio/guys_and_dolls.mp3").jPlayer("play");
			},
			volume: 50,
			oggSupport: false,
			customCssIds: true,
			nativeSupport:false
		})
		.jPlayer("cssId", "play", "custom_jplayer_play")
		.jPlayer("cssId", "pause", "custom_jplayer_pause")
		.jPlayer("cssId", "stop", "custom_jplayer_stop")
		.jPlayer("onSoundComplete", function() {
			this.element.jPlayer("play");
		});
	
	}); */
		
	$(document).ready(function(){
	
		$("#jquery_jplayer").jPlayer({
			ready: function (event) {
				$(this).jPlayer("setMedia", {
					mp3:"/fileadmin/templates/wr_LNRB_HeaderSlim/audio/guys_and_dolls.mp3"
				}).jPlayer("play");
			},
			cssSelectorAncestor: "",
			swfPath: "/fileadmin/templates/wr_LNRB_HeaderSlim/js",
			supplied: "mp3"
		})
		.jPlayer("option", "cssSelector", "play", "#custom_jplayer_play")
		.jPlayer("option", "cssSelector", "pause", "#custom_jplayer_pause")
		.jPlayer("option", "cssSelector", "stop", "#custom_jplayer_stop")
		.jPlayer("onSoundComplete", function() {
			this.element.jPlayer("play");
		});
	});

		
	
	$(document).ready(function() 
	{
   // By suppling no content attribute, the library uses each elements title attribute by default
   $('#wrapper a.tooltip').qtip({
   		show: { delay: 0, when: { event: 'click' }, effect: { length: 1 } },
      content: {
         text: false // Use each elements title attribute
      },
      position: {
      	corner: {
      		target: 'rightMiddle',
      		tooltip: 'leftMiddle' // Notice the corner value is identical to the previously mentioned positioning corners
      	}
      },
	  style: { 
	  	name: 'dark',
	  	tip: 'topLeft'
   		}

   });
   
  });

	
	
});
