// Copyright 2005 Mirode.com
var primo_info = '<br><span class="hhh">Le chiffre entre parenthèse vous informe du nombre d\'annonces dans la catégorie.</span><br>';
/*
var ambk_list = ["info_auto1", "info_auto2", "info_auto3", "info_auto4", "4 X 4", "Alfa Romeo", "Audi", "BMW", "Fiat", "Ford", "Honda", "Daewoo", "Hyundai", "Mazda", "Mercedes", "Mitsubishi", "Nissan", "Opel", "Peugeot", "Renault", "Rover", "Seat", "Toyota", "Véhicules utilitaires", "Autos divers", "Collection", "Pièces détachées", "Accessoires autos"];
//var auto_coord=["1,3,45,16", "1,17,97,32", "0,31,45,45", "1,45,54,59", "1,59,54,72", "1,72,53,87", "1,87,66,101", "1,100,70,115", "1,115,73,130", "1,130,72,143", "0,143,83,156", "1,156,95,169", "156,2,252,17", "156,16,252,31", "156,31,252,46", "156,44,252,59", "156,58,252,73", "156,73,252,88", "155,87,251,102", "141,101,262,115", "140,113,260,128", "140,127,259,143", "139,142,258,155", "140,154,258,168"];


var auto_list = ["4 X 4", "Alfa Romeo", "Audi", "BMW", "Fiat", "Ford", "Honda", "Daewoo", "Hyundai", "Mazda", "Mercedes", "Mitsubishi", "Nissan", "Opel", "Peugeot", "Renault", "Rover", "Seat", "Toyota", "Véhicules utilitaires", "Autos divers", "Collection", "Pièces détachées", "Accessoires autos"];
var auto_list_bulle = ["4_X_4", "Alfa_Romeo", "Audi", "BMW", "Fiat", "Ford", "Honda", "Daewoo", "Hyundai", "Mazda", "Mercedes", "Mitsubishi", "Nissan", "Opel", "Peugeot", "Renault", "Rover", "Seat", "Toyota", "Véhicules utilitaires", "Autos divers", "Collection", "Pièces détachées", "accessoires_autos"];
var pour_display_auto = ["de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de véhicules ", "de ", "d' ", "de véhicules de ", "de ", "d' "];
//	les annonces de ventes '+pour_display_auto[i]+o+'.&nbsp;		
var lien_logo_auto = ["4_X_4.gif", "alfa_romeo.jpg", "audi.png", "bmw.png", "fiat.gif", "ford.jpg", "", "", "hyundai.jpg", "mazda.gif", "mercedes.gif", "mitsubishi.png", "nissan.gif", "opel.jpg", "", "", "", "", "", "", "", "", "", ""];

var mob_list = ["Cyclos, Scooters", "125 CC", "Plus de 125 CC", "Motos Divers", "Pièces détachées", "Accessoires motos"];
var mob_list_bulle = ["cyclos_scooters", "cc", "plus_cc", "motos_divers", "pieces_detachees_moto", "accessoires_motos"];
var lien_logo_mob = ["cyclos_scooters.gif", "cc.jpg", "plus_cc.png", "motos_divers.gif", "pieces_detachees_moto.png", ""];

var pour_display_mob = ["de ", "de motos ", "de motos de ", "de ", "de ", "d'"];
//	les annonces de ventes '+pour_display_mob[i]+o+'.&nbsp;		

*/

function retour_val(o) { if (o=='Studio F1') return 0; else if (o=='Appt F2-F3') return 2; else if (o=='Appt F4-F6 +') return 4; else if (o=='Villas') return 6; else if (o=='Terrains') return 8; else if (o=='Commerces') return 10; else if (o=='Bureaux') return 12; else if (o=='Divers') return 14; }
function retour_val_locat(o) { if (o=='Chambres') return 0; else if (o=='Studio F1') return 2; else if (o=='Appt F2-F3') return 4; else if (o=='Appt F4-F6 +') return 6; else if (o=='Villas') return 8; else if (o=='Commerces') return 10; else if (o=='Bureaux') return 12; }
function retour_val_saison(o) { if (o=='Chambres') return 0; else if (o=='Studio') return 2; else if (o=='Appartements') return 4; else if (o=='Villas') return 6; else if (o=='Divers') return 8; }

