// JavaScript Document
// file di configurazione script per mediatrading




//shadow box
Shadowbox.init({
    language:   "it",
    players:  ['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'],
	enableKeys:			true,
	continuous:			true
 
   
});

$(document).ready(function()
{
//attiva  pngfix 
   $(document).pngFix(); 



	//apre i link in esterno in base all'url
	$("a.ext").click(function() {  
		window.open(this.href,'','');
		return false;
	}); 
	
	
	//animazione in apertura delle pagina

//il menu apertura e chiusura
//
//$(filter).animateClass(newClass,[oldClass], duration);





//	slide	
	$(function() {
				$('#eslide').cycle({ 
					fx:     'fade', 
					speed:  1500,  
					prev:   '#prev', 
					next:   '#next', 
					timeout: 0
				});
		});
	$(function() {
				$('#output').cycle({ 
					fx:     'fade', 
					speed:  1500,  
					prev:   '#prev', 
					next:   '#next', 
					timeout: 0
				});
		});






		$(function() {
				$('#portgallery').cycle({ 
					fx:     'fade', 
					speed:  1500,  
					prev:   '#prev', 
					next:   '#next', 
					before:   onAfter,
					timeout: 0
				});
				function onAfter() {
					$('#output').html(this.title);
				}
		});
	
	
		$('#portslide') 
		.cycle({ 
			fx:     'turnDown', 
			speed:  'slow', 
			timeout: 0,
			pause:   1,
			pager:  '#paginate' 
		});
	
	

	//columnize
	$('#testo').columnize({
						columns: 3, 
						lastNeverTallest:true 
						});
	$('#testop').columnize({
						columns: 2, 
						lastNeverTallest:true 
						});



  // select #flowplanes and make it scrollable. use circular and navigator plugins 
   $("#flowpanes").scrollable({size: 1, clickable: false}).navigator({ 
 
        // select #flowtabs to be used as navigator 
     navi: "#flowtabs", 
 
        // select A tags inside the navigator to work as items (not direct children) 
        naviItem: 'a', 
 
        // assign "current" class name for the active A tag inside navigator 
      activeClass: 'current' 
 
    }); 
   //scrollpane
$('.holder').jScrollPane();
   
   
   //tooltip
	
	$(".prodotti .elenco a").tooltip({
	track: true,
	delay: 0,
	showURL: false,
	fixPNG: true,
	showBody: " - ",
	extraClass: "pretty fancy",
	top: -15,
	left: 5

	});

   

	
});

