<!-- *** SHADOWBOX *** -->
Shadowbox.init({
	overlayOpacity: 0.8,
	continuous: true,
    modal: true
	});
	
Shadowbox.lang.of = " / ";	

<!-- VARIABILE DEL FILE MODAL.JS -->
var my_closeHTML = "<a class='modalCloseImg'></a>";

<!-- MODAL WINDOWS -->
function show_modal() {
	// MOSTRA LA FINESTRA MODALE
	$("#basic_modal_content").modal();
	}

<!-- ACCORDION -->
function initialize_accordion() {
	$(document).ready(function() { 
		$("ul").accordion(); 
		});
	}

<!-- SLIDE -->
function initialize_slide() {
	$(document).ready(function(){
		$(".btn-slide").click(function(){
			$("#login").slideToggle(400);
			$(this).toggleClass("active"); 
			return false;
		});	 
	});
}

function open_slide() { 
	if(document.getElementById("login").style.display != "block") {
		$("#login").slideToggle(400);
		$(this).toggleClass("active");
		}
	}

function start_fade() { 
	setTimeout("show_input()",1500); 
	}
function show_input() { 
	$('#alert').fadeOut(300, function() { $('#input').fadeIn(300); }); 
	}


<!-- INSERT FLASH -->
function insert_flash(width, height, file, language, section){
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">\n');
   document.write('<param name="movie" value="swf/'+file+'.swf">\n');
   document.write('<param name="quality" value="high">\n');
   document.write('<param name="wmode" value="transparent">\n'); 
   document.write('<param name="flashvars" value="lang='+language+'&amp;sect='+section+'">\n');
   document.write('<embed src="swf/'+file+'.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" wmode="transparent" flashvars="lang='+language+'&amp;sect='+section+'"></embed>\n');
   document.write('</object>\n');
}


<!-- ZOOM -->
var div_to_hide = "#zoom_1";

function zoom_fade(div_id) {
	// FADE LIVELLO
	div_to_show = "#zoom_" + div_id;
	$(div_to_hide).fadeOut(300, function() { $(div_to_show).fadeIn(300); });
	div_to_hide = div_to_show;
	}

<!-- CENTERS -->
function centers(continent,kind) {
	
	if(kind == "industriali") {
	
		my_div = document.getElementById("italia");
		my_div.style.display = "none";	
		my_div = document.getElementById("europa");
		my_div.style.display = "none";	
		my_div = document.getElementById("asia");
		my_div.style.display = "none";	
		my_div = document.getElementById("africa1");
		my_div.style.display = "none";
		my_div = document.getElementById("africa2");
		my_div.style.display = "none";	
		
		} else if(kind == "marini") {
			
		my_div = document.getElementById("asia");
		my_div.style.display = "none";	
		my_div = document.getElementById("africa");
		my_div.style.display = "none";
		my_div = document.getElementById("sudeuropa");
		my_div.style.display = "none";	
		my_div = document.getElementById("nordeuropa");
		my_div.style.display = "none";
		my_div = document.getElementById("sudamerica");
		my_div.style.display = "none";	
		}

	my_div = document.getElementById(continent);
	my_div.style.display = "block";
	
	}
	
<!-- SCROLL -->	
function initialize_scroll() {
	$('a[href=#top]').click(function(){
		$('html').animate({scrollTop:0}, 'fast', open_slide);
		return false;
		});
	}	
	
<!-- FONT SIZE -->
var counter = 0;
	
function change_font_size(action) {
	if(action == "plus") {
		if(counter != 2) {
			counter ++;
			}
		var my_size = (counter * 2) + 11;
		}
	if(action == "minus") {
		if(counter != 0) {
			counter --;
			}
		var my_size = (counter * 2) + 11;
		}
	my_div = document.getElementById("content");
	my_div.style.fontSize = my_size + "px";
	}
