// 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()
{
	
	//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() {
				$('#galleryslide').cycle({ 
					fx:     'turnDown', 
					speed:  1500,  
					prev:   '#prev1', 
					next:   '#next1', 
					before:   onAfter,
					timeout: 0
				});
				function onAfter() {
					$('#output1').html(this.title);
				}
		});



		$(function() {
				$('#slide').cycle({ 
					fx:     'turnDown', 
					speed:  1500,  
					prev:   '#prev', 
					next:   '#next', 
					before:   onAfter,
					timeout: 0
				});
				function onAfter() {
					$('#output').html(this.title);
				}
		});

	$(function() {
				$('#portgallery').cycle({ 
					fx:     'turnDown', 
					speed:  1500,  
					prev:   '#prev1', 
					next:   '#next1', 
					before:   onAfter,
					timeout: 0
				});
				function onAfter() {
					$('#output1').html(this.title);
				}
		});
	
	
	
		$('#portslide') 
		.cycle({ 
			fx:     'turnDown', 
			speed:  'slow', 
			timeout: 0,
			pause:   1,
			pager:  '#paginate' 
		});
	
	

	//columnize
	$('#agdetail #txt').columnize({
						
						
						columns: 4, 
						lastNeverTallest:true 
						});
	$('#contenitore #txtartimg').columnize({
						width:150

						
						});

	//scrollpane
	$(function()
		{
			// this initialises the demo scollpanes on the page.
			$('.holder').jScrollPane();
		});


		$("a#moredocs").click(function() {  
			$("#moredocuments").toggleClass('docsact');

		}); 
	$("a#close").click(function() {  
			$("#moredocuments").toggleClass('docsact');

		}); 
	
});
