function createRestaurantClass(A,D,H,I,B,G){var E={image:"restaurant.png",shadow:"restaurant.shadow.png",iw:28,ih:28,sw:40,sh:28,ax:6,ay:20,ix:5,iy:1};var C=createBusinessClass(A,D,H,I,"restaurant",B,G,E);var F=function(J){this.upper=new C(J);this.price=getOptionalProperty(J,"price");this.cuisine=getOptionalProperty(J,"cuisine");this.category=getOptionalProperty(J,"category");this.cards=getOptionalProperty(J,"cards");this.wine=getOptionalProperty(J,"wine")};F.prototype.getName=getChildName;F.prototype.getAddress=getChildAddress;F.prototype.toHtml=restaurantToHtml;F.prototype.infoToHtml=restaurantInfoToHtml;F.prototype.hasInfo=restaurantHasInfo;F.prototype.hasKeyword=childHasKeyword;F.prototype.hasKeywords=hasKeywords;F.prototype.createMarker=createChildMarker;F.prototype.show=showChild;F.prototype.hide=hideChild;F.prototype.toggle=toggleChild;F.prototype.goTo=goToChild;return F}function restaurantToHtml(){var A=this.upper.toHtml();if(this.hasInfo()){A.push(this.infoToHtml())}return A}function restaurantHasInfo(){return(this.category!=null||this.price!=null||this.cuisine!=null||this.cards!=null||this.wine!=null)}function restaurantInfoToHtml(){var E="";var G="";var F={"eng":"Rates:","fr":"Tarifs :"};var C={"eng":"Cuisine :","fr":"Type de cuisine :"};var A={"eng":"Category:","fr":"Cat&eacute;gorie :"};var B={"eng":"Serves wine?","fr":"Sert du vin?"};var D={"eng":"Details","fr":"Informations"};if(this.price){E+="<strong>"+F[this.upper.lng]+"</strong> "+this.price+"<br />"}if(this.cuisine){E+="<strong>"+C[this.upper.lng]+"</strong> "+this.cuisine+"<br />"}if(this.category){E+="<strong>"+A[this.upper.lng]+"</strong> "+this.category+"<br />"}if(this.cards){E+=payementToHTML(this.upper.baseURL,this.cards,this.upper.lng)}if(this.wine){E+="<strong>"+B[this.upper.lng]+"</strong> "+this.wine+"<br />"}return new GInfoWindowTab(D[this.upper.lng],E)}function payementToHTML(G,H,B){var A={"eng":"Payement methods:","fr":"Modes de payement :"};var D="<strong>"+A[B]+"</strong> ";var E="";var F=H.split(" , ");for(var C=0;C<F.length;C++){switch(F[C].toLowerCase()){case"visa":D+='<img style="margin-left:5px;" src="'+G+'/icones/visa.gif" title="Visa" />';break;case"cash":D+='<img style="margin-left:5px;" src="'+G+'/icones/cash.gif" title="Cash" />';break;case"mastercard":D+='<img style="margin-left:5px;" src="'+G+'/icones/mastercard.gif" title="Mastercard" />';break;case"express":D+='<img style="margin-left:5px;" src="'+G+'/icones/amex.gif" title="American Express" />';break;default:E+=" "+F[C].toLowerCase()}}D+=E+"<br />";return D}