function effacer_tout(){
	for (i=0;i<6;i++) { to_change = 'INF'+i; rendre_visible(to_change); }
	rendre_visible('popupbox'); rendre_visible('locate');
	for (i=1;i<4;i++) { to_change = 'subINF'+i; rendre_visible(to_change); }
	rendre_visible('sub2INF1');rendre_visible('sub2INF2');
}

function MENU(e){
	effacer_tout(); change_ok = 'INF'+e; rendre_visible(change_ok,"on");
	if (e!=0) { 
		display_location = '<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: ';
		if (e==1) display_location += 'Immobilier'; else if (e==2) display_location += 'Emploi'; else if (e==3) display_location += 'Auto Moto Bateau Kart'; else if (e==4) display_location += 'Bonnes Affaires'; else if (e==5) display_location += 'Rencontres';
		charger_inert("locate", display_location);rendre_visible("locate",'on');
	}
}
/******************************IMMOBILIER**************************************/				
function with_img_immo(a,f,r,g,n,o){
	if (a==1) u='<br>'; else u='<br><br>';
	toput='<img src="images/r1.png" width="5" height="7" alt=""> <a href="#tv" onclick="'+f+'(\''+r+'\'';
	if (o) toput+=',\''+o+'\'';
	toput+=')">'+g+'</a> <i><span class="hhh">('+n+')</span></i>'+u+'';
	return (toput);
}
								
function retourpath_dos(o) {
	if (o=='Studio F1') s='studio_f1'; else if (o=='Appt F2-F3') s='appt_f2_f3'; else if (o=='Appt F4-F6 +') s='appt_f4_f6_plus'; else s=o.toLowerCase();
	return s;
}

function retour_particule1(o) {
	if (o=='Studio F1'||o=='Studio'||o=='Villas'||o=='Terrains'||o=='Commerces'||o=='Bureaux'||o=='Chambres') z1='de';  else if (o=='Appt F2-F3'||o=='Appt F4-F6 +'||o=='Appartements') z1='d\''; else if (o=='Divers') z1='';
	return z1;
}
							
function immobilier_choix_region(e){
	if (e=='Nord') icir=icr0; else if (e=='Ouest') icir=icr1; else if (e=='Sud') icir=icr2; else if (e=='Est') icir=icr3;
	effacer_tout();
	display_location = '<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: <a href="#tv" onclick="MENU(1)">Immobilier</a> :: Région '+e;
	display_submenu = primo_info+with_img_immo(2,'immo_ventes',e,'Ventes',icir[0])+with_img_immo(2,'immo_locations',e,'Locations',icir[1])+with_img_immo(2,'immo_locations_saisonnieres',e,'Locations Saisonnières',icir[2]);
	charger_inert("subINF1", display_submenu); charger_inert("locate", display_location);
	rendre_visible("subINF1",'on'); rendre_visible("locate",'on');					
}
					
