var Artic_Feedback_class=Feedback_class.extend({showForm:function(Msg){var popup=this.getPopup();popup.setContent(this.options.tpl_form,{});if(popup.getElement('[name=h1]')&&this.getH1()){popup.getElement('[name=h1]').value=this.getH1()}if(popup.getElement('[id=callback_link]')){popup.getElement('[id=callback_link]').addEvent('click',function(e){new Event(e).stop();popup.close();Callback.showForm()})}popup.form.addEvent('submit',function(e){new Event(e).stop();var options={};options.onComplete=checkResp;options.onRequest=function(){popup.form.processStart(this.options.tpl_process)}.bind(Feedback);options.headers=this.options.headers;if(this.options.id=='callback-tag'){this.options.contact=popup.form.getElement('[name=contact]').value}popup.form.trySend(options)}.bind(this));var checkResp=function(resp){var Response=new Response_class(resp);Response.doAction();popup.form.processStop();if(!Response.isError()){popup.setContent(Response.Message.getContentTpl(this.options.tpl_message_success),{})}else{popup.msg.setHTML(Response.Message.getContentTpl(this.options.tpl_message))}}.bind(this);if(this.options.hasOverlay&&!popup._overlay){popup.overlayON()};popup.open().msg.setHTML(Msg?Msg.getContentTpl(this.options.tpl_message):'')},getH1:function(){return(document.body.getElement('h1'))?document.body.getElement('h1').getText():null}});var Feedback=new Artic_Feedback_class().setOptions({id:'feedback-tag',hasOverlay:false,tpl:'<div class=\"popup feedback-popup\"> <table cellpadding=\"0\" cellspacing=\"0\"> <tbody> <tr> <td class=\"lt\"><div><\/div><\/td> <td class=\"t\"><div><\/div><\/td> <td class=\"rt\"><div><\/div><\/td> <\/tr> <tr> <td class=\"l\"><\/td> <td class=\"bg\"> <div class=\"close\"><a href=\"#\" name=\"close\"><\/a><\/div> <div name=\"content\" class=\"indent\"><\/div> <\/td> <td class=\"r\"><\/td> <\/tr> <tr> <td class=\"lb\"><div><\/div><\/td> <td class=\"b\"><div><\/div><\/td> <td class=\"rb\"><div><\/div><\/td> <\/tr> <\/tbody> <\/table> <div class=\"pistil\"><div><\/div><\/div> <\/div>',tpl_init:'<a href=\"#Feedback\" id=\"feedback-tag\" class=\"xhr\">\u041e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c<\/a>',tpl_form:'<h2>\u041e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c<\/h2> <form name=\"submit-by-ajax\" > <div name=\"msg\" class=\"message-small\"><\/div> <div class=\"item\"> <textarea class=\"text\" name=\"message\" required=\"1\"><\/textarea> <\/div> <div class=\"item row submit\"> <div class=\"cell notice\">\u0415\u0441\u043b\u0438 \u0432\u044b \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u0441\u0432\u043e\u0435\u0439 \u044d\u043b. \u043f\u043e\u0447\u0442\u044b<br \/>\u043c\u044b \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0430\u043c \u043e\u0442\u0432\u0435\u0442\u0438\u043c<\/div> <div class=\"cell button\"><input type=\"submit\" value=\"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\"><\/div> <\/div> <\/form> ',tpl_process:'<img src=\"http:\/\/www.artic.ua\/images\/ajax.gif\" width=\"48\" height=\"48\" alt=\"\u041e\u0442\u043f\u0440\u0430\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445\" class=\"process\"\/>',tpl_message:'<div class=\"message code${code}\">${content}<\/div>',tpl_message_success:'<div class=\"success\"> <h3>\u0421\u043f\u0430\u0441\u0438\u0431\u043e, \u0432\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e<\/h3> <p>\u0412&nbsp;\u0441\u0430\u043c\u043e\u0435 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0448\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u044f\u0442 \u0435\u0433\u043e, \u0438&nbsp;\u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0432\u044f\u0436\u0443\u0442\u0441\u044f \u0441&nbsp;\u0432\u0430\u043c\u0438.<\/p> <div class=\"submit\"><div class=\"button\"><input type=\"button\" value=\"\u0417\u0430\u043a\u0440\u044b\u0442\u044c\" onclick=\"Feedback.popup.close()\"><\/div><\/div> <\/div>',headers:{'ajaxAction':'http://www.artic.ua/feedback#Feedback'}});var Callback=new Artic_Feedback_class().setOptions({id:'callback-tag',hasOverlay:false,tpl:'<div class=\"popup callback-popup\"> <div class=\"pistil\"><div><\/div><\/div> <table cellpadding=\"0\" cellspacing=\"0\"> <tbody> <tr> <td class=\"lt\"><div><\/div><\/td> <td class=\"t\"><div><\/div><\/td> <td class=\"rt\"><div><\/div><\/td> <\/tr> <tr> <td class=\"l\"><\/td> <td class=\"bg\"> <div class=\"close\"><a href=\"#\" name=\"close\"><\/a><\/div> <div name=\"content\" class=\"indent\"><\/div> <\/td> <td class=\"r\"><\/td> <\/tr> <tr> <td class=\"lb\"><div><\/div><\/td> <td class=\"b\"><div><\/div><\/td> <td class=\"rb\"><div><\/div><\/td> <\/tr> <\/tbody> <\/table> <\/div>',tpl_init:'<div class=\"link\">\u0417\u0430\u043a\u0430\u0437 <a href=\"#Callback\" id=\"callback-tag\" class=\"xhr\">\u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430<\/a><\/div>',tpl_form:'<form name=\"submit-by-ajax\" > <h2>\u0417\u0430\u043a\u0430\u0437 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430<\/h2> <div name=\"msg\" class=\"message-small\"><\/div> <div class=\"item\"> <div class=\"title\">\u041c\u043e\u0439 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430:<\/div> <input class=\"text phone-number\" type=\"text\" name=\"contact\" required=\"1\" pattern=\"^[0-9-\\(\\) \\+\\.]{6,30}$\" \/> <\/div> <div class=\"item\"> <div class=\"title\">\u041c\u043e\u0435 \u0438\u043c\u044f:<\/div> <input class=\"text\" type=\"text\" name=\"name\" \/> <\/div> <div class=\"item\"> <div class=\"title\">\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439:<\/div> <textarea class=\"text\" name=\"message\"><\/textarea> <input type=\"hidden\" name=\"h1\" value=\"\" \/> <\/div> <div class=\"item row submit\"> <div class=\"cell notice\">\u0421\u0442\u0443\u0434\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 9:00 \u0434\u043e 18:00,<br \/>\u0441\u0443\u0431\u0431\u043e\u0442\u0430 \u0438 \u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0439<\/div> <div class=\"cell button\"><input type=\"submit\" value=\"\u041f\u0435\u0440\u0435\u0437\u0432\u043e\u043d\u0438\u0442\u0435 \u043c\u043d\u0435\"><\/div> <\/div> <\/form> ',tpl_process:'<img src=\"http:\/\/www.artic.ua\/images\/ajax.gif\" width=\"48\" height=\"48\" alt=\"\u041e\u0442\u043f\u0440\u0430\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445\" class=\"process\"\/>',tpl_message:'<div class=\"message code${code}\">${content}<\/div>',tpl_message_success:'<div class=\"success\"> <h3>\u0412\u0430\u0448\u0430 \u0437\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0437\u0432\u043e\u043d\u043e\u043a \u043f\u0440\u0438\u043d\u044f\u0442\u0430<\/h3> <p>\u0412 \u0441\u0430\u043c\u043e\u0435 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0448 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440<br \/>\u043f\u0435\u0440\u0435\u0437\u0432\u043e\u043d\u0438\u0442 \u0432\u0430\u043c \u043f\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443: ${Callback.options.contact} <\/p> <div class=\"submit\"><input type=\"button\" value=\"\u0417\u0430\u043a\u0440\u044b\u0442\u044c\" onclick=\"Callback.popup.close()\"><\/div> <\/div> <p>\u0421\u0442\u0443\u0434\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441&nbsp;9:00 \u0434\u043e&nbsp;18:00 \u0441&nbsp;\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a\u0430 \u043f\u043e&nbsp;\u043f\u044f\u0442\u043d\u0438\u0446\u0443<\/p>',headers:{'ajaxAction':'http://www.artic.ua/callback#Feedback'}});var Illumination_class=new Class({initialize:function(elem,key){this.fx=new Fx.Style($(elem).addClass('logo-bg'),'background-position',{duration:6000,onComplete:this.start.bind(this),transition:Fx.Transitions.linear});if(key)$(elem).addEvent('mouseenter',this.fast.bind(this)).addEvent('mouseleave',this.slow.bind(this));this.start()},start:function(){this.fx.start('0px 14px','-862px 14px')},slow:function(){this.fx.options.duration=6000},fast:function(){this.fx.options.duration=2000}});