Fleurop.Bouquet=function(){Fleurop._Product.apply(this,arguments);var a=this.Protected;this.FormatTotal=function(n){return a.FormatTotal(n)};this.OnRadioButtonClick=function(n){b(n)};this.OnCustomPriceChanged=function(){l()};this.OnCustomPriceKeyUp=function(){j()};this.BlurCustomPrice=function(n){f(n)};function d(){var n=document.getElementById(labelLowPriceClientID);a.SetTotal(n.innerHTML)}function m(){var n=document.getElementById(labelMiddlePriceClientID);a.SetTotal(n.innerHTML)}function e(){var n=document.getElementById(labelHighPriceClientID);a.SetTotal(n.innerHTML)}function c(){var n=document.getElementById(textCustomPriceClientID);a.SetTotal(n.value)}function b(q){var s=document.getElementById("trLowPrice");var n=document.getElementById("trMidPrice");var r=document.getElementById("trHighPrice");var p=document.getElementById("trCustomPrice");switch(q){case"LowPrice":s.className="Onprice";if(n!=null){n.className="Offprice"}if(r!=null){r.className="Offprice"}if(p!=null){p.className="Offprice"}d();break;case"MidPrice":if(s!=null){s.className="Offprice"}n.className="Onprice";if(r!=null){r.className="Offprice"}if(p!=null){p.className="Offprice"}m();break;case"HighPrice":if(s!=null){s.className="Offprice"}if(n!=null){n.className="Offprice"}r.className="Onprice";if(p!=null){p.className="Offprice"}e();break;case"CustomPrice":if(s!=null){s.className="Offprice"}if(n!=null){n.className="Offprice"}if(r!=null){r.className="Offprice"}if(p!=null){p.className="Onprice"}var o=document.getElementById(textCustomPriceClientID);h(o);c();break}}function l(){var n=document.getElementById(textCustomPriceClientID);if(n!=null){h(n)}g(n)}function j(){var n=document.getElementById(textCustomPriceClientID);if(n!=null&&n.value!=""){h(n)}a.CheckDigitCount(n);g(n)}function g(o){var n=document.getElementById(radioCustomPriceClientID);if(n!=null&&n.checked==false){n.checked=true;n.onclick()}c();a.SetCustomPriceChange(o)}function h(o){var n=document.getElementById(minCustomPriceClientID).value;var q=o.value;if(IsDecimalSeparatorDefined){q=q.toString().replace(rExpFormLocale,".")}if(parseFloat(q,10)==(q*1)){var p=q;p=a.AddZeros(p);o.defaultValue=p}else{if(o.value==""){q=n}else{q=o.defaultValue}if(IsDecimalSeparatorDefined){o.value=q.toString().replace(rExpToLocale,DecimalSeparator)}else{o.value=q}}c()}function f(o){var n=document.getElementById(minCustomPriceClientID);a.FormatCustomPrice(o,n.value);c()}function k(){var p=document.getElementById(radioLowPriceClientID);if(p!=null&&p.checked){b("LowPrice")}var q=document.getElementById(radioMiddlePriceClientID);if(q!=null&&q.checked){b("MidPrice")}var n=document.getElementById(radioHighPriceClientID);if(n!=null&&n.checked){b("HighPrice")}var o=document.getElementById(radioCustomPriceClientID);if(o!=null&&o.checked){b("CustomPrice")}}function i(){k()}a.TotalLoad=function(){k()};a.OnLoadPage=function(){i()};window.onload=Fleurop.EventManager.AddHandler(window.onload,this.OnLoadPage)};Fleurop.Product=new Fleurop.Bouquet();