function immo_ventes(e){
	effacer_tout();
	if (e=='Nord') jko=jcr0; else if (e=='Ouest') jko=jcr1; else if (e=='Sud') jko=jcr2; else if (e=='Est') jko=jcr3;
	display_location = '<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: <a href="#tv" onclick="MENU(1)">Immobilier</a> :: <a href="#tv" onclick="immobilier_choix_region(\''+e+'\')">Région '+e+'</a> :: Ventes';
	display_submenu = primo_info+with_img_immo(1,'immo_ventes_final',e,'Studio F1',jko[0],'Studio F1')+with_img_immo(1,'immo_ventes_final',e,'Appt F2-F3',jko[1],'Appt F2-F3')+with_img_immo(1,'immo_ventes_final',e,'Appt F4-F6 +',jko[2],'Appt F4-F6 +')+with_img_immo(1,'immo_ventes_final',e,'Villas',jko[3],'Villas')+with_img_immo(1,'immo_ventes_final',e,'Terrains',jko[4],'Terrains')+with_img_immo(1,'immo_ventes_final',e,'Commerces',jko[5],'Commerces')+with_img_immo(1,'immo_ventes_final',e,'Bureaux',jko[6],'Bureaux')+with_img_immo(1,'immo_ventes_final',e,'Divers',jko[7],'Divers');
	charger_inert("sub2INF1", display_submenu); charger_inert("locate", display_location);
	rendre_visible("sub2INF1",'on'); rendre_visible("locate",'on');					
}
function immo_locations(e){
	effacer_tout();
	if (e=='Nord') wqa=fce0; else if (e=='Ouest') wqa=fce1; else if (e=='Sud') wqa=fce2; else if (e=='Est') wqa=fce3;
	display_location = '<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: <a href="#tv" onclick="MENU(1)">Immobilier</a> :: <a href="#tv" onclick="immobilier_choix_region(\''+e+'\')">Région '+e+'</a> :: Locations';
	display_submenu = primo_info+with_img_immo(1,'immo_locat_final',e,'Chambres',wqa[0],'Chambres')+with_img_immo(1,'immo_locat_final',e,'Studio F1',wqa[1],'Studio F1')+with_img_immo(1,'immo_locat_final',e,'Appt F2-F3',wqa[2],'Appt F2-F3')+with_img_immo(1,'immo_locat_final',e,'Appt F4-F6 +',wqa[3],'Appt F4-F6 +')+with_img_immo(1,'immo_locat_final',e,'Villas',wqa[4],'Villas')+with_img_immo(1,'immo_locat_final',e,'Commerces',wqa[5],'Commerces')+with_img_immo(1,'immo_locat_final',e,'Bureaux',wqa[6],'Bureaux');
	charger_inert("sub2INF1", display_submenu); charger_inert("locate", display_location);
	rendre_visible("sub2INF1",'on'); rendre_visible("locate",'on');
}
function immo_locations_saisonnieres(e){
	effacer_tout();
	if (e=='Nord') dqa=aqt0; else if (e=='Ouest') dqa=aqt1; else if (e=='Sud') dqa=aqt2; else if (e=='Est') dqa=aqt3;
	display_location = '<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: <a href="#tv" onclick="MENU(1)">Immobilier</a> :: <a href="#tv" onclick="immobilier_choix_region(\''+e+'\')">Région '+e+'</a> :: Locations Saisonnières';
	display_submenu = primo_info+with_img_immo(1,'immo_locat_saison_final',e,'Chambres',dqa[0],'Chambres')+with_img_immo(1,'immo_locat_saison_final',e,'Studio',dqa[1],'Studio')+with_img_immo(1,'immo_locat_saison_final',e,'Appartements',dqa[2],'Appartements')+with_img_immo(1,'immo_locat_saison_final',e,'Villas',dqa[3],'Villas')+with_img_immo(1,'immo_locat_saison_final',e,'Divers',dqa[4],'Divers');
	charger_inert("sub2INF1", display_submenu); charger_inert("locate", display_location);
	rendre_visible("sub2INF1",'on'); rendre_visible("locate",'on');
}
															
