
var acgrowthStrech={};acgrowthStrech.WindowGridManager=new Class({options:{snapToGrid:false},presets:{CONTAINER_ID:'acgrowth_strip'},initialize:function(options){this.setOptions(options);window.addEvent('load',this.doOnLoad.bind(this));},doOnLoad:function(){this.resizeNode=$(this.presets.CONTAINER_ID);this.widthFX=new Fx.Style(this.resizeNode,'width',{wait:false,duration:500,transition:Fx.Transitions.Quart.easeOut})
this.resizeTimer=new acgrowthStrech.Timer(0);this.resizeTimer.addEvent('onExpire',this.doGridResize.bind(this));window.addEvent('resize',this.resizeTimer.restart.bind(this.resizeTimer));if(window.ie==true){this.doGridResize();window.onbeforeprint=this.doBeforePrint.bind(this);window.onafterprint=this.doAfterPrint.bind(this);}},doBeforePrint:function(){try{this.resizeNode.setStyle('width','auto');}catch(e){}},doAfterPrint:function(){this.doGridResize();},getGridWidth:function(state){var offset=0;if(state=='init'){offset=(window.webkit==true)?15:17;}
var bw=window.getWidth();bw=bw-offset;var gw=0;if(this.options.snapToGrid==true){if(bw<1062){gw=910;}else if(bw<1138){gw=986;}else if(bw<1214){gw=1062;}else{gw=1138;}}else{if(bw<987){gw=987;}else if(bw>1280){gw=1280;}else{if(state=='init')
gw=null;else gw=bw;}} return gw;},doGridResize:function(){var gw=this.getGridWidth('resize');this.widthFX.stop();if(gw)
this.widthFX.start(gw);},doInitPageLoad:function(){document.write('<style type="text/css"> #'+this.presets.CONTAINER_ID+' { width: '+this.getGridWidth('init')+'px;}</style>');}});acgrowthStrech.WindowGridManager.implement(new Options);
acgrowthStrech.Timer=new Class({msecs:1000,onExpire:Class.empty,isRunning:false,initialize:function(msecs){($defined(msecs))?this.msecs=msecs:null;},start:function(){var ref=this;this.isRunning=true;this.interval=setTimeout(function(){ref.fireExpire();},this.msecs);return true;},stop:function(){this.isRunning=false;clearTimeout(this.interval);return true;},restart:function(){this.stop();this.start();return true;},fireExpire:function(){this.stop();this.fireEvent('onExpire');return true;}});acgrowthStrech.Timer.implement(new Events);acgrowthStrech.TextFileLoader=XHR.extend({fileContent:'',onFileLoad:Class.empty,onSuccess:function(){this.doTest();},onFailure:function(){this.doTest();},doFileLoad:function(url){this.send(url);},doTest:function(){if($defined(this.transport.responseText)){this.fileContent=this.transport.responseText;this.fireEvent('onFileLoad');}
else{this.fileContent='Could not load';this.fireEvent('onFailure');}},evalScripts:function(){var scripts=[];var regexp=/<script[^>]*>([\s\S]*?)<\/script>/gi;while((script=regexp.exec(this.fileContent)))scripts.push(script[1]);scripts=scripts.join('\n');if(scripts)(window.execScript)?window.execScript(scripts):window.setTimeout(scripts,0);},evalStyles:function(){var styles=[];var styregexp=/<style[^>]*>([\s\S]*?)<\/style>/gi;while((style=styregexp.exec(this.fileContent)))styles.push(style[1]);styles=styles.join('\n');if(styles){var snode=new Element('style',{'type':'text/css'});snode.setHTML(styles);$$('body')[0].adopt(snode)}}});var ACG = new acgrowthStrech.WindowGridManager(); ACG.doInitPageLoad();

window.addEvent('load', function(){ $('menu-list').addEvents({mouseover: function(){ $('acgrowthmask').setStyle('display', 'inline'); }, mouseout: function(){ $('acgrowthmask').setStyle('display', 'none'); } }); });
