Ext.ns('hecoLibrary');hecoLibrary.baseUri='http://www.heco.de/';var lastActiveImage='applianceImages0Big';var linkedImageBigIsVisibleFlag=0;var errorFormIsActive=false;var stopProgressBar=0;var timeoutArray=new Array();Ext.ux.leanGroupingView=Ext.extend(Ext.grid.GroupingView,{hideHeader:true,initComponent:function(){Ext.ux.leanGroupingView.superclass.initComponent.apply(this,arguments);},initTemplates:function(){Ext.grid.GroupingView.superclass.initTemplates.call(this);this.state={};var sm=this.grid.getSelectionModel();sm.on(sm.selectRow?'beforerowselect':'beforecellselect',this.onBeforeRowSelect,this);if(!this.startGroup){if(!this.hideHeader){this.startGroup=new Ext.XTemplate('<div id="{groupId}" class="x-grid-group {cls}">','<div id="{groupId}-hd" class="x-grid-group-hd" style="{style}"><div class="x-grid-group-title">',this.groupTextTpl,'</div></div>','<div id="{groupId}-bd" class="x-grid-group-body">');}else{this.startGroup=new Ext.XTemplate('<div id="{groupId}" class="x-grid-group {cls}">','<tpl if="values.rs.length &gt; 1">','<div id="{groupId}-hd" class="x-grid-group-hd" style="{style}"></div>','<div id="{groupId}-bd" class="x-grid-group-body">','</tpl>');}}
this.startGroup.compile();this.endGroup='</div></div>';},interceptMouse:Ext.emptyFn});hecoLibrary.et=function(){return{sset:function(tlink,purpose){var inputBox=Ext.get('searchInputBox');var svalue;if(inputBox){svalue=inputBox.dom.value;}
Ext.Ajax.request({url:hecoLibrary.baseUri+'index.php?eID=hecoLibraryAjax',params:{functionName:'sset',tlink:tlink,purpose:purpose,value:svalue,l:0},method:'POST',success:function(){}});}}}();hecoLibrary.basicDataGallery=function(){var activeArrow;var thumbnailsArray;var menu;var zoomIn;var gimageWithoutZoomInMode;var gconnectedTechDescImage;var descriptionOpenedByThumbnailFlag;return{registerGallery:function(connectedTechDescImage,imageWithoutZoomInMode){gimageWithoutZoomInMode=imageWithoutZoomInMode;gconnectedTechDescImage=connectedTechDescImage;menu=Ext.get('imageMenu');zoomIn=Ext.get('zoomIn');activeArrow='applianceImages0Arrow';thumbnailsArray=Ext.query("*[class=applicationImagesThumbnails]");for(i=0;i<thumbnailsArray.length;i++){var id=String(thumbnailsArray[i].id);this.registerThumbnails(id);}},registerThumbnails:function(id){var navigationGallery=function(evt,t,o,gconnectedTechDescImage,imageWithoutZoomInMode){if((id=='applianceImages0'||id==gimageWithoutZoomInMode)&&zoomIn.getStyle("display")!='none'){hecoLibrary.Slide.simplySlideElement('zoomIn','toggle');}
else if((id!='applianceImages0'&&id!=gimageWithoutZoomInMode)&&zoomIn.getStyle("display")=='none'){hecoLibrary.Slide.simplySlideElement('zoomIn','toggle');zoomIn.alignTo(menu,'tl-tl?');}
var visibleImage=Ext.query("img{display!=none}","imageMenu");hecoLibrary.Slide.simplySlideElement(visibleImage[0].id,'toggle');if(Ext.get(id+'Big')){lastActiveImage=id+'Big';hecoLibrary.Slide.simplySlideElement(id+'Big','toggle');}
var activeArrowUrl=Ext.get(activeArrow).dom.src;var newActiveArrow=id+'Arrow';Ext.get(activeArrow).dom.src=Ext.get(newActiveArrow).dom.src;Ext.get(newActiveArrow).dom.src=activeArrowUrl;activeArrow=newActiveArrow;if(Ext.get('technicalWrapper')){if(id==gconnectedTechDescImage&&Ext.get('technicalWrapper').getStyle("display")=='none'){hecoLibrary.Slide.simplySlideElement('technicalWrapper','toggle');descriptionOpenedByThumbnailFlag=1;}else if(id!=gconnectedTechDescImage&&Ext.get('technicalWrapper').getStyle("display")!='none'&&descriptionOpenedByThumbnailFlag==1){hecoLibrary.Slide.simplySlideElement('technicalWrapper','toggle');descriptionOpenedByThumbnailFlag=0;}}}
Ext.get(id).on('click',navigationGallery.createDelegate(this,[gconnectedTechDescImage,'test'],true));}}}();hecoLibrary.productImageGalleryZoom=function(){var zoomInButton;var zoomOutButton;var menu;return{registerButtonForZoomInAndOut:function(zoomInButtonId,zoomOutButtonId){if(zoomInButtonId!=null&&zoomOutButtonId!=null){menu=Ext.get('imageMenu');zoomInButton=Ext.get(zoomInButtonId);zoomOutButton=Ext.get(zoomOutButtonId);if(Ext.get('technicalHeader')){Ext.get('technicalHeader').on('click',this.resizeCenterImage.createDelegate(this,['technical',zoomInButtonId,zoomOutButtonId],true));}
zoomInButton.on('click',this.resizeCenterImage.createDelegate(this,['zoomIn',zoomInButtonId,zoomOutButtonId],true));zoomOutButton.on('click',this.resizeCenterImage.createDelegate(this,['zoomOut',zoomInButtonId,zoomOutButtonId],true));}},resizeCenterImage:function(e,t,o,mode,zoomInButtonId,zoomOutButtonId){var linkedImage;var linkedImageId=Ext.get('technicalDescriptionLinkedImage');if(linkedImageId!=null&&linkedImageId.dom.value!=""){linkedImage=Ext.get(linkedImageId.dom.value+'Big');}
if(mode=='technical'){if(Ext.get('technicalHeader')&&Ext.get('technicalWrapper').getStyle("display")!='none'){finalMode='zoomIn';}else if(Ext.get('technicalHeader')&&Ext.get('technicalWrapper').getStyle("display")=='none'){if(linkedImage&&linkedImage.getStyle('width')=='348px'){finalMode='';}else{finalMode='zoomOut';}}}else{finalMode=mode;}
if(finalMode=='zoomIn'){if(zoomInButton.getStyle("display")!='none'){hecoLibrary.Slide.simplySlideElement(zoomInButtonId,'toggle');}
if(zoomOutButton.getStyle("display")=='none'){hecoLibrary.Slide.simplySlideElement(zoomOutButtonId,'toggle');}
var thumbnailsDiv=Ext.get('imageMenuThumbnails');if(thumbnailsDiv&&thumbnailsDiv.getStyle("display")!='none'){hecoLibrary.Slide.simplySlideElement('imageMenuThumbnails','toggle');}
Ext.get('imageMenu').applyStyles({width:"500px",height:'245px'});var visibleImage=Ext.get('imageMenu').select("img{display!=none}").applyStyles({width:'500px',height:'230px'});zoomOutButton.alignTo(menu,'tl-tl?');}else if(finalMode=='zoomOut'){hecoLibrary.Slide.simplySlideElement(zoomInButtonId,'toggle');hecoLibrary.Slide.simplySlideElement(zoomOutButtonId,'toggle');var thumbnailsDiv=Ext.get('imageMenuThumbnails');if(thumbnailsDiv&&thumbnailsDiv.getStyle("display")=='none'){hecoLibrary.Slide.simplySlideElement('imageMenuThumbnails','toggle');}
Ext.get('imageMenu').applyStyles({width:"500px",height:'180px'});if(mode!='technical'){var visibleImage=Ext.get('imageMenu').select("img{display!=none}").applyStyles({width:'348px',height:'160px'});}else{if(linkedImage){linkedImage.applyStyles({width:'348px',height:'160px'})}}
zoomInButton.alignTo(menu,'tl-tl?');}}}}();hecoLibrary.navigation=function(){var idArray;var activeMenu;return{register:function(variable){this.idArray=variable;for(var i=0;i<this.idArray.length;i++){this.createMenu(String(this.idArray[i]));}},createMenu:function(name){var el=Ext.get('nav'+name);var tid=0,menu,doc=Ext.getDoc();var li=Ext.get('nav'+name);var a=li.child("a");var span=a.child("span");var imgCopy;var imgNormal;var hideMenu=function(){if(menu){menu.hide();el.setStyle('text-decoration',"");doc.un('mouseover',handleOver);doc.un('mousedown',handleDown);imgNormal=Ext.get("ak_img_"+name);}}
var handleOver=function(e,t){if(t!=el.dom&&t!=menu.dom&&!e.within(el)&&!e.within(menu)){hideMenu();}}
var handleDown=function(e){if(!e.within(menu)){hideMenu();}}
var showMenu=function(){clearTimeout(tid);tid=0;var boxButton=el.getBox();if(!menu){imgNormal=Ext.get("ak_img_"+name);if(imgNormal!=null){menu=new Ext.Layer({hideMode:'display'},'submenu_akid'+name);}else{menu=new Ext.Layer({shadow:'sides',hideMode:'display'},'submenu_akid'+name);}
menu.applyStyles("width:134px");if(imgNormal!=null)
{var imgNormalBox=imgNormal.getBox();var boxheight=imgNormalBox.y-el.getBox().y+imgNormalBox.height;menu.applyStyles("height:"+boxheight+"px");}
else
{if(Ext.get("ak_img_inside"+name)){Ext.get("ak_img_inside"+name).applyStyles("display:none");}}
var imgBig=Ext.get("ak_img_big"+name);if(imgBig){var aTag=Ext.get('nav'+name).query('a');imgCopyLink=Ext.DomHelper.insertAfter("table"+name,{tag:'a',id:'ak_img_a'+name,href:aTag[0].href,style:'width:'+(imgBig.width)+'px'},true);imgCopy=Ext.DomHelper.insertFirst("ak_img_a"+name,{tag:'img',src:imgBig.dom.src,style:'width:'+(imgBig.width)+'px'},true);}}
menu.hideMenu=hideMenu;menu.el=el;if(this.activeMenu&&menu!=this.activeMenu){this.activeMenu.hideMenu();}
this.activeMenu=menu;if(!menu.isVisible()){var imgNormal=Ext.get("ak_img_"+name);menu.show();menu.alignTo(el,'tl-tl?');menu.sync;doc.on('mouseover',handleOver,null,{buffer:17});doc.on('mousedown',handleDown);if(imgCopy){imgCopy.applyStyles({position:"absolute"});imgCopy.applyStyles({width:"170px"});imgCopy.alignTo(menu,'b-b?');imgCopy.fadeIn({endOpacity:0,easing:'easeIn',duration:.4});}}}
el.on('mouseover',function(e){if(!tid){tid=showMenu.defer(17);}});el.on('mouseout',function(e){if(tid&&!e.within(el,true)){clearTimeout(tid);tid=0;}});if(Ext.get("ak_img_"+name)){Ext.get("ak_img_"+name).on('mouseover',function(e){if(!tid){tid=showMenu.defer(17);}})
Ext.get("ak_img_"+name).on('mouseout',function(e){})}
if(Ext.get("ak_child_cat_"+name)){Ext.get("ak_child_cat_"+name).on('mouseover',function(e){if(!tid){tid=showMenu.defer(17);}})
Ext.get("ak_child_cat_"+name).on('mouseout',function(e){})}
if(Ext.get("submenu_akid"+name)){Ext.get("submenu_akid"+name).on('mouseover',function(e){if(!tid){tid=showMenu.defer(17);}})}},registerByAjax:function(languageId){var myObject;Ext.Ajax.request({url:hecoLibrary.baseUri+'index.php?eID=hecoLibraryAjax',params:{functionName:'ajaxGetArticleClassIds',l:languageId},method:'GET',success:function(test){myObject=eval('('+test.responseText+')');for(var key in myObject){if(Ext.get(String(myObject[key])).dom.className=="current"){currentId=myObject[key];}
createMenu(String(myObject[key]));registerSearchLi(String(myObject[key]));}}});}}}();hecoLibrary.Slide=function(){return{registerButtonForSlide:function(source,event,targetElement,direction,hideSourceAtClickEnabled,hideVisibleTargetNeighboursEnabled){if(!Ext.isArray(targetElement)){if(Ext.get(source)&&source!=null&&event!=null&&Ext.get(targetElement)&&targetElement!=null&&direction!=null){if(hideSourceAtClickEnabled!=true){Ext.get(source).on(event,this.slideText.createDelegate(this,[targetElement,direction],true));}else{var slideBoth=function(e,t,o){this.slideText(e,t,o,source,direction);this.slideText(e,t,o,targetElement,direction);};Ext.get(source).on(event,slideBoth.createDelegate(this));}}}else{if(!Ext.isEmpty(targetElement)){for(i=0;i<targetElement.length;i++){if(Ext.get(source)&&source!=null&&event!=null&&Ext.get(targetElement[i])&&targetElement[i]!=null&&direction!=null){if(hideSourceAtClickEnabled!=true){Ext.get(source).on(event,this.slideText.createDelegate(this,[targetElement[i],direction],true));}else{var slideBoth=function(e,t,o){this.slideText(e,t,o,source,direction);this.slideText(e,t,o,targetElement[i],direction);};Ext.get(source).on(event,slideBoth.createDelegate(this));}}}}};},simplySlideElement:function(targetElement,direction){var e,t,o;if(!Ext.isArray(targetElement)){if(Ext.get(targetElement)&&targetElement!=null&&direction!=null){this.slideText(e,t,o,targetElement,direction);}}else{if(!Ext.isEmpty(targetElement)){for(i=0;i<targetElement.length;i++){this.slideText(e,t,o,targetElement[i],direction);}}}},slideText:function(e,t,o,element,direction){var slideMe=Ext.get(element);switch(direction){case'up':if(slideMe.isVisible()){slideMe.slideOut('t',{easing:'easeOut',duration:.5,remove:false,useDisplay:true});}
break;case'down':if(!slideMe.isVisible()){slideMe.slideIn('t',{easing:'easeOut',duration:.5});}
break;default:slideMe.enableDisplayMode().toggle();break}}}}();hecoLibrary.contactMap=function(){var imageSrc="fileadmin/images/kontakt/map/";return{registerButtonForToolTip:function(targetIdArray,targetTitleArray,targetImageArray){if(Ext.isArray(targetIdArray)&&Ext.isArray(targetTitleArray)&&Ext.isArray(targetImageArray)){if(targetIdArray.length==targetTitleArray.length&&targetTitleArray.length==targetImageArray.length){for(var i=0;targetIdArray.length>i;i++){if(Ext.get(targetIdArray[i])){new Ext.ToolTip({target:targetIdArray[i],title:targetTitleArray[i],html:'<img src="'+imageSrc+targetImageArray[i]+'"/>',trackMouse:true,hideDelay:1,showDelay:1,width:150,height:60});function highlightLink(i){Ext.get(targetIdArray[i]).on('mouseover',function(e){Ext.select('li:contains('+targetTitleArray[i]+')').highlight("005d9d",{attr:'background-color',duration:1});Ext.select('a:contains('+targetTitleArray[i]+')').highlight("eeefef",{attr:'color',duration:1});});}
highlightLink(i);}}}}}}}();hecoLibrary.PDFonTheFlyIsLoadingFlag;hecoLibrary.PDFonTheFly=function(){return{request:function(vSelectedData,l,catId){if(Ext.get('downloadsHeader')){Ext.get('downloadsHeader').on('click',function(){if(hecoLibrary.PDFonTheFlyIsLoadingFlag!=1){hecoLibrary.PDFonTheFlyIsLoadingFlag=1;if(Ext.get('avgPDFLoadingTime')){var pbar4=new Ext.ProgressBar({text:'',id:'pbar4',textEl:'p4text',cls:'custom',width:300,renderTo:'p4'});var Runner=function(){var f=function(v,pbar,btn,count,cb){return function(){if(v>count){if(btn){btn.dom.disabled=false;}
cb();}else{if(pbar.id=='pbar4'){var i=v/count;if(stopProgressBar!=1){if(stopProgressBar!=1){pbar.updateProgress(i,Math.round(100*i)+'% completed...');}}}else{pbar.updateProgress(v/count,'Loading item '+v+' of '+count+'...');}}};};return{run:function(pbar,btn,count,cb){if(btn){btn.dom.disabled=true;}
var ms=(1000*count)/count;for(var i=1;i<(count+2);i++){timeoutArray[i]=setTimeout(f(i,pbar,btn,count,cb),i*ms);}}}}();Runner.run(pbar4,'',parseInt(Ext.get('avgPDFLoadingTime').dom.innerHTML),function(){hecoLibrary.Slide.simplySlideElement('progressBar','toggle');});}
var ajaxRequest=Ext.Ajax.request({url:hecoLibrary.baseUri+'index.php?eID=hecoLibraryAjax',params:{functionName:'WScreatePDFonTheFly',l:l,catId:catId,vSelectedData:vSelectedData},method:'GET',success:function(val){stopProgressBar=1;for(var j=timeoutArray.length-1;j>-1;j--){clearTimeout(timeoutArray[j]);}
hecoLibrary.Slide.simplySlideElement('progressBar','toggle');hecoLibrary.Slide.simplySlideElement('progressBarWaitingMessage','toggle');response=Ext.decode(val.responseText);Ext.fly('generatePDFonTheFlyWaiting').update('');Ext.DomHelper.append('PDF',{tag:'img',type:'test',cls:'pdfButton',src:'./fileadmin/templates/yaml_31_090120/examples/heco/css/heco/images/buttons/button-pdf_20x20.gif'});Ext.DomHelper.append('PDF',{tag:'a',html:response.title,href:response.url,target:'_blank'});if(vSelectedData==3){Ext.DomHelper.append('PDF',{tag:'br'});Ext.DomHelper.append('PDF',{tag:'img',cls:'pdfButton',src:'./fileadmin/templates/yaml_31_090120/examples/heco/css/heco/images/buttons/button-pdf_20x20.gif'});Ext.DomHelper.append('PDF',{tag:'a',html:response.titleTechnical,href:response.urlTechnical,target:'_blank'});}}});}
if(!errorFormIsActive){errorFormIsActive=true;var errorForm=new Ext.FormPanel({buttonalign:'left',width:500,url:hecoLibrary.baseUri+'index.php?eID=hecoLibraryAjax&functionName=receiveErrorByUser&catId='+catId+'&type=errorPDF&vSelectedData='+vSelectedData,items:[{xtype:'label',id:'progressBarWaitingMessage',forceLayout:true,name:'pdfDescription',html:'<h2>Bitte haben Sie einen Augenblick Geduld</h2>Die folgenden PDFs werden mit aktuellen Daten aus unserem Warenwirtschaftssystem erstellt. Dies kann einige Sekunden in Anspruch nehmen.'},{xtype:'label',forceLayout:true,name:'pdf',html:'<div id="PDF" style="float:left;width:500px;height:auto;padding-bottom:3px;"></div>'}]});errorForm.render('PDFonTheflyForm');}});}}}}();Ext.onReady(function(){if(Ext.get("ShowForcedLogout")){alert("Sie wurden durch einen anderen Computer mit den gleichen Anmeldedaten ausgeloggt.")
if(Ext.get('myHecoIFrame')){hecoLibrary.Slide.simplySlideElement('myHecoIFrame','toggle');}};hecoLibrary.Slide.registerButtonForSlide('downloadsHeader','click','downloadsWrapper','toggle');var technicalHeader=Ext.get('technicalHeader');if(technicalHeader!=null){technicalHeader.on('click',function(e){var linkedImage=Ext.get('technicalDescriptionLinkedImage');if(linkedImage!=null&&linkedImage.dom.value!=""){var linkedImageBig=Ext.get(linkedImage.dom.value+'Big');if(linkedImageBig&&linkedImageBig.getStyle("display")!='none'){linkedImageBigIsVisibleFlag=1;}else{linkedImageBigIsVisibleFlag=0;}
var visibleImage=Ext.query("img{display!=none}","imageMenu");if(visibleImage[0].id!=null&&visibleImage[0].id!=linkedImage.dom.value+'Big'){hecoLibrary.Slide.simplySlideElement(new Array(visibleImage[0].id,'technicalWrapper',linkedImage.dom.value+'Big'),'toggle');}else{hecoLibrary.Slide.simplySlideElement(new Array('technicalWrapper',linkedImage.dom.value+'Big',lastActiveImage),'toggle');};}else{hecoLibrary.Slide.simplySlideElement('technicalWrapper','toggle');};});};hecoLibrary.Slide.registerButtonForSlide('moreArticleGroupLevelDescription','click','ArticleGroupLevelInvisibleDescription','toggle',true);if(Ext.get('ArticleTableHTML')){Ext.get('ArticleTableHTML').applyStyles({display:"none"});}
var myObject;registerSearchLi('0');var activeSearchMenu;function createSearchMenu(name,alignTo,width,alignPos,mode){var mode=mode;var width=width;var alignPos=alignPos;var alignToEl=Ext.get(alignTo);var el=Ext.get(name);var tid=0,menu,doc=Ext.getDoc();var handleSearchOver=function(e,t){if(t!=el.dom&&t!=menu.dom&&!e.within(el)&&!e.within(menu)){}};var hideSearchMenu=function(){if(menu){menu.hide();el.setStyle('text-decoration','');doc.un('mouseover',handleSearchOver);doc.un('mousedown',handleSearchDown);}}
var handleSearchDown=function(e){if(!e.within(menu)){hideSearchMenu();}}
var showSearchMenu=function(){clearTimeout(tid);tid=0;if(!menu){menu=new Ext.Layer({hideMode:'display'},'submenu_'+name);menu.applyStyles("width:"+width+"px");if(mode=="keyup"){el.addListener('keyup',searchHandlerKeyUp.createDelegate(this,'submenu_'+name,true));}}
menu.hideSearchMenu=hideSearchMenu;menu.el=el;if(activeSearchMenu&&menu!=activeSearchMenu){activeSearchMenu.hideSearchMenu();}
activeSearchMenu=menu;if(!menu.isVisible()){menu.show();menu.alignTo(alignToEl,alignPos);menu.sync();el.setStyle('text-decoration','underline');doc.on('mouseover',handleSearchOver,null,{buffer:150});doc.on('mousedown',handleSearchDown);}}
el.on(mode,function(e){if(!tid){tid=showSearchMenu.defer(150);}});el.on('mouseout',function(e){if(tid&&!e.within(el,true)){clearTimeout(tid);tid=0;}});}
createSearchMenu('hecoSearch','searchnav','358','tl-bl?','click');createSearchMenu('searchInputBox','searchnav','358','tl-bl?','keyup');function registerSearchLi(name){if(Ext.get("hecoSearchLi"+name)){Ext.get("hecoSearchLi"+name).on('click',function(e){if(Ext.get('hecoSearch')){Ext.get('currentActiveSearchSpan').dom.innerHTML=Ext.get(e.target).dom.innerHTML;activeSearchMenu.hide();}
Ext.get('hiddenSearchValue').dom.value=name;})}}
var searchHandlerKeyUp=function(e,t,o,submenu){var inputBox=Ext.get('searchInputBox');if(inputBox){inputBox.dom.value=t.value;}
var submenuObject=Ext.get(submenu);Ext.Ajax.request({url:hecoLibrary.baseUri+'index.php?eID=hecoLibraryAjax',params:{functionName:'ajaxGetSearchResultsSuggest',l:l,value:t.value},method:'POST',success:function(val){if(val.responseText!=""){if(submenuObject!=null&&submenuObject.getStyle("display")=='none'){submenuObject.applyStyles({display:"block"});submenuObject.dom.innerHTML=val.responseText;}else{submenuObject.dom.innerHTML=val.responseText;}}else{submenuObject.applyStyles({display:"none"});}}})};var searchInputBox=Ext.get('searchInputBox');if(searchInputBox){var searchInputBoxValue=Ext.get('searchInputBoxText').getValue();searchInputBox.on('focus',function(e){var currentSearchInputBoxValue=Ext.get('searchInputBoxText').getValue();if(searchInputBoxValue==searchInputBox.getValue()){searchInputBox.dom.value="";}});searchInputBox.on('blur',function(e){if(searchInputBox.dom.value==""){searchInputBox.dom.value=searchInputBoxValue;}});}
var activeMenu,currentId;var l=Ext.get('languageIdHidden').dom.value;var ldifference=l*100000;var catId=Ext.get('catIdHidden').dom.value;if(Ext.get('ArticleTableGridTechnical')){showProgress('Downloading grid settings...','loadingBox','active');var grid;var store;Ext.Ajax.request({url:hecoLibrary.baseUri+'index.php?eID=hecoLibraryAjax&functionName=GetGridColumPropertiesTechnical&l='+l+'&catId='+catId+'&tableWidth=480',success:function(val){Ext.fly('ArticleTableGridTechnical').update('');response=Ext.decode(val.responseText);store=new Ext.data.GroupingStore({url:hecoLibrary.baseUri+'index.php?eID=hecoLibraryAjax&functionName=WSgetStoreDataTechnical&l='+l+'&catId='+catId,reader:new Ext.data.XmlReader({record:'column',id:'UID'},response.WSgetStoreIndizesTechnical),groupField:'Group',sortInfo:{field:'Sort',direction:"desc"}});store.load({callback:function(success){if(success){var amountOfRows=store.getCount();if(amountOfRows>11){var groupingView=new Ext.ux.leanGroupingView({forceFit:true,groupTextTpl:''});}else{var groupingView=new Ext.ux.leanGroupingView({scrollOffset:2,forceFit:true,groupTextTpl:''});}
showProgress('Downloading grid settings...','loadingBox','inactive');grid=new Ext.grid.GridPanel({renderTo:'ArticleTableGridTechnical',view:groupingView,height:300,width:500,stripeRows:true,store:store,columns:response.WSgetGridColumnPropertiesTechnical})}}});}});};function showProgress(msg,aim,status){var loadingBox=Ext.get(aim);if(status=='active'){if(loadingBox&&loadingBox.getStyle("display")=='none'){hecoLibrary.Slide.simplySlideElement(aim,'toggle');}
Ext.get(aim).alignTo('col1_content','c-c?');Ext.fly(aim).update('<div class="loading-indicator2"></div>');}
else{if(loadingBox&&loadingBox.getStyle("display")!='none'){hecoLibrary.Slide.simplySlideElement(aim,'toggle');Ext.fly(aim).update('');}}}
var idArray=new Array('area75','area81','area84','area78','area72','area68','area215','area76');var titleArray=new Array('Frankfurt','Berlin','Remchingen','Bielefeld','N&uuml;rnberg','Warschau','Br&uuml;nn','Export');var imgArray=new Array('frankfurt-map-rgb.jpg','berlin-map-rgb.jpg','remchingen-map-rgb.jpg','bielefeld-map-rgb.jpg','nuernberg-map-rgb.jpg','warschau-map-rgb.jpg','brnn-map-rgb.jpg','export-map-rgb.jpg');hecoLibrary.contactMap.registerButtonForToolTip(idArray,titleArray,imgArray);var el=Ext.get('lastShownArticlesBox');if(el){el.on('mousedown',function(event,target,options){ET_Event.eventStart('Klick%20auf%20zuletzt%20gesehener%20Artikel',target.href,'click','');},null,{delegate:'a'});}
var el=Ext.get('recommendedArticles');if(el){el.on('mouseover',function(event,target,options){ET_Event.eventStart('Klick%20auf%20Sie%20wollen%20zu',target.href,'click','');},null,{delegate:'a'});}
document.onkeydown=cancelArrowKeys;function cancelArrowKeys(e){try{var e=window.event||e;var key=e.charCode?e.charCode:e.keyCode?e.keyCode:0;if(key==38||key==40){event.returnValue=false;}}
catch(Exception){return false;}}
var searchInputBox=Ext.get('searchInputBox');if(searchInputBox){document.onactivate=searchInputBox.focus();}
Ext.get('searchInputBox').on('keyup',function(){if(Ext.get('searchInputBox').getValue()=='clear'){Ext.Ajax.request({url:hecoLibrary.baseUri+'index.php?eID=hecoLibraryAjax&functionName=clearSession',method:'GET',success:function(val){alert(val.responseText);}});}});});