function immo_ventes_final(e,o){
	effacer_tout();
	if (e=='Nord') buc=kcr0; else if (e=='Ouest') buc=kcr1; else if (e=='Sud') buc=kcr2; else if (e=='Est') buc=kcr3;
	display_location = '<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: <a href="#tv" onclick="MENU(1)">Immobilier</a> :: <a href="#tv" onclick="immobilier_choix_region(\''+e+'\')">Région '+e+'</a> :: <a href="#tv" onclick="immo_ventes(\''+e+'\')">Ventes</a>:: '+o;
	s=retourpath_dos(o); //pour le lien url
	z1=retour_particule1(o);  // z = particule
	kio=retour_val(o); bio=kio+1;		
	if (o=='Divers') {z2=''; p=o+' Biens Immobiliers';} else {z2='des'; p=o; } //special Divers 
	if (o=='Studio F1') o='Studios F1';
	etc=e.toLowerCase();
	display_submenu = '<a href="petites_annonces/immobilier/ventes/'+s+'/region_'+etc+'/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de Ventes '+z1+' '+o+' dans la région '+e+'.&nbsp;'+
	'<span class="small">Ces annonces ont été postées par des personnes qui souhaitent vendre '+z2+' '+p+' dans la région '+e+'.</span>&nbsp;<i><span class="hhh">(Nombre d\'annonces: '+buc[kio]+')</span></i><br>'+
	'<a href="petites_annonces/immobilier/demandes/achat/'+s+'/region_'+etc+'/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de <b>recherche</b> de Ventes '+z1+' '+o+' dans la région '+e+'.&nbsp;'+
	'<span class="small">Ces annonces ont été postées par des personnes qui souhaitent acquérir '+z2+' '+p+' dans la région '+e+'.</span>&nbsp;<i><span class="hhh">(Nombre d\'annonces: '+buc[bio]+')</span></i>' ;
	charger_inert("sub2INF2", display_submenu); charger_inert("locate", display_location);
	rendre_visible("sub2INF2",'on'); rendre_visible("locate",'on');					
}

function immo_locat_final(e,o){
	effacer_tout();
	if (e=='Nord') cub=zxq0; else if (e=='Ouest') cub=zxq1; else if (e=='Sud') cub=zxq2; else if (e=='Est') cub=zxq3;
	display_location = '<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: <a href="#tv" onclick="MENU(1)">Immobilier</a> :: <a href="#tv" onclick="immobilier_choix_region(\''+e+'\')">Région '+e+'</a> :: <a href="#tv" onclick="immo_locations(\''+e+'\')">Locations</a>:: '+o;
	s=retourpath_dos(o); //pour le lien url
	z2='des'; p=o;
	z1=retour_particule1(o);  // z = particule
	dio=retour_val_locat(o); aio=dio+1;
	if (o=='Studio F1') o='Studios F1';
	etc=e.toLowerCase();
	display_submenu = '<a href="petites_annonces/immobilier/locations/'+s+'/region_'+etc+'/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de Locations '+z1+' '+o+' dans la région '+e+'.&nbsp;'+
	'<span class="small">Ces annonces ont été postées par des personnes qui souhaitent louer '+z2+' '+p+' dans la région '+e+'.</span>&nbsp;<i><span class="hhh">(Nombre d\'annonces: '+cub[dio]+')</span></i><br>'+
	'<a href="petites_annonces/immobilier/demandes/locations/'+s+'/region_'+etc+'/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de <b>recherche</b> de locations '+z1+' '+o+' dans la région '+e+'.&nbsp;'+
	'<span class="small">Ces annonces ont été postées par des personnes qui souhaitent être locataire '+z2+' '+p+' dans la région '+e+'.</span>&nbsp;<i><span class="hhh">(Nombre d\'annonces: '+cub[aio]+')</span></i>' ;
	charger_inert("sub2INF2", display_submenu); charger_inert("locate", display_location);
	rendre_visible("sub2INF2",'on'); rendre_visible("locate",'on');					
}					

