<!--
var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;
var ns6 = (document.getElementById && !document.all)? true:false;

function hidemenu(name){
	if(ie){document.all[name].style.visibility = "hidden";}
	else if(n){document.layers[name].visibility = "hide"}
	else if (ns6){document.getElementById(name).style.visibility = "hidden";}
}
function showmenu(name){
	if(ie){document.all[name].style.visibility = "visible";}
	else if(n){document.layers[name].visibility = "show";}
	else if (ns6){document.getElementById(name).style.visibility = "visible";}
}
function showDiv(element){
  if (document.getElementById(element).style.display == "none"){
	  document.getElementById(element).style.display = "block";
   }  else {
    document.getElementById(element).style.display = "none";
    }
}
function display(element){
  if (document.getElementById(element).style.display == "none"){
	  document.getElementById(element).style.display = "block";
  }
}
function roll_over(image_id,image_name){
	if(ie){document.all[image_id].src = "images/espaceur_"+image_name+".gif";}
	else if(n){document.images[image_id].src = "images/espaceur_"+image_name+".gif";}
	else if (ns6){document.getElementById(image_id).src = "images/espaceur_"+image_name+".gif";}
}
function getfile(this_file,this_title){
	var lien="bel_getit_MO.asp?ThisFile="+ this_file + "&ThisTitle=" + this_title;
	if(navigator.appName=="Microsoft Internet Explorer"){
		lien="../../" + this_file;
		window.open(lien,'','width=800,height=600,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1');
		//lien="bel_getit_IE.asp?ThisFile="+this_file + "&ThisTitle=" + this_title;
	//alert(lien);
	}
	else
		window.open(lien,'','width=500,height=110,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
}
function printThisPage(alertString){
	if(confirm(alertString)){
		 window.print();
	}
	/*else window.close();*/
}
function hide_colors() {
		roll_over('stick1','blue');
		roll_over('stick2','blue');
		roll_over('stick3','blue');
		roll_over('stick4','blue');
		roll_over('stick5','blue');
	if(ie){
		document.all["td1"].className='bel_row_default';
		document.all["td2"].className='bel_row_default';
		document.all["td3"].className='bel_row_default';
		document.all["td4"].className='bel_row_default';
		document.all["td5"].className='bel_row_default';
		}
	else if(n){
		document.layers["td1"].className='bel_row_default';
		document.layers["td2"].className='bel_row_default';
		document.layers["td3"].className='bel_row_default';
		document.layers["td4"].className='bel_row_default';
		document.layers["td5"].className='bel_row_default';
	}
	else if (ns6){
		document.getElementById("td1").className='bel_row_default';
		document.getElementById("td2").className='bel_row_default';
		document.getElementById("td3").className='bel_row_default';
		document.getElementById("td4").className='bel_row_default';
		document.getElementById("td5").className='bel_row_default';
	}
}
function See_BigPic(chemin){
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>Image</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+10,document.imageTest.height+55)"></CENTER></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1,width=200, height=200');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
};
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function Get_Movie(video_id) { //v3.0
	window.open("bel_video_player.asp?file="+video_id,"BELAFRICA_VIDEO_PLAYER","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=320,height=290");
}
function P7_Snap() { //v2.67 by PVII
 var g,x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,tw,q0,xx,yy,w1,pa='px',args=P7_Snap.arguments;a=parseInt(a);
 if(document.layers||window.opera){pa='';}for(k=0;k<(args.length);k+=4){
 if((g=MM_findObj(args[k]))!=null){if((el=MM_findObj(args[k+1]))!=null){
 a=parseInt(args[k+2]);b=parseInt(args[k+3]);x=0;y=0;ox=0;oy=0;p="";tx=1;
 da="document.all['"+args[k]+"']";if(document.getElementById){
 d="document.getElementsByName('"+args[k]+"')[0]";if(!eval(d)){
 d="document.getElementById('"+args[k]+"')";if(!eval(d)){d=da;}}
 }else if(document.all){d=da;}if(document.all||document.getElementById){while(tx==1){
 p+=".offsetParent";if(eval(d+p)){x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
 }else{tx=0;}}ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);tw=x+ox+y+oy;
 if(tw==0||(navigator.appVersion.indexOf("MSIE 4")>-1&&navigator.appVersion.indexOf("Mac")>-1)){
  ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);}else{
  w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;
  x=document.body.scrollLeft+event.clientX+bx;y=document.body.scrollTop+event.clientY;}}
 }else if(document.layers){x=g.x;y=g.y;q0=document.layers,dd="";for(var s=0;s<q0.length;s++){
  dd='document.'+q0[s].name;if(eval(dd+'.document.'+args[k])){x+=eval(dd+'.left');y+=eval(dd+'.top');
  break;}}}e=(document.layers)?el:el.style;xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);
 if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){
  xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);}
 e.left=xx+pa;e.top=yy+pa;}}}
}

