function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
};

function fine() {

			location.href = "home.html" ;

};

function index() {
$('#content').load("home.html"+' #content');

};

					   
		 

function grafica() {


$('#content').load("grafica.html"+' #content');

};


function grafica3D() {


$('#content').load("grafica_3D.html"+' #content');

};
	
function multimedia() {

	$('#content').load("multimedia.html"+' #content');

};




 // ------------------------------------------------------
  	<!--MAILTO text-->

jQuery.fn.mailto = function() {
	return this.each(function(){
		var mail = $(this).html().replace( /\s*\(.+\)\s*/, "@");
			
			<!--$(this).before('<a href="mailto:' + mail + '" rel="nofollow" title="Email ' + mail + '">' + mail + '</a>').remove();-->
		  $(this).before('<a href="mailto:' + mail + '?subject=Richiesta%20informazioni'+'" rel="nofollow" title="Email ' + mail + '">' + mail + '</a>').   	remove();
	  });
	};
	

$(document).ready(function() {
			$('.mail').mailto();  <!--MAILTO text-->
	
	});
	<!--END MAIL TO text---------------------------------------->
	
	
	
	//---------------IMAGE SHOW LightBox
 $('#content_ico').livequery(function(){
    
	$('a[@rel*=lightbox]').lightBox({fixedNavigation:false});
	
 });
 
  $('#content_right a').livequery(function(){
    
	$('a[@rel*=lightbox]').lightBox({fixedNavigation:false});
	
 });
    $('#content_left a').livequery(function(){
    
	$('a[@rel*=lightbox]').lightBox({fixedNavigation:false});
	
 });

 // ------------------------------------------------------
	
	<!--rollover_ico--------------------------------------->
function mouseover1()
{
	
document.getElementById("ico1").style.backgroundColor='#e2001a';
document.getElementById("ico_tit1").style.color='#e2001a';
}
function mouseout1()
{
document.getElementById("ico1").style.backgroundColor='#999999';
document.getElementById("ico_tit1").style.color='#999999';
}

function mouseover2()
{
	
document.getElementById("ico2").style.backgroundColor='#e2001a';

document.getElementById("ico_tit2").style.color='#e2001a';
}
function mouseout2()
{
document.getElementById("ico2").style.backgroundColor='#999999';
document.getElementById("ico_tit2").style.color='#999999';
}

function mouseover3()
{
	
document.getElementById("ico3").style.backgroundColor='#e2001a';

document.getElementById("ico_tit3").style.color='#e2001a';
}
function mouseout3()
{
document.getElementById("ico3").style.backgroundColor='#999999';
document.getElementById("ico_tit3").style.color='#999999';
}

function mouseover4()
{
	
document.getElementById("ico4").style.backgroundColor='#e2001a';

document.getElementById("ico_tit4").style.color='#e2001a';
}
function mouseout4()
{
document.getElementById("ico4").style.backgroundColor='#999999';
document.getElementById("ico_tit4").style.color='#999999';
}
function mouseover5()
{
	
document.getElementById("ico5").style.backgroundColor='#e2001a';

document.getElementById("ico_tit5").style.color='#e2001a';
}
function mouseout5()
{
document.getElementById("ico5").style.backgroundColor='#999999';
document.getElementById("ico_tit5").style.color='#999999';
}
<!--END-------rollover_ico----->
<!--rollover_ico3D--------------------------------------->
function mouseover3D1()
{
	
document.getElementById("ico3D1").style.backgroundColor='#e2001a';
document.getElementById("ico_tit1").style.color='#e2001a';
}
function mouseout3D1()
{
document.getElementById("ico3D1").style.backgroundColor='#999999';
document.getElementById("ico_tit1").style.color='#999999';
}

function mouseover3D2()
{
	
document.getElementById("ico3D2").style.backgroundColor='#e2001a';

document.getElementById("ico_tit2").style.color='#e2001a';
}
function mouseout3D2()
{
document.getElementById("ico3D2").style.backgroundColor='#999999';
document.getElementById("ico_tit2").style.color='#999999';
}

function mouseover3D3()
{
	
document.getElementById("ico3D3").style.backgroundColor='#e2001a';

document.getElementById("ico_tit3").style.color='#e2001a';
}
function mouseout3D3()
{
document.getElementById("ico3D3").style.backgroundColor='#999999';
document.getElementById("ico_tit3").style.color='#999999';
}

function mouseover3D4()
{
	
document.getElementById("ico3D4").style.backgroundColor='#e2001a';

document.getElementById("ico_tit4").style.color='#e2001a';
}
function mouseout3D4()
{
document.getElementById("ico3D4").style.backgroundColor='#999999';
document.getElementById("ico_tit4").style.color='#999999';
}
function mouseover3D5()
{
	
document.getElementById("ico3D5").style.backgroundColor='#e2001a';

document.getElementById("ico_tit5").style.color='#e2001a';
}
function mouseout3D5()
{
document.getElementById("ico3D5").style.backgroundColor='#999999';
document.getElementById("ico_tit5").style.color='#999999';
}
<!--END-------rollover_ico3D----->
function mouseoverM1()
{
	
document.getElementById("icoM1").style.backgroundColor='#e2001a';
document.getElementById("ico_tit1").style.color='#e2001a';
}
function mouseoutM1()
{
document.getElementById("icoM1").style.backgroundColor='#999999';
document.getElementById("ico_tit1").style.color='#999999';
}

function mouseoverM2()
{
	
document.getElementById("icoM2").style.backgroundColor='#e2001a';

document.getElementById("ico_tit2").style.color='#e2001a';
}
function mouseoutM2()
{
document.getElementById("icoM2").style.backgroundColor='#999999';
document.getElementById("ico_tit2").style.color='#999999';
}

function mouseoverM3()
{
	
document.getElementById("icoM3").style.backgroundColor='#e2001a';

document.getElementById("ico_tit3").style.color='#e2001a';
}
function mouseoutM3()
{
document.getElementById("icoM3").style.backgroundColor='#999999';
document.getElementById("ico_tit3").style.color='#999999';
}

function mouseoverM4()
{
	
document.getElementById("icoM4").style.backgroundColor='#e2001a';

document.getElementById("ico_tit4").style.color='#e2001a';
}
function mouseoutM4()
{
document.getElementById("icoM4").style.backgroundColor='#999999';
document.getElementById("ico_tit4").style.color='#999999';
}
