// JavaScript Document
// file di configurazione script per mediatrading




//shadow box 
/*
Shadowbox.loadSkin('classic', '/js/shadowbox_2_0/src/skin');
		Shadowbox.loadLanguage('it', '/js/shadowbox_2_0/src/lang');
		Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], '/js/shadowbox_2_0/src/player');
		
		$(window).load(function() {
		Shadowbox.init();
		});
*/

Shadowbox.init({
    language:   "it",
    players:  ['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'],
	enableKeys:			true,
	continuous:			true
 
   
});

$(document).ready(function()
{
	
	//apre i link in esterno in base all'url
	$("a.ext").click(function() {  
		window.open(this.href,'','');
		return false;
	}); 
	
		$(function(){
			$('div.highlight').columnize({columns : 3 });
		});
		
				$(document).ready(function(){	
			$("#slider").easySlider();
		});
	



//	slide	
		$(function() {
				$('#gallery').cycle({ 
					fx:     'scrollHorz', 
					speed:  1500,  
					prev:   '#prevButton', 
					next:   '#nextButton', 
					//after:   onAfter,
					timeout: 0
				});
			//	function onAfter() {
			//		$('#outputfsld').html(this.title);
			//	}
		});
		
		$(function() {
			$('#gallery_categoria').cycle({ 
				fx:     'scrollHorz', 
				speed:  1500,  
				prev:   '#prevBtn1', 
				next:   '#nextBtn1', 
				//after:   onAfter,
				timeout: 0
				});
			//	function onAfter() {
			//		$('#outputfsld').html(this.title);
			//	}
		});
		
	



});


<!--

var message="Tasto destro disabilitato!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// --> 