function immo_locat_saison_final(e,o){
	effacer_tout();
	if (e=='Nord') xub=nfe0; else if (e=='Ouest') xub=nfe1; else if (e=='Sud') xub=nfe2; else if (e=='Est') xub=nfe3;
	display_location = '<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: <a href="#tv" onclick="MENU(1)">Immobilier</a> :: <a href="#tv" onclick="immobilier_choix_region(\''+e+'\')">Région '+e+'</a> :: <a href="#tv" onclick="immo_locations_saisonnieres(\''+e+'\')">Locations Saisonnières</a>:: '+o;
	s=retourpath_dos(o); //pour le lien url
	z1=retour_particule1(o);  // z = particule
	uio=retour_val_saison(o); vio=uio+1;
	if (o=='Divers') {z2='de'; p=o+' Biens Immobiliers';} else {z2='de'; p=o; } //special Divers  attention ici z2=de
	if (o=='Studio') o=p='Studios';
	if (o=='Appartements') z3='d\''; else z3='de';
	z2='des';
	etc=e.toLowerCase();
	display_submenu = '<a href="petites_annonces/immobilier/locations_saisonnieres/'+s+'/region_'+etc+'/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de Locations <b>saionnières</b> '+z1+' '+o+' dans la région '+e+'.&nbsp;'+
	'<span class="small">Ces annonces ont été postées par des personnes qui souhaitent louer en saison '+z2+' '+p+' dans la région '+e+'.</span>&nbsp;<i><span class="hhh">(Nombre d\'annonces: '+xub[uio]+')</span></i><br>'+
	'<a href="petites_annonces/immobilier/demandes/locations_saisonnieres/'+s+'/region_'+etc+'/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de <b>recherche</b> de Locations <b>saionnières</b> '+z1+' '+o+' dans la région '+e+'.&nbsp;'+
	'<span class="small">Ces annonces ont été postées par des personnes qui souhaitent être locataire en saison '+z3+' '+p+' dans la région '+e+'.</span>&nbsp;<i><span class="hhh">(Nombre d\'annonces: '+xub[vio]+')</span></i>' ;
	charger_inert("sub2INF2", display_submenu); charger_inert("locate", display_location);
	rendre_visible("sub2INF2",'on'); rendre_visible("locate",'on');					
}
/******************************AUTO MOTO BATEAU KART**************************************/
function display_bork(e,f){
display_submenu = '<br><br><a href="petites_annonces/auto_moto_bateau_kart/'+e+'/vente/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de ventes de '+e+'.&nbsp;'+
'<i><span class="hhh">(Nombre d\'annonces: '+bk_ann_ventes[f]+')</span></i><br>'+
'<a href="petites_annonces/auto_moto_bateau_kart/'+e+'/recherche/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de <b>recherche</b> de '+e+'.&nbsp;'+
'<i><span class="hhh">(Nombre d\'annonces: '+bk_ann_search[f]+')</span></i><br>'+
'<a href="petites_annonces/auto_moto_bateau_kart/'+e+'/echange/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces d\'<b>échange</b> de '+e+'.&nbsp;'+
'<i><span class="hhh">(Nombre d\'annonces: '+bk_ann_echang[f]+')</span></i><br>';
return display_submenu;
}
					