function P7_hideDiv(evt) { //v1.3 by PVII
 var b,relT,mT=false; 
 if(document.layers){b=evt.target;if(b.p7aHide){
  b.visibility="hidden";}else{routeEvent(evt);}
 }else if(document.all&&!window.opera){b=event.srcElement;
  while(b!=null){if(b.tagName=="DIV" && b.p7ahD){mT=true;break;}b=b.parentElement;}
  if(!b.contains(event.toElement)){b.style.visibility="hidden";}
 }else if(document.getElementById){b=evt.currentTarget;relT=evt.relatedTarget;
  while(relT!=null){if(b==relT){mT=true;break;}
  relT=relT.parentNode;}if(!mT){b.style.visibility="hidden";}}
}

function P7_autoHide() { //v1.3 by PVII
 var i,g,args=P7_autoHide.arguments;
 for(i=0;i<args.length;i++){
 	if((g=MM_findObj(args[i]))!=null){
  		g.p7aHide=true;
		if(document.layers){
  			g.captureEvents(Event.MOUSEOUT);
		}g.onmouseout=P7_hideDiv;g.p7ahD=true;
	}
}
}

function P7_autoLayers() { //v1.4 by PVII
 var g,b,k,f,args=P7_autoLayers.arguments;a=parseInt(args[0]);if(isNaN(a))a=0;
 if(!document.p7setc){p7c=new Array();document.p7setc=true;for(var u=0;u<10;u++){
 p7c[u]=new Array();}}for(k=0;k<p7c[a].length;k++){if((g=MM_findObj(p7c[a][k]))!=null){
 b=(document.layers)?g:g.style;b.visibility="hidden";}}for(k=1;k<args.length;k++){
 if((g=MM_findObj(args[k]))!=null){b=(document.layers)?g:g.style;b.visibility="visible";f=false;
 for(var j=0;j<p7c[a].length;j++){if(args[k]==p7c[a][j]) {f=true;}}
 if(!f){p7c[a][p7c[a].length++]=args[k];}}}
}

