/* 		JavaScript Document		*/
/*		www.ulysoft.com			*/
/*		by: www.projetw.com		*/

/************************************************************/
// 	global variables									
/************************************************************/
var currentLang = "english";
var currentPage ="index.htm"


/************************************************************/
//   	SwitchLanguage										
//		Redirige vers la page correspondante
//			dans la langue choisie			
/************************************************************/
function SwitchLanguage(){
	if (currentLang == "francais"){
		currentLang = "english";
	}else{
		currentLang = "francais";
	}
	urlStr = "../" + currentLang +"/"+ currentPage;
	
	window.location = urlStr;
}

/************************************************************/
//   	SetLanguage											
//		Assigne la langue d'affichage courante											*/
/************************************************************/
function SetLanguage(lang){
 	currentLang = lang;
}


/************************************************************/
//   	SetPage											
//		Assigne la page d'affichage courante											*/
/************************************************************/
function SetPage(page){
 	currentPage =page + ".htm";
}


/************************************************************/
//   	InitPage									
//		
/************************************************************/
function InitPage(page,lang){
	SetPage(page);
	SetLanguage(lang);
	//positionnement de la page	
	/*window.moveTo(0,0);
	
	if (document.all){
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	}else if (document.layers||document.getElementById){
			if(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
				top.window.outerHeight = screen.availHeight;
				top.window.outerWidth = screen.availWidth;
			}
	}*/
	
	FindScreenHeight();
}

/************************************************************/
//   	FindScreenHeight									
//		Retrouve la hauteur de l'espace disponible			
/************************************************************/
var documentHeight;
var documentWidth;

function FindScreenHeight(){
	documentHeight = (document.all && document.compatMode && 
						document.compatMode == "CSS1Compat") ? 
						document.documentElement.scrollHeight : (document.all && 
						document.compatMode && document.compatMode == "BackCompat") ? 
						document.body.scrollHeight : document.documentElement.scrollHeight ;
documentWidth = (document.all && document.compatMode && 
						document.compatMode == "CSS1Compat") ? 
						document.documentElement.scrollWidth : (document.all && 
						document.compatMode && document.compatMode == "BackCompat") ? 
						document.body.scrollWidth : document.documentElement.scrollWidth;
}








/*********************************************88*************/
/*   	setContentHeight									*/
/*		ajuste la hauteur du tr Content selon la hauteur	*/
/************************************************************/
var heightContent;

function setContentHeight(){
	if (currentPage == "index.htm") heightContent = (documentHeight-130-16-4);
	else heightContent = (documentHeight-84-16-23-4);
	
document.getElementById("tbContent").style.height = heightContent;	
document.getElementById("trContent").style.height = heightContent-50;	

}

/************************************************************/
//   	ReloadPage											
//		Ajuste la heuteur au resize de la page			
/************************************************************/
function ReloadPage(){
	FindScreenHeight();
}
	
/**********************************************************/
/*   	setFooter							  */
/*		ecrit les élément du footer						  */
/**********************************************************/

function setFooter(){
var strFooter = "";
	if (currentLang == "francais"){
	strFooter = '<a href="./copyrights.htm" target="_self">Droits de reproduction et marques d&eacute;pos&eacute;es</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a href="mailto:admin@ulySoft.com" title="Contactez ulySoft">Courriel</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a </a>';
	}else{
	strFooter = '<a href="./copyrights.htm" target="_self">Copyrigths & trademarks</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a href="mailto:admin@ulySoft.com" title="Contact ulySoft">Contact Us</a> &nbsp;&nbsp;/&nbsp;&nbsp;<a </a>';
	}
	document.getElementById("spFooter").innerHTML = strFooter;	
<!--alert("tr " +  document.getElementById("trContent").style.height);-->
}