function AMBK(e){
	
	effacer_tout();
	var display_submenu="";
	display_location='<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: <a href="#tv" onclick="MENU(3)">Auto Moto Bateau Kart</a> :: '+e;
	if (e=='auto') {
		
		//------------------------------------------------------------------------------------------------------------------------
		if (auto_list.length>24) {
			width_tab=270;
			width_un=90;
		} else if (auto_list.length>12) {
			width_tab=210;
			width_un=90;
		} else {
			width_tab=125;
			width_un=125;
		}
		
		display_submenu="<br><table width=\""+width_tab+"\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\""+width_un+"\" align=\"left\">";
		
		if (auto_list.length>=12) fin_premiere=12; else fin_premiere=auto_list.length;

		for (i=0;i<fin_premiere;i++) {
			u=ambk_list[i+4];
			//id=r_string_all(u);
			id=auto_list_bulle[i];
			display_submenu +='<img src="images/r1.png" width="5" height="7" alt=""> <a href="#tv"  onMouseOver="infobulle(\''+id+'\',event)" onMouseOut="inobulle()" onClick="display_auto(\''+u+'\','+auto_ann_ventes[i+4]+','+auto_ann_search[i+4]+','+auto_ann_echang[i+4]+')">'+auto_list[i]+'</a><br>';
		}
		display_submenu+="</td>";
		
		cond2=0;
		
		if ( (auto_list.length>12) && (auto_list.length>=24) ) { fin_deuxieme=24; cond2=1; }
		else if ( (auto_list.length>12) && (auto_list.length<24) ) { fin_deuxieme=auto_list.length; cond2=1; }
		
		if (cond2 == 1) {
			display_submenu+="<td width=\"85\" align=\"left\">";
			for (i=12;i<fin_deuxieme;i++) {
				u=ambk_list[i+4];
				//id=r_string_all(u);
				id=auto_list_bulle[i];
				display_submenu +='<img src="images/r1.png" width="5" height="7" alt=""> <a href="#tv"  onMouseOver="infobulle(\''+id+'\',event)" onMouseOut="inobulle()" onClick="display_auto(\''+u+'\','+auto_ann_ventes[i+4]+','+auto_ann_search[i+4]+','+auto_ann_echang[i+4]+')">'+auto_list[i]+'</a><br>';
			}
			display_submenu+="</td>";		
		}
		
		cond3=0;
		
		if (auto_list.length>24) { fin_troisieme=auto_list.length; cond3=1; }
		
		if (cond3 == 1) {
			display_submenu+="<td width=\"110\" align=\"left\">";
			for (i=24;i<fin_troisieme;i++) {
				u=ambk_list[i+4];
				//id=r_string_all(u);
				id=auto_list_bulle[i];
				display_submenu +='<img src="images/r1.png" width="5" height="7" alt=""> <a href="#tv"  onMouseOver="infobulle(\''+id+'\',event)" onMouseOut="inobulle()" onClick="display_auto(\''+u+'\','+auto_ann_ventes[i+4]+','+auto_ann_search[i+4]+','+auto_ann_echang[i+4]+')">'+auto_list[i]+'</a><br>';
			}
			display_submenu+="</td>";		
		}
		
		display_submenu+="</tr></table>";
		
		//alert("display_submenu1 est "+display_submenu);
		//------------------------------------------------------------------------------------------------------------------------
		
	} else if (e=='moto') {  
	
		
		//------------------------------------------------------------------------------------------------------------------------
		if (mob_list.length>20) {
			width_tab=315;
			width_un=105;
		} else if (mob_list.length>10){
			width_tab=210;
			width_un=105;
		} else {
			width_tab=150;
			width_un=150;
		}
		
		if (mob_list.length<=10) display_submenu="<br><br>"; else display_submenu="";
		
		display_submenu+="<table width=\""+width_tab+"\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\""+width_un+"\" align=\"left\">";
		
		if (mob_list.length>=10) fin_premiere=10; else fin_premiere=mob_list.length;
		
		for (i=0;i<fin_premiere;i++) {
			//display_submenu +='<img src="images/r1.png" width="5" height="7" alt=""> <a href="#tv"  onMouseOver="infobulle(\''+mob_list_bulle[i]+'\',event)" onMouseOut="inobulle()" onclick="display_moto(\''+mob_list[i]+'\','+mob_ann_ventes[i]+','+mob_ann_search[i]+','+mob_ann_echang[i]+')">'+mob_list[i]+'</a><br>';
			u=mob_list[i];
			id=mob_list_bulle[i];
			if (id=='125_cc') id='cc';
			if (id=='pieces_detachees') id='pieces_detachees_motos';
			display_submenu +='<img src="images/r1.png" width="5" height="7" alt=""> <a href="#tv"  onMouseOver="infobulle(\''+id+'\',event)" onMouseOut="inobulle()" onclick="display_moto(\''+u+'\','+mob_ann_ventes[i]+','+mob_ann_search[i]+','+mob_ann_echang[i]+')">'+mob_list[i]+'</a><br>';
		}
		display_submenu+="</td>";

		cond2=0;
		
		if ( (mob_list.length>10) && (mob_list.length>=20) ) { fin_deuxieme=20; cond2=1; }
		else if ( (mob_list.length>10) && (mob_list.length<20) ) { fin_deuxieme=mob_list.length; cond2=1; }
		
		if (cond2 == 1) {
			display_submenu+="<td width=\"105\" align=\"left\">";
			for (i=10;i<fin_deuxieme;i++) {
				//display_submenu +='<img src="images/r1.png" width="5" height="7" alt=""> <a href="#tv"  onMouseOver="infobulle(\''+mob_list_bulle[i]+'\',event)" onMouseOut="inobulle()" onclick="display_moto(\''+mob_list[i]+'\','+mob_ann_ventes[i]+','+mob_ann_search[i]+','+mob_ann_echang[i]+')">'+mob_list[i]+'</a><br>';
				u=ambk_list[i];
				id=mob_list_bulle[i];
				if (id=='125_cc') id='cc';
				if (id=='pieces_detachees') id='pieces_detachees_motos';
				display_submenu +='<img src="images/r1.png" width="5" height="7" alt=""> <a href="#tv"  onMouseOver="infobulle(\''+id+'\',event)" onMouseOut="inobulle()" onclick="display_moto(\''+u+'\','+mob_ann_ventes[i]+','+mob_ann_search[i]+','+mob_ann_echang[i]+')">'+mob_list[i]+'</a><br>';
			}
			display_submenu+="</td>";		
		}
		
		cond3=0;
		
		if (mob_list.length>20) { fin_troisieme=mob_list.length; cond3=1; }
		
		if (cond3 == 1) {
			display_submenu+="<td width=\"105\" align=\"left\">";
			for (i=20;i<fin_troisieme;i++) {
				//display_submenu +='<img src="images/r1.png" width="5" height="7" alt=""> <a href="#tv"  onMouseOver="infobulle(\''+mob_list_bulle[i]+'\',event)" onMouseOut="inobulle()" onclick="display_moto(\''+mob_list[i]+'\','+mob_ann_ventes[i]+','+mob_ann_search[i]+','+mob_ann_echang[i]+')">'+mob_list[i]+'</a><br>';
				u=ambk_list[i];
				id=mob_list_bulle[i];
				if (id=='125_cc') id='cc';
				if (id=='pieces_detachees') id='pieces_detachees_motos';
				display_submenu +='<img src="images/r1.png" width="5" height="7" alt=""> <a href="#tv"  onMouseOver="infobulle(\''+id+'\',event)" onMouseOut="inobulle()" onclick="display_moto(\''+u+'\','+mob_ann_ventes[i]+','+mob_ann_search[i]+','+mob_ann_echang[i]+')">'+mob_list[i]+'</a><br>';
			}
			display_submenu+="</td>";		
		}
		
		display_submenu+="</tr></table>";

		//alert("display_submenu est "+display_submenu);
		//------------------------------------------------------------------------------------------------------------------------
	} else if (e=='bateau') display_submenu=display_bork(e,0); 
	else if (e=='kart') display_submenu=display_bork(e,1);
	charger_inert("subINF3", display_submenu);
	charger_inert("locate", display_location);
	rendre_visible("subINF3",'on');
	rendre_visible("locate",'on');					
}
		
