// JavaScript Document
	Shadowbox.init({
			// skip the automatic setup, we'll do this later manually
			skipSetup: true,
			// include the quicktime and windows media player players for playing
			// movies (assuming we have some movies we want to show in either of
			// those formats)
			language: 'it',
    		players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
		});

		window.onload = function(){
			// set up all anchor elements with a "movie" class to work with Shadowbox
			Shadowbox.setup("a.video, #videoImpresa1, #videoImpresa2, #videoImpresa3, #videoImpresa4", {
				autoplayMovies:     true,
				width: 500,
				height: 410
			});
			Shadowbox.setup("#schedaEnter1, #schedaEnter2, #schedaEnter3, #schedaEnter4" , {
				width: 700,
				height: 600
			});
			Shadowbox.setup("#portfolio, #dailymedia, #spotandweb", {
//				width: 806,
//				height: 454
			});
			Shadowbox.setup("#partner", {
				width: 400,
				height: 200
			});
		};

		$(document).ready(function() {

		// simple accordion
		$('#nav_menu').accordion({
			active: true,
			alwaysOpen: false,
			autoheight: false,
			animated: 'easeslide',
			header: '.sezione',
			navigation: true
		});
		$('#nav_menu2').accordion({
			active: true,
			alwaysOpen: false,
			autoheight: false,
			animated: 'easeslide',
			header: '.sezione2',
			navigation: true
		});


		/*## effetto rollover dragon interactive ##*/



				$("a.sezione").hover(
				  	function () {
						$(this).animate({
							backgroundColor: "red"
				  		}, 1000 );
				 	},
				  	function () {
						$(this).animate({
							backgroundColor: "blue"
				  		}, 1000 );      }
				);




		$("#main_container, #contactForm").css("display", "none" );
		//aggiungere ritardo
//		$("#content").css("top", "1px" );
		$("#main_container, #contactForm").animate({ height: 'show', opacity: 'show', marginTop: '5px' }, 'slow', function(){
				//$('#nav_menu').accordion( 'activate' , 0 );
		});

		/* EFFETTO HOVER SUI VIDEO */

		$('a.video').hover(function() { //mouse in
				jQuery("b", this).stop().animate({ paddingLeft: '15px' }, 'fast');
  		  }, function() { //mouse out
				jQuery("b", this).stop().animate({ paddingLeft: '0px' }, 'fast');
	    });

		$('a.video3').hover(function() { //mouse in
				jQuery("b", this).stop().animate({ paddingLeft: '15px' }, 'fast');
  		  }, function() { //mouse out
				jQuery("b", this).stop().animate({ paddingLeft: '0px' }, 'fast');
	    });

		/*	$("body").toggle( function () {
			$("#content").animate({ height: 'hide', opacity: 'hide' }, 'slow');
			$("#main_container").animate({ height: 'hide', opacity: 'hide' }, 'slow');
		},function(){
  			$("#contento").animate({ height: 'show', opacity: 'show' }, 'slow');
			$("#main_container").animate({ height: 'show', opacity: 'show' }, 'slow');
			$("#content").animate({ height: 'show', opacity: 'show' }, 'slow');
		});
		*/
		});


