// 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);
//gestiamo radio button $ chekbox

$("label:has(input[type='radio'])").addClass('radio');
$("label:has(input[type='checkbox'])").addClass('check');

//il primo ed ultimo fieldset
$("fieldset:first").addClass('first');
$("fieldset:last").addClass('last');

//i campi hidden
$("input[type='hidden']").css('display','none');
//$("button[type='reset']").css('background-image','url(../images/ico/reset_msg.gif)');




//	slide	
/*	$(function() {
				$('#tgallery').cycle({ 
					fx:     'fade', 
					speed:  5000,  
					timeout: 1
				});
		});
*/


	
	/*gallery news home*/
	$(function() {
			$('#eslide').cycle({ 
				fx:   'scrollHorz', 
				next: '#next',
				prev: '#prev',
				timeout: 0
			});
	});
	
	
	$(function() {
			$('.immgh').cycle({ 
				fx:   'fade', 
				speed:  1500,
								
				pause:  1,
				timeout: 8000

			});
	});
	
	
	
	




//columnize
	/*$('#agdetail #txt').columnize({
						
						
						columns: 4, 
						lastNeverTallest:true 
						});*/
	$('#content #testo').columnize({
						width:145

						
						});

	
	
	
	
	
	
	
	
	
	
	
$(function() { 
    $("#apple img[rel]").overlay({
	effect: 'apple',
    top: 50, 
    left: 480

	
	}); 
});
	
	

	
	
	
	
	
	
	
});




