/*@cc_on
(function(f){
 window.setTimeout =f(window.setTimeout);
 window.setInterval =f(window.setInterval);
})(function(f){return function(c,t){var a=[].slice.call(arguments,2);return f(function(){c.apply(this,a)},t)}});
@*/typeof __webmashop_config=="undefined"&&(__webmashop_config={});var Functional=window.Functional||{};Functional.select=function(F,G,D){F=Function.toFunction(F);var C=G.length,B=[];for(var E=0;E<C;E++){var A=G[E];F.apply(D,[A,E])&&B.push(A)}return B};Function.prototype.toFunction=function(){return this};Function.toFunction=function(A){return A.toFunction()};var webmaShopModule=function(){var l=S(__webmashop_config,{"sprdDocs":"o15446008936142857836.8842915723992853115/od6","curr":",-Ft","country":"Hungary","limitAffNr":5,"gettext":S(__webmashop_config.gettext||{},{"err_bill_addr":"Kérjük, helyesen töltse ki a szállítási adatokat!","fill_req_fields":"Kérjük, helyesen töltsön ki minden mezőt!","remove_from_cart":"Kiveszem a kosárból","add_to_cart":"Beteszem a kosárba","empty_cart":"Kosara üres.","cart_content":"Kosár tartalma","total":"Összesen: %d","choose_affiliate":"Kérem, válasszon kereskedőt!","button_back":"Vissza","terms":"","checkout":"Megrendelés","order_succeed":"Sikeres megrendelés","order_failed":"Sikertelen megrendelés","name":"Név","email":"E-mail","phone":"Telefonszám","cell":"Mobil","ship_data":"Szállítási adatok","bill_data":"Számlázási adatok","bill_match_ship":"Szállítási és számlázási adatok megegyeznek","zipcode":"Irányítószám","city":"Város","street_nr":"Utca, házszám","paymethod":"Fizetési mód","affiliate":"Szállító","comment":"Megjegyzés","pcs":"db","choose":"Válasszon","none":"-- nincs --","choose_product":"Válassza ki a termék paramétereit!","yes":"Igen","no":"Nem","show_all":"Minden opció mutatása","transfer":"Igényel tranfszert?","parking":"Igényel parkolót?","insurance":"Igényel biztosítást?","na":"Nincs információ","lowvalue":"A megadott értékkel nincs termék!","any":"mindegy"},["pcs","total","checkout","terms","order_succeed","order_failed","any"]),"storage_key":"webmashop_","debugEnabled":true,"shop_type":1,"isCartDisabled":false},["sprdDocs","curr","country","limitAffNr","storage_key","debugEnabled","shop_type","isCartDisabled"]);var h=[];var g={"cname":"","email":"","phone":"","cell":"","billcountry":"","billzip":"","billcity":"","billstr":"","shipcountry":"","shipzip":"","shipcity":"","shipstr":"","paymethod":"","affiliate":"","comment":"","parking":"","tranfer":"","insurance":""};function S(AH,AI,AG){var AF;for(AF=0;AF<AG.length;AF++){if(typeof AH[AG[AF]]!="undefined"){AI[AG[AF]]=AH[AG[AF]]}}return AI}var T=function(AF){l["debugEnabled"]&&(T=(window.console)?console.log:alert)&&T(AF)};function G(AH,AG,AF){if(AH.addEventListener){AH.addEventListener(AG,AF,false);return true}else{if(AH.attachEvent){return AH.attachEvent("on"+AG,AF)}}return false}var v={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(AH){var AF="";var AO,AM,AK,AN,AL,AJ,AI;var AG=0;AH=v._utf8_encode(AH);while(AG<AH.length){AO=AH.charCodeAt(AG++);AM=AH.charCodeAt(AG++);AK=AH.charCodeAt(AG++);AN=AO>>2;AL=((AO&3)<<4)|(AM>>4);AJ=((AM&15)<<2)|(AK>>6);AI=AK&63;if(isNaN(AM)){AJ=AI=64}else{if(isNaN(AK)){AI=64}}AF=AF+this._keyStr.charAt(AN)+this._keyStr.charAt(AL)+this._keyStr.charAt(AJ)+this._keyStr.charAt(AI)}return AF},_utf8_encode:function(AG){AG=AG.replace(/\r\n/g,"\n");var AF="";for(var AI=0;AI<AG.length;AI++){var AH=AG.charCodeAt(AI);if(AH<128){AF+=String.fromCharCode(AH)}else{if((AH>127)&&(AH<2048)){AF+=String.fromCharCode((AH>>6)|192);AF+=String.fromCharCode((AH&63)|128)}else{AF+=String.fromCharCode((AH>>12)|224);AF+=String.fromCharCode(((AH>>6)&63)|128);AF+=String.fromCharCode((AH&63)|128)}}}return AF}};function U(AF){if(AF&&AF.preventDefault){AF.preventDefault()}n.loading();window.setTimeout(function(){var AM,AK;var AL=document.getElementById("sortabletable");var AI=document.getElementById("sortable-filter-table").rows[1].cells;var AH=[];var AO=[];var AN=[];var AG=[];var AJ;for(AM=0;AM<AI.length;AM++){if(AI[AM].childNodes[0].value!=""){AO.push(AI[AM].childNodes[0].value.replace(/&/g,"&amp;"));AH.push(AM);AN.push(AI[AM].childNodes[0].className)}}if(AH.length<1){n.loading();return false}for(AM=AL.rows.length-1;AM>0;--AM){AJ=false;for(AK=0;AK<AH.length;AK++){if(AL.rows[AM].cells[AH[AK]].className=="col-4"||AL.rows[AM].cells[AH[AK]].className=="col-8"){if(parseInt(AL.rows[AM].cells[AH[AK]].innerHTML,10)>parseInt(AO[AK],10)){AJ=true}}else{if(AL.rows[AM].cells[AH[AK]].className=="col-7"){if(parseInt(AL.rows[AM].cells[AH[AK]].innerHTML,10)<parseInt(AO[AK],10)){AJ=true}}else{if(AN[AK]=="range"){if(parseInt(AL.rows[AM].cells[AH[AK]].childNodes[1].text,10)>parseInt(AO[AK],10)){AJ=true}}else{if(!AL.rows[AM].cells[AH[AK]].innerHTML.match(new RegExp(AO[AK],"i"))){AJ=true}}}}}if(AJ){AG.push(AM);continue}}window.setTimeout(function(AR,AP){for(var AQ=0;AQ<AP.length;AQ++){AR.deleteRow(AP[AQ])}document.getElementById("sortable-filter-total").value=AR.rows.length-1;AE();n.loading();c()},0,AL,AG)},0);return false}function k(){var AJ,AK,AF,AG,AI,AH;AJ=document.getElementById("sortabletable");AG=[];for(AF=0;AF<AJ.rows[0].cells.length;AF++){AG[AF]=[];for(AK=1;AK<AJ.rows.length;AK++){AH=AJ.rows[AK].cells[AF].innerHTML.replace(/<[^>]+>/g,"");AH=AH.replace(/&amp;/g,"&");if(AH!=""){AG[AF].push(AH)}}}for(AF=0;AF<AG.length;AF++){AG[AF]=B(AG[AF]).sort(function(AM,AL){if(Number(AM)==AM){AM=Number(AM);AL=Number(AL)}return AM>AL});if(AG[AF].length>1){AI='<select id="product-filter-'+AF+'"><option value="">'+l["gettext"].any+"</option>";for(AK=0;AK<AG[AF].length;AK++){AI+='<option value="'+AG[AF][AK]+'">'+AG[AF][AK]+"</option>"}AI+="</select>"}else{if(typeof AG[AF][0]=="undefined"){AG[AF][0]="-"}AI='<input type="hidden" value="" id="product-filter-'+AF+'" />'+AG[AF][0]}AG[AF]=AI}return AG}function c(){var AF,AH,AG;AH=document.getElementById("sortable-filter-table");AF=k();for(AG=0;AG<AH.rows[0].cells.length;AG++){document.getElementById("product-filter-"+AG).parentNode.innerHTML=AF[AG];G(document.getElementById("product-filter-"+AG),"change",U)}}var n=function(){var AF=0;function AG(){if(!document.getElementById("loading")){return false}if(AF==0){AF=1;document.getElementById("loading").style.visibility="visible"}else{AF=0;document.getElementById("loading").style.visibility="hidden"}}return{loading:AG}}();function Q(AF){AF=AF.toString();return AF.charAt(0)+AF.charAt(1)+AF.charAt(2)+AF.charAt(3)+". "+AF.charAt(4)+AF.charAt(5)+". "+AF.charAt(6)+AF.charAt(7)+"."}function D(AG){AG=AG.toString().replace(/\$|\,/g,"");if(isNaN(AG)){AG="0"}AG=Math.floor(AG*100+0.50000000001);AG=Math.floor(AG/100).toString();for(var AF=0;AF<Math.floor((AG.length-(1+AF))/3);AF++){AG=AG.substring(0,AG.length-(4*AF+3))+"."+AG.substring(AG.length-(4*AF+3))}return AG+l["curr"]}function A(){var AG;try{AG=new XMLHttpRequest()}catch(AF){try{AG=new ActiveXObject("Microsoft.XMLHTTP")}catch(AF){}}return AG}var z=false;var W;var f;var I;function AE(AG,AL,AF){var AH;var AK;if(document.getElementById("sortabletable")){if(z){return false}AH=document.getElementById("sortabletable").rows[0].cells.length-1;if(document.getElementById("sortabletable").rows[0].cells[AH].className.replace(/[^\w]/g,"")!="sortableprice"){return false}if(typeof AG!="undefined"){W=AG;f=AL;I=AF}if(!z&&document.getElementById("sortabletable").rows.length>I){document.getElementById("product-filter-"+AH).setAttribute("disabled","disabled");return false}document.getElementById("price-shown").style.display="none"}AK=A();try{W=JSON.stringify(W);W=W.replace(/[\[\]\"]/g,"");var AJ="code="+W+"&idb=code_price";AK.open("POST",location.protocol+"//"+location.host+"/images/shop/idb_api.php",true);AK.setRequestHeader("Content-type","application/x-www-form-urlencoded");AK.setRequestHeader("Content-length",AJ.length);AK.setRequestHeader("Connection","close");AK.onreadystatechange=function(){if(AK.readyState==4){if((AK.status==200)||(AK.status==0)){if(typeof AK.responseText!="string"){return false}n.loading();window.setTimeout(f,0,JSON.parse(AK.responseText))}}};AK.send(AJ)}catch(AI){return false}if(document.getElementById("sortabletable")){z=true;document.getElementById("product-filter-"+AH).removeAttribute("disabled")}}function e(AG){for(var AF=0;AF<AG.length;AF+=2){document.getElementById("product-price-of-"+AG[AF]).setAttribute("title",AG[AF+1])}}function Z(AH){var AJ,AF,AI;for(var AG=0;AG<AH.length;AG+=2){AI=String(AH[AG]);if(!document.getElementById("product-product_name-of-"+AI)){continue}AJ=document.getElementById("product-price-of-"+AI);AF=document.getElementById("product-product_name-of-"+AI).childNodes[0].text;AJ.innerHTML+='<a href="" onmousedown="webmaShopModule.addToBasket(\''+AF+"','"+AI+'\');" onclick="return false;" title="'+l["gettext"].add_to_cart+'">'+AH[AG+1]+"</a>"}n.loading()}function X(){var AG;if(!document.getElementById("product-code")){return false}var AI=document.getElementById("product-code").value;AG=A();try{var AH=location.protocol+"//"+location.host+"/images/shop/idb_api.php?code="+AI+"&idb=code_price";AG.open("GET",AH);AG.onreadystatechange=function(){if(AG.readyState==4){if((AG.status==200)||(AG.status==0)){if(!AG.responseText){return false}var AL=JSON.parse(AG.responseText);if(typeof AL=="object"){var AN=AL;var AJ="";var AM=new Date();AM=AM.getFullYear().toString()+(AM.getMonth()+1).toString()+AM.getDate().toString();for(var AK=0;AK<AN.length;AK++){if(AN[AK]&&AN[AK][0]>=AM){AJ+='<option value="'+AN[AK][1]+"-"+AN[AK][0]+'">'+Q(AN[AK][0])+"</option>"}}if(""==AJ){return false}document.getElementById("product-price-selecter").innerHTML='<select onchange="webmaShopModule.updatePrice(this.value)">'+AJ+"</select>";AL=document.getElementById("product-price-selecter").childNodes[0].value}M(AL)}}};AG.send(null)}catch(AF){}}function H(){var AH,AG,AF;if(!document.getElementById("product-code")||!document.getElementById("product-stocklevel")){return false}var AJ=document.getElementById("product-code").value;AH=A();try{AG=location.protocol+"//"+location.host+"/images/shop/idb_api.php?code="+AJ+"&idb=code_stocklevel";AH.open("GET",AG);AH.onreadystatechange=function(){if(AH.readyState==4){if((AH.status==200)||(AH.status==0)){if(!AH.responseText){AF=l["gettext"].na}else{AF=AH.responseText}document.getElementById("product-stocklevel").value=AF}}};AH.send(null)}catch(AI){}}function M(AH){if(!document.getElementById("product-code")){return false}AH=AH.toString().split(/-/);var AG=AH[0];if(AH.length>1){var AF=AH[1];document.getElementById("product-date-code").value=document.getElementById("product-code").value+"-"+AF}document.getElementById("product-price-format").value=D(AG);document.getElementById("product-price").value=AG.toString().replace(/ /,"")}function w(){if(storage.hasKey("shop_repo")){h=JSON.parse(storage.getString("shop_repo"))}if(storage.hasKey("customer_data")){g=JSON.parse(storage.getString("customer_data"))}else{storage.putString("customer_data",JSON.stringify(g),function(){})}L();if(document.getElementById("sortabletable")){G(document.getElementById("sortable-filter"),"submit",U);document.getElementById("sortable-filter-total").value=document.getElementById("sortabletable").rows.length-1;c()}if(typeof price_distinct!="undefined"){P()}else{X();H()}if(location.href.match(/checkout/i)){F()}}function O(){h=[];storage.putString("shop_repo","",function(){});L()}function y(){storage.putString("customer_data","",function(){})}function r(AI,AH){if(AH<=0){AH=0;storage.putString(l["storage_key"]+AI,"",function(AJ){if(AJ==Storage.SUCCESS){L()}});for(var AG=0;AG<h.length;AG++){if(h[AG]==AI){h.splice(AG,1);storage.putString("shop_repo",JSON.stringify(h),function(){})}}}else{var AF=JSON.parse(storage.getString(l["storage_key"]+AI));AF[3]=AH;storage.putString(l["storage_key"]+AI,JSON.stringify(AF))}L()}function m(AH,AI,AG){var AL,AR=1,AN,AO=[];if(typeof AI=="undefined"){AI=document.getElementById("product-code").value;AL=document.getElementById("product-price").value}else{AI=String(AI);AL=document.getElementById("product-price-of-"+AI).childNodes[0].innerHTML}var AM=0;if(document.getElementById("product-date-code")){AM=document.getElementById("product-date-code").value}if(document.getElementById("product-qty")){AR=document.getElementById("product-qty").value}if(document.getElementById("product-cat")){AN=document.getElementById("product-cat").value}else{AN=document.getElementById("product-m2-of-"+AI).innerHTML}var AK,AQ;if(typeof price_distinct!="undefined"&&typeof AG=="undefined"){for(AK=0;AK<price_distinct_meta[0].length;AK++){AQ=price_distinct_meta[0][AK];if(Y[0][AQ]!=""){AO.push(Y[0][AQ])}}}if(AM!=0){AO.push(Q(AM.split(/-/)[1]));AI=AM}var AJ=[AI,AH,AL,AR,AN,AO];if(typeof price_distinct!="undefined"&&typeof AG=="undefined"&&Y.length!=1){window.alert(l["gettext"].choose_product);return false}var AF=true;for(AK=0;AK<h.length;AK++){if(AI==h[AK]){AF=false;break}}if(AF){h.push(AI);storage.putString("shop_repo",JSON.stringify(h),function(){})}else{var AP=JSON.parse(storage.getString(l["storage_key"]+AI));AJ[3]=parseInt(AJ[3])+parseInt(AP[3])}storage.putString(l["storage_key"]+AI,JSON.stringify(AJ),function(AS){if(AS==Storage.SUCCESS){L()}});L();return false}function L(){if(l["isCartDisabled"]){return false}var AI="";var AH;var AG=0;if(h.length>0){document.getElementById("reset-cart").removeAttribute("disabled");for(var AF=0;AF<h.length;AF++){AH=JSON.parse(storage.getString(l["storage_key"]+h[AF]));if(AH){AI+='<li><p class="prd-info"><button title="'+l["gettext"].remove_from_cart+'" onclick="webmaShopModule.setQty(\''+h[AF]+'\', 0)"><img src="/images/shop_remove.png" alt="'+l["gettext"].remove_from_cart+'" /></button><strong>'+AH[1]+"</strong>";if(AH[5].length>0){AI+=" ("+AH[5].join(", ")+")"}AI+='</p><p class="prd-qty"><input maxlength="6" id="'+h[AF]+'-qty-basket" onchange="webmaShopModule.setQty(\''+h[AF]+'\', this.value)" type="text" size="3" value="'+AH[3]+'" /> '+l["gettext"].pcs+"</p></li>";AG+=parseInt(AH[2])*parseInt(AH[3])}}}else{document.getElementById("reset-cart").setAttribute("disabled","disabled");AI=l["gettext"].empty_cart}document.getElementById("cart").innerHTML="<h2>"+l["gettext"].cart_content+"</h2><ul>"+AI+'</ul><p class="total">'+l["gettext"].total.replace("%d",D(AG))+'</p><p class="checkout"><a href="/Checkout.html"><img src="/images/shop_checkout.png" alt="'+l["gettext"].checkout+'" /></a></p>'}var AA;var AD=[];var E={"lng":0,"ltd":0};function o(AM){function AF(AO,AP){this.code=AO;this.dist=AP}AA=AM;AD=[];var AN=999999999;var AI,AK,AH,AL,AJ,AG;for(AH=0;AH<AA.feed.entry.length;AH++){AL=AA.feed.entry[AH];AJ=AL.content.$t;AG=AJ.match(/\d{1,2}\.\d+/g);if(AG){AK=(E.lat-AG[0])*(E.lat-AG[0])+(E.lng-AG[1])*(E.lng-AG[1]);AD[AD.length++]=new AF(AH,AK);if(AK<AN){AN=AK;AI=AH}}}AD.sort(function(AP,AO){return((AP.dist<AO.dist)?-1:((AP.dist>AO.dist)?1:0))});b()}function p(){document.getElementById("webma-shop").style.visibility="hidden";window.scrollTo(0,0);document.getElementById("content").innerHTML='<p><img src="/images/loading.gif" alt="Loading..." /></p>';var AG=[g["shipstr"],g["shipcity"],l["country"],g["shipzip"]].join(",");var AF=null;if(GBrowserIsCompatible()){AF=new GClientGeocoder();AF.getLatLng(AG,function(AH){if(AH!=null){E.lat=AH.x;E.lng=AH.y;N()}else{window.alert(l["gettext"].err_bill_addr)}})}}function N(){var AH="http://spreadsheets.google.com/feeds/list/"+l["sprdDocs"]+"/public/basic?alt=json-in-script&callback=webmaShopModule.getLngLtd";var AG=document.createElement("script");AG.setAttribute("type","text/javascript");AG.setAttribute("src",AH);var AF=document.getElementsByTagName("head").item(0);AF.appendChild(AG);return true}function q(){function AG(AL,AM){return"<p><span>"+AL+":</span> "+AM+"</p>"}function AJ(AL){if(AL){return l["gettext"].yes}return l["gettext"].no}window.scrollTo(0,0);var AK="<h1>"+l["gettext"].checkout+'</h1><div id="checkout-page"><table border="1">';var AI,AH=0,AF;for(AF=0;AF<h.length;AF++){AI=JSON.parse(storage.getString(l["storage_key"]+h[AF]));if(AI){AK+='<tr><td><p class="prd-info">'+AI[1];if(AI[5].length>0){AK+=" ("+AI[5].join(", ")+")"}AK+='</p></td><td><p class="prd-qty">'+AI[3]+" "+l["gettext"].pcs+'</p></td><td><p class="prd-unit">'+D(AI[2])+'</p></td><td><p class="prd-subtotal">'+D(AI[3]*AI[2])+"</p></td></tr>";AH+=parseInt(AI[2])*parseInt(AI[3])}}AK+='</table><p class="total">'+l["gettext"].total.replace("%d",D(AH))+'</p><div id="customer-data"><hr/>'+AG(l["gettext"].name,g["cname"])+AG(l["gettext"].email,g["email"])+AG(l["gettext"].phone,g["phone"])+AG(l["gettext"].cell,g["cell"])+"<hr/><h2>"+l["gettext"].bill_data+"</h2>"+AG(l["gettext"].zipcode,g["billzip"])+AG(l["gettext"].city,g["billcity"])+AG(l["gettext"].street_nr,g["billstr"])+"<hr/><h2>"+l["gettext"].ship_data+"</h2>"+AG(l["gettext"].zipcode,g["shipzip"])+AG(l["gettext"].city,g["shipcity"])+AG(l["gettext"].street_nr,g["shipstr"])+"<hr/>"+AG(l["gettext"].paymethod,g["paymethod"]);if(l["shop_type"]==1){AK+=AG(l["gettext"].transfer,AJ(g["transfer"]))+AG(l["gettext"].insurance,AJ(g["insurance"]))+AG(l["gettext"].parking,AJ(g["parking"]))}else{AK+="<p><span>"+l["gettext"].affiliate+':</span> <input type="text" readonly="readonly" class="readonly" id="customer-affiliate" /></p>'}AK+=AG(l["gettext"].comment,g["comment"])+'</div></div><div id="ecommerce"></div>';AK+=l["gettext"].terms;if(l["shop_type"]==1){AK+='<p class="back-button"><input type="button" onclick="webmaShopModule.stepDataInput()" value="&laquo; '+l["gettext"].button_back+'" /></p>'}else{AK+='<p class="back-button"><input type="button" onclick="webmaShopModule.stepAffChoosing()" value="&laquo; '+l["gettext"].button_back+'" /></p>'}AK+='<p class="right"><button onclick="webmaShopModule.stepOrder()"><img src="/images/shop_cart_old.png" alt=""></button></p>';document.getElementById("content").innerHTML=AK;if(l["shop_type"]==0){document.getElementById("customer-affiliate").value=g["affiliate"];document.getElementById("customer-affiliate").setAttribute("value",g["affiliate"])}R()}function R(){var AM=g["billzip"]+(new Date().getTime());var AJ=0;var AF="";for(var AH=0;AH<h.length;AH++){product=JSON.parse(storage.getString(l["storage_key"]+h[AH]));if(product){AF+="UTM:I|"+AM+"|"+product[0]+"|"+product[1]+"|"+product[4]+"|"+(product[2]/250)+"|"+product[3]+"\n";AJ+=parseInt(product[2])/250*parseInt(product[3])}}var AI=0;var AG=0;var AK=E.lat+","+E.lng;AK="";var AL="UTM:T|"+AM+"|"+g["affiliate"]+"|"+AJ+"|"+AI+"|"+AG+"|"+g["billcity"]+"|"+AK+"|"+g["billcountry"];document.getElementById("ecommerce").innerHTML='<form style="display:none;" name="utmform"><textarea id="utmtrans">'+AL+"\n"+AF+"</textarea></form>"}var j=true;function K(){if(j){j=false;document.getElementById("customer-ship-zip").removeAttribute("disabled");document.getElementById("customer-ship-city").removeAttribute("disabled");document.getElementById("customer-ship-str").removeAttribute("disabled")}else{document.getElementById("customer-ship-zip").setAttribute("disabled","disabled");document.getElementById("customer-ship-city").setAttribute("disabled","disabled");document.getElementById("customer-ship-str").setAttribute("disabled","disabled");j=true}}function F(){function AF(AK,AH,AJ,AI){AI=(typeof AI!="undefined")?' disabled="disabled" ':"";return'<p id="customer-'+AK+'-block"><label><span>'+AH+':</span> <input type="text" id="customer-'+AK+'" value="'+AJ+'" '+AI+" /></label></p>"}window.scrollTo(0,0);document.getElementById("webma-shop").style.visibility="visible";var AG='<div id="data-input"><form action="">'+AF("name",l["gettext"].name,g["cname"])+AF("email",l["gettext"].email,g["email"])+AF("phone",l["gettext"].phone,g["phone"])+AF("cell",l["gettext"].cell,g["cell"])+"<fieldset><legend>"+l["gettext"].bill_data+'</legend><input type="hidden" id="customer-bill-country" value="'+l["country"]+'" />'+AF("bill-zip",l["gettext"].zipcode,g["billzip"])+AF("bill-city",l["gettext"].city,g["billcity"])+AF("bill-str",l["gettext"].street_nr,g["billstr"])+'</fieldset><p id="customer-bill-match-ship-block"><label>'+l["gettext"].bill_match_ship+': <input id="customer-bill-match-ship" checked="checked" type="checkbox" onchange="webmaShopModule.toggleShipBlock();" /></label></p><fieldset><legend>'+l["gettext"].ship_data+'</legend><input type="hidden" id="customer-ship-country" value="'+l["country"]+'" />'+AF("ship-zip",l["gettext"].zipcode,g["shipzip"],true)+AF("ship-city",l["gettext"].city,g["shipcity"],true)+AF("ship-str",l["gettext"].street_nr,g["shipstr"],true)+'</fieldset><p id="customer-paymethod-block"><label><span>'+l["gettext"].paymethod+':</span> <select id="customer-paymethod"><option value="Utánvétel">Utánvétel</option></select></label></p>';if(l["shop_type"]==1){AG+='<p id="customer-transfer-block"><label><span>'+l["gettext"].transfer+'</span> <input type="checkbox" id="customer-transfer" checked="checked"/></label></p><p id="customer-parking-block"><label><span>'+l["gettext"].parking+'</span> <input type="checkbox" id="customer-parking" checked="checked"/></label></p><p id="customer-insurance-block"><label><span>'+l["gettext"].insurance+'</span> <input type="checkbox" id="customer-insurance" checked="checked"/></label></p>'}AG+='<p id="customer-comment-block"><label><span>'+l["gettext"].comment+':</span> <textarea id="customer-comment">'+g["comment"]+"</textarea></label></p>"+l["gettext"].terms+'<p class="right"><input class="checkout-button" type="button" onclick="webmaShopModule.processDataInput()" value="" /></p></form></div>';document.getElementById("content").innerHTML=AG}var t=false;function AC(AF,AI,AH){var AG=new RegExp("^"+AH+"$","i");if(document.getElementById(AI).value.match(AG)){g[AF]=document.getElementById(AI).value;document.getElementById(AI).style.backgroundColor="#fff"}else{document.getElementById(AI).style.backgroundColor="#f8cc9b";t=true}}function AB(){t=false;AC("cname","customer-name",".{5,}");AC("email","customer-email","[\\w._-]+@[\\w._-]+\\.\\w{2,6}");AC("phone","customer-phone","[\\d ()+/-]{4,}");AC("cell","customer-cell","[\\d ()+/-]{4,}");AC("billcountry","customer-bill-country",".{3,}");AC("billzip","customer-bill-zip","\\d{4}");AC("billcity","customer-bill-city",".{3,}");AC("billstr","customer-bill-str",".{5,}");if(document.getElementById("customer-bill-match-ship").checked){document.getElementById("customer-ship-country").value=document.getElementById("customer-bill-country").value;document.getElementById("customer-ship-zip").value=document.getElementById("customer-bill-zip").value;document.getElementById("customer-ship-city").value=document.getElementById("customer-bill-city").value;document.getElementById("customer-ship-str").value=document.getElementById("customer-bill-str").value}AC("shipcountry","customer-ship-country",".{3,}");AC("shipzip","customer-ship-zip","\\d{4}");AC("shipcity","customer-ship-city",".{3,}");AC("shipstr","customer-ship-str",".{5,}");AC("paymethod","customer-paymethod",".+");AC("comment","customer-comment",".*");AC("shipcity","customer-ship-city",".{3,}");if(l["shop_type"]==1){if(document.getElementById("customer-parking").checked){g["parking"]=true}if(document.getElementById("customer-insurance").checked){g["insurance"]=true}if(document.getElementById("customer-transfer").checked){g["transfer"]=true}}if(false==t){g["affiliate"]="";storage.putString("customer_data",JSON.stringify(g),function(){});if(l["shop_type"]==1){q();return }p()}else{window.alert(l["gettext"].fill_req_fields)}}function b(){var AH="<h2>"+l["gettext"].choose_affiliate+'</h2><form name="choose_aff"><p>';var AG="";for(var AF=0;AF<l["limitAffNr"];AF++){var AI=AA.feed.entry[AD[AF].code].content.$t.match(/Companyaddress: (.*), latitude/)[1];if(g["affiliate"]==AA.feed.entry[AD[AF].code].title.$t+", "+AI){AG='checked="checked"'}else{AG=""}AH+="<label><input "+AG+' type="radio" name="chosen_aff" value="'+AA.feed.entry[AD[AF].code].title.$t+", "+AI+'" /> '+AA.feed.entry[AD[AF].code].title.$t+" ("+AI+")</label><br />"}AH+='</p><p class="back-button"><input type="button" onclick="webmaShopModule.stepDataInput();" value="&laquo; '+l["gettext"].button_back+'" /></p><p class="right"><input class="checkout-button" type="button" onclick="webmaShopModule.processAffChoosing()" value="" /></form>';document.getElementById("content").innerHTML=AH}function x(){var AH=document.forms["choose_aff"].chosen_aff;var AG=false;for(var AF=0;AF<AH.length;AF++){if(AH[AF].checked){g["affiliate"]=AH[AF].value;storage.putString("customer_data",JSON.stringify(g),function(){});AG=true;break}}if(!AG){return false}q()}var C;function a(AH){window.scrollTo(0,0);if(AH&&AH.preventDefault){AH.preventDefault()}__utmSetTrans();C=A();try{var AG=location.protocol+"//"+location.host+"/images/php/sendorder.php";C.open("POST",AG,true);C.setRequestHeader("Content-Type","application/x-www-form-urlencoded");C.onreadystatechange=function(){if(C.readyState==4){if((C.status==200)||(C.status==0)){var AI="";switch(C.responseText){case"1":AI+=l["gettext"].order_succeed;break;case"0":default:AI+=l["gettext"].order_failed;break}document.getElementById("content").innerHTML=AI}else{}return true}return true};C.send("checkout="+v.encode("<html><body>"+document.getElementById("checkout-page").innerHTML+"</body></html>")+"&email="+g["email"])}catch(AF){}document.getElementById("content").innerHTML='<p><img src="/images/loading.gif" alt="Loading..." /></p>';return false}var J;function s(){if(!document.getElementById("product-nonprice-distinct")){return false}var AI=document.getElementById("product-code").value;if(AI==""){return false}nonprice_distinct=Functional.select(function(AJ){return AJ.id==AI},nonprice_distinct);var AF,AG,AH="";for(AF=0;AF<nonprice_distinct_meta[0].length;AF++){AG=nonprice_distinct_meta[0][AF];if(nonprice_distinct[0][AG]==""){continue}AH+="<p><label><strong>"+nonprice_distinct_meta[1][AF]+":</strong></label> "+nonprice_distinct[0][AG]+"</p>"}document.getElementById("product-nonprice-distinct").innerHTML=AH}function B(AF){tmp=new Array(0);for(i=0;i<AF.length;i++){if(!d(tmp,AF[i])){tmp.length+=1;tmp[tmp.length-1]=AF[i]}}return tmp}function d(AF,AH){for(var AG=0;AG<AF.length;AG++){if(AF[AG]==AH){return true}}return false}var Y;function P(AH){function AM(AR,AS){for(var AQ=0;AQ<AR.length;AQ++){if(AR[AQ].id==AS){return AR[AQ].value}}return false}var AN;var AK,AJ;if(typeof AH=="undefined"){document.getElementById("product-price").value="";document.getElementById("product-price-format").value="";if(document.getElementById("product-stocklevel")){document.getElementById("product-stocklevel").value=""}Y=price_distinct;price_distinct_meta[2]=[]}else{price_distinct_meta[2].push(AH);Y=Functional.select(function(AQ){if(AH.className=="price"||AH.className=="delivery_max"){return AQ[AH.className]<=parseInt(AH.value.replace(/[^\d]/g,""),10)}else{return AQ[AH.className]==AH.value}},Y)}var AP={};for(AK=0;AK<Y.length;AK++){for(AJ=0;AJ<price_distinct_meta[0].length;AJ++){AN=price_distinct_meta[0][AJ];if(typeof AP[AN]=="undefined"){AP[AN]=[]}if(Y[AK][AN]==""){continue;Y[AK][AN]=l["gettext"].none}if(!d(AP[AN],Y[AK][AN])){AP[AN].push(Y[AK][AN])}}}u();var AG="",AF="",AO;var AI;for(AJ=0;AJ<price_distinct_meta[0].length;AJ++){AO="";AN=price_distinct_meta[0][AJ];if(AI=AM(price_distinct_meta[2],"price-distinct-"+AN)){AO+=AI}else{if(AP[AN].length==1){AO+=AP[AN][0];price_distinct_meta[2].push({"id":"price-distinct-"+AN,"class":AN,"value":AP[AN][0]})}else{if(AN=="price"||AN=="delivery_max"){var AL=[];for(AK=0;AK<AP[AN].length;AK++){if(!d(AN,AP)){AL.push(AP[AN][AK])}}AL.sort(function(AR,AQ){return(AR-AQ)});AI="";if(AH&&AH.className==AN){AI=AH.value}AO+='<input type="text" class="'+AN+'" onchange="if(this.value<'+AL[0]+"){alert('"+l["gettext"].lowvalue+'\');return false;}webmaShopModule.updatePriceDistincts(this);" id="price-distincts-'+AN+'" value="'+AI+'" />'}else{AF="";for(AK=0;AK<AP[AN].length;AK++){AF+='<option value="'+AP[AN][AK]+'">'+AP[AN][AK]+"</option>"}if(AF!=""){AO+='<select class="'+AN+'" onchange="webmaShopModule.updatePriceDistincts(this);" id="price-distinct-'+AN+'"><option selected="selected" value="none">'+l["gettext"].choose+"</option>"+AF+"</select>"}}}}if(AO!=""){AG+="<p><label><strong>"+price_distinct_meta[1][AJ]+":</strong></label><br/>"+AO+"</p>"}}if(price_distinct_meta[2].length>0&&price_distinct.length!=1){AG+='<button onclick="location.reload();">'+l["gettext"].show_all+"</button>"}document.getElementById("product-price-distinct").innerHTML=AG;if(Y.length==1){document.getElementById("product-code").value=Y[0].id;X();H();s();return }}function u(){if(!document.getElementById("product-summary")){return false}var AM=document.getElementById("product-summary");var AL=AM.rows[0].cells.length;var AF=AM.rows.length;var AJ,AI,AK,AH,AG;for(AJ=0;AJ<AF;AJ++){for(AI=0;AI<AM.rows[AJ].cells.length;AI++){AG=true;AK=AM.rows[AJ].cells[AI];for(AH=0;AH<Y.length;AH++){if(!AK.className.match(/product-/i)||AK.className=="product-"+Y[AH].id){AG=false;break}}if(AG){AK.innerHTML="-"}}}}function V(){if(arguments.callee.done){return }arguments.callee.done=true;if(!window.storage){storage.onLoad(w)}else{G(window,"load",w)}}return{init:V,setQty:r,addToBasket:m,updatePrice:M,updatePriceDistincts:P,resetRepo:O,resetCustData:y,stepAffChoosing:b,stepOrder:a,stepDataInput:F,stepConfirmation:q,processAffChoosing:x,processDataInput:AB,toggleShipBlock:K,getLngLtd:o,getPriceBatch:AE,showPriceInTitle:e,showPriceWithCart:Z,toggleIndicator:n,filterProductSummary:u}}();function webmaShopModuleUnload(){webmaShopModule=null;Functional=null}if(document.addEventListener){document.addEventListener("DOMContentLoaded",webmaShopModule.init,false);document.addEventListener("unload",webmaShopModuleUnload,false);/*@cc_on @*//*@if (@_win32)
  document.write('<script defer src="/images/shop/ie_onload.js"><'+'/script>');
  /*@end @*/}window.onload=webmaShopModule.init;window.onunload=webmaShopModuleUnload