// JavaScript Document
function setta (valore){

document.getElementById('language').options.length=0
document.getElementById('language').remove(5);

	if (valore == "1") { 
  /* EUROPA */
                            
	option0 = new Option("- Wählen Sie die Sprache -",0);
  	option1 = new Option("Italiano",1);
  	option2 = new Option("English",2);
	option3 = new Option("Español",3);
	option5 = new Option("Deutsch",5);
	option4 = new Option("Français",4);
    option6 = new Option("\u0420\u043E\u0441\u0441\u0438\u044e",6); 
  // write them
  	document.getElementById('language').options[0] = option0;
  	document.getElementById('language').options[1] = option1;
 	document.getElementById('language').options[2] = option2;
	document.getElementById('language').options[3] = option3;
	document.getElementById('language').options[4] = option4;
	document.getElementById('language').options[5] = option5;
    document.getElementById('language').options[6] = option6;
  	return;
  } else if (valore == "2") { 
  /* ASIA */ 
  	option0 = new Option("- Wählen Sie die Sprache -",0)
  	option1 = new Option("English",1)
    option2 = new Option("\u4E2D\u6587",2)
    option3 = new Option("\u0420\u043E\u0441\u0441\u0438\u044e",3);  
      // write them
    document.getElementById('language').options[0] = option0
    document.getElementById('language').options[1] = option1
    document.getElementById('language').options[2] = option2
    document.getElementById('language').options[3] = option3 
      return;
  } else if (valore == "3") { 
  /* AMERICA */ 
  	option0 = new Option("- Wählen Sie die Sprache -",0)
  	option1 = new Option("English",1)
  	option2 = new Option("Español",2)
  // write them
	document.getElementById('language').options[0] = option0
	document.getElementById('language').options[1] = option1
	document.getElementById('language').options[2] = option2
	return;
  } else if (valore == "4") { 
  /* OCEANIA */ 
  	option0 = new Option("- Wählen Sie die Sprache -",0)
  	option1 = new Option("English",1)
  // write them
 	document.getElementById('language').options[0] = option0
 	document.getElementById('language').options[1] = option1
	return;
  } else if (valore == "5") { 
  /* AFRICA */ 
  	option0 = new Option("- Wählen Sie die Sprache -",0)
  	option1 = new Option("English",1)
  	option2 = new Option("Español",2)
	option3 = new Option("Français",3)
  // write them
  	document.getElementById('language').options[0] = option0
  	document.getElementById('language').options[1] = option1
  	document.getElementById('language').options[2] = option2
	document.getElementById('language').options[3] = option3
 	 return;
  } 

}


function settaLingua (valore, continente){
    // alert (valore + " valore < > continente " + continente);
    // EUROPA //
    if (continente == "1"){
        if (valore == "1"){
            document.location.href='/';
        }
        if (valore == "2"){
            document.location.href='/index-en';
        }
        if (valore == "3"){
            document.location.href='/index-es';
        }
        if (valore == "4"){
            document.location.href='/index-fr';
        }
        if (valore == "5"){
            document.location.href='/index-de';
        }
        if (valore == "6"){
            document.location.href='/index-ru';
        }
    }
    if (continente == "2"){
        if (valore == "1"){
            document.location.href='/index-en';
        }
        if (valore == "2"){
            document.location.href='/index-cn';
        }
        if (valore == "3"){
            document.location.href='/index-ru';
        }
    }
    if (continente == "3"){
        if (valore == "1"){
            document.location.href='/index-en';
        }
        if (valore == "2"){
            document.location.href='/index-es';
        }
    }
    if (continente == "4"){
        if (valore == "1"){
            document.location.href='/index-en';
        }
    }
    if (continente == "5"){
        if (valore == "1"){
            document.location.href='/index-en';
        }
        if (valore == "2"){
            document.location.href='/index-es';
        }
        if (valore == "3"){
            document.location.href='/index-fr';
        }
    }
}