function display_moto(e,f,g,h){
	//alert ("in display_moto => menu_pas.js et e est "+e);
	effacer_tout();
	display_location='<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: <a href="#tv" onclick="MENU(3)">Auto Moto Bateau Kart</a> :: <a href="#tv" onclick="AMBK(\'moto\')">moto</a> :: '+e;
	//s=r_path_auto(e); //pour le lien url
	for (i=0;i<mob_list.length;i++) {
		if (e==mob_list[i]) { 
			o=pour_display_mob[i];
			s=mob_list_bulle[i];
		}
	}	
	display_submenu = '<br><br><a href="petites_annonces/auto_moto_bateau_kart/moto/'+s+'/vente/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de ventes '+o+e+'.&nbsp;'+
	'<i><span class="hhh">(Nombre d\'annonces: '+f+')</span></i><br>'+
	'<a href="petites_annonces/auto_moto_bateau_kart/moto/'+s+'/recherche/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de <b>recherche</b> '+o+e+'.&nbsp;'+
	'<i><span class="hhh">(Nombre d\'annonces: '+g+')</span></i><br>'+
	'<a href="petites_annonces/auto_moto_bateau_kart/moto/'+s+'/echange/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces d\'<b>échange</b> '+o+e+'.&nbsp;'+
	'<i><span class="hhh">(Nombre d\'annonces: '+h+')</span></i><br>';
	charger_inert("sub2INF2", display_submenu); charger_inert("locate", display_location);
	rendre_visible("sub2INF2",'on'); rendre_visible("locate",'on');					
}		

