Nom = navigator.appName;

ns = (Nom == 'Netscape') ? 1:0
ie = (Nom == 'Microsoft Internet Explorer') ? 1:0

function nompropre(mot) {
var m=mot.charAt(0).toUpperCase() +
mot.substring(1).toLowerCase();
return m;
}
function ouvre_popup(page)
{
window.open(page,"Avis","top=0 , left=0 , resizable=yes, toolbar=no, scrollbars=yes, menubar=no, location=no, statusbar=no ,width=" + screen.width + ",height=" + screen.height);
}
function popup_photo(page) 
{
window.open(page,"Photo","menubar=no, status=no, scrollbars=yes, menubar=no, left=100, width=850, height=480");
}

function produit(reference,formule,theme,libelle_fournisseur,red_fournisseur,libelle_hotel,img_hotel,taxe,libelle_region,libelle_ville,prix,nuit,date_dep,villedep,ville,autre,id_hv,avi,villedest,depart,m,budget,voyagiste,x,popularite,vip,valeur,unite,photo1,photo2,photo3,photo4,photo5,photo6,destination,logo_fournisseur)
{
var chaine="";

plus=avi.split("***");
			
row=plus[2];		   
avis_plus=plus[0];
avis_moins=plus[1];		   

/////////////////////////////////////
chaine+="<table width=\"690\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
chaine+="<tr>";
chaine+="<td colspan=\"4\">";
chaine+="<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" class=\"dest\">";
chaine+="<tr>";
chaine+="<td>";
chaine+="<h2 class=\"cl_h2\">";
chaine+="Sejour "+nompropre(destination);
		dep=m;
		 while(dep.match(/_/))
		{
		dep=dep.replace(/_/," ");
		}
		datdep=dep;
		
		frs=voyagiste;
		 while(frs.match(/_/))
		{
		frs=frs.replace(/_/," ");
		}

					 if(villedest!='')  chaine+=" "+villedest;
                     if(budget!='')  chaine+=" "+budget;
                     if(m!='')  chaine+=" "+datdep;
                     if(depart!='')  chaine+=" au départ de "+depart;
                     if(voyagiste!='')  chaine+=" avec "+frs;
chaine+="</h2>";
chaine+="</td>";
chaine+="</tr>";
chaine+="</table>";
chaine+="</td>";
chaine+="</tr>";
chaine+="<tr> ";
chaine+="<td width=\"60\" align=\"center\" valign=\"top\"><br /></td>";
chaine+="<td colspan=\"2\" height=\"13\"></td>";
chaine+="<td width=\"170\" rowspan=\"2\" align=\"left\" valign=\"top\"><br />";
chaine+="<table width=\"150\" height=\"100\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"bleu4\">";
chaine+="<tr>";
chaine+="<td align=\"center\"><br />";
chaine+="<img src=\""+logo_fournisseur+"\" alt=\"\" border=\"0\" />";
chaine+="<br /><span class=\"bleu118\"> "+prix+" <img src=\"http://www.zenvoyages.com/sejours/images/im_euro_b.gif\" alt=\"\" /></span>";
chaine+="<img src=\"http://www.zenvoyages.com/sejours/images/im_ttc_b.gif\" alt=\"\" />";
chaine+="<br />";
chaine+="<br />";

		label=libelle_hotel.replace("hotel ","");
		 while(label.match(/ /))
		{
		label=label.replace(" 1*","");
		label=label.replace(" 2*","");
		label=label.replace(" 3*","");
		label=label.replace(" 4*","");
		label=label.replace(" 5*","");
		label=label.replace(/ /,"_");
		}
		libelle="hotel-"+label;
		
		lienavis=libelle_hotel;
		 while(lienavis.match(/ /))
		{
		lienavis=lienavis.replace(/ /,"-");
		}
		lien_avis="critique-"+lienavis;
		
		liendest=destination;
		 while(liendest.match(/ /))
		{
		liendest=liendest.replace(/ /,"_");
		}
		lien_destination=liendest;


chaine+= "<form name=\"formulaire\" action=\""+red_fournisseur+"?reference="+reference+"\" target=\"_blank\" method=\"post\" style=\"margin-bottom:0px; margin-top:0px;\">";
chaine+= "<input type=\"hidden\" name=\"datedep\" value=\""+m+"\">";
chaine+= "<input type=\"hidden\" name=\"ville\" value=\""+villedest+"\">";
chaine+= "<input type=\"hidden\" name=\"villedep\" value=\""+depart+"\">";
chaine+= "<input type=\"hidden\" name=\"prix\" value=\""+budget+"\">";
chaine+= "<input type=\"hidden\" name=\"voyagiste\" value=\""+voyagiste+"\">";
chaine+= "<input type=\"image\" src=\"http://www.zenvoyages.com/sejours/images/voir-offre.gif\" alt=\"Comparer les prix\" border=\"0\">";
chaine+= "</form>";
							
chaine+="<br /> ";            
chaine+="</td></tr></table></td>";
chaine+="</tr>";
chaine+="<tr>";
chaine+="<td width=\"60\" valign=\"top\"><table width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
chaine+="<tr>";
chaine+="<td align=\"center\" valign=\"middle\"><table width=\"41\" height=\"51\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">";
chaine+="<tr>";
chaine+="<td valign=\"top\" style=\"background-image:url(); background-repeat:no-repeat\"><table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
chaine+="<tr>";

note=popularite;
note=note.replace(".",",");
note=note.replace(",0","");
notep=note;
notep2="";

chaine+="<td class=\"blanc\" align=\"center\">"+notep2+"</td>";

chaine+="</tr>";
chaine+="</table></td>";
chaine+="</tr>";
chaine+="</table></td>";
chaine+="</tr>";
chaine+="</table></td>";
chaine+="<td width=\"120\" valign=\"top\">";

chaine+="<form name=\"formulaire\" action=\""+red_fournisseur+"?reference="+reference+"\" target=\"_blank\" method=\"post\">";
chaine+="<table width=\"120\" height=\"97\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
chaine+="<tr>";
chaine+="<td background=\"http://www.zenvoyages.com/images/cadre_photo.jpg\" align=\"center\" >";
chaine+="<table width=\"120\" height=\"23\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
chaine+="<tr>";
chaine+="<td align=\"center\" valign=\"bottom\" class=\"menu_filtre\">";
chaine+="<table width=\"120\" height=\"100\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#d1e1ee\">";
chaine+="<tr>";
chaine+="<td width=\"3\"></td>";
chaine+="<td height=\"90\" align=\"center\" valign=\"middle\"><table width=\"100\" height=\"70\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"blanc4\">";
chaine+="<tr>";


chaine+="<td height=\"70\" align=\"center\" valign=\"top\"> ";
chaine+="<input type=\"hidden\" name=\"datedep\" value=\""+m+"\" /> ";
chaine+="<input type=\"hidden\" name=\"ville\" value=\""+villedest+"\" /> ";
chaine+="<input type=\"hidden\" name=\"villedep\" value=\""+depart+"\" /> ";
chaine+="<input type=\"hidden\" name=\"prix\" value=\""+budget+"\" /> ";
chaine+="<input type=\"hidden\" name=\"voyagiste\" value=\""+voyagiste+"\" /> ";
chaine+="<input type=\"image\" src=\""+img_hotel+"\" width=\"100\" height=\"70\" title=\""+libelle+"\" align=\"middle\" />";

chaine+="</td>";
chaine+="</tr>";
chaine+="</table>";
chaine+="</td>";
chaine+="<td width=\"3\"></td>";
chaine+="</tr>";
chaine+="<tr>";
chaine+="<td></td>";
chaine+="<td width=\"120\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
chaine+="<tr>";
chaine+="<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"marb\">";
chaine+="<tr>";
chaine+="<td>";
if(photo1!="")
{
chaine+="<img src=\"http://www.zenvoyages.com/sejours/images/icone_2.gif\" alt=\"\" border=\"0\" />";
chaine+="<a onclick=\"javascript:popup_photo('http://www.zenvoyages.com/sejours/photo.php?hotel="+id_hv+"&reference="+reference+"')\" style=\"cursor:pointer\" class=\"menu_filtre\" rel=\"nofollow\">";
chaine+="Photos </a>";
}
chaine+="<td>";
if(row!=0)
{
chaine+="<img src=\"http://www.zenvoyages.com/sejours/images/icone_1.gif\" alt=\"\" border=\"0\" />";
chaine+="<a onclick=\"javascript:ouvre_popup('http://www.zenvoyages.com/sejours/sejour-"+lien_destination.toLowerCase()+"/"+lien_avis+".html')\" style=\"cursor:pointer\" class=\"menu_filtre\" rel=\"nofollow\">";
chaine+="&nbsp;&nbsp;"+row+" Avis";
chaine+="</a>";
}
chaine+="</td>";

chaine+="</tr>";
chaine+="</table></td>";
chaine+="</tr>";
chaine+="</table></td>";
chaine+="<td></td>";
chaine+="</tr>";
chaine+="</table></td>";
chaine+="</tr>";
chaine+="</table></td>";
chaine+="</tr>";
chaine+="</table>";
chaine+="</form>";
chaine+="</td>";
chaine+="<td align=\"left\" valign=\"top\" height=\"108\"><table width=\"330\" height=\"106\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
chaine+="<tr>";
chaine+="<td width=\"330\" align=\"left\" valign=\"top\">";

chaine+="<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"marl\">";
chaine+="<tr>";
chaine+="<td align=\"left\" valign=\"top\"><span class=\"hotel_gris_n\">SEJOUR "+destination+" </span>";
chaine+="<span class=\"hotel_gris_n\">";


chaine+="</span><br />";
for(var i = 0; i < libelle_ville.length; i++)
{
if (libelle_ville.charAt(i) == " ")
{
libelle_ville = libelle_ville.replace(" ","_");
}
}
chaine+="<a href=\"http://www.zenvoyages.com/reservation-"+libelle+"-"+lien_destination.toLowerCase()+"-"+libelle_ville.toLowerCase()+".html\"  class=\"bleudetails2\" title=\""+libelle_hotel+"\">"+nompropre(libelle_hotel)+"</a><br />";

url=document.URL;
urll=url.split("/");
url_rech="/"; for(y=3;y<urll.length-1;y++) url_rech+=urll[y]+"/";

designation="";

if (nuit!=0)
designation="<span class=\"hotel_gris_n\">S&eacute;jour "+nompropre(destination)+" "+nuit+" nuits "+formule+"</span>"; 
chaine+=designation;

chaine+="<br />";
chaine+="<span class=\"hotel_gris_n\">S&eacute;jour d&eacute;part </span>";

if(depart!="")
{
chaine+="<span class=\"hotel_gris_n\">"+depart+"</span>";
}
else
{
Tabl=ville.split("::");	
longueur=Tabl.length;

chaine+="<span class=\"hotel_gris_n\">";
for(ii=0;ii<(longueur-1);ii++)
{
if(ii!=0)
chaine+=" ";
chaine+=Tabl[ii];
}
chaine+="</span>";
}
chaine+="</td>";
chaine+="</tr>";
chaine+="</table>";
chaine+="</td>";
chaine+="</tr>";
chaine+="<tr>";
chaine+="<td align=\"left\" valign=\"bottom\">";

chaine+="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"marl\">";
chaine+="<tr>";


if(!ie)
{
chaine+="<td width=\"144\" align=\"left\" valign=\"bottom\">";
chaine+="<form id=\"myform"+reference+"\" action=\"http://www.zenvoyages.com/reservation-"+libelle+"-"+lien_destination.toLowerCase()+"-"+libelle_ville.toLowerCase()+".html\" method=\"post\" style=\"margin-bottom:0px; margin-top:0px;\">";
chaine+="<table width=\"142\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"http://www.zenvoyages.com/sejours/images/cd200.gif\">";
chaine+="<tr>";
chaine+="<td width=\"3\"></td>";
chaine+="<td height=\"21\">";
chaine+="<a href=\"javascript: hot('myform"+reference+"')\" class=\"hotel_gris_n\" title=\""+libelle_hotel+"\">Informations d&eacute;taill&eacute;es</a>";
chaine+="</td>";
chaine+="<td width=\"21\" height=\"21\"></td>";
chaine+="</tr>";
chaine+="</table>";
chaine+="</form>";
chaine+="</td>";

}
else
{
chaine+="<td width=\"144\" align=\"left\" valign=\"bottom\">";
chaine+="<table width=\"142\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"http://www.zenvoyages.com/sejours/images/cd200.gif\">";
chaine+="<tr>";
chaine+="<form name=\"myform"+reference+"\" action=\"http://www.zenvoyages.com/reservation-"+libelle+"-"+lien_destination.toLowerCase()+"-"+libelle_ville.toLowerCase()+".html\" method=\"post\" style=\"margin-bottom:0px; margin-top:0px;\">";
chaine+="<td width=\"3\"></td>";
chaine+="<td height=\"21\"><a href=\"javascript: hot('myform"+reference+"')\" class=\"hotel_gris_n\" title=\""+libelle_hotel+"\">Informations d&eacute;taill&eacute;es</a></td>";
chaine+="<td width=\"21\" height=\"21\"></td>";
chaine+="</form>";
chaine+="</tr>";
chaine+="</table>";
chaine+="</td>";
}

chaine+="<td width=\"201\" align=\"left\" valign=\"bottom\">";

if(vip=="true")
{
chaine+="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
chaine+="<tr>";
chaine+="<td width=\"60\" height=\"36\" valign=\"top\" class=\"zen_red\" style=\"background-image:url(http://www.zenvoyages.com/sejours/images/b_zenvip_b.gif); background-repeat:no-repeat\"></td>";
chaine+="</tr>";
chaine+="</table>";
}

chaine+="</td>";
chaine+="</tr>";
chaine+=" </table></td>";
chaine+="</tr>";
chaine+="</table></td>";
chaine+="</tr>";
chaine+="<tr>";
chaine+="<td width=\"60\" align=\"center\" valign=\"top\">&nbsp;</td>";
chaine+="<td colspan=\"3\" valign=\"top\">";

chaine+="<form name=\"form\" action=\"http://www.zenvoyages.com/sejours/insert_avis.php\" method=\"post\" onSubmit=\"return verif_form();\">";
chaine+="<input type=\"hidden\" name=\"id_hv\" value=\""+id_hv+"\" /> ";
chaine+="<input type=\"hidden\" name=\"notes\" id=\"notes\" /> ";
chaine+="<input type=\"hidden\" name=\"hotel\" value=\""+libelle+"\" /> ";
chaine+="<input type=\"hidden\" name=\"url\" value=\""+url_rech+"\" />"; 
chaine+="<span id=\"tdprov"+reference+"\"></span>";
chaine+="</form>";



          if(row!=0)  
		  {
chaine+="<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
	   if(avis_plus!=""){
chaine+="<tr> ";
chaine+="<td height=\"1\" colspan=\"2\" valign=\"bottom\" style=\"background-image:url(http://www.zenvoyages.com/sejours/images/trait.gif); background-repeat:repeat;\"></td>";
chaine+="</tr>";
chaine+="<tr> ";
chaine+="<td height=\"3\" colspan=\"2\" valign=\"middle\"></td>";
chaine+="</tr>";
chaine+="<tr> ";
chaine+="<td colspan=\"2\" valign=\"middle\"><img src=\"http://www.zenvo