function P7_OpResizeFix(a) { //v1.1 by PVII
if(!window.opera){return;}if(!document.p7oprX){
 document.p7oprY=window.innerWidth;document.p7oprX=window.innerHeight;
 document.onmousemove=P7_OpResizeFix;
 }else{if(document.p7oprX){
  var k=document.p7oprX-window.innerHeight;
  var j=document.p7oprY - window.innerWidth;
  if(k>1 || j>1 || k<-1 || j<-1){
  document.p7oprY=window.innerWidth;document.p7oprX=window.innerHeight;
  location.reload();}}}
}
P7_OpResizeFix();

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function P7_ReDoIt() { //v1.21 by PVII
 MM_reloadPage(false);
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function rollit(bg_id,font_id,roll_mod){
	if(roll_mod=="over"){
		document.getElementById(font_id).className="float_font float_font_hover";
		document.getElementById(bg_id).className="float float_border float_hover";
	} else {
		document.getElementById(font_id).className="float_font";
		document.getElementById(bg_id).className="float float_border";
	}
}
function PrintWindow(theURL,winName) { //v2.0
	theURL = theURL + "&Page_Style=PRINT";
	//winName = winName + " - PRINT PAGE";
	features="toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=400";
  	popupImage = window.open(theURL,winName,features);
}
/*****************************************************************/
/* VERIF_FORM.JS / 
/* Appliquer une vérification à l'aide de hidden :
/*	<input type="hidden" id="Nom du champs" name="check_on_type" value="message d'erreur">
/* où check_on_type prend les valeurs suivantes :	
/* objet text : "check_on_text"
/* objet mail : "check_on_mail"
/* objet textarea : "check_on_textarea"
/* objet password : "check_on_pwd"
/* objet checkbox : "check_on_boxs"
/* objet radio (groupe de boutons) : "check_on_radios"
/* objet select (liste/menu) : "check_on_list"
/*****************************************************************/

function verif_form(formu){
	// variables
	var expr_reg_mail= /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$/;
	var expr_reg_nums= /\D/;
	var formulaire= document.forms[formu];
	var form_items_nb= formulaire.length;
	var check="";
	var Objet_radio="";
	var Item_To_avoid="";
	
	for (i=0;i<=form_items_nb-1;i++){
		Item_name=formulaire[i].name;
		Item_id=formulaire[i].id;
		Item_valeur=formulaire[i].value;
		Item_Type=formulaire[i].type;

		if(Item_Type=="hidden"){
			check_object="false";
			group_str_length=Item_id.length;
			if (Item_name.substring(0,8)=="check_on"){
				if (Item_name=="check_on_boxs")
					check_type="checkbox";
				if (Item_name=="check_on_radios")
					check_type="radio";
				if (Item_name=="check_on_list")
					check_type="select-one";
				if (Item_name=="check_on_pwd")
					check_type="password";
				if (Item_name=="check_on_textarea")
					check_type="textarea";
				if ((Item_name=="check_on_text")||(Item_name=="check_on_number")||(Item_name=="check_on_mail"))
					check_type="text";
				for (j=0;j<=form_items_nb-1;j++){
					tmp_object=formulaire[j]
					tmp_name=tmp_object.name;
					tmp_valeur=tmp_object.value;
					tmp_Type=tmp_object.type;
					if(tmp_Type==check_type){
						if(tmp_name.substring(0,group_str_length)==Item_id){
							if (check_type=="select-one"){
								if(tmp_object.options[tmp_object.selectedIndex].value!="")
									check_object="true";
							}else if ((check_type=="text")||(check_type=="textarea")){
								if (Item_name=="check_on_mail"){
									if (expr_reg_mail.test(tmp_valeur)==true)
										check_object="true";
								}else if (Item_name=="check_on_number"){
									if (expr_reg_nums.test(tmp_valeur)==false){
										if(tmp_valeur!="")
											check_object="true";
									}
								}else if(tmp_valeur!="")
									check_object="true";
							} else if (Item_name=="check_on_pwd"){
								if (tmp_valeur.length > 2)
									check_object="true";
							}else {
								if (tmp_object.checked==true)
								check_object="true";
							}
						}
					}
				}
				if (check_object=="false"){
					alert("Champs indispensable : " + formulaire[i].value);
					formulaire[i].focus;
					return false;
				}
			}
		}
	}
	//fin all form for
	formulaire.submit();
}

function Aleatoire(mini,maxi) {
	var x = -1;	
	while (x < mini) {
		x = Math.round(Math.random() * maxi);
	}
	return x;
}
	
function ImgAleatoire() {
	var NbImages_Top = 13;
	var NbImages_Bot = 31;
		
	i_top = Aleatoire(1,NbImages_Top);		
	i_bot = Aleatoire(1,NbImages_Bot);		
	
	document.getElementById("CONTAINER_PHOTO_TOP_01").src="images/photos/CONTAINER_TOP/"+i_top+"/CONTAINER_PHOTO_01.gif";
	document.getElementById("CONTAINER_PHOTO_BOT_01").src="images/photos/CONTAINER_BOTTOM/"+i_bot+"/CONTAINER_PHOTO_02.gif";
	document.getElementById("CONTAINER_PHOTO_BOT_02").src="images/photos/CONTAINER_BOTTOM/"+i_bot+"/CONTAINER_PHOTO_04.gif";
	document.getElementById("CONTAINER_PHOTO_BOT_03").src="images/photos/CONTAINER_BOTTOM/"+i_bot+"/CONTAINER_PHOTO_07.gif";
	document.getElementById("CONTAINER_PHOTO_BOT_04").src="images/photos/CONTAINER_BOTTOM/"+i_bot+"/CONTAINER_PHOTO_09.gif";
}
var nav4 = window.Event ? true : false;

function Zoom_On(chemin,title)	{
	Zoom_pic_width = 485;
	Zoom_pic_height = 375;
	
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>Bel Africa Image Zoom :: '+title+' ::</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest"></CENTER></BODY></HTML>';
	features = "toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=" + Zoom_pic_width + ",height=" + Zoom_pic_height;
	popupImage = window.open('','_blank',features);
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
}
//function Zoom_On(chemin,title)	{
//	alert(title);
//	window.open(chemin,title,features);
//}
function Alert_It(msg) {
	alert(msg);
}

//-->