function display_auto(e,f,g,h){
	effacer_tout();
	display_location='<a href="#tv" onclick="MENU(0)">Petites Annonces</a> :: <a href="#tv" onclick="MENU(3)">Auto Moto Bateau Kart</a> :: <a href="#tv" onclick="AMBK(\'auto\')">auto</a> :: '+e;
	//s=r_path_auto(e); //pour le lien url
	for (i=0;i<auto_list.length;i++) {
		if (e==auto_list[i]) { 
			o=pour_display_auto[i];
			s=auto_list_bulle[i];
		}
	}
	display_submenu = '<br><br><a href="petites_annonces/auto_moto_bateau_kart/auto/'+s+'/vente/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de ventes '+o+e+'.&nbsp;'+
	'<i><span class="hhh">(Nombre d\'annonces: '+f+')</span></i><br>'+
	'<a href="petites_annonces/auto_moto_bateau_kart/auto/'+s+'/recherche/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces de <b>recherche</b> '+o+e+'.&nbsp;'+
	'<i><span class="hhh">(Nombre d\'annonces: '+g+')</span></i><br>'+
	'<a href="petites_annonces/auto_moto_bateau_kart/auto/'+s+'/echange/afficher.html"><img src="../images/q1.png" width="72" height="16" border="0" alt=""></a> les annonces d\'<b>échange</b> '+o+e+'.&nbsp;'+
	'<i><span class="hhh">(Nombre d\'annonces: '+h+')</span></i><br>';
	charger_inert("sub2INF2", display_submenu);
	charger_inert("locate", display_location);
	rendre_visible("sub2INF2",'on');
	rendre_visible("locate",'on');					
}
					
								
//afficher les menu de bulles
var ac=''; var mlt='';

for (i=0;i<ambk_list.length;i++) {
	d=ambk_list[i];
	//id_submenu=r_string_all(d);
	if (i>3) {
		nv	=	i-4;
		id_submenu=auto_list_bulle[nv];
	}
	else id_submenu=r_string_all(d);
	if (i==0) d='Auto'; else if (i==1) d='Moto'; else if (i==2) d='Bateau'; else if (i==3) d='Kart';
	if (i>3) {
		n = i - 4;
		if (lien_logo_auto[n]!="") {
			logo = "<img src=\"../images/"+lien_logo_auto[n]+"\" alt=\"\"><br>";
		} else {
			logo = "";
		}
	} else {
		logo="";
	}
	ac+='<div class="sbulle" id="'+id_submenu+'" style="width:130px; height:110px;"><u>'+d+'</u><br>'+logo+'--------------------------------<br>Nombre d\'annonces :<br><span class=\'ttc\'>'+auto_ann_ttc[i]+'</span><br>--------------------------------<br>Nombre d\'annonces de ventes:<br>'+auto_ann_ventes[i]+'<br>--------------------------------<br>Nombre d\'annonces de recherche:<br>'+auto_ann_search[i]+'<br>--------------------------------<br>Nombre d\'annonces d\'échanges:<br>'+auto_ann_echang[i]+'</div>';
}
for (i=0;i<mob_list_bulle.length;i++) {
	if (lien_logo_mob[i]!="") {
			logo = "<img src=\"../images/"+lien_logo_mob[n]+"\" alt=\"\"><br>";
	} else {
			logo = "";
	}
	mlt=mob_list_bulle[i];
	if (mlt=='125_cc') mlt='cc';
	if (mlt=='pieces_detachees') mlt='pieces_detachees_motos';
	ac+='<div class="sbulle" id="'+mlt+'" style="width:130px; height:110px;"><u>'+mob_list[i]+'</u><br>'+logo+'--------------------------------<br>Nombre d\'annonces :<br><span class=\'ttc\'>'+mob_ann_ttc[i]+'</span><br>--------------------------------<br>Nombre d\'annonces de ventes:<br>'+mob_ann_ventes[i]+'<br>--------------------------------<br>Nombre d\'annonces de recherche:<br>'+mob_ann_search[i]+'<br>--------------------------------<br>Nombre d\'annonces d\'échanges:<br>'+mob_ann_echang[i]+'</div>';
}										
//alert("ac :"+ac);