// 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');
*/		
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;
	}); 
	
	// pngfix	
	$(document).pngFix();
	
//doppia tipologia di vista sondaggi discrimina la presenza foto
$(".sondaggio label:has(img)").addClass('image');	
	
	//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() {
				$('#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' 
		});
	
*/

//rubriche in home

$('#toggler') .click( function() {
								 
			$('#listarubriche').slideToggle('');
			
			});


$("#groupcnt").html($("#group").html());


});


//slide in dettagli
$(document).ready(function(){	
		$("#slider").easySlider();
	});
