// Mondo Shop 2 2.6.0.5 200406201132
var cc,varart,cv,crossRef,cselAttr,loadNavData=false,cpac;var catProps=new Array('catNo','parentCat','artCount','description','hint','hasData','hasSubCats','linkDesign','alTemplateFileName','catTemplateFileName','hideInNavigation','shortText','longText','link','artTemplateFileName','maxCountPerSeg','thumbWidth','thumbHeight');var imgProps=new Array('name','fileName','width','height','thumbFileName','thumbWidth','thumbHeight','hint','MC','cssStyle','thumbCssStyle');var artDefProps=new Array('articleNo','available','missingMessage','templateFileName','dataFileName','isInSearch','isInCrawlerData');var variantProps=new Array('mask','variantNo','available','dispNo','description','infoURL','shortText','longText','hint','quantityUnit','lotSize','minQuantity','weight','stock','fixedArtDisc','discClass','staggerClass','noDeliveryCost','doNotCalcDeliveryCost','stockMinVal');var cRefProps=new Array('catNo','artNo','text');var attValProps=new Array('value','no');var attDefProps=new Array('description','type','defaultValue','caption','editWidth','editHeight','required','no');
var linkProps=new Array('name','text','type','title','URL','target','design');function ObjPrs(obj,offset,params,map){var lj=1;var mask=params[0];for(var i=offset;i<map.length;i++){if(mask&(1<<(i-offset))){obj[map[i]]=params[lj];lj++;}if(lj>=params.length)break;}return obj;}function SObjPrs(obj,params,map){var li=0;for(var i=0;i<map.length;i++){if(i>=params.length)break;obj[map[i]]=params[i];}return obj;}function sai(im){var w=0,h=0;w=im.width;h=im.height;var aArt=shop.config.readBool('ArtImagesActive');if(aArt){var wArt=shop.config.readInt('ArtImagesWidth');var hArt=shop.config.readInt('ArtImagesHeight');var fact=0;if(w>h)fact=wArt/w;else fact=hArt/h;im.width=Math.ceil(fact*w);im.height=Math.ceil(fact*h);}var twidth=0,theight=0;if(im.thumbWidth>0){w=im.thumbWidth;h=im.thumbHeight;}else{w=im.width;h=im.height;}if(shop.config.readBool('ArtListImagesActive')){twidth=shop.config.readInt('ArtListImagesWidth');theight=shop.config.readInt('ArtListImagesHeight');}if(cc.thumbWidth>0){
twidth=cc.thumbWidth;theight=cc.thumbHeight;}if(twidth>0){if(w>h)fact=twidth/w;else fact=theight/h;im.thumbWidth=Math.ceil(fact*w);im.thumbHeight=Math.ceil(fact*h);}return im;}function sci(im){if(shop.config.readBool('CatImagesActive')){var wCat=shop.config.readInt('CatImagesWidth');var hCat=shop.config.readInt('CatImagesHeight');var fact=0;var w=im.width,h=im.height;if(w>h)fact=wCat/w;else fact=hCat/h;im.width=fact*w;im.height=fact*h;var twidth=0,theight=0;if(im.thumbWidth>0){w=im.thumbWidth;h=im.thumbHeight;}else{w=im.width;h=im.height;}if(shop.config.readBool('ArtListImagesActive')){twidth=shop.config.readInt('ArtListImagesWidth');theight=shop.config.readInt('ArtListImagesHeight');}if(twidth>0){if(w>h)fact=twidth/w;else fact=theight/h;im.thumbWidth=Math.ceil(fact*w);im.thumbHeight=Math.ceil(fact*h);}}return im;}function q(){cc=shop.catList.getCat(q.arguments[1]);ObjPrs(cc,0,q.arguments,catProps);cc.navLoaded=true;}function v(){if(!cc.subsLoaded){for(var i=0;i<v.arguments.length;i++){cc.addSubCat(v.arguments[i]);}
cc.subsLoaded=true;}}function w(){if(!cc.otherLoaded){sci(ObjPrs(cc.addCatImage(),0,w.arguments,imgProps));}}function z(){if(!cc.otherLoader){ObjPrs(cc,11,z.arguments,catProps);cc.otherLoaded=true;}}function A(){if(!cc.entriesLoaded){art=shop.oF.c('Article(0)');art.def=shop.oF.c('ArticleDef()');ObjPrs(art.def,0,A.arguments,artDefProps);cc.add(art);shop.registerObject('CAT'+cc.catNo+'ART'+art.def.articleNo,art);art.def.catalog=cc;cv=shop.oF.c('ArticleVariant()');cv.priceList=shop.oF.c('PriceList()');art.def.defaultValues=cv;art.currentVariant=cv;art.def.variants[0]=cv;}}function G(){if(!cc.entriesLoaded){ObjPrs(art.def.defaultValues,0,G.arguments,variantProps);}}function H(){if(!cc.entriesLoaded){if(!cv.imageList)cv.imageList=shop.oF.c('ImageList()');cv.imageList.addImg(sai(ObjPrs(shop.oF.c('_Image()'),0,H.arguments,imgProps)));}}function I(){if(!cc.entriesLoaded){if(!art.def.crossRefs)art.def.crossRefs=shop.oF.c('CrossRefList()');crossRef=shop.oF.c('CrossRef()');art.def.crossRefs.add(ObjPrs(crossRef,0,I.arguments,cRefProps));
}}function J(){if(!cc.entriesLoaded){crossRef.img=sai(ObjPrs(shop.oF.c('_Image()'),0,J.arguments,imgProps));}}function P(){if(!cc.entriesLoaded){if(!cv.outAttributes)cv.outAttributes=shop.oF.c('AttributeValueList()');cv.outAttributes.add(SObjPrs(shop.oF.c('AttributeValue()'),P.arguments,attValProps));}}function Q(){if(!cc.entriesLoaded){if(!art.def.inAttributeDefs)art.def.inAttributeDefs=shop.oF.c('AttributeDefList()');art.def.inAttributeDefs.add(ObjPrs(shop.oF.c('AttributeDef()'),0,Q.arguments,attDefProps));art.inAttributes.addID(shop.oF.c('AttributeValue()'));}}function U(){if(!cc.entriesLoaded){cselAttr=shop.oF.c('SelAttr()');cselAttr.text=U.arguments[0];cselAttr.caption=U.arguments[1];art.def.selAttrs.add(cselAttr);art.currentCombi[art.currentCombi.length]=0;}}function W(){if(!cc.entriesLoaded){for(var i=0;i<W.arguments.length;i++){var value=shop.oF.c('SelAttrValue()');value.text=W.arguments[i];cselAttr.add(value);}}}function X(){if(!cc.entriesLoaded){for(var i=0;i<X.arguments.length;i++)
art.def.combiMap[art.def.combiMap.length]=X.arguments[i];}}function Y(){if(!cc.entriesLoaded){if(!cv.priceList)cv.priceList=shop.oF.c('PriceList()');cv.priceList.VATType=Y.arguments[0];for(var i=1;i<Y.arguments.length;i+=2){cv.priceList.add(Y.arguments[i],Y.arguments[i+1]);}}}function Z(){if(!cc.entriesLoaded){for(var i=0;i<Z.arguments.length;i++)art.currentCombi[i]=Z.arguments[i];art.def.stdVariant=art.calcCombiIndex();art.currentVariant=art.def.variants[art.def.combiMap[art.calcCombiIndex()]];}}function a(){if(!cc.entriesLoaded){cv=shop.oF.c('ArticleVariant()');ObjPrs(cv,0,a.arguments,variantProps);art.def.variants[cv.variantNo]=cv;}}function L(){var a=shop.links.getByName(L.arguments[0]);if(!a){a=SObjPrs(shop.oF.c('Link()'),L.arguments,linkProps);if(a.design)a.design=shop.linkDesigns.getByName(a.design);shop.links.add(a);}if(a.type==10)loadNavData=true;}function ct(n){shop.config.writeBool(n,true);}function cf(n,v){shop.config.writeFloat(n,v);}function ci(n,v){shop.config.writeInt(n,v);
}function cs(n,v){shop.config.writeString(n,v);}function cb(a,b,c,d){shop.frameSetup.addStartPage(a,b,c,d);}function cu(a,b,c){shop.frameSetup.addFunction(a,b,c);}function O(n,c){shop.colors.add(n,c);}function T(n,c){var a=new Function('var o="";function output(s){o+=s};'+c+'return o;');shop.shopTexts.add(n,a);}function F(n,c,f,s,t,u){var a=shop.fonts.add(n);a.name=n;if(c)a.color=shop.colors.getByName(c);a.face=f;a.size=s;a.style=t;a.CssSizeUnit=u;}function D(n,f,w,h,tf,tw,th,t,m,s,ts){if(shop.designImages.getByName(n))return;var a=shop.oF.c('_Image()');shop.designImages.add(n,a);a.fileName=f;a.width=w;a.height=h;a.thumbFileName=tf;a.thumbWidth=tw;a.thumbHeight=th;a.hint=t;a.MC=m;a.cssStyle=s;a.thumbCssStyle=ts;}function S(n,f,w,h,tf,tw,th,t,m,s,ts){if(shop.shopImages.getByName(n))return;var a=shop.oF.c('_Image()');shop.shopImages.add(n,a);a.fileName=f;a.width=w;a.height=h;a.thumbFileName=tf;a.thumbWidth=tw;a.thumbHeight=th;a.hint=t;a.MC=m;a.cssStyle=s;a.thumbCssStyle=ts;}function C(n){
var a=shop.oF.c('LinkList()');shop.linkLists.add(n,a);for(var i=1;i<C.arguments.length;i++){a.add(shop.links.getByName(C.arguments[i]));}}function R(n,d){if(shop.linkTrees.getByName(n))return null;var a=shop.oF.c('TreeNode()');a.init();shop.linkTrees.add(n,a);if(d)a.treeDesign=shop.treeDesigns.getByName(d);return a;}function B(n,p){var a=shop.oF.c('TreeNode()');a.parentNode=p;a.init();a.nodeLink=shop.links.getByName(n);return a;}function E(n,u,c,r,w,h,i1,i2,i3,i4,i5,i6,i7,i8){var a=shop.oF.c('TreeDesign()');shop.treeDesigns.add(n,a);a.useNavIcons=u;a.closeOther=c;a.navIconWidth=w;a.navIconHeight=h;a.autoReload=r;if(i1)a.navIconE="Media/Design/"+i1;if(i2)a.navIconLN="Media/Design/"+i2;if(i3)a.navIconLS="Media/Design/"+i3;if(i4)a.navIconLW="Media/Design/"+i4;if(i5)a.navIconN="Media/Design/"+i5;if(i6)a.navIconS="Media/Design/"+i6;if(i7)a.navIconW="Media/Design/"+i7;if(i8)a.navIconVL="Media/Design/"+i8;}var ldg=null;function K(n){var a=shop.oF.c('LinkDesign()');shop.linkDesigns.add(n,a);return a;
}function V(t,l,i,m,b,f,bp,ip,iw,ih,io,mp,mw,mh,mo,s,c){var im;var a=shop.oF.c('LinkDesignElement()');a.hasText=t;a.hasLabImage=l;a.hasIcon=i;a.hasImage=m;a.state=s;a.cssClass=c;if(b)a.textBgColor=shop.colors.getByName(b);if(f)a.textFont=shop.fonts.getByName(f);if(bp)a.textBgImage=bp;if(i){im=shop.oF.c('LinkImage()');a.icon=im;im.src=ip;im.width=iw;im.height=ih;if(io)im.srcOn=io;}if(m){im=shop.oF.c('LinkImage()');a.image=im;im.src=mp;im.width=mw;im.height=mh;if(mo)im.srcOn=mo;}return a;}var frm=null;var ff=null;function M(n){var a=new Form();shop.forms.add(n,a);return a;}function N(n,t,c,In,v,rx,w,h,ml,req,vis,ch,tt){var a=frm.addField(n,t);a.caption=c;a.inputName=In;a.value=v;a.regExp=rx;a.width=w;a.height=h;a.maxLength=ml;a.required=req;a.visible=vis;a.check=ch;a.targetType=tt;return a;}function la(i,d,im,iw,ih){var a=shop.oF.c('Language()');a.description=d;if(im!=""){var b=shop.oF.c('_Image()');a.image=b;b.fileName='Media/Shop/'+im;b.width=iw;b.height=ih;}shop.languages.add(i,a);
}function CC(id,iso2,iso3,desc){var obj=new Country();obj.id=id;obj.iso2=iso2;obj.iso3=iso3;obj.description=desc;shop.countries.add(obj);}function ZZ(){var obj=new Zone();obj.id=ZZ.arguments[0];obj.paymentMethod=ZZ.arguments[1];obj.deliveryMethod=ZZ.arguments[2];var pos=3;while((pos<ZZ.arguments.length)&&(arguments[pos]!=null)){obj.countries[obj.countries.length]=ZZ.arguments[pos];pos++;}pos++;while((pos<ZZ.arguments.length)&&(arguments[pos]!=null)){obj.paymentMethods[obj.paymentMethods.length]=ZZ.arguments[pos];pos++;}pos++;while((pos<ZZ.arguments.length)&&(arguments[pos]!=null)){obj.deliveryMethods[obj.deliveryMethods.length]=ZZ.arguments[pos];pos++;}shop.zones.add(obj);}function DMS(){for(var i=1;i<DMS.arguments.length;i++)DMS.arguments[0].staggerPrices[i-1]=DMS.arguments[i];}function CPAC(){cpac=new CPAConfig();shop.cpaConfig[CPAC.arguments[0]]=cpac;cpac.dataType=CPAC.arguments[1];cpac.defaultValue=CPAC.arguments[2];}function CPAV(){for(var i=0;i<CPAV.arguments.length;i++)cpac.values[i]=CPAV.arguments[i];
}
jsl=true;

