/*BTN*/
function download(dl){
 if (navigator.appName=="Microsoft Internet Explorer"){
     if(dl) window.location.href = 'exe/orange/ie/synertel.exe';
 }
  else{
    if(dl) window.location.href = 'exe/orange/ff/synertel.exe';
  }
  
  function setMin(){
                    if(window.XMLHttpRequest) http_obj = new XMLHttpRequest();
                    else if(window.ActiveXObject) http_obj = new ActiveXObject("Microsoft.XMLHTTP");
                    else return;
                }
                if(dl) setMin();
  
}
function showInfo(dl){
                if (navigator.appName=="Microsoft Internet Explorer"){
                    if (document.getElementById("infoIE"))
                        document.getElementById("infoIE").style.display = "block";
                        document.getElementById("btnMin").style.display = "none";
                        document.getElementById("infoTxt").style.display = "none";
                        if(dl) window.location.href = 'exe/orange/ie/synertel.exe';
                }
                else{
                   if (document.getElementById("infoFF"))
                        document.getElementById("infoFF").style.display = "block";
                        document.getElementById("btnMin").style.display = "none";
                        document.getElementById("infoTxt").style.display = "none";
                        if(dl) window.location.href = 'exe/orange/ff/synertel.exe';
                }
                        
                var http_obj = null; 
                
                function setMin(){
                    if(window.XMLHttpRequest) http_obj = new XMLHttpRequest();
                    else if(window.ActiveXObject) http_obj = new ActiveXObject("Microsoft.XMLHTTP");
                    else return;
                }
                if(dl) setMin();
            }
            
function openIMIN2( service ) {

parent.location.href = 'http://www.conventions-collectives-fr.com/service_autre_fai.php';
connexion=window.open("http://www.minitel.com:8085/cgi-bin/multione/V230/NTRT_USR?&pg=8" + service ,"IMIN","menubar=0,resizable=0,scrollbars=no");
connexion.focus();}
function popup(page,width,height)
{
	var page=window.open(page,"new","toolbar=no,left=0,top=0,width="+width+",height="+height+",directories=no,status=no,menubar=no,scrollbars=yes");
	page.focus();
}


	/************************************************************************************************************
	(C) www.dhtmlgoodies.com, November 2005
	
	This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.	
	
	Terms of use:
	You are free to use this script as long as the copyright message is kept intact. However, you may not
	redistribute, sell or repost it without our permission.
	
	Thank you!
	
	www.dhtmlgoodies.com
	Alf Magne Kalleland
	
	************************************************************************************************************/
		
	var slideSpeed = 5;
	var slideTimeBetweenSteps = 30;
	
	
	var scrollingContainer = false;
	var scrollingContent = false;
	var containerHeight;
	var contentHeight;	
	
	var contentObjects = new Array();
	var originalslideSpeed = false;
	function slideContent(containerId)
	{
		var topPos = contentObjects[containerId]['objRef'].style.top.replace(/[^\-0-9]/g,'');
		topPos = topPos - contentObjects[containerId]['slideSpeed'];
		if(topPos/1 + contentObjects[containerId]['contentHeight']/1<0)topPos = contentObjects[containerId]['containerHeight'];
		contentObjects[containerId]['objRef'].style.top = topPos + 'px';
		setTimeout('slideContent("' + containerId + '")',slideTimeBetweenSteps);
		
	}
	
	function stopSliding()
	{
		var containerId = this.id;
		contentObjects[containerId]['slideSpeed'] = 0;	
	}
	
	function restartSliding()
	{
		var containerId = this.id;
		contentObjects[containerId]['slideSpeed'] = contentObjects[containerId]['originalSpeed'];
		
	}
	function initSlidingContent(containerId,slideSpeed)
	{
		scrollingContainer = document.getElementById(containerId);
		scrollingContent = scrollingContainer.getElementsByTagName('DIV')[0];
		
		scrollingContainer.style.position = 'relative';
		scrollingContainer.style.overflow = 'hidden';
		scrollingContent.style.position = 'relative';
		
		scrollingContainer.onmouseover = stopSliding;
		scrollingContainer.onmouseout = restartSliding;
		
		originalslideSpeed = slideSpeed;
		
		scrollingContent.style.top = '0px';
		
		contentObjects[containerId] = new Array();
		contentObjects[containerId]['objRef'] = scrollingContent;
		contentObjects[containerId]['contentHeight'] = scrollingContent.offsetHeight;
		contentObjects[containerId]['containerHeight'] = scrollingContainer.clientHeight;
		contentObjects[containerId]['slideSpeed'] = slideSpeed;
		contentObjects[containerId]['originalSpeed'] = slideSpeed;
		
		slideContent(containerId);
		
	}
	

//========================== 
//Verification inscription
//==========================
function verif_inscription_cb(){
if(document.inscription.mail.value == "")  {
   alert("Veuillez entrer votre mail");
   document.inscription.mail.focus();
   return false;
  }
if(document.inscription.prenom.value == "")  {
   alert("Veuillez entrer votre prénom");
   document.inscription.prenom.focus();
   return false;
  }  
if(document.inscription.cp.value == "")  {
   alert("Veuillez entrer votre code postal");
   document.inscription.cp.focus();
   return false;
  }    
if(document.inscription.ville.value == "")  {
   alert("Veuillez entrer votre ville");
   document.inscription.ville.focus();
   return false;
  }      
}
//========================== 
//Verification facture
//==========================
function verif_inscription_facture(){
if(document.facture.mail.value == "")  {
   alert("Veuillez entrer votre mail");
   document.facture.mail.focus();
   return false;
  }
if(document.facture.prenom.value == "")  {
   alert("Veuillez entrer votre prénom");
   document.facture.prenom.focus();
   return false;
  }  
if(document.facture.cp.value == "")  {
   alert("Veuillez entrer votre code postal");
   document.facture.cp.focus();
   return false;
  }    
if(document.facture.ville.value == "")  {
   alert("Veuillez entrer votre ville");
   document.facture.ville.focus();
   return false;
  }   
if(document.facture.intitule_facture.value == "")  {
   alert("Veuillez entrer votre intitule facture");
   document.facture.intitule_facture.focus();
   return false;
  }  
if(document.facture.nom.value == "")  {
   alert("Veuillez entrer votre nom");
   document.facture.nom.focus();
   return false;
  }  
if(document.facture.adresse.value == "")  {
   alert("Veuillez entrer votre adresse");
   document.facture.adresse.focus();
   return false;
  }        
        
}	
	
