-
@@ -165,92 +165,92 @@ $this->title = 'My Yii Application';
var map = new google.maps.Map(document.getElementById("map_canvas"), settings);
- var image1 = new google.maps.MarkerImage('images/markers/marker-we-1.png',
+ var image1 = new google.maps.MarkerImage('/images/markers/marker-we-1.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image2 = new google.maps.MarkerImage('images/markers/marker-we-2.png',
+ var image2 = new google.maps.MarkerImage('/images/markers/marker-we-2.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image3 = new google.maps.MarkerImage('images/markers/marker-we-3.png',
+ var image3 = new google.maps.MarkerImage('/images/markers/marker-we-3.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image4 = new google.maps.MarkerImage('images/markers/marker-we-4.png',
+ var image4 = new google.maps.MarkerImage('/images/markers/marker-we-4.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image5 = new google.maps.MarkerImage('images/markers/marker-we-5.png',
+ var image5 = new google.maps.MarkerImage('/images/markers/marker-we-5.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image6 = new google.maps.MarkerImage('images/markers/marker-we-6.png',
+ var image6 = new google.maps.MarkerImage('/images/markers/marker-we-6.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image7 = new google.maps.MarkerImage('images/markers/marker-we-7.png',
+ var image7 = new google.maps.MarkerImage('/images/markers/marker-we-7.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image8 = new google.maps.MarkerImage('images/markers/marker-we-8.png',
+ var image8 = new google.maps.MarkerImage('/images/markers/marker-we-8.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image9 = new google.maps.MarkerImage('images/markers/marker-we-9.png',
+ var image9 = new google.maps.MarkerImage('/images/markers/marker-we-9.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image10 = new google.maps.MarkerImage('images/markers/marker-empl-1.png',
+ var image10 = new google.maps.MarkerImage('/images/markers/marker-empl-1.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image11 = new google.maps.MarkerImage('images/markers/marker-empl-2.png',
+ var image11 = new google.maps.MarkerImage('/images/markers/marker-empl-2.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image12 = new google.maps.MarkerImage('images/markers/marker-empl-3.png',
+ var image12 = new google.maps.MarkerImage('/images/markers/marker-empl-3.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image13 = new google.maps.MarkerImage('images/markers/marker-empl-4.png',
+ var image13 = new google.maps.MarkerImage('/images/markers/marker-empl-4.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image14 = new google.maps.MarkerImage('images/markers/marker-empl-5.png',
+ var image14 = new google.maps.MarkerImage('/images/markers/marker-empl-5.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image15 = new google.maps.MarkerImage('images/markers/marker-empl-6.png',
+ var image15 = new google.maps.MarkerImage('/images/markers/marker-empl-6.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image16 = new google.maps.MarkerImage('images/markers/marker-empl-7.png',
+ var image16 = new google.maps.MarkerImage('/images/markers/marker-empl-7.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image17 = new google.maps.MarkerImage('images/markers/marker-empl-8.png',
+ var image17 = new google.maps.MarkerImage('/images/markers/marker-empl-8.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
);
- var image18 = new google.maps.MarkerImage('images/markers/marker-empl-9.png',
+ var image18 = new google.maps.MarkerImage('/images/markers/marker-empl-9.png',
new google.maps.Size(21, 32),
new google.maps.Point(0,0),
new google.maps.Point(16, 35)
@@ -293,7 +293,7 @@ $this->title = 'My Yii Application';
var clusterStyles = [
{
- url: 'images/markers/clasters.png',
+ url: '/images/markers/clasters.png',
height: 36,
width: 36
}
@@ -327,60 +327,60 @@ $this->title = 'My Yii Application';
-
+
Вы получаете лучшую цену
-
+
Гарантии получения проекта в срок
-
+
2Вы получаете лучшую цену
-
+
2Гарантии получения проекта в срок
-
+
3Вы получаете лучшую цену
-
+
3Гарантии получения проекта в срок
-
+
4Вы получаете лучшую цену
-
+
4Гарантии получения проекта в срок
diff --git a/frontend/views/tender/index.php b/frontend/views/tender/index.php
deleted file mode 100644
index c559c89..0000000
--- a/frontend/views/tender/index.php
+++ /dev/null
@@ -1,8 +0,0 @@
-title = 'My Yii Application';
-?>
diff --git a/frontend/views/tender/search.php b/frontend/views/tender/search.php
deleted file mode 100644
index d0b10fb..0000000
--- a/frontend/views/tender/search.php
+++ /dev/null
@@ -1,489 +0,0 @@
-title = 'My Yii Application';
-?>
-
-
-
-
-
-
-
-
Сейчас 751 предложение
-
-
-
Создание проекта дома
-
Бюджет: 20 000 грн (Договорной)
-
-
-
На постоянные работы по созданию сайтов, в нашу команду требуется html-верстальщик. Оплата сдельная за проект. В отклике прошу написать свой Skype и почту. А так же 3 проекта с реализованной адаптивной версткой и 3 проекта мобильных сайтов.
-
P.S. Студиям прошу не беспокоить! Нужен специалист в команду
-
-
-
-
Киев
-
-
-
15.10.2016
-
-
-
4 предложения
-
-
-
-
-
-
Создание проекта дома
-
Бюджет: 20 000 грн (Договорной)
-
-
-
На постоянные работы по созданию сайтов, в нашу команду требуется html-верстальщик. Оплата сдельная за проект. В отклике прошу написать свой Skype и почту. А так же 3 проекта с реализованной адаптивной версткой и 3 проекта мобильных сайтов.
-
P.S. Студиям прошу не беспокоить! Нужен специалист в команду
-
-
-
-
Киев
-
-
-
15.10.2016
-
-
-
4 предложения
-
-
-
-
-
-
Создание проекта дома
-
Бюджет: 20 000 грн (Договорной)
-
-
-
На постоянные работы по созданию сайтов, в нашу команду требуется html-верстальщик. Оплата сдельная за проект. В отклике прошу написать свой Skype и почту. А так же 3 проекта с реализованной адаптивной версткой и 3 проекта мобильных сайтов.
-
P.S. Студиям прошу не беспокоить! Нужен специалист в команду
-
-
-
-
Киев
-
-
-
15.10.2016
-
-
-
4 предложения
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Все
- 
Жилые
- 
Офисные
- 
Торговые
- 
Мосты
- 
Дороги
- 
Сооружения
- 
Склады
- 
Заводы
- 
Разное
-
-
- 
проекты
- 
подряды
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/frontend/views/tender/view.php b/frontend/views/tender/view.php
index 04181ab..b2490db 100644
--- a/frontend/views/tender/view.php
+++ b/frontend/views/tender/view.php
@@ -1,12 +1,12 @@
title = 'My Yii Application';
?>
-
Создание проекта квартиры
diff --git a/frontend/views/vacancy/search.php b/frontend/views/vacancy/search.php
deleted file mode 100644
index a41dd6b..0000000
--- a/frontend/views/vacancy/search.php
+++ /dev/null
@@ -1,159 +0,0 @@
-title = 'My Yii Application';
-?>
-
-
diff --git a/frontend/web/js/_forms.js b/frontend/web/js/_forms.js
new file mode 100644
index 0000000..ad3c75a
--- /dev/null
+++ b/frontend/web/js/_forms.js
@@ -0,0 +1 @@
+$(document).ready(function(){function o(){$(".blog-buttons-add-favorite, .performance-vacancy-add-favorite a, .get-list, .main-menu-icons-copy").click(function(o){var n=$(window).scrollTop();o.preventDefault(),$("#overlay").fadeIn(400,function(){$("#modal_form_favorite").css({display:"block",marginTop:-230+n}).animate({opacity:1,top:"50%"},200)})})}function n(){$(".blog-buttons-offer, .get-project, .main-menu-icons-home").click(function(o){var n=$(window).scrollTop();o.preventDefault(),$("#overlay").fadeIn(400,function(){$("#modal_form_offer").css({display:"block",marginTop:-313+n}).animate({opacity:1,top:"50%"},200)})})}function a(){$(".header-contacts-menu li:last-child").click(function(o){var n=$(window).scrollTop();o.preventDefault(),$("#overlay").fadeIn(400,function(){$("#modal_form_question").css({display:"block",marginTop:-230+n}).animate({opacity:1,top:"50%"},200)})})}if($(".blog-buttons-add-favorite, .performance-vacancy-add-favorite a, .get-list, .main-menu-icons-copy, .blog-buttons-offer, .get-project, .main-menu-icons-home").length>0){var t=$("#overlay").length;$.post("forms-modal.html",function(o){!t>0&&$("body").append('
'),$("body").append(o)}).complete(function(){$(".closed-form, #overlay").on("click",function(){$("#modal_form_favorite, #modal_form_offer, #modal_form_question").animate({opacity:0,top:"30%"},200,function(){$(this).css("display","none"),$("#overlay").fadeOut(400)})})})}o(),n(),a()});
\ No newline at end of file
diff --git a/frontend/web/js/_jquery.rating.js b/frontend/web/js/_jquery.rating.js
new file mode 100644
index 0000000..3714a32
--- /dev/null
+++ b/frontend/web/js/_jquery.rating.js
@@ -0,0 +1 @@
+!function(t){t.rating=function(s,i){this.options=t.extend({fx:"float",image:"images/stars.png",width:15,stars:5,minimal:0,titles:["голос","голоса","голосов"],readOnly:!1,url:"",type:"post",loader:"images/ajax-loader.gif",click:function(){}},i||{}),this.el=t(s),this.left=0,this.val=parseFloat(t(".val",s).val())||0,this.val>this.options.stars&&(this.val=this.options.stars),this.val<0&&(this.val=0),this.old=this.val,this.votes=parseInt(t(".votes",s).val())||"",this.voteID=t(".vote-id",s).val()||"",this.vote_wrap=t('
'),this.vote_block=t('
'),this.vote_hover=t('
'),this.vote_stars=t('
'),this.vote_active=t('
'),this.vote_result=t('
'),this.vote_success=t('
'),this.loader=t('

'),this.init()};var s=t.rating;s.fn=s.prototype={rating:"0.1"},s.fn.extend=s.extend=t.extend,s.fn.extend({init:function(){if(this.render(),!this.options.readOnly){var s=this,i=0,o=0;this.vote_hover.bind("mousemove mouseover",function(e){if(!s.options.readOnly){var n=t(this),a=0;i=e.clientX>0?e.clientX:e.pageX,o=i-n.offset().left-2;var h=s.options.width*s.options.stars,v=s.options.minimal*s.options.width;o>h&&(o=h),v>o&&(o=v),a=Math.round(o/s.options.width*10)/10,"half"==s.options.fx?o=Math.ceil(o/s.options.width*2)*s.options.width/2:"float"!=s.options.fx&&(o=Math.ceil(o/s.options.width)*s.options.width),a=Math.round(o/s.options.width*10)/10,s.vote_active.css({width:o,"background-position":"0 15px"}),s.vote_success.html("Оценка: "+a+"из 5")}}).bind("mouseout",function(){s.options.readOnly||(s.reset(),s.vote_success.empty())}).bind("click.rating",function(){if(!s.options.readOnly){var t=Math.round(o/s.options.width*10)/10;t>s.options.stars&&(t=s.options.stars),0>t&&(t=0),s.old=s.val,s.val=(s.val*s.votes+t)/(s.votes+1),s.val.toFixed(1),s.vote_success.html("Ваша оценка: "+t),""!=s.options.url&&s.send(t),s.options.readOnly=!0,s.options.click.apply(this,[t])}})}},set:function(){this.vote_active.css({width:this.val*this.options.width,"background-position":"0 15px"})},reset:function(){this.vote_active.css({width:this.old*this.options.width,"background-position":"0 15px"})},setvoters:function(){this.vote_result.html(this.declOfNum(this.votes))},render:function(){this.el.html(this.vote_wrap.append(this.vote_hover.css({padding:"0 4px",height:this.options.width,width:this.options.width*this.options.stars}),this.vote_result.text(this.declOfNum(this.votes)),this.vote_success)),this.vote_block.append(this.vote_stars.css({height:this.options.width,width:this.options.width*this.options.stars,background:"url('"+this.options.image+"') 0 0"}),this.vote_active.css({height:this.options.width,width:this.val*this.options.width,background:"url('"+this.options.image+"') 0 15px"})).appendTo(this.vote_hover)},send:function(s){var i=this;this.vote_result.html(this.loader),t.ajax({url:i.options.url,type:i.options.type,data:{id:this.voteID,score:s},dataType:"json",success:function(t){"OK"==t.status?(i.votes++,i.set()):i.reset(),i.setvoters(),t.msg&&i.vote_success.html(t.msg)}})},declOfNum:function(t){return 0>=t?"":(t=Math.abs(Math.floor(t)),cases=[2,0,1,1,1,2],t+" "+this.options.titles[t%100>4&&20>t%100?2:cases[5>t%10?t%10:5]])}}),t.fn.rating=function(i){if("string"==typeof i){var o=t(this).data("rating"),e=Array.prototype.slice.call(arguments,1);return o[i].apply(o,e)}return this.each(function(){var o=t(this).data("rating");o?(i&&t.extend(o.options,i),o.init()):t(this).data("rating",new s(this,i))})}}(jQuery);
\ No newline at end of file
diff --git a/frontend/web/js/_script.js b/frontend/web/js/_script.js
new file mode 100644
index 0000000..6036086
--- /dev/null
+++ b/frontend/web/js/_script.js
@@ -0,0 +1 @@
+$(document).ready(function(){function e(){$(window).resize(function(){n()})}function n(){var e=document.getElementsByClassName("section-box header"),t=document.getElementsByClassName("section-box menu-header-all"),n=document.getElementsByClassName("section-box content"),s=document.getElementsByClassName("section-box footer");$(n).css({minHeight:$(window).height()-$(s).height()-$(e).height()-$(t).height()})}function s(){var e=navigator.userAgent;e.indexOf("Chrome")>-1||e.indexOf("Safari")>-1&&$("body").css({fontFamily:"arial"});var t=navigator.userAgent;t=t.indexOf("WebKit");var n=0,s=0;$(window).scroll(function(){s=t>=0?$("body").scrollTop():$("html").scrollTop(),s>n?(s>=114&&($(".menu-header-all").css({position:"fixed",zIndex:999}),$(".section-box.content").css({marginTop:41})),$(".section-box-6").hasClass("section-box-6")&&s>E&&!N[0]&&(N[0]=!0,m()),$(".section-box-8").hasClass("section-box-8")&&(s>P&&!N[1]&&(N[1]=!0,u()),s>P+300&&!N[2]&&(N[2]=!0,f()))):n>s&&114>=s&&($(".menu-header-all").css({position:"relative"}),$(".section-box.content").css({marginTop:0})),n=s})}function o(){var e=$("ul.content-menu-first").height();$(".menu-two-wrapp").css({height:e-1}),$("ul.content-menu-first").hover(function(){},function(){$(".content-menu-first li").css({backgroundColor:"#fff"})}),$(".content-menu-first li").hover(function(){var e=$(this).find("span").attr("data-menu-bg");$(".content-menu-first li").css({backgroundColor:"#fff"}),$(".content-menu-first li a").css({color:"#333333"}),$(this).css({backgroundColor:e}).find("ul li").css({backgroundColor:e}),$(".content-menu-first li >ul li").mouseover(function(){$(this).parent().parent().css({backgroundColor:e}),$(".content-menu-first li >ul li").css({backgroundColor:e}),$(".content-menu-first li >ul li").removeClass("hov-arrow"),$(this).addClass("hov-arrow")})},function(){$(".hov-arrow").removeClass("hov-arrow")});var t=$("ul.content-menu-first li ul li ul");if(t.addClass("third-ul-menu"),t.hasClass("third-ul-menu")){t.parent().find("a").addClass("remove-link"),$(".third-ul-menu li a").removeClass("remove-link"),$(".remove-link").parent().addClass("yes-after");for(var n=$(".remove-link"),s=0;s
')}$("ul.content-menu-first li ul li ul li ul").removeClass("third-ul-menu").addClass("last-ul-menu");var o=$("ul.content-menu-first li ul li ul li ul");if(o.hasClass("last-ul-menu")){o.parent().find("a").addClass("remove-link-two"),$(".remove-link-two").parent().addClass("yes-after yes-after-two");var a=$("ul.content-menu-first li ul li ul li.yes-after-two ul");a.find("li").removeClass("yes-after yes-after-two"),a.find("a").removeClass(".remove-link-two");var i=$(".remove-link-two");$(".last-ul-menu .remove-link-two").removeClass("remove-link-two");for(var s=0;s
'),$(".last-ul-menu .hack-arrow").removeClass("hack-arrow")}$("ul.last-ul-menu").find("a").removeClass("remove-link-two"),$(".remove-link, .remove-link-two").click(function(e){e.preventDefault()}),$("ul.content-menu-first > li").hover(function(){var e=$(this).attr("data-img");$(".menu-two-wrapp").css({backgroundImage:"url("+e+")"})})}function a(){$(".company-performer-map-menu .content-menu-first>li>ul").addClass("content-menu-map-first"),$(".company-performer-map-menu .content-menu-first>li>ul>li").addClass("content-menu-map-second"),$(".company-performer-map-menu .content-menu-first>li").addClass("old-content-menu-map-zero"),$(".company-performer-map-menu .content-menu-map-first").parent().removeClass("old-content-menu-map-zero").addClass("content-menu-map-zero"),$(".company-performer-map-menu .content-menu-map-zero").click(function(e){e.preventDefault()}),$(".company-performer-map-menu .content-menu-map-second, .company-performer-map-menu .old-content-menu-map-zero").click(function(e){e.preventDefault(),$.post("maps/maps.php",function(e){$("#map_cloud").empty(),$("#map_cloud").append(e),initialize()})})}function i(){$(".all-project-home-title_menu li").click(function(){$(".all-project-home-title_menu li").removeClass("project-home-active"),$(this).addClass("project-home-active")})}function r(){$(".settings-map-ul ul li a").click(function(e){e.preventDefault(),$(".settings-map-ul ul li a").removeClass("active"),$(this).addClass("active"),$.post("maps/maps.php",function(e){$("#map_cloud").empty(),$("#map_cloud").append(e),initialize()})})}function l(){$(".all-project-home-title_menu ul li").click(function(){$.post("maps/maps.php",function(e){$("#map_cloud").empty(),$("#map_cloud").append(e),initialize()})})}function c(){var e=0;$(".federation-home-list li").each(function(){e=e+$(this).outerWidth()+9}),$(".federation-home-list").css({width:e}),$(".federation-home-list li").click(function(){$(".federation-home-list li").removeClass("federation-home-list-active"),$(this).addClass("federation-home-list-active");var e=$(this).index(),t=$(".federation-home-blocks-wr-blocks");$(t).css({display:"none"}),$(t[e]).css({display:"block"})})}function m(){var e=$(".landing-your-buisnes-blocks"),t=$(".lan_yo_buis_arr");$(e[0]).css({transform:"rotateY(0deg)"}).find(".lan_yo_buis_img ").css({transition:"2s",opacity:1}),$(e[0]).find(".lan_yo_buis_txt").css({transition:"2s",opacity:1}),setTimeout(function(){$(e[1]).css({transform:"rotateY(0deg)"}).find(".lan_yo_buis_img ").css({transition:"2s",opacity:1}),$(e[1]).find(".lan_yo_buis_txt").css({transition:"2s",opacity:1})},500),setTimeout(function(){$(e[2]).css({transform:"rotateY(0deg)"}).find(".lan_yo_buis_img ").css({transition:"2s",opacity:1}),$(e[2]).find(".lan_yo_buis_txt").css({transition:"2s",opacity:1})},1e3),setTimeout(function(){$(e[5]).css({transform:"rotateY(0deg)"}).find(".lan_yo_buis_img ").css({transition:"2s",opacity:1}),$(e[5]).find(".lan_yo_buis_txt").css({transition:"2s",opacity:1})},1500),setTimeout(function(){$(e[4]).css({transform:"rotateY(0deg)"}).find(".lan_yo_buis_img ").css({transition:"2s",opacity:1}),$(e[4]).find(".lan_yo_buis_txt").css({transition:"2s",opacity:1})},2e3),setTimeout(function(){$(e[3]).css({transform:"rotateY(0deg)"}).find(".lan_yo_buis_img ").css({transition:"2s",opacity:1}),$(e[3]).find(".lan_yo_buis_txt").css({transition:"2s",opacity:1})},2500),setTimeout(function(){$(t[0]).css({transition:"1s",opacity:1})},300),setTimeout(function(){$(t[1]).css({transition:"1s",opacity:1})},650),setTimeout(function(){$(t[4]).css({transition:"1s",opacity:1})},1300),setTimeout(function(){$(t[2]).css({transition:"1s",opacity:1})},1950),setTimeout(function(){$(t[3]).css({transition:"1s",opacity:1})},2600)}function u(){B.css({transition:"0.8s"}),$(B[0]).css({marginTop:0,opacity:1}),$(O[0]).delay(600).fadeIn(350),setTimeout(function(){$(B[1]).css({marginTop:0,opacity:1}),$(O[1]).delay(600).fadeIn(350)},250),setTimeout(function(){$(B[2]).css({marginTop:0,opacity:1}),$(O[2]).delay(600).fadeIn(350)},500)}function f(){$(B[3]).css({marginTop:0,opacity:1}),$(O[3]).delay(600).fadeIn(350),setTimeout(function(){$(B[4]).css({marginTop:0,opacity:1}),$(O[4]).delay(600).fadeIn(350)},250),setTimeout(function(){$(B[5]).css({marginTop:0,opacity:1}),$(O[5]).delay(600).fadeIn(350)},500)}function d(){var e={comments:function(){var t=$("#comments_two");t.val().length<6?(e.errors=!0,t.removeClass("normal").addClass("wrong")):t.removeClass("wrong").addClass("normal")},phone:function(){var t=$("#phone_two"),n=/[0-9]/g;n.test(t.val())?t.removeClass("wrong").addClass("normal"):(e.errors=!0,t.removeClass("normal").addClass("wrong"))},email:function(){var t=$("#email_two"),n=/^.+@.+[.].{2,}$/i;n.test(t.val())?t.removeClass("wrong").addClass("normal"):(e.errors=!0,t.removeClass("normal").addClass("wrong"))},sendIt:function(){e.errors||$(".form-questions").submit()}};$("#send_two").click(function(){var t=$("body, html");return t.animate({scrollTop:$(".form-questions").offset().top-151},750,function(){e.errors=!1,e.comments(),e.phone(),e.email(),e.sendIt()}),!1}),$("#comments_two").focusout(function(){e.comments()}),$("#phone_two").focusout(function(){e.phone()}),$("#email_two").focusout(function(){e.email()});var t={cbName:function(){var e=$("#callbac_name");e.val().length<2?(t.errors=!0,e.removeClass("normal").addClass("wrong")):e.removeClass("wrong").addClass("normal")},cbPhone:function(){var e=$("#callbac_phone"),n=/[0-9]/g;n.test(e.val())?e.removeClass("wrong").addClass("normal"):(t.errors=!0,e.removeClass("normal").addClass("wrong"))},cbSendIt:function(){t.errors||$(".callback").submit()}};$("#callbac_submit").click(function(){var e=$("body, html");return e.animate({scrollTop:$(".callback").offset().top-151},750,function(){t.errors=!1,t.cbName(),t.cbPhone(),t.cbSendIt()}),!1}),$("#callbac_name").focusout(function(){t.cbName()}),$("#callbac_phone").focusout(function(){t.cbPhone()});var n={resNsme:function(){var e=$("#res_name");e.val().length<2?(n.errors=!0,e.removeClass("normal").addClass("wrong")):e.removeClass("wrong").addClass("normal")},resPhone:function(){var e=$("#res_phone"),t=/[0-9]/g;t.test(e.val())?e.removeClass("wrong").addClass("normal"):(n.errors=!0,e.removeClass("normal").addClass("wrong"))},resComm:function(){var e=$("#res_text");e.val().length<6?(n.errors=!0,e.removeClass("normal").addClass("wrong")):e.removeClass("wrong").addClass("normal")},resSendIt:function(){n.errors||$(".resforms").submit()}};$("#res_submit").click(function(){return n.errors=!1,n.resNsme(),n.resPhone(),n.resComm(),n.resSendIt(),!1}),$("#res_name").focusout(function(){n.resNsme()}),$("#res_phone").focusout(function(){n.resPhone()}),$("#res_text").focusout(function(){n.resComm()})}function p(){$(".menu-content li a").click(function(e){e.preventDefault(),$(".menu-content li").removeClass("active-menu-content"),$(this).parent().addClass("active-menu-content")})}function v(){$(".activejob a").click(function(e){e.preventDefault(),$(".sidebar-droped-wr").toggleClass("act"),$(".performance-vacancy-sidebar-company-job>ul").addClass("active-dropped-ul"),$(".sidebar-droped-wr").hasClass("act")||$(".performance-vacancy-sidebar-company-job>ul").removeClass("active-dropped-ul")}),$(".sidebar-droped-wr li").click(function(){$(".sidebar-droped-wr").hasClass("act")&&$(".sidebar-droped-wr").removeClass("act"),$(".performance-vacancy-sidebar-company-job>ul").removeClass("active-dropped-ul"),$(".sidebar-droped-wr li").css({display:"block"}),$(this).css({display:"none"});var e=$(this).text();$(".activejob>a").text(e)})}function h(){$(".section-box-15").css({minHeight:$(".performer-vacancy-sidebar-views ul").height()-50}),$(".section-box-17").css({minHeight:$(".performer-vacancy-sidebar-left").height()-164})}function g(){$(".performance-vacancy-desc-form a").click(function(e){e.preventDefault(),$("#overlay").fadeIn(400,function(){$("#modal_form").css("display","block").animate({opacity:1,top:"50%"},200)})}),$(".closed-form, #overlay").on("click",function(){$("#modal_form").animate({opacity:0,top:"30%"},200,function(){$(this).css("display","none"),$("#overlay").fadeOut(400)})})}function y(){$("#res_file").change(function(){var e=$(this).val();e.indexOf("C:\\fakepath\\")+1&&(e=e.substr(12));var n=$(this).next().find(".fake_file_input");n.val(t),$(".res-wrapper-mb p").text(e)}),$(".label-file a").click(function(e){e.preventDefault()})}function C(){$('.tender-file-wr input[type="file"]').change(function(){$(".max-size").css({marginTop:20})}),0==$('.tender-file-wr input[type="file"]').val&&alert("fdg");var e=$(".MultiFile-title").text();console.log(e),$(".tender-file-wr a").click(function(e){e.preventDefault()})}function _(){for(var e=$(".company-performer-comments-bl").length,t=document.getElementsByClassName("company-performer-comments-txt"),n=0;e>n;n++){var s=$(t[n]).text().length;220>s&&$(t[n]).next().css({display:"none"})}$(".company-comm-see-all").click(function(e){e.preventDefault();var t=$(this).prev();t.toggleClass("auto-height-blog-post"),$(this).toggleClass("company-comm-expand");var n="Развернуть",s="Свернуть",o=$(this).find("span");t.hasClass("auto-height-blog-post")?o.text(s):o.text(n)})}function b(){for(var e=$(".gallery-box"),t=1;t
')}function k(){$(".portfolio-project-tags a").click(function(){$(".portfolio-project-tags a").removeClass("active-tag"),$(this).addClass("active-tag")}),$(".portfolio-project-tags a.active-tag").click(function(e){e.preventDefault()})}function x(){$(".proektant-profile-hidden-txt").css({height:306});var e=$(".proektant-profile-hidden-txt p").text().length,t=$(".profile-see-all"),n="Развернуть",s="Свернуть";e>=1e3&&(t.text(n).css({display:"block"}),t.click(function(e){e.preventDefault(),$(this).toggleClass("profile-txt-big"),$(this).hasClass("profile-txt-big")?($(this).text(s),$(".proektant-profile-hidden-txt").css({height:"auto"})):($(this).text(n),$(".proektant-profile-hidden-txt").css({height:306}))}))}function T(){function e(){for(var e=6;o+1>=e;e++)$(s[e]).addClass("features-tags-display")}if($(".features-tags-profile").hasClass("features-tags-profile")){var t=$(".features-tags span:last-child").html(),n=t.replace(/,(?![^,]*,)/m,"");$(".features-tags span:last-child").empty().html(n);var s=$(".features-tags span"),o=s.length,a=o-6;e(),$(s[6]).after('
еще '+a+""),$(".features-tags-left").click(function(e){e.preventDefault(),s.removeClass("features-tags-display"),$(".features-tags-left").remove()})}if($(".features-tags-company").hasClass("features-tags-company")){for(var i=$(".features-tags-company"),r=0;r
еще '+u+"");for(var f=6;m+1>=f;f++)$(c[f]).addClass("features-tags-display")}$(".features-tags-left").click(function(e){e.preventDefault();var t=$(this).parent().parent().parent().parent();t.find(".features-tags-left").remove(),t.find(".features-tags-display").removeClass("features-tags-display")})}}function j(e){var t=document.createElement("script");t.src=e,document.getElementsByTagName("head")[0].appendChild(t)}function I(){$(".form-price-wr input").keypress(function(e){return 8==e.which||e.which>47&&e.which<58?void 0:!1})}function D(){$(".input_file").change(function(){var e=$(".input_file").val().replace(/.+[\\\/]/,"");if(""==e)var e="Максимальный размер файла 5 МБ";$(".input_file_text").text(e)}),$(".comments_block").hasClass("comments_block")&&$(function(){$(".comments_block").jScrollPane({showArrows:!0,scrollbarWidth:20,arrowSize:20})})}function z(){$(".scroll-img").hasClass("video-slider")&&($("body").append(''),$(".video-slider ul li").click(function(e){$(".video-full").append(''),e.preventDefault(),$("#overlay").fadeIn(400,function(){$(".video-full").css("display","block").animate({opacity:1,top:"50%"},200)});var t=$(this).find(".iframe-video").html();$(".video-full").append(''),$(".video-full-iframe").append(t);var n=$(".video-full-iframe iframe").attr("src");n=n.replace("showinfo=0","showinfo=1"),$(".video-full-iframe").empty(),$(".video-full-iframe").append(''),$(".closed-form, #overlay").on("click",function(){$("#overlay").fadeOut(400),$(".video-full").animate({opacity:0,top:"30%"},200,function(){$(this).css("display","none"),$(this).empty()})})}))}for(var N=[],S=0;2>S;S++)N[N.length]=!1;if(n(),e(),s(),o(),i(),r(),c(),d(),p(),v(),h(),g(),y(),a(),_(),b(),w(),k(),x(),T(),I(),z(),l(),$(".section-box-6").hasClass("section-box-6")){var E=$(".section-box-6").offset().top;E-=$(window).height()/2}if($(".lan_yo_buis_txt, .lan_yo_buis_img, .lan_yo_buis_arr").css({opacity:0}),$(".section-box-8").hasClass("section-box-8")){var P=$(".section-box-8").offset().top;P-=$(window).height()-264}var B=$(".landing-work-our-img-text"),O=$(".landing-work-our-img p");if(B.css({marginTop:155,opacity:0}),O.css({display:"none"}),C(),$(".tender-form-buttons-wr a").click(function(e){e.preventDefault(),window.location.reload()}),j("js/forms.js"),j("js/jmousewhell.js"),j("js/jscroll.js"),$(".min_markers li").click(function(){$(".min_markers li").removeClass("active_m"),$(this).addClass("active_m"),$(".min_markers_two li").removeClass("active_m")}),$(".min_markers_two li").click(function(){$(".min_markers li").removeClass("active_m"),$(".min_markers_two li").removeClass("active_m"),$(this).addClass("active_m")}),$(".min_markers li, .min_markers_two li").click(function(){$.post("maps/maps-all-markers.php",function(e){$("#map_cloud").empty(),$("#map_cloud").append(e),initialize(),$("#demo5 ul").empty();var t=$(".slider_for_maps").children();$("#demo5 ul").append(t)})}),D(),$(".main-menu").hover(function(){$("select").blur()}),$(".section-box-tender-tags-wr").hasClass("section-box-tender-tags-wr")){var Y=$(".section-box-tender-tags span"),F=Y.length,A=$(Y[F-1]).html();$(Y[F-1]).empty().html(A.replace(/,(?![^,]*,)/m,"."))}var H={resComm:function(){var e=$("#res_f_text");e.val().length<2?(H.errors=!0,e.removeClass("normal").addClass("wrong")):e.removeClass("wrong").addClass("normal")},resSendItF:function(){H.errors||$(".resformsfile").submit()}};$("#res_f_submit").click(function(){return H.errors=!1,H.resComm(),H.resSendItF(),!1}),$("#res_f_submit2").click(function(){return H.errors=!1,H.resComm(),H.resSendItF(),!1}),$("#res_f_text").focusout(function(){H.resComm()});var W=$(".video-slider li").length;$(".video-slider ul").css({width:220*W-20})});
\ No newline at end of file
diff --git a/frontend/web/js/forms.js b/frontend/web/js/forms.js
index ad3c75a..b54ef9d 100755
--- a/frontend/web/js/forms.js
+++ b/frontend/web/js/forms.js
@@ -1 +1,65 @@
-$(document).ready(function(){function o(){$(".blog-buttons-add-favorite, .performance-vacancy-add-favorite a, .get-list, .main-menu-icons-copy").click(function(o){var n=$(window).scrollTop();o.preventDefault(),$("#overlay").fadeIn(400,function(){$("#modal_form_favorite").css({display:"block",marginTop:-230+n}).animate({opacity:1,top:"50%"},200)})})}function n(){$(".blog-buttons-offer, .get-project, .main-menu-icons-home").click(function(o){var n=$(window).scrollTop();o.preventDefault(),$("#overlay").fadeIn(400,function(){$("#modal_form_offer").css({display:"block",marginTop:-313+n}).animate({opacity:1,top:"50%"},200)})})}function a(){$(".header-contacts-menu li:last-child").click(function(o){var n=$(window).scrollTop();o.preventDefault(),$("#overlay").fadeIn(400,function(){$("#modal_form_question").css({display:"block",marginTop:-230+n}).animate({opacity:1,top:"50%"},200)})})}if($(".blog-buttons-add-favorite, .performance-vacancy-add-favorite a, .get-list, .main-menu-icons-copy, .blog-buttons-offer, .get-project, .main-menu-icons-home").length>0){var t=$("#overlay").length;$.post("forms-modal.html",function(o){!t>0&&$("body").append(''),$("body").append(o)}).complete(function(){$(".closed-form, #overlay").on("click",function(){$("#modal_form_favorite, #modal_form_offer, #modal_form_question").animate({opacity:0,top:"30%"},200,function(){$(this).css("display","none"),$("#overlay").fadeOut(400)})})})}o(),n(),a()});
\ No newline at end of file
+$(document).ready(function(){
+ if($('.blog-buttons-add-favorite, .performance-vacancy-add-favorite a, .get-list, .main-menu-icons-copy, .blog-buttons-offer, .get-project, .main-menu-icons-home').length>0) {
+ console.log('here');
+ var overlayLength = $('#overlay').length;
+ $.post("site/forms-modal", function (data) {
+ if ( !overlayLength>0 ){
+ $("body").append('');
+ }
+ $("body").append(data);
+ }).complete(function() {
+ $('.closed-form, #overlay').on('click', function(){
+ $('#modal_form_favorite, #modal_form_offer, #modal_form_question')
+ .animate({opacity: 0, top: '30%'}, 200,
+ function(){
+ $(this).css('display', 'none');
+ $('#overlay').fadeOut(400);
+ }
+ );
+ });
+ });
+ }
+
+ addToFavorites();
+ addToOffer();
+ addCuestions();
+
+ function addToFavorites(){
+ $('.blog-buttons-add-favorite, .performance-vacancy-add-favorite a, .get-list/*, .main-menu-icons-copy*/').click(function(e){
+ var newMarg = $(window).scrollTop();
+ e.preventDefault()
+ $('#overlay').fadeIn(400,
+ function(){
+ $('#modal_form_favorite')
+ .css({display:'block', marginTop:-230+newMarg})
+ .animate({opacity: 1, top: '50%'}, 200);
+ });
+ })
+ }
+
+ function addToOffer(){
+ $('.blog-buttons-offer, .get-project/*,.main-menu-icons-home*/').click(function(e){
+ var newMarg = $(window).scrollTop();
+ e.preventDefault()
+ $('#overlay').fadeIn(400,
+ function(){
+ $('#modal_form_offer')
+ .css({display:'block', marginTop:-313+newMarg})
+ .animate({opacity: 1, top: '50%'}, 200);
+ });
+ })
+ }
+
+ function addCuestions() {
+ $('.header-contacts-menu li:last-child').click(function(e){
+ var newMarg = $(window).scrollTop();
+ e.preventDefault()
+ $('#overlay').fadeIn(400,
+ function(){
+ $('#modal_form_question')
+ .css({display:'block', marginTop:-230+newMarg})
+ .animate({opacity: 1, top: '50%'}, 200);
+ });
+ })
+ }
+});
\ No newline at end of file
diff --git a/frontend/web/js/jquery.rating.js b/frontend/web/js/jquery.rating.js
index 3714a32..7658754 100755
--- a/frontend/web/js/jquery.rating.js
+++ b/frontend/web/js/jquery.rating.js
@@ -1 +1,227 @@
-!function(t){t.rating=function(s,i){this.options=t.extend({fx:"float",image:"images/stars.png",width:15,stars:5,minimal:0,titles:["голос","голоса","голосов"],readOnly:!1,url:"",type:"post",loader:"images/ajax-loader.gif",click:function(){}},i||{}),this.el=t(s),this.left=0,this.val=parseFloat(t(".val",s).val())||0,this.val>this.options.stars&&(this.val=this.options.stars),this.val<0&&(this.val=0),this.old=this.val,this.votes=parseInt(t(".votes",s).val())||"",this.voteID=t(".vote-id",s).val()||"",this.vote_wrap=t(''),this.vote_block=t(''),this.vote_hover=t(''),this.vote_stars=t(''),this.vote_active=t(''),this.vote_result=t(''),this.vote_success=t(''),this.loader=t('
'),this.init()};var s=t.rating;s.fn=s.prototype={rating:"0.1"},s.fn.extend=s.extend=t.extend,s.fn.extend({init:function(){if(this.render(),!this.options.readOnly){var s=this,i=0,o=0;this.vote_hover.bind("mousemove mouseover",function(e){if(!s.options.readOnly){var n=t(this),a=0;i=e.clientX>0?e.clientX:e.pageX,o=i-n.offset().left-2;var h=s.options.width*s.options.stars,v=s.options.minimal*s.options.width;o>h&&(o=h),v>o&&(o=v),a=Math.round(o/s.options.width*10)/10,"half"==s.options.fx?o=Math.ceil(o/s.options.width*2)*s.options.width/2:"float"!=s.options.fx&&(o=Math.ceil(o/s.options.width)*s.options.width),a=Math.round(o/s.options.width*10)/10,s.vote_active.css({width:o,"background-position":"0 15px"}),s.vote_success.html("Оценка: "+a+"из 5")}}).bind("mouseout",function(){s.options.readOnly||(s.reset(),s.vote_success.empty())}).bind("click.rating",function(){if(!s.options.readOnly){var t=Math.round(o/s.options.width*10)/10;t>s.options.stars&&(t=s.options.stars),0>t&&(t=0),s.old=s.val,s.val=(s.val*s.votes+t)/(s.votes+1),s.val.toFixed(1),s.vote_success.html("Ваша оценка: "+t),""!=s.options.url&&s.send(t),s.options.readOnly=!0,s.options.click.apply(this,[t])}})}},set:function(){this.vote_active.css({width:this.val*this.options.width,"background-position":"0 15px"})},reset:function(){this.vote_active.css({width:this.old*this.options.width,"background-position":"0 15px"})},setvoters:function(){this.vote_result.html(this.declOfNum(this.votes))},render:function(){this.el.html(this.vote_wrap.append(this.vote_hover.css({padding:"0 4px",height:this.options.width,width:this.options.width*this.options.stars}),this.vote_result.text(this.declOfNum(this.votes)),this.vote_success)),this.vote_block.append(this.vote_stars.css({height:this.options.width,width:this.options.width*this.options.stars,background:"url('"+this.options.image+"') 0 0"}),this.vote_active.css({height:this.options.width,width:this.val*this.options.width,background:"url('"+this.options.image+"') 0 15px"})).appendTo(this.vote_hover)},send:function(s){var i=this;this.vote_result.html(this.loader),t.ajax({url:i.options.url,type:i.options.type,data:{id:this.voteID,score:s},dataType:"json",success:function(t){"OK"==t.status?(i.votes++,i.set()):i.reset(),i.setvoters(),t.msg&&i.vote_success.html(t.msg)}})},declOfNum:function(t){return 0>=t?"":(t=Math.abs(Math.floor(t)),cases=[2,0,1,1,1,2],t+" "+this.options.titles[t%100>4&&20>t%100?2:cases[5>t%10?t%10:5]])}}),t.fn.rating=function(i){if("string"==typeof i){var o=t(this).data("rating"),e=Array.prototype.slice.call(arguments,1);return o[i].apply(o,e)}return this.each(function(){var o=t(this).data("rating");o?(i&&t.extend(o.options,i),o.init()):t(this).data("rating",new s(this,i))})}}(jQuery);
\ No newline at end of file
+/** http://biznesguide.ru/coding/156.html*/
+
+;(function($){
+ $.rating = function(e, o){
+
+ this.options = $.extend({
+ fx: 'float',
+ image: '/images/stars.png',
+ width: 15,
+ stars: 5,
+ minimal: 0,
+ titles: ['голос','голоса','голосов'],
+ readOnly: false,
+ url: '',
+ type: 'post',
+ loader: 'images/ajax-loader.gif',
+ click: function(){}
+ }, o || {});
+
+ this.el = $(e);
+ this.left = 0;
+
+ this.val = parseFloat($('.val',e).val()) || 0;
+
+ if(this.val > this.options.stars) this.val = this.options.stars;
+ if(this.val < 0) this.val = 0;
+
+ this.old = this.val;
+
+ this.votes = parseInt($('.votes',e).val()) || '';
+ this.voteID = $('.vote-id',e).val() || '';
+
+ this.vote_wrap = $('');
+ this.vote_block = $('');
+ this.vote_hover = $('');
+ this.vote_stars = $('');
+ this.vote_active = $('');
+ this.vote_result = $('');
+ this.vote_success = $('');
+ this.loader = $('
');
+
+ this.init();
+ };
+
+
+ var $r = $.rating;
+
+ $r.fn = $r.prototype = {
+ rating: '0.1'
+ };
+
+ $r.fn.extend = $r.extend = $.extend;
+
+ $r.fn.extend({
+
+ init: function(){
+
+ this.render();
+
+ if(this.options.readOnly) return;
+
+ var self = this, left = 0, width = 0;
+
+ this.vote_hover.bind('mousemove mouseover',function(e){
+
+ if(self.options.readOnly) return;
+
+ var $this = $(this),
+ score = 0;
+
+ left = e.clientX>0 ? e.clientX: e.pageX;
+ width = left - $this.offset().left - 2;
+
+ var max = self.options.width*self.options.stars,
+ min = self.options.minimal*self.options.width;
+
+ if(width > max) width = max;
+ if(width < min) width = min;
+
+ score = Math.round( width/self.options.width * 10 ) / 10; //округляем до 1 знака после запятой
+
+ if(self.options.fx == 'half'){
+ width = Math.ceil(width/self.options.width*2)*self.options.width/2;
+ }
+ else if(self.options.fx != 'float'){
+ width = Math.ceil(width/self.options.width) * self.options.width;
+ }
+
+ score = Math.round( width/self.options.width * 10 ) / 10;
+
+ self.vote_active.css({
+ 'width':width,
+ 'background-position':'0 15px'
+ });
+
+ self.vote_success.html('Оценка: '+score + 'из 5');
+
+ })
+ .bind('mouseout',function(){
+ if(self.options.readOnly) return;
+ self.reset();
+ self.vote_success.empty();
+ }).
+ bind('click.rating',function(){
+
+ if(self.options.readOnly) return;
+
+ var score = Math.round( width/self.options.width * 10 ) / 10;
+
+ if(score > self.options.stars) score = self.options.stars;
+ if(score < 0) score = 0;
+
+ self.old = self.val;
+ self.val = (self.val*self.votes +score)/(self.votes + 1);
+ self.val.toFixed(1);
+ self.vote_success.html('Ваша оценка: '+score);
+ if(self.options.url != ''){
+
+ self.send(score);
+ }
+
+ self.options.readOnly = true;
+ self.options.click.apply(this,[score]);
+ });
+
+ },
+ set: function(){
+ this.vote_active.css({
+ 'width':this.val*this.options.width,
+ 'background-position':'0 15px'
+ });
+ },
+ reset: function(){
+ this.vote_active.css({
+ 'width':this.old*this.options.width,
+ 'background-position':'0 15px'
+ });
+ },
+ setvoters: function(){
+ this.vote_result.html(this.declOfNum(this.votes));
+ },
+ render: function(){
+
+ this.el.html(this.vote_wrap.append(
+ this.vote_hover.css({
+ padding:'0 4px',
+ height:this.options.width,
+ width:this.options.width*this.options.stars
+ }),
+ this.vote_result.text(this.declOfNum(this.votes)),
+ this.vote_success
+ ));
+
+
+ this.vote_block.append(
+ this.vote_stars.css({
+ height:this.options.width,
+ width:this.options.width*this.options.stars,
+ background:"url('"+this.options.image+"') 0 0"
+ }),
+ this.vote_active.css({
+ height:this.options.width,
+ width:this.val*this.options.width,
+ background:"url('"+this.options.image+"') 0 15px"
+ })
+ ).appendTo(this.vote_hover);
+
+ },
+ send: function(score){
+
+ var self = this;
+ this.vote_result.html(this.loader);
+
+ $.ajax({
+ url: self.options.url,
+ type: self.options.type,
+ data:{id:this.voteID,score:score},
+ dataType: 'json',
+ success: function(data){
+ if(data.status == 'OK') {
+ self.votes++;
+ self.set();
+ }
+ else{
+ self.reset();
+ }
+
+ self.setvoters();
+
+ if(data.msg)self.vote_success.html(data.msg);
+ }
+ });
+
+ },
+ declOfNum: function(number){
+ if(number <= 0) return '';
+ number = Math.abs(Math.floor(number));
+ cases = [2, 0, 1, 1, 1, 2];
+ return number+' '+ this.options.titles[ (number%100>4 && number%100<20)? 2 : cases[(number%10<5)?number%10:5] ];
+ }
+ });
+
+
+ $.fn.rating = function(o){
+
+ if (typeof o == 'string') {
+ var instance = $(this).data('rating'), args = Array.prototype.slice.call(arguments, 1);
+ return instance[o].apply(instance, args);
+ } else {
+ return this.each(function() {
+ var instance = $(this).data('rating');
+ if (instance) {
+ if (o) {
+ $.extend(instance.options, o);
+ }
+
+ instance.init();
+
+ } else {
+
+ $(this).data('rating', new $r(this, o));
+ }
+ });
+ }
+ };
+
+})(jQuery);
\ No newline at end of file
diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js
index 6036086..a17e8ee 100755
--- a/frontend/web/js/script.js
+++ b/frontend/web/js/script.js
@@ -1 +1,827 @@
-$(document).ready(function(){function e(){$(window).resize(function(){n()})}function n(){var e=document.getElementsByClassName("section-box header"),t=document.getElementsByClassName("section-box menu-header-all"),n=document.getElementsByClassName("section-box content"),s=document.getElementsByClassName("section-box footer");$(n).css({minHeight:$(window).height()-$(s).height()-$(e).height()-$(t).height()})}function s(){var e=navigator.userAgent;e.indexOf("Chrome")>-1||e.indexOf("Safari")>-1&&$("body").css({fontFamily:"arial"});var t=navigator.userAgent;t=t.indexOf("WebKit");var n=0,s=0;$(window).scroll(function(){s=t>=0?$("body").scrollTop():$("html").scrollTop(),s>n?(s>=114&&($(".menu-header-all").css({position:"fixed",zIndex:999}),$(".section-box.content").css({marginTop:41})),$(".section-box-6").hasClass("section-box-6")&&s>E&&!N[0]&&(N[0]=!0,m()),$(".section-box-8").hasClass("section-box-8")&&(s>P&&!N[1]&&(N[1]=!0,u()),s>P+300&&!N[2]&&(N[2]=!0,f()))):n>s&&114>=s&&($(".menu-header-all").css({position:"relative"}),$(".section-box.content").css({marginTop:0})),n=s})}function o(){var e=$("ul.content-menu-first").height();$(".menu-two-wrapp").css({height:e-1}),$("ul.content-menu-first").hover(function(){},function(){$(".content-menu-first li").css({backgroundColor:"#fff"})}),$(".content-menu-first li").hover(function(){var e=$(this).find("span").attr("data-menu-bg");$(".content-menu-first li").css({backgroundColor:"#fff"}),$(".content-menu-first li a").css({color:"#333333"}),$(this).css({backgroundColor:e}).find("ul li").css({backgroundColor:e}),$(".content-menu-first li >ul li").mouseover(function(){$(this).parent().parent().css({backgroundColor:e}),$(".content-menu-first li >ul li").css({backgroundColor:e}),$(".content-menu-first li >ul li").removeClass("hov-arrow"),$(this).addClass("hov-arrow")})},function(){$(".hov-arrow").removeClass("hov-arrow")});var t=$("ul.content-menu-first li ul li ul");if(t.addClass("third-ul-menu"),t.hasClass("third-ul-menu")){t.parent().find("a").addClass("remove-link"),$(".third-ul-menu li a").removeClass("remove-link"),$(".remove-link").parent().addClass("yes-after");for(var n=$(".remove-link"),s=0;s')}$("ul.content-menu-first li ul li ul li ul").removeClass("third-ul-menu").addClass("last-ul-menu");var o=$("ul.content-menu-first li ul li ul li ul");if(o.hasClass("last-ul-menu")){o.parent().find("a").addClass("remove-link-two"),$(".remove-link-two").parent().addClass("yes-after yes-after-two");var a=$("ul.content-menu-first li ul li ul li.yes-after-two ul");a.find("li").removeClass("yes-after yes-after-two"),a.find("a").removeClass(".remove-link-two");var i=$(".remove-link-two");$(".last-ul-menu .remove-link-two").removeClass("remove-link-two");for(var s=0;s