function URL(a,k,g,j,f,i,e,h,d){var c=new Hash({});if(k&&g){c[k]=g;}if(j&&f){c[j]=f;}if(i&&e){c[i]=e;}if(h&&d){c[h]=d;}var b=new Array();c.each(function(m,l){b[b.length]=l;
});b.sort(function(m,l){return(m>l)-(m<l);});if(!a){a=SITE_URL;}else{if(a==ROOT_URL){}else{a=ROOT_URL+a;}}b.each(function(l){a+="-"+l+"-"+c[l];});return a+"/";
}var mediaFileDialog=null;var mailDialog=null;window.addEvent("domready",function(){new SmoothScroll({duration:700},window);mediaFileDialog=new MediaGaleryDialog();
mailDialog=new MailDialog({className:"MailDialog",showUrl:ROOT_URL+"part/DialogPrinter.php",sendUrl:ROOT_URL+"part/MailSender.php",captchaUrl:"part/Captcha",onSend:function(){document.location=URL();
}});new TipManager([{selector:".defToolTip",className:"defToolTip",fixed:true,hideDelay:1000,offsets:{x:0,y:0}},{selector:".infoBlockToolTip",className:"infoBlockToolTip",fixed:true,hideDelay:1000},{selector:".infoBlockClickTip",className:"infoBlockToolTip",fixed:true,hideDelay:1000,openOnClick:true},{selector:".focusToolTip",className:"defToolTip",focusTip:true,hideDelay:1000,docking:"T",offsets:{x:1,y:-1}}]);
new SimpleContentLoader(".clickLoader");window.fireEvent("onAfterContentReplace",document.body);document.body.addEvent("click:relay(.captchaImg)",function(){this.set("src",URL("part/Captcha","num",(new Date).getTime()));
});});var ajaxInfoClass=new Class({Implements:[Options],options:{closeTimeout:3000},add:function(e,b){b=b||"failed";var d=new Fx.Transition(Fx.Transitions.linear,1);
var a=new Element("div",{styles:{color:b=="success"?"green":"red","text-align":"center",margin:"5px",opacity:"0",height:"0px"}}).inject($("ajaxInfoArea")).set("text",e);
var c=new Fx.Morph(a,{duration:400,transition:d.easeInOut});c.start({height:"15px"}).chain(function(){a.fade("in").get("tween").chain(function(){(function(){a.fade("out").get("tween").chain(function(){c.start({height:"0px"}).chain(function(){a.destroy();
});});}).delay(this.options.closeTimeout);}.bind(this));}.bind(this));}});ajaxInfo=new ajaxInfoClass();