﻿// JavaScript Document
/* content="EB 08-02-25  v10.02  */
var Label_i = '';
var Label_f = '';
var Label_e = '';

Lall_f = new Array ('','Calendrier','News','Visiteurs','Organisateurs et exposants','Médias','Plan d\'accès','Contacts','Présentation multimédia','Infrastructures','Entreprise','Services et partenaires','Théâtre de Beaulieu','Emploi','Lausanne et sa région','Liens','Description','Organisation','Références','','Vous','Beaulieu Lausanne','Accueil','Plan du site','Recherche','Evénements','Plus','News','Plus','Médias','Structures','Site réalisé par:<br>');
Lall_e = new Array ('','Calendar','News','Visitors','Organisers and exhibitors','Media','Access plan','Contacts','Multimedia presentation','Infrastructures','The company','Services and partners','Beaulieu theatre','Job offers','Lausanne and its region','Links','Description','Organisation','References','','You','Beaulieu Lausanne','Home','Site map','Search','Events','More','News','More','Media','Structures','Site produced by:<br>');
Lall_d = new Array ('','Kalender','News','Besucher','Organisatoren und Aussteller','Medien','Plan des zuganges','Kontakt','Multimediapräsentation','Infrastruktur','Unternehmen','Dienstleistungen und Partner','Theater Beaulieu','Offene Stellen','Lausanne und Region','Links','Beschreibung','Organisation','Referenzen','','Sie','Beaulieu Lausanne','Home','Sitemap','Suche','Events','Mehr','News','Mehr','Schweiz','Struktur','Realisation der Website:<br>');

Lhome_e = new Array ('');
Lhome_d = new Array ('');
Lhome_f = new Array ('');


function predi(a)
	{if(document.getElementById) {
	pagi = a;
	if (a == 'ho') {
	Label_d = Lall_d.concat(Lhome_d);
	Label_f = Lall_f.concat(Lhome_f);
	Label_e = Lall_e.concat(Lhome_e);
	} else if (a == 'xxx') {
	Label_d = Lall_d.concat(Lrice_d);
	Label_f = Lall_f.concat(Lrice_f);
	Label_e = Lall_e.concat(Lrice_e);
	}
	}}

function headl(a,b,c,d) 
	{if(document.getElementById) {
		//a='f'; // modifiche temporanee per disattivazione lingue
		//c='f'; // modifiche temporanee per disattivazione lingue
		//b='';  // modifiche temporanee per disattivazione lingue
		//d='<img src="graph/trans.gif" height="20" border="0" />'; // modifiche temporanee per disattivazione lingue
	document.getElementById('L_98').innerHTML='<a href="#" onClick="multil(\''+a+'\');">'+b+' </a>'; 
	document.getElementById('L_99').innerHTML='<a href="#" onClick="multil(\''+c+'\');">'+d+'</a>';
	}}

function multil(a)
	{if(document.getElementById) {
	lang = a;
	var ii = '';
	CookieSet ('BeaulieuLang',a,5000);
	if (a=='f'){headl('e','english','d','deutsch');}
	else if (a=='e') {headl('f','français','d','deutsch');
	} else {headl('e','english','f','français');}
	var b = Label_e.length-1;
	for ( i=0; i<b; i++ )  /* etichette testata   */ 
	{
	ii = 'L_'+i;
	if (i>0) {if (document.getElementById(ii)) {eval('document.getElementById("'+ii+'").innerHTML = Label_'+a+'["'+i+'"]');}}
	}
	//contsel(selcode,cntrec,hrec); not running incomplete for right menu's
	contsel(0,0);
	//init();
	}}
	
function pre_multil()
	{
  	if(CookieRead('BeaulieuLang')) {
	var b = CookieRead('BeaulieuLang');
	multil(b);
	} else {
	if ((lang)&&(lang != '')) {multil(lang);} else {multil('f');}
	}}
	
function pause(a) 
{
var date = new Date();
var curDate = null;
do { curDate = new Date(); } 
while(curDate-date < a);
}