/* Create file on the fly... */
var Nx=Nx||{};Nx.$=jQuery.noConflict(false);
Nx.Config={dependencyPath:{library:'/js/libraries/dynamic/',plugin:'/js/plugins/dynamic/',util:'/js/utils/dynamic/'}};
(function(){var initializing=false,fnTest=/xyz/.test(function(){xyz;})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(prop){var _super=this.prototype;initializing=true;var prototype=new this();initializing=false;for(var name in prop){prototype[name]=typeof prop[name]=="function"&&typeof _super[name]=="function"&&fnTest.test(prop[name])?(function(name,fn){return function(){var tmp=this._super;this._super=_super[name];var ret=fn.apply(this,arguments);this._super=tmp;return ret;};})(name,prop[name]):prop[name];}
function Class(){if(!initializing&&this.init){this.init.apply(this,arguments);}}
Class.prototype=prototype;Class.constructor=Class;Class.extend=arguments.callee;return Class;};})();
(function($){$.log={toggle:function(){},resize:function(){},clear:function(){},move:function(){},debug:function(){},warn:function(){},info:function(){},error:function(){},time:function(){}};})(Nx.$);
(function($){Nx.Application=Class.extend({init:function($ctx,config){this.config=$.extend(Nx.Config,config);this.$ctx=$ctx||$('body');this.modules=[];this.connectors={};this.wildcardComponents=[];this.sandbox=new Nx.Sandbox(this,this.config);},registerModules:function($ctx){var that=this,modules=[];$ctx=$ctx||this.$ctx;$('.mod:not([data-lazyinit=true]):not(.mod[data-lazyinit=true] .mod)',$ctx).each(function(){var $this=$(this);var classes=$this.attr('class').split(' ');if(classes.length>1){var modName,skins=[],connectors=[];for(var i=0,len=classes.length;i<len;i++){var part=$.trim(classes[i]);if(part.indexOf('mod')===0&&part.length>3){modName=part.substr(3);}
else if(part.indexOf('skin')===0){skins.push(part.substr(4).replace(modName,''));}}
if($this.attr('data-connectors')){connectors=$this.attr('data-connectors').split(',');for(var i=0,len=connectors.length;i<len;i++){connectors[i]=$.trim(connectors[i]);}}
if(modName&&Nx.Module[modName]){modules.push(that.registerModule($this,modName,skins,connectors));}}});return modules;},unregisterModules:function(modules){var connectors=this.connectors,wildcardComponents=this.wildcardComponents;modules=modules||this.modules;if(modules===this.modules){this.wildcardComponents=[];this.connectors=[];this.modules=[];}
else{for(var i=0,len=modules.length;i<len;i++){var module=modules[i];var index;for(var connId in connectors){connectors[connId].unregisterComponent(module);}
index=$.inArray(module,wildcardComponents);delete wildcardComponents[index];index=$.inArray(module,this.modules);delete this.modules[index];}}},start:function(modules){var wildcardComponents=this.wildcardComponents,connectors=this.connectors;modules=modules||this.modules;for(var i=0,len=modules.length;i<len;i++){modules[i].start();}
for(var i=0,len=wildcardComponents.length;i<len;i++){var component=wildcardComponents[i];if($.inArray(component,modules)>-1){for(var connectorId in connectors){component.attachConnector(connectors[connectorId]);connectors[connectorId].registerComponent(component,'*');}}}},stop:function(modules){modules=modules||this.modules;for(var i=0,len=modules.length;i<len;i++){modules[i].stop();}},registerModule:function($node,modName,skins,connectors){var modules=this.modules;modName=modName||null;skins=skins||[];connectors=connectors||[];if(modName&&Nx.Module[modName]){var modId=modules.length;$node.data('id',modId);$.log.debug('instantiate Nx.Module.'+modName);modules[modId]=new Nx.Module[modName]($node,this.sandbox,modId);for(var i=0,len=skins.length;i<len;i++){var skinName=skins[i];if(Nx.Module[modName][skinName]){$.log.debug('decorate it with the skin Nx.Module.'+modName+'.'+skinName);modules[modId]=modules[modId].getDecoratedModule(modName,skinName);}}
for(var i=0,len=connectors.length;i<len;i++){this.registerConnection(connectors[i],modules[modId]);}
return modules[modId];}
else{$.log.info('the module Nx.Module.'+modName+' does not exist');return null;}},registerConnection:function(connector,component){var connectorType=connector.replace(/[0-9]+[a-zA-Z]*$/,''),connectorId=connector.replace(/[a-zA-Z]*$/,'').replace(/^[a-zA-Z]*/,''),connectorRole=connector.replace(/^[a-zA-Z]*[0-9]*/,'');if(connectorId==='*'&&connectorRole==='*'){this.wildcardComponents.push(component);}
else{var connectors=this.connectors;if(!connectors[connectorId]){if(connectorType===''){connectors[connectorId]=new Nx.Connector(connectorId);}
else if(Nx.Connector[connectorType]){connectors[connectorId]=new Nx.Connector[connectorType](connectorId);}}
if(connectors[connectorId]){$.log.debug('attach the connector: '+connectorId);component.attachConnector(connectors[connectorId]);connectors[connectorId].registerComponent(component,connectorRole);}}}});})(Nx.$);
(function($){Nx.Module=Class.extend({init:function($ctx,sandbox,modId){this.$ctx=$ctx;this.modId=modId;this.connectors=[];this.dependencyCounter={beforeBinding:0,onBinding:1,afterBinding:0};this.sandbox=sandbox;},start:function(){var that=this;if(this.dependencies){this.dependencyCounter.beforeBinding++;this.dependencies();this.dependencyCounter.beforeBinding--;}
this.checkDependencies('beforeBinding',function(){that.initBeforeBinding();});},stop:function(){$('*',this.$ctx).unbind().removeData();this.$ctx.unbind().removeData();},initBeforeBinding:function(){var that=this;if(this.beforeBinding){this.beforeBinding(function(){that.beforeBindingCallback();});}
else{this.beforeBindingCallback();}},beforeBindingCallback:function(){var that=this;that.dependencyCounter.onBinding--;var callback=function(){that.initOnBinding();};that.checkDependencies('onBinding',callback);},initOnBinding:function(){var that=this;if(this.onBinding){this.onBinding();}
this.checkDependencies('afterBinding',function(){that.sandbox.readyForAfterBinding(function(){that.initAfterBinding();});});},initAfterBinding:function(){if(this.afterBinding){this.afterBinding();}},checkDependencies:function(phase,callback){if(this.dependencyCounter[phase]===0){callback();}},require:function(dependency,type,phase,executeCallback){phase=phase||'onBinding';type=type||'plugin';executeCallback=executeCallback===false?false:true;this.dependencyCounter[phase]++;var callback=$.proxy(function(){if(executeCallback){var that=this;this.dependencyCounter[phase]--;this.checkDependencies(phase,function(){that['init'+Nx.Utils.String.capitalize(phase)]();});}},this.sandbox.getModuleById(this.modId));this.sandbox.loadDependency(dependency,type,callback,phase);},fire:function(state,data,defaultAction){var that=this,connectors=this.connectors;data=data||{};state=Nx.Utils.String.capitalize(state);$.each(connectors,function(){var connector=this;var callback=function(){if(typeof defaultAction=='function'){defaultAction();}
connector.notify(that,'after'+state,data);};if(connector.notify(that,'on'+state,data,callback)){callback();}});if(connectors.length<1){if(typeof defaultAction=='function'){defaultAction();}}},attachConnector:function(connector){this.connectors.push(connector);},getDecoratedModule:function(module,skin){if(Nx.Module[module][skin]){var decorator=Nx.Module[module][skin];decorator.prototype=this;decorator.prototype.constructor=Nx.Module[module][skin];return new decorator(this);}
else{$.log.info('the skin '+skin+' does not exists for this module');return null;}}});})(Nx.$);
(function($){Nx.Connector=Class.extend({init:function(connectorId){this.connectorId=connectorId;this.components=[];},registerComponent:function(component,role){role=role||'standard';this.components.push({'component':component,'role':role});},unregisterComponent:function(component){var components=this.components;for(var id in components){if(components[id].component===component){delete components[id];}}},notify:function(component,state,data,callback){var proceed=true,components=this.components;for(var id in components){if(components[id].component!==component&&components[id].component[state]){if(components[id].component[state](data,callback)===false){proceed=false;}}}
return proceed;}});})(Nx.$);
(function($){Nx.Connector.MasterSlave=Nx.Connector.extend({init:function(connectorId){this._super(connectorId);},notify:function(component,state,data,callback){var proceed=true,id;for(id in this.components){if(this.components[id].component.modId===component.modId&&this.components[id].role==='Master'){for(id in this.components){if(this.components[id].component.modId!==component.modId&&this.components[id].component[state]){if(this.components[id].component[state](data,callback)===false){proceed=false;}}}}}
return proceed;}});})(Nx.$);
(function($){Nx.Sandbox=Class.extend({init:function(application,config){this.application=application;this.config=config;this.dependencies=[];this.afterBindingCallbacks=[];},addModules:function($ctx){var modules=[];if($ctx){$('.mod[data-lazyinit=true]',$ctx).removeAttr('data-lazyinit');modules=this.application.registerModules($ctx);this.application.start(modules);}
return modules;},removeModules:function(modules){if(modules){this.application.stop(modules);this.application.unregisterModules(modules);}},getModuleById:function(id){if(this.application.modules[id]!==undefined){return this.application.modules[id];}
else{throw new Error('the module with the id '+id+' does not exist');}},getConfig:function(){return this.config;},getConfigParam:function(name){if(this.config.name!==undefined){return this.config.name;}
else{throw new Error('the config param '+name+' does not exist');}},loadDependency:function(dependency,type,callback,phase){var that=this;phase=phase||'none';type=type||'plugin';if(that.dependencies[dependency]&&that.dependencies[dependency].state==='requested'){$.log.info('dependency '+dependency+' already requested');that.dependencies[dependency].callbacks.push(function(){callback(phase);});}
else if(that.dependencies[dependency]&&that.dependencies[dependency].state==='loaded'){$.log.info('dependency '+dependency+' already loaded');callback(phase);}
else{$.log.time('load dependency '+dependency);that.dependencies[dependency]={state:'requested',callbacks:[]};var path;switch(type){case'library':case'plugin':case'util':path=this.config.dependencyPath[type];break;case'url':path='';break;case'default':$.log.error('the type '+type+' is not known');break;}
$.ajax({url:''+path+dependency,dataType:'script',cache:true,success:function(){$.log.time('load dependency '+dependency);that.dependencies[dependency].state='loaded';callback(phase);var callbacks=that.dependencies[dependency].callbacks;for(var i=0;i<callbacks.length;i++){callbacks[i]();}},error:function(){$.log.error('an error occured during loading the dependency '+path+dependency);}});}},readyForAfterBinding:function(callback){this.afterBindingCallbacks.push(callback);if(this.application.modules.length==this.afterBindingCallbacks.length){for(var i=0;i<this.afterBindingCallbacks.length;i++){this.afterBindingCallbacks[i]();}}}});})(Nx.$);
Nx.Utils={};
(function($){Nx.Utils.String={capitalize:function(str){return str.substr(0,1).toUpperCase().concat(str.substr(1));}};})(Nx.$);
(function($){Nx.Utils.InputDefaults={init:function($inputs){var that=this;$inputs.each(function(index,item){var $item=$(item);var defaultValue=item.getAttribute('value');$item.data('defaultValue',defaultValue);if(defaultValue==$item.val()){$item.addClass('defaultValue');}
$item.bind('focus blur',$.proxy(that.setInputDefault,that)).trigger('blur');});},setInputDefault:function(event){var $target=$(event.target);if(event.type=='focus'&&$target.val()==$target.data('defaultValue'))
{$target.val('').removeClass('defaultValue');}
else if(event.type=='blur'&&$target.val()=='')
{$target.val($target.data('defaultValue')).addClass('defaultValue');}},clearDefaultValues:function(formContext){$('input:text[value!=""]',formContext).each(function(index,item){var $item=$(item);if($item.data('defaultValue')==$item.val()){$item.val('');}});}};})(Nx.$);
(function($){Nx.Utils.JSBodyClass={setClass:function(){$('body').addClass('js');}};Nx.Utils.JSBodyClass.setClass();})(Nx.$);
(function($){Nx.Module.Namics=function($ctx,sandbox,moduleId){Nx.Module.call(this,$ctx,sandbox,moduleId);};Nx.Module.Namics.prototype=new Nx.Module();Nx.Module.Namics.prototype.constructor=Nx.Module.Namics;$.extend(Nx.Module.Namics.prototype,{beforeBinding:function(callback){callback();},onBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Accordion=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Accordion.prototype=new Nx.Module();Nx.Module.Accordion.prototype.constructor=Nx.Module.Accordion;$.extend(Nx.Module.Accordion.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();$('.bd',this.$ctx).hide();$('.modAccordion div',this.$ctx).hide();$('.inner',this.$ctx).find('h3').each(function(){$(this).bind('click',function(){$(this).find('span').toggleClass('open');$(this).next('div').slideToggle('fast');return false;});});},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Buttons=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Buttons.prototype=new Nx.Module();Nx.Module.Buttons.prototype.constructor=Nx.Module.Buttons;$.extend(Nx.Module.Buttons.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Download=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Download.prototype=new Nx.Module();Nx.Module.Download.prototype.constructor=Nx.Module.Download;$.extend(Nx.Module.Download.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Form=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);this.requiredFields=[];};Nx.Module.Form.prototype=new Nx.Module();Nx.Module.Form.prototype.constructor=Nx.Module.Form;$.extend(Nx.Module.Form.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){$('#form-common-request #formtype').change($.proxy(this.processCommon,this)).trigger('change');$('#form-common-request #form-common-request').submit($.proxy(this.submitCommon,this));},afterBinding:function(){},processCommon:function(event){var formIndex=$('option:selected',$(event.target)).index();$('#form-common-request > fieldset > div.frmline').show();this.clearRequiredFileds();switch(formIndex){case 0:$('#Fax').parents('div.frmline').hide();$('#Von').parents('div.frmline').hide();this.requiredFields=['Telefon'];break;case 1:$('#Fax').parents('div.frmline').hide();$('#Strasse').parents('div.frmline').hide();$('#Kontaktper').parents('div.frmline').hide();this.requiredFields=['Email'];break;case 2:$('#Kontaktper').parents('div.frmline').hide();$('#Von').parents('div.frmline').hide();this.requiredFields=['Email'];break;}
this.setRequiredFileds();},setRequiredFileds:function(){for(var i=this.requiredFields.length;i>0;i--){$('label[for="'+this.requiredFields[i-1]+'"]').append('<span> *</span>');}},clearRequiredFileds:function(){$('#form-common-request label > span').remove();},submitCommon:function(){var status=true;var msg='Bitte füllen sie folgende Felder aus:\n\n';for(var i=this.requiredFields.length;i>0;i--){if($('#'+this.requiredFields[i-1]).val()==''){status=false;msg=msg+$('label[for="'+this.requiredFields[i-1]+'"]').text()+'\n';}}
if(!status){alert(msg);}
return status;},setDependingInputs:function($triggerInput,switchOffValues,$dependingInput){$triggerInput.change(function(){var triggerValue=$triggerInput.filter(':checked').val();if($.inArray(triggerValue,switchOffValues)>-1){$dependingInput.attr('disabled','disabled').next('label').addClass('disabled');}
else{$dependingInput.removeAttr('disabled').next('label').removeClass('disabled');}}).trigger('change');}});})(Nx.$);
(function($){Nx.Module.Header=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Header.prototype=new Nx.Module();Nx.Module.Header.prototype.constructor=Nx.Module.Header;$.extend(Nx.Module.Header.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){Nx.Utils.InputDefaults.init($('input:text[value!=""]',this.$ctx));},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.HeaderVisual=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.HeaderVisual.prototype=new Nx.Module();Nx.Module.HeaderVisual.prototype.constructor=Nx.Module.HeaderVisual;$.extend(Nx.Module.HeaderVisual.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.LinkTeaser=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.LinkTeaser.prototype=new Nx.Module();Nx.Module.LinkTeaser.prototype.constructor=Nx.Module.LinkTeaser;$.extend(Nx.Module.LinkTeaser.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Locator=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Locator.prototype=new Nx.Module();Nx.Module.Locator.prototype.constructor=Nx.Module.Locator;$.extend(Nx.Module.Locator.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.MainNavigation=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.MainNavigation.prototype=new Nx.Module();Nx.Module.MainNavigation.prototype.constructor=Nx.Module.MainNavigation;$.extend(Nx.Module.MainNavigation.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.NewsTicker=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.NewsTicker.prototype=new Nx.Module();Nx.Module.NewsTicker.prototype.constructor=Nx.Module.NewsTicker;$.extend(Nx.Module.NewsTicker.prototype,{dependencies:function(){this.require('jquery.innerfade.js','plugin','onBinding');},beforeBinding:function(callback){callback();},onBinding:function(){$('#news',this.$ctx).innerfade({animationtype:'fade',speed:'slow',timeout:4000,type:'random',containerheight:'1em'}).show();},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.PageFunctions=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.PageFunctions.prototype=new Nx.Module();Nx.Module.PageFunctions.prototype.constructor=Nx.Module.PageFunctions;$.extend(Nx.Module.PageFunctions.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();if(!(window.external||window.sidebar))
{$('a.bookmark',this.$ctx).parent().remove();}},onBinding:function(){$('a.bookmark',this.$ctx).click(function(event){if(window.sidebar){window.sidebar.addPanel(document.title,window.location,"");}else if(document.all){window.external.AddFavorite(window.location,document.title);}
return false;});$('a.print',this.$ctx).click(function(){window.print();return false;})},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.ProductTeaser=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.ProductTeaser.prototype=new Nx.Module();Nx.Module.ProductTeaser.prototype.constructor=Nx.Module.ProductTeaser;$.extend(Nx.Module.ProductTeaser.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.RichContent=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.RichContent.prototype=new Nx.Module();Nx.Module.RichContent.prototype.constructor=Nx.Module.RichContent;$.extend(Nx.Module.RichContent.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Search=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Search.prototype=new Nx.Module();Nx.Module.Search.prototype.constructor=Nx.Module.Search;$.extend(Nx.Module.Search.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Sitemap=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Sitemap.prototype=new Nx.Module();Nx.Module.Sitemap.prototype.constructor=Nx.Module.Sitemap;$.extend(Nx.Module.Sitemap.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Stage=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Stage.prototype=new Nx.Module();Nx.Module.Stage.prototype.constructor=Nx.Module.Stage;$.extend(Nx.Module.Stage.prototype,{dependencies:function(){this.require('swfobject.js','library','onBinding');},beforeBinding:function(callback){callback();},onBinding:function(){$('#flashContent').show();var flashSrc=$('#dataSrc').attr('value');var flashvars={};var params={};params.allowfullscreen="true";params.allowScriptAccess="sameDomain";params.menu="false";params.quality="high";params.salign="lt";params.wmode="transparent";var attributes={};attributes.id="flashStage";swfobject.embedSWF(flashSrc,"flashContent","994","367","8.0.0",this.sandbox.config.dependencyPath.library+"expressInstall.swf",flashvars,params,attributes);},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.StageGallery=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.StageGallery.prototype=new Nx.Module();Nx.Module.StageGallery.prototype.constructor=Nx.Module.StageGallery;$.extend(Nx.Module.StageGallery.prototype,{dependencies:function(){this.require('jquery.innerfade.js','plugin','onBinding');},beforeBinding:function(callback){callback();},onBinding:function(){$('ul',this.$ctx).innerfade({animationtype:'fade',speed:'slow',timeout:8000,type:'sequence',containerheight:'auto'}).show();},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Tab=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Tab.prototype=new Nx.Module();Nx.Module.Tab.prototype.constructor=Nx.Module.Tab;$.extend(Nx.Module.Tab.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();$('> div.inner',this.$ctx).tabs();},onBinding:function(){},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Toolbox=function($ctx,sandbox,modId){Nx.Module.call(this,$ctx,sandbox,modId);};Nx.Module.Toolbox.prototype=new Nx.Module();Nx.Module.Toolbox.prototype.constructor=Nx.Module.Toolbox;$.extend(Nx.Module.Toolbox.prototype,{dependencies:function(){},beforeBinding:function(callback){callback();},onBinding:function(){$('h4 span',this.$ctx).click(function(){$(this).parent().toggleClass('open');$(this).parent().next('.content').slideToggle('fast');});$('.toolbox',this.$ctx).change(function(){if($(this).val()){window.location=$(this).val();};this.target='formpopup';});Nx.Utils.InputDefaults.init($('input:text[value!=""]',this.$ctx));$('form',this.$ctx).submit(function(event){Nx.Utils.InputDefaults.clearDefaultValues($(event.target));});},afterBinding:function(){}});})(Nx.$);
(function($){Nx.Module.Form.Download=function(parent){this.dependencies=function(){parent.dependencies();};this.beforeBinding=function(callback){parent.beforeBinding(function(){callback();});};this.onBinding=function(){parent.onBinding();$('select',this.$ctx).change(function(event){$(event.target).closest('form').trigger('submit');});};this.afterBinding=function(){parent.afterBinding();};};})(Nx.$);
