YAHOO.namespace("rpc.SearchEngineWidget");YAHOO.rpc.SearchEngineWidget=function(a,b){this.init(a,b)};YAHOO.rpc.SearchEngineWidget.FRANCE="france";YAHOO.rpc.SearchEngineWidget.FOREIGN="foreign";YAHOO.rpc.SearchEngineWidget.ALL="all";YAHOO.rpc.SearchEngineWidget.prototype={franceFilterList:["frenchDestination","typeHomeRental","accommodationCapacity","mealPlan","duration","typeProduct","topic","star","supplier","discountPercentage","departureMonth","schoolHoliday"],foreignFilterList:["country","departureCity","mealPlan","duration","typeProduct","topic","star","supplier","discountPercentage","departureMonth","schoolHoliday"],searchEngineType:"all",target:null,oDomContainer:null,putCookieBeforeSubmit:false,cookieName:"",cookieValue:"",cookieDuration:"",dns:"http://reservez-plus.com/",callFunctionBeforeSubmit:false,callFunctionName:"",idPartner:null,idPrivateWhiteLabel:null,suffixe:"",printLabel:false,codeTrafficSource:null,utmSource:null,url:null,sendFormToUrl:false,_rendered:false,init:function(a,c){var b=this;this.oDomContainer=document.getElementById(a)},show:function(){this.oDomContainer.style.display="block"},hide:function(){this.oDomContainer.style.display="none"},render:function(){if(!this._rendered){YAHOO.rpc.SearchEngineWidget.SiteExplorer.init(this);this._rendered=true}},getUrl:function(){return this.url},setUrl:function(a){this.url=a},getSendFormToUrl:function(){return this.sendFormToUrl},setSendFormToUrl:function(a){this.sendFormToUrl=a},getPutCookieBeforeSubmit:function(){return this.putCookieBeforeSubmit},setPutCookieBeforeSubmit:function(a){this.putCookieBeforeSubmit=a},getCookieName:function(){return this.cookieName},setCookieName:function(a){this.cookieName=a},getCookieValue:function(){return this.cookieValue},setCookieValue:function(a){this.cookieValue=a},getCookieDuration:function(){return this.cookieDuration},setCookieDuration:function(a){this.cookieDuration=a},getCallFunctionBeforeSubmit:function(){return this.callFunctionBeforeSubmit},setCallFunctionBeforeSubmit:function(a){this.callFunctionBeforeSubmit=a},getCallFunctionName:function(){return this.callFunctionName},setCallFunctionName:function(a){this.callFunctionName=a},getFranceFilterList:function(){return this.franceFilterList},setFranceFilterList:function(a){this.franceFilterList=a},getForeignFilterList:function(){return this.foreignFilterList},setForeignFilterList:function(a){this.foreignFilterList=a},getTarget:function(){return this.target},setTarget:function(a){this.target=a},isPrintLabel:function(){return this.labelPrintInSelect},setPrintLabel:function(a){this.labelPrintInSelect=a},getSearchEngineType:function(){return this.searchEngineType},setSearchEngineType:function(a){this.searchEngineType=a},getSuffixe:function(){return this.suffixe},setSuffixe:function(a){this.suffixe=a},getFullDns:function(){var a=this.getDns();if(this.idPartner!=null&&this.idPartner!=""&&this.idPartner!="undefined"){url=url+"&idPartner="+idPartner}if(this.idPrivateWhiteLabel!=null&&this.idPrivateWhiteLabel!=""&&this.idPrivateWhiteLabel!="undefined"){url=url+"&idPrivateWhiteLabel="+this.idPrivateWhiteLabel}return a},getDns:function(){return this.dns},setDns:function(a){if(a!=null&&a.charAt(a.length-1)!="/"){this.dns=a+"/"}else{if(a!=null){this.dns=a}}},getIdPartner:function(){return this.idPartner},setIdPartner:function(a){this.idPartner=a},getIdPrivatePartner:function(){return this.idPrivatePartner},setIdPrivatePartner:function(a){this.idPrivatePartner=a},getCodeTrafficSource:function(){return this.codeTrafficSource},setCodeTrafficSource:function(a){this.codeTrafficSource=a},getUtmSource:function(){return this.utmSource},setUtmSource:function(a){this.utmSource=a},repaint:function(){if(oDomContainer!=null){oDomContainer.innerHTML=""}this.render()}};YAHOO.rpc.SearchEngineWidget.SiteExplorer=function(){var c={};var e=null;var a=null;var g=null;var b=function(h){g=false};var f=function(h){alert("An error occured while getting datas")};var d=function(){var h=a.getDns()+"SearchEngineFormController?type="+a.getSearchEngineType()+"&franceFilterList="+a.getFranceFilterList()+"&foreignFilterList="+a.getForeignFilterList()+"&callback=YAHOO.rpc.SearchEngineWidget.SiteExplorer.callback";if(a.getIdPartner()!=null&&a.getIdPartner()!=""&&a.getIdPartner()!="undefined"){h=h+"&idPartner="+a.getIdPartner()}if(a.getIdPrivatePartner()!=null&&a.getIdPrivatePartner()!=""&&a.getIdPrivatePartner()!="undefined"){h=h+"&idPrivateWhiteLabel="+a.getIdPrivatePartner()}h=h+"&ramdom="+Math.random();var i=YAHOO.util.Get.script(h,{onSuccess:b,onFailure:f,scope:this});e=i.tId};return{init:function(h){a=h;d()},callback:function(h){c[e]=true;YAHOO.rpc.SearchEngineWidget.AddSearchEngineWidgetToContainer(a,h)}}}();YAHOO.rpc.SearchEngineWidget.AddSearchEngineWidgetToContainer=function(a,d){var c=a.oDomContainer;if(a.getSearchEngineType()==YAHOO.rpc.SearchEngineWidget.FOREIGN||d.selectableFrenchDestinations==null||d.selectableFrenchDestinations.length==0){c.innerHTML=YAHOO.rpc.SearchEngineWidget.GetSearchEngineForeignForm(a,d)}else{if(a.getSearchEngineType()==YAHOO.rpc.SearchEngineWidget.FRANCE){c.innerHTML=YAHOO.rpc.SearchEngineWidget.GetSearchEngineFranceForm(a,d)}else{if(a.getSearchEngineType()==YAHOO.rpc.SearchEngineWidget.ALL){var b=[];b.push('<div id="'+a.getSuffixe()+'Header">');b.push('  <div id="'+a.getSuffixe()+'ForeignHeader" class="selected" onClick="document.getElementById(\''+a.getSuffixe()+"ForeignForm').style.display='block';document.getElementById('"+a.getSuffixe()+"FrenchForm').style.display='none';document.getElementById('"+a.getSuffixe()+"ForeignHeader').className='selected';document.getElementById('"+a.getSuffixe()+"FrenchHeader').className='';\">A l'&eacute;tranger</div>");b.push('  <div id="'+a.getSuffixe()+'FrenchHeader" class="" onClick="document.getElementById(\''+a.getSuffixe()+"ForeignForm').style.display='none';document.getElementById('"+a.getSuffixe()+"FrenchForm').style.display='block';document.getElementById('"+a.getSuffixe()+"FrenchHeader').className='selected';document.getElementById('"+a.getSuffixe()+"ForeignHeader').className='';\">En France</div>");b.push("</div>");b.push('<div id="'+a.getSuffixe()+'Content">');b.push('  <div id="'+a.getSuffixe()+'ForeignForm">');b.push(YAHOO.rpc.SearchEngineWidget.GetSearchEngineForeignForm(a,d));b.push("  </div>");b.push('  <div id="'+a.getSuffixe()+'FrenchForm" style="display:none">');b.push(YAHOO.rpc.SearchEngineWidget.GetSearchEngineFranceForm(a,d));b.push("  </div>");b.push("</div>");c.innerHTML=b.join("")}}}};YAHOO.rpc.SearchEngineWidget.GetSearchEngineForeignForm=function(E,D){var n=D.selectableCountries;var G=D.selectableDepartureCities;var u=D.selectableStars;var h=D.selectableForeignMealPlans;var q=D.selectableForeignDurations;var f=D.selectableForeignTypeProducts;var r=D.selectableForeignTopics;var v=D.selectableForeignSuppliers;var b=D.selectableForeignDiscountPercentages;var d=D.selectableForeignDepartureMonths;var c=D.selectableForeignSchoolHolidays;var t=[];var k=E.getDns()+"SearchEngineController";var o="";if(E.getIdPartner()!=null&&E.getIdPartner()!=""&&E.getIdPartner()!="undefined"){k=k+"?idPartner="+E.getIdPartner()}if(E.getIdPrivatePartner()!=null&&E.getIdPrivatePartner()!=""&&E.getIdPrivatePartner()!="undefined"){k=k+"?idPrivateWhiteLabel="+E.getIdPrivatePartner()}if(E.getSendFormToUrl()){o=E.geUrl()}else{o=k}if(E.getTarget()==null){t.push('<form action="'+o+'" method="post" id="'+E.getSuffixe()+'fillTextForm" onsubmit="YAHOO.rpc.SearchEngineWidget.DoBeforeSubmit('+E.getPutCookieBeforeSubmit()+",'"+E.getCookieName()+"','"+E.getCookieValue()+"','"+E.getCookieDuration()+"',"+E.getCallFunctionBeforeSubmit()+",'"+E.getCallFunctionName()+"');return true;\">")}else{t.push('<form action="'+o+'" target="'+E.getTarget()+'" method="post" id="'+E.getSuffixe()+'fillTextForm" onsubmit="YAHOO.rpc.SearchEngineWidget.DoBeforeSubmit('+E.getPutCookieBeforeSubmit()+",'"+E.getCookieName()+"','"+E.getCookieValue()+"','"+E.getCookieDuration()+"',"+E.getCallFunctionBeforeSubmit()+",'"+E.getCallFunctionName()+"');return true;\">")}for(var A=0,C=E.getForeignFilterList().length;A<C;++A){var s=E.getForeignFilterList()[A];if(s=="country"){t.push('<div id="'+E.getSuffixe()+'divcountry">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labelcountry">Destination</label>');t.push('<select id="'+E.getSuffixe()+'selectcountry" name="country">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selectcountry" name="country">');t.push('<option class="defaultOption" value="Indifferent">Destination</option>')}if(n!=null){for(var B=0,p=n.length;B<p;++B){var z=n[B];if(z.name.charCodeAt(0)!=32&&z.name.charCodeAt(0)!=45&&z.name!="Indifférent"){t.push('<option class="upperCase" value="'+z.code+'">'+z.name+"</option>")}else{t.push('<option value="'+z.code+'">'+z.name+"</option>")}}}t.push("</select>");t.push("</div>")}else{if(s=="mealPlan"){t.push('<div id="'+E.getSuffixe()+'divmealPlan">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labelmealPlan">Prestation</label>');t.push('<select id="'+E.getSuffixe()+'selectmealPlan" name="mealPlan">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selectmealPlan" name="mealPlan">');t.push('<option class="defaultOption" value="Indifferent">Prestation</option>')}if(h!=null){for(var B=0,p=h.length;B<p;++B){var g=h[B];t.push('<option value="'+g.code+'">'+g.name+"</option>")}}t.push("</select>");t.push("</div>")}else{if(s=="departureCity"){t.push('<div id="'+E.getSuffixe()+'divdepartureCity">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labeldepartureCity">Ville de d&eacute;part</label>');t.push('<select id="'+E.getSuffixe()+'selectdepartureCity" name="departureCity">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selectpartureCity" name="departureCity">');t.push('<option class="defaultOption" value="Indifferent">Ville de d&eacute;part</option>')}if(G!=null&&G.length!=0){t.push('<optgroup label="Top villes de d&eacute;part">');for(var B=0,p=G.top.length;B<p;++B){var l=G.top[B];t.push('<option value="'+l.code+'">'+l.name+"</option>")}t.push("</optgroup>")}if(G!=null){t.push('<optgroup label="Toutes les villes">');for(var B=0,p=G.all.length;B<p;++B){var l=G.all[B];t.push('<option value="'+l.code+'">'+l.name+"</option>")}t.push("</optgroup>")}t.push("</select>");t.push("</div>")}else{if(s=="duration"){t.push('<div id="'+E.getSuffixe()+'divduration">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labelduration">Dur&eacute;e</label>');t.push('<select id="'+E.getSuffixe()+'selectduration" name="duration">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selectduration" name="duration">');t.push('<option class="defaultOption" value="Indifferent">Dur&eacute;e</option>')}if(q!=null){for(var B=0,p=q.length;B<p;++B){var a=q[B];t.push('<option value="'+a.code+'">'+a.name+"</option>")}}t.push("</select>");t.push("</div>")}else{if(s=="typeProduct"){t.push('<div id="'+E.getSuffixe()+'divtypeProduct">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labeltypeProduct">Type de produit</label>');t.push('<select id="'+E.getSuffixe()+'selecttypeProduct" name="typeProduct">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selecttypeProduct" name="typeProduct">');t.push('<option class="defaultOption" value="Indifferent">Type de produit</option>')}if(f!=null){for(var B=0,p=f.length;B<p;++B){var e=f[B];t.push('<option value="'+e.code+'">'+e.name+"</option>")}}t.push("</select>");t.push("</div>")}else{if(s=="topic"){t.push('<div id="'+E.getSuffixe()+'divtopic">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labeltopic">Th&eacute;matique</label>');t.push('<select id="'+E.getSuffixe()+'selecttopic" name="topic">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selecttopic" name="topic">');t.push('<option class="defaultOption" value="Indifferent">Th&eacute;matique</option>')}if(r!=null){for(var B=0,p=r.length;B<p;++B){var y=r[B];t.push('<option value="'+y.code+'">'+y.name+"</option>")}}t.push("</select>");t.push("</div>")}else{if(s=="star"){t.push('<div id="'+E.getSuffixe()+'divstar">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labelstar">Cat&eacute;gorie</label>');t.push('<select id="'+E.getSuffixe()+'selectstar" name="star">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selectstar" name="star">');t.push('<option class="defaultOption" value="Indifferent">Cat&eacute;gorie</option>')}if(u!=null){for(var B=0,p=u.length;B<p;++B){var F=u[B];t.push('<option value="'+F.code+'">'+F.name+"</option>")}}t.push("</select>");t.push("</div>")}else{if(s=="supplier"){t.push('<div id="'+E.getSuffixe()+'divsupplier">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labelsupplier">Tour op&eacute;rateur</label>');t.push('<select id="'+E.getSuffixe()+'selectsupplier" name="supplier">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selectsupplier" name="supplier">');t.push('<option class="defaultOption" value="Indifferent">Tour op&eacute;rateur</option>')}if(v!=null){for(var B=0,p=v.length;B<p;++B){var m=v[B];t.push('<option value="'+m.code+'">'+m.name+"</option>")}}t.push("</select>");t.push("</div>")}else{if(s=="discountPercentage"){t.push('<div id="'+E.getSuffixe()+'divdiscountPercentage">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labeldiscountPercentage">Promotion</label>');t.push('<select id="'+E.getSuffixe()+'selectdiscountPercentage" name="discountPercentage">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selectdiscountPercentage" name="discountPercentage">');t.push('<option class="defaultOption" value="Indifferent">Promotion</option>')}if(b!=null){for(var B=0,p=b.length;B<p;++B){var H=b[B];t.push('<option value="'+H.code+'">'+H.name+"</option>")}}t.push("</select>");t.push("</div>")}else{if(s=="departureMonth"){t.push('<div id="'+E.getSuffixe()+'divdepartureMonth">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labeldepartureMonth">Mois de d&eacute;part</label>');t.push('<select id="'+E.getSuffixe()+'selectdepartureMonth" name="departureMonth">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selectdepartureMonth" name="departureMonth">');t.push('<option class="defaultOption" value="Indifferent">Mois de d&eacute;part</option>')}if(d!=null){for(var B=0,p=d.length;B<p;++B){var w=d[B];t.push('<option value="'+w.code+'">'+w.name+"</option>")}}t.push("</select>");t.push("</div>")}else{if(s=="schoolHoliday"){t.push('<div id="'+E.getSuffixe()+'divschoolHoliday">');if(E.isPrintLabel()==true){t.push('<label id="'+E.getSuffixe()+'labelschoolHoliday">P&eacute;riode scolaire</label>');t.push('<select id="'+E.getSuffixe()+'selectschoolHoliday" name="schoolHolidays">');t.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{t.push('<select id="'+E.getSuffixe()+'selectschoolHoliday" name="schoolHolidays">');t.push('<option class="defaultOption" value="Indifferent">P&eacute;riode scolaire</option>')}if(c!=null){for(var B=0,p=c.length;B<p;++B){var x=c[B];t.push('<option value="'+x.code+'">'+x.name+"</option>")}}t.push("</select>");t.push("</div>")}}}}}}}}}}}}if(E.getCodeTrafficSource()!=null&&E.getUtmSource()!=null){t.push('<input type="hidden" name="codeTrafficSource" value="'+E.getCodeTrafficSource()+'" />');t.push('<input type="hidden" name="utm_source" value="'+E.getUtmSource()+'" />')}t.push('<input type="hidden" name="actionType" value="generalWithRedirect" />');t.push('<input type="hidden" name="searchEngineType" value="foreign" />');t.push('<input type="hidden" name="destinationUrl" value="'+k+'" />');t.push('<input id="'+E.getSuffixe()+'fullTextSubmitForForeign" class="button" type="submit" name="Chercher" value="Chercher" />');t.push("</form>");return t.join("")};YAHOO.rpc.SearchEngineWidget.GetSearchEngineFranceForm=function(G,F){var c=F.selectableFrenchDestinations;var e=F.selectableTypeHomeRentals;var E=F.selectableAccommodationCapacities;var l=F.selectableFrenchMealPlans;var r=F.selectableFrenchDurations;var h=F.selectableFrenchTypeProducts;var s=F.selectableFrenchTopics;var v=F.selectableFrenchSuppliers;var b=F.selectableFrenchDiscountPercentages;var f=F.selectableFrenchDepartureMonths;var d=F.selectableFrenchSchoolHolidays;var u=[];var m=G.getDns()+"SearchEngineController";var p="";if(G.getIdPartner()!=null&&G.getIdPartner()!=""&&G.getIdPartner()!="undefined"){m=m+"?idPartner="+G.getIdPartner()}if(G.getIdPrivatePartner()!=null&&G.getIdPrivatePartner()!=""&&G.getIdPrivatePartner()!="undefined"){m=m+"?idPrivateWhiteLabel="+G.getIdPrivatePartner()}if(G.getSendFormToUrl()){p=G.geUrl()}else{p=m}if(G.getTarget()==null){u.push('<form action="'+p+'" method="post" id="'+G.getSuffixe()+'fillTextForm" onsubmit="YAHOO.rpc.SearchEngineWidget.DoBeforeSubmit('+G.getPutCookieBeforeSubmit()+",'"+G.getCookieName()+"','"+G.getCookieValue()+"','"+G.getCookieDuration()+"',"+G.getCallFunctionBeforeSubmit()+",'"+G.getCallFunctionName()+"');return true;\">")}else{u.push('<form action="'+p+'" target="'+G.getTarget()+'" method="post" id="'+G.getSuffixe()+'fillTextForm" onsubmit="YAHOO.rpc.SearchEngineWidget.DoBeforeSubmit('+G.getPutCookieBeforeSubmit()+",'"+G.getCookieName()+"','"+G.getCookieValue()+"','"+G.getCookieDuration()+"',"+G.getCallFunctionBeforeSubmit()+",'"+G.getCallFunctionName()+"');return true;\">")}for(var B=0,D=G.getFranceFilterList().length;B<D;++B){var t=G.getFranceFilterList()[B];if(t=="frenchDestination"){u.push('<div id="'+G.getSuffixe()+'divfrenchDestination">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labelfrenchDestination">Destination</label>');u.push('<select id="'+G.getSuffixe()+'selectfrenchDestination" name="france">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selectfrenchDestination" name="france">');u.push('<option class="defaultOption" value="Indifferent">Destination</option>')}if(c!=null){for(var C=0,q=c.length;C<q;++C){var x=c[C];u.push('<option value="'+x.code+'">'+x.name+"</option>")}}u.push("</select>");u.push("</div>")}if(t=="typeHomeRental"){u.push('<div id="'+G.getSuffixe()+'divtypeHomeRental">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labeltypeHomeRental">Destination</label>');u.push('<select id="'+G.getSuffixe()+'selecttypeHomeRental" name="typeHomeRental">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selecttypeHomeRental" name="typeHomeRental">');u.push('<option class="defaultOption" value="Indifferent">Choix de l\'h&eacute;bergement</option>')}if(e!=null){for(var C=0,q=e.length;C<q;++C){var y=e[C];u.push('<option value="'+y.code+'">'+y.name+"</option>")}}u.push("</select>");u.push("</div>")}if(t=="accommodationCapacity"){u.push('<div id="'+G.getSuffixe()+'divaccommodationCapacity">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labelaccommodationCapacity">Destination</label>');u.push('<select id="'+G.getSuffixe()+'selectaccommodationCapacity" name="accommodationCapacity">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selectaccommodationCapacity" name="accommodationCapacity">');u.push('<option class="defaultOption" value="Indifferent">Nombre de personnes</option>')}if(E!=null){for(var C=0,q=E.length;C<q;++C){var n=E[C];u.push('<option value="'+n.code+'">'+n.name+"</option>")}}u.push("</select>");u.push("</div>")}else{if(t=="mealPlan"){u.push('<div id="'+G.getSuffixe()+'divmealPlan">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labelmealPlan">Prestation</label>');u.push('<select id="'+G.getSuffixe()+'selectmealPlan" name="mealPlan">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selectmealPlan" name="mealPlan">');u.push('<option class="defaultOption" value="Indifferent">Prestation</option>')}if(l!=null){for(var C=0,q=l.length;C<q;++C){var k=l[C];u.push('<option value="'+k.code+'">'+k.name+"</option>")}}u.push("</select>");u.push("</div>")}else{if(t=="duration"){u.push('<div id="'+G.getSuffixe()+'divduration">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labelduration">Dur&eacute;e</label>');u.push('<select id="'+G.getSuffixe()+'selectduration" name="duration">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selectduration" name="duration">');u.push('<option class="defaultOption" value="Indifferent">Dur&eacute;e</option>')}if(r!=null){for(var C=0,q=r.length;C<q;++C){var a=r[C];u.push('<option value="'+a.code+'">'+a.name+"</option>")}}u.push("</select>");u.push("</div>")}else{if(t=="typeProduct"){u.push('<div id="'+G.getSuffixe()+'divtypeProduct">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labeltypeProduct">Type de produit</label>');u.push('<select id="'+G.getSuffixe()+'selecttypeProduct" name="typeProduct">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selecttypeProduct" name="typeProduct">');u.push('<option class="defaultOption" value="Indifferent">Type de produit</option>')}if(h!=null){for(var C=0,q=h.length;C<q;++C){var g=h[C];u.push('<option value="'+g.code+'">'+g.name+"</option>")}}u.push("</select>");u.push("</div>")}else{if(t=="topic"){u.push('<div id="'+G.getSuffixe()+'divtopic">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labeltopic">Th&eacute;matique</label>');u.push('<select id="'+G.getSuffixe()+'selecttopic" name="topic">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selecttopic" name="topic">');u.push('<option class="defaultOption" value="Indifferent">Th&eacute;matique</option>')}if(s!=null){for(var C=0,q=s.length;C<q;++C){var A=s[C];u.push('<option value="'+A.code+'">'+A.name+"</option>")}}u.push("</select>");u.push("</div>")}else{if(t=="supplier"){u.push('<div id="'+G.getSuffixe()+'divsupplier">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labelsupplier">Tour op&eacute;rateur</label>');u.push('<select id="'+G.getSuffixe()+'selectsupplier" name="supplier">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selectsupplier" name="supplier">');u.push('<option class="defaultOption" value="Indifferent">Tour op&eacute;rateur</option>')}if(v!=null){for(var C=0,q=v.length;C<q;++C){var o=v[C];u.push('<option value="'+o.code+'">'+o.name+"</option>")}}u.push("</select>");u.push("</div>")}else{if(t=="discountPercentage"){u.push('<div id="'+G.getSuffixe()+'divdiscountPercentage">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labeldiscountPercentage">Promotion</label>');u.push('<select id="'+G.getSuffixe()+'selectdiscountPercentage" name="discountPercentage">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selectdiscountPercentage" name="discountPercentage">');u.push('<option class="defaultOption" value="Indifferent">Promotion</option>')}if(b!=null){for(var C=0,q=b.length;C<q;++C){var H=b[C];u.push('<option value="'+H.code+'">'+H.name+"</option>")}}u.push("</select>");u.push("</div>")}else{if(t=="departureMonth"){u.push('<div id="'+G.getSuffixe()+'divdepartureMonth">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labeldepartureMonth">Mois de d&eacute;part</label>');u.push('<select id="'+G.getSuffixe()+'selectdepartureMonth" name="departureMonth">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selectdepartureMonth" name="departureMonth">');u.push('<option class="defaultOption" value="Indifferent">Mois de d&eacute;part</option>')}if(f!=null){for(var C=0,q=f.length;C<q;++C){var w=f[C];u.push('<option value="'+w.code+'">'+w.name+"</option>")}}u.push("</select>");u.push("</div>")}else{if(t=="schoolHoliday"){u.push('<div id="'+G.getSuffixe()+'divschoolHoliday">');if(G.isPrintLabel()==true){u.push('<label id="'+G.getSuffixe()+'labelschoolHoliday">P&eacute;riode scolaire</label>');u.push('<select id="'+G.getSuffixe()+'selectschoolHoliday" name="schoolHolidays">');u.push('<option class="defaultOption" value="Indifferent">Indiff&eacute;rent</option>')}else{u.push('<select id="'+G.getSuffixe()+'selectschoolHoliday" name="schoolHolidays">');u.push('<option class="defaultOption" value="Indifferent">P&eacute;riode scolaire</option>')}if(d!=null){for(var C=0,q=d.length;C<q;++C){var z=d[C];u.push('<option value="'+z.code+'">'+z.name+"</option>")}}u.push("</select>");u.push("</div>")}}}}}}}}}}u.push('<input type="hidden" name="actionType" value="generalWithRedirect" />');u.push('<input type="hidden" name="searchEngineType" value="france" />');u.push('<input type="hidden" name="destinationUrl" value="'+m+'" />');u.push('<input id="'+G.getSuffixe()+'fullTextSubmitForFrance" class="button" type="submit" name="Chercher" value="Chercher" />');u.push("</form>");return u.join("")};YAHOO.rpc.SearchEngineWidget.DoBeforeSubmit=function(putCookieBeforeSubmit,cookieName,cookieValue,cookieDuration,callFunctionBeforeSubmit,callFunctionName){if(putCookieBeforeSubmit){var expDate=new Date();expDate.setTime(expDate.getTime()+(parseInt(cookieDuration,10)*24*3600*1000));document.cookie=cookieName+"="+escape(cookieValue)+";expires="+expDate.toGMTString()}if(callFunctionBeforeSubmit){eval(callFunctionName+"()")}};
