Commit f120f504676b21aa5742947c710f0fd6c715d17c

Authored by Administrator
2 parents e6357e22 0094ae47

Merge remote-tracking branch 'origin/master'

common/models/Articles.php
@@ -45,9 +45,6 @@ class Articles extends \yii\db\ActiveRecord @@ -45,9 +45,6 @@ class Articles extends \yii\db\ActiveRecord
45 'out_attribute' => 'translit', 45 'out_attribute' => 'translit',
46 'translit' => true 46 'translit' => true
47 ], 47 ],
48 - [  
49 - 'class' => RatingBehavior::className(),  
50 - ],  
51 ]; 48 ];
52 } 49 }
53 50
common/modules/comment/models/CommentModel.php
@@ -137,9 +137,11 @@ @@ -137,9 +137,11 @@
137 [ 137 [
138 'class' => RatingBehavior::className(), 138 'class' => RatingBehavior::className(),
139 ], 139 ],
  140 + /* Notification: uncomment to enable notifications.
140 [ 141 [
141 'class' => NotifyBehavior::className(), 142 'class' => NotifyBehavior::className(),
142 ], 143 ],
  144 + */
143 ]; 145 ];
144 } 146 }
145 147
common/modules/comment/views/artbox_comment_item.php
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 <?php 35 <?php
36 if(!empty( $model->rating )) { 36 if(!empty( $model->rating )) {
37 ?> 37 ?>
38 - <div class="user_rating" itemporp="reviewRating" itemscope itemtype="http://schema.org/Rating"> 38 + <div class="user_rating" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
39 <span itemprop="worstRating" style="display: none">1</span> 39 <span itemprop="worstRating" style="display: none">1</span>
40 <span itemprop="ratingValue" style="display: none"><?php echo $model->rating->value; ?></span> 40 <span itemprop="ratingValue" style="display: none"><?php echo $model->rating->value; ?></span>
41 <span itemprop="bestRating" style="display: none">5</span> 41 <span itemprop="bestRating" style="display: none">5</span>
frontend/assets/AppAsset.php
@@ -23,7 +23,7 @@ class AppAsset extends AssetBundle @@ -23,7 +23,7 @@ class AppAsset extends AssetBundle
23 'http://fonts.googleapis.com/css?family=Roboto:400,300,700&subset=latin,cyrillic-ext', 23 'http://fonts.googleapis.com/css?family=Roboto:400,300,700&subset=latin,cyrillic-ext',
24 ]; 24 ];
25 public $js = [ 25 public $js = [
26 - 'js/js_head.js', 26 + //'js/js_head.js',
27 //'js/js_footer.js', 27 //'js/js_footer.js',
28 '/js/artbox_basket.js', 28 '/js/artbox_basket.js',
29 'js/script.js', 29 'js/script.js',
@@ -31,7 +31,7 @@ class AppAsset extends AssetBundle @@ -31,7 +31,7 @@ class AppAsset extends AssetBundle
31 public $depends = [ 31 public $depends = [
32 'yii\web\JqueryAsset', 32 'yii\web\JqueryAsset',
33 'sersid\owlcarousel\Asset', 33 'sersid\owlcarousel\Asset',
34 - 34 + 'yii\bootstrap\BootstrapPluginAsset',
35 ]; 35 ];
36 36
37 public function init() { 37 public function init() {
frontend/views/catalog/product.php
@@ -4,7 +4,7 @@ use common\components\artboximage\ArtboxImageHelper; @@ -4,7 +4,7 @@ use common\components\artboximage\ArtboxImageHelper;
4 use frontend\assets\FotoramaAsset; 4 use frontend\assets\FotoramaAsset;
5 use frontend\widgets\Seo; 5 use frontend\widgets\Seo;
6 use common\modules\comment\widgets\CommentWidget; 6 use common\modules\comment\widgets\CommentWidget;
7 -FotoramaAsset::register($this); 7 +//FotoramaAsset::register($this);
8 $this->params[ 'seo' ][ 'key' ] = $category->name; 8 $this->params[ 'seo' ][ 'key' ] = $category->name;
9 $this->params[ 'seo' ][ 'fields' ][ 'name' ] = $product->fullname; 9 $this->params[ 'seo' ][ 'fields' ][ 'name' ] = $product->fullname;
10 $this->params[ 'seo' ][ 'h1' ] = !empty( Seo::widget([ 'row' => 'h1' ]) ) ? Seo::widget([ 'row' => 'h1' ]) : $product->fullname; 10 $this->params[ 'seo' ][ 'h1' ] = !empty( Seo::widget([ 'row' => 'h1' ]) ) ? Seo::widget([ 'row' => 'h1' ]) : $product->fullname;
@@ -542,11 +542,4 @@ $this-&gt;params[ &#39;breadcrumbs&#39; ][] = $product-&gt;fullname . &#39; #&#39; . $product-&gt;enabled @@ -542,11 +542,4 @@ $this-&gt;params[ &#39;breadcrumbs&#39; ][] = $product-&gt;fullname . &#39; #&#39; . $product-&gt;enabled
542 542
543 <div class="clearfix"></div> 543 <div class="clearfix"></div>
544 <br /> 544 <br />
545 - <br />  
546 -  
547 -  
548 -  
549 -  
550 - <script language="JavaScript" src="http://www.linija-svitla.ua/res/js/prod.js"></script>  
551 -  
552 - 545 + <br /
frontend/views/layouts/cabinet.php
@@ -8,21 +8,24 @@ $this-&gt;beginContent(&#39;@app/views/layouts/main.php&#39;); @@ -8,21 +8,24 @@ $this-&gt;beginContent(&#39;@app/views/layouts/main.php&#39;);
8 <h1 class="cabinet_main_title"><?= Yii::t('app', 'personal_data'); ?></h1> 8 <h1 class="cabinet_main_title"><?= Yii::t('app', 'personal_data'); ?></h1>
9 9
10 <div class="cabinet_wrap"> 10 <div class="cabinet_wrap">
11 - <div class="block_01">  
12 - <div class="cab_01"><?= Html::a(Yii::t('app','personal_data'), Url::toRoute('cabinet/index'))?></div>  
13 - <div class="cab_01"><?= Html::a(Yii::t('app','my_orders'), Url::toRoute('cabinet/my-orders'))?></div>  
14 - <div class="cab_01"><?= Html::a(Yii::t('app','bookmarks'), Url::toRoute('cabinet/bookmarks'))?></div> 11 + <div class="cabinet_menu">
  12 + <div class="block_01">
  13 + <div class="cab_01"><?= Html::a(Yii::t('app','personal_data'), Url::toRoute('cabinet/index'))?></div>
  14 + <div class="cab_01"><?= Html::a(Yii::t('app','my_orders'), Url::toRoute('cabinet/my-orders'))?></div>
  15 + <div class="cab_01"><?= Html::a(Yii::t('app','bookmarks'), Url::toRoute('cabinet/bookmarks'))?></div>
  16 + </div>
  17 + <div class="block_04">
  18 + <div class="link">
  19 + <span class="dotted">
  20 + <?= Html::a(Yii::t('app','edit_personal_data'), Url::toRoute('cabinet/update'))?>
  21 + </span>
  22 + </div>
  23 + <div class="link"><?= Html::a(Yii::t('app','exit'), Url::toRoute('site/logout'))?></div>
  24 + </div>
15 </div> 25 </div>
  26 +
16 <div class="customer_content"> 27 <div class="customer_content">
17 <?= $content ?> 28 <?= $content ?>
18 </div> 29 </div>
19 - <div class="block_04">  
20 - <div class="link">  
21 - <span class="dotted">  
22 - <?= Html::a(Yii::t('app','edit_personal_data'), Url::toRoute('cabinet/update'))?>  
23 - </span>  
24 - </div>  
25 - <div class="link"><?= Html::a(Yii::t('app','exit'), Url::toRoute('site/logout'))?></div>  
26 - </div>  
27 </div> 30 </div>
28 <?php $this->endContent() ?> 31 <?php $this->endContent() ?>
29 \ No newline at end of file 32 \ No newline at end of file
frontend/views/layouts/main.php
@@ -9,8 +9,6 @@ use yii\helpers\Url; @@ -9,8 +9,6 @@ use yii\helpers\Url;
9 use yii\widgets\Breadcrumbs; 9 use yii\widgets\Breadcrumbs;
10 10
11 AppAsset::register($this); 11 AppAsset::register($this);
12 -  
13 -  
14 ?> 12 ?>
15 <?php $this->beginPage () ?> 13 <?php $this->beginPage () ?>
16 <!DOCTYPE html> 14 <!DOCTYPE html>
frontend/web/css/css_header.css
@@ -14,16 +14,7 @@ @@ -14,16 +14,7 @@
14 .option_image_block { 14 .option_image_block {
15 height: 110px; 15 height: 110px;
16 } 16 }
17 -.slider {  
18 - width: 100%;  
19 - height: 480px;  
20 - background: #eceff4;  
21 - margin-right: 25px;  
22 - display: inline-block;  
23 - float: left;  
24 - overflow: hidden;  
25 - margin-bottom: 35px;  
26 -} 17 +
27 18
28 .owl-item .catalog_item{ 19 .owl-item .catalog_item{
29 float: none !important; 20 float: none !important;
@@ -7537,7 +7528,7 @@ header a#logo img { @@ -7537,7 +7528,7 @@ header a#logo img {
7537 7528
7538 p.empty-cart { 7529 p.empty-cart {
7539 width: 100%; 7530 width: 100%;
7540 - padding: 46px 0; 7531 + padding: 50px 0;
7541 text-align: center 7532 text-align: center
7542 } 7533 }
7543 7534
@@ -7803,7 +7794,7 @@ table.tbl_cart table.order_details .count_choise .minus-disabled { @@ -7803,7 +7794,7 @@ table.tbl_cart table.order_details .count_choise .minus-disabled {
7803 7794
7804 #header_feedback { 7795 #header_feedback {
7805 float: left; 7796 float: left;
7806 - padding: 21px 10px 5px 30px 7797 + padding: 21px 0px 5px 30px
7807 } 7798 }
7808 7799
7809 #header_feedback form { 7800 #header_feedback form {
@@ -10536,7 +10527,9 @@ footer .vacancies p { @@ -10536,7 +10527,9 @@ footer .vacancies p {
10536 .product_detail .img_part .position { 10527 .product_detail .img_part .position {
10537 width: 100%; 10528 width: 100%;
10538 position: relative; 10529 position: relative;
10539 - z-index: 2 10530 + z-index: 2;
  10531 + margin-top:-50px;
  10532 + top:50px;
10540 } 10533 }
10541 10534
10542 .product_detail .img_part .position.fixed { 10535 .product_detail .img_part .position.fixed {
@@ -13267,6 +13260,29 @@ h1.title { @@ -13267,6 +13260,29 @@ h1.title {
13267 background-position: -213px -69px 13260 background-position: -213px -69px
13268 } 13261 }
13269 13262
  13263 +.cabinet_wrap{
  13264 + display: flex;
  13265 + padding-bottom: 20px;
  13266 + margin-top: 15px;
  13267 +}
  13268 +.cabinet_menu{
  13269 + padding-right: 35px;
  13270 + border-right: 3px solid rgb(172, 198, 230);
  13271 + margin-right: 35px;
  13272 + margin-bottom: 35px;
  13273 +}
  13274 +.cabinet_menu .cab_01, .cabinet_menu .link{
  13275 + margin: 3px 0px;
  13276 +}
  13277 +.blog-show-img.float-left{
  13278 + float: left;
  13279 + padding: 0px 30px 30px 0px;
  13280 +}
  13281 +.btn.btn-cart{
  13282 + height: 54px;
  13283 + outline: none;
  13284 +}
  13285 +
13270 13286
13271 /*! HTML5 resposive design linija-svitla.ua v1.0.0 */ 13287 /*! HTML5 resposive design linija-svitla.ua v1.0.0 */
13272 13288
frontend/web/js/artbox_basket.js
@@ -71,5 +71,5 @@ var ArtboxBasket = (function () { @@ -71,5 +71,5 @@ var ArtboxBasket = (function () {
71 configurable: true 71 configurable: true
72 }); 72 });
73 return ArtboxBasket; 73 return ArtboxBasket;
74 -})(); 74 +}());
75 //# sourceMappingURL=artbox_basket.js.map 75 //# sourceMappingURL=artbox_basket.js.map
76 \ No newline at end of file 76 \ No newline at end of file
frontend/web/js/artbox_basket.js.map
1 -{"version":3,"file":"artbox_basket.js","sourceRoot":"","sources":["artbox_basket.ts"],"names":["ArtboxBasket","ArtboxBasket.constructor","ArtboxBasket.items","ArtboxBasket.add","ArtboxBasket.set","ArtboxBasket.updateModal","ArtboxBasket.updateCart","ArtboxBasket.count","ArtboxBasket.sum"],"mappings":"AAAA;IAKIA;QACIC,CAACA,CAACA,GAAGA,CAACA,SAASA,EAAEA,UAAUA,IAAIA;YAC3B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC1B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC,CAACA,IAAIA,CAACA,IAAIA,CAACA,EAAEA,MAAMA,CAACA,CAACA,IAAIA,CAACA;YACvB,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC,CAACA,CAACA;IACPA,CAACA;IAVDD,sBAAIA,+BAAKA;aAATA;YACIE,MAAMA,CAACA,IAAIA,CAACA,MAAMA,CAACA;QACvBA,CAACA;;;OAAAF;IASMA,0BAAGA,GAAVA,UAAWA,kBAAkBA,EAAEA,KAAKA;QAChCG,CAACA,CAACA,IAAIA,CAACA,iCAAiCA,GAACA,kBAAkBA,GAACA,SAASA,GAACA,KAAKA,EAAEA,UAAUA,IAAIA;YACvF,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC1B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACvC,CAAC,CAACA,IAAIA,CAACA,IAAIA,CAACA,EAAEA,MAAMA,CAACA,CAACA,IAAIA,CAACA,UAAUA,GAAGA,EAAEA,MAAMA,EAAEA,KAAKA;YACnD,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,CAACA,CAACA;IACPA,CAACA;IACMH,0BAAGA,GAAVA,UAAWA,kBAAkBA,EAAEA,KAAKA;QAChCI,CAACA,CAACA,IAAIA,CAACA,iCAAiCA,GAACA,kBAAkBA,GAACA,SAASA,GAACA,KAAKA,EAAEA,UAAUA,IAAIA;YACvF,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC1B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC,CAACA,IAAIA,CAACA,IAAIA,CAACA,EAAEA,MAAMA,CAACA,CAACA,IAAIA,CAACA,UAAUA,GAAGA,EAAEA,MAAMA,EAAEA,KAAKA;YACnD,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,CAACA,CAACA;IACPA,CAACA;IACMJ,kCAAWA,GAAlBA,UAAmBA,KAAKA,EAAEA,IAAYA;QAAZK,oBAAYA,GAAZA,YAAYA;QAElCA,IAAIA,QAAQA,GAAGA,CAACA,CAACA,UAAUA,CAACA,CAACA;QAC7BA,QAAQA,CAACA,IAAIA,CAACA,KAAKA,CAACA,CAACA;QACrBA,EAAEA,CAAAA,CAACA,IAAIA,CAACA,KAAKA,GAAGA,CAACA,CAACA,CAACA,CAACA;YAChBA,QAAQA,CAACA,KAAKA,CAACA,MAAMA,CAACA,CAACA;QAC3BA,CAACA;QAACA,IAAIA,CAACA,EAAEA,CAAAA,CAACA,IAAIA,CAACA,CAACA,CAACA;YACbA,QAAQA,CAACA,KAAKA,CAACA,MAAMA,CAACA,CAACA;QAC3BA,CAACA;QACDA,IAAIA,CAACA,UAAUA,EAAEA,CAACA;IACtBA,CAACA;IACML,iCAAUA,GAAjBA;QACIM,IAAIA,IAAIA,GAAGA,CAACA,CAACA,mBAAmBA,CAACA,CAACA;QAClCA,IAAIA,KAAKA,GAAGA,IAAIA,CAACA,KAAKA,CAACA;QACvBA,EAAEA,CAAAA,CAACA,KAAKA,GAAGA,CAACA,CAACA,CAACA,CAACA;YACXA,CAACA,CAACA,IAAIA,CAACA,CAACA,IAAIA,CAACA,2FAA2FA,GAAGA,KAAKA,GAAGA,QAAQA,GAAGA,CAACA,CAACA,KAAKA,GAAGA,CAACA,CAACA,GAAGA,IAAIA,GAAGA,CAACA,CAACA,KAAKA,GAAGA,CAACA,CAACA,GAAGA,GAAGA,GAAGA,EAAEA,CAACA,CAACA,GAAGA,wCAAwCA,GAAGA,IAAIA,CAACA,GAAGA,GAAGA,gGAAgGA,CAACA,CAACA;QAC5UA,CAACA;QAACA,IAAIA,CAACA,CAACA;YACJA,CAACA,CAACA,IAAIA,CAACA,CAACA,IAAIA,CAACA,yCAAyCA,CAACA,CAACA;QAC5DA,CAACA;IACLA,CAACA;IACDN,sBAAIA,+BAAKA;aAATA;YACIO,MAAMA,CAACA,MAAMA,CAACA,IAAIA,CAACA,IAAIA,CAACA,MAAMA,CAACA,CAACA,MAAMA,CAACA;QAC3CA,CAACA;;;OAAAP;IACDA,sBAAIA,6BAAGA;aAAPA;YACIQ,IAAIA,GAAGA,GAAGA,CAACA,CAACA;YACZA,CAACA,CAACA,IAAIA,CAACA,IAAIA,CAACA,MAAMA,EAAEA,UAASA,KAAKA,EAAEA,KAAKA;gBACrC,GAAG,IAAI,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YACrC,CAAC,CAACA,CAACA;YACHA,MAAMA,CAACA,GAAGA,CAACA;QACfA,CAACA;;;OAAAR;IACLA,mBAACA;AAADA,CAACA,AA3DD,IA2DC"}  
2 \ No newline at end of file 1 \ No newline at end of file
  2 +{"version":3,"file":"artbox_basket.js","sourceRoot":"","sources":["artbox_basket.ts"],"names":[],"mappings":"AAAA;IAKI;QACI,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,IAAI;YAC3B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC1B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC;YACvB,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;IACP,CAAC;IAVD,sBAAI,+BAAK;aAAT;YACI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;;;OAAA;IASM,0BAAG,GAAV,UAAW,kBAAkB,EAAE,KAAK;QAChC,CAAC,CAAC,IAAI,CAAC,iCAAiC,GAAC,kBAAkB,GAAC,SAAS,GAAC,KAAK,EAAE,UAAU,IAAI;YACvF,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC1B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACvC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,EAAE,MAAM,EAAE,KAAK;YACnD,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;IACP,CAAC;IACM,0BAAG,GAAV,UAAW,kBAAkB,EAAE,KAAK;QAChC,CAAC,CAAC,IAAI,CAAC,iCAAiC,GAAC,kBAAkB,GAAC,SAAS,GAAC,KAAK,EAAE,UAAU,IAAI;YACvF,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC1B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,EAAE,MAAM,EAAE,KAAK;YACnD,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;IACP,CAAC;IACM,kCAAW,GAAlB,UAAmB,KAAK,EAAE,IAAY;QAAZ,oBAAY,GAAZ,YAAY;QAElC,IAAI,QAAQ,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC;QAC7B,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,EAAE,CAAA,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;YAChB,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3B,CAAC;QAAC,IAAI,CAAC,EAAE,CAAA,CAAC,IAAI,CAAC,CAAC,CAAC;YACb,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3B,CAAC;QACD,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IACM,iCAAU,GAAjB;QACI,IAAI,IAAI,GAAG,CAAC,CAAC,mBAAmB,CAAC,CAAC;QAClC,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACvB,EAAE,CAAA,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;YACX,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,2FAA2F,GAAG,KAAK,GAAG,QAAQ,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC,GAAG,wCAAwC,GAAG,IAAI,CAAC,GAAG,GAAG,gGAAgG,CAAC,CAAC;QAC5U,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;QAC5D,CAAC;IACL,CAAC;IACD,sBAAI,+BAAK;aAAT;YACI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;QAC3C,CAAC;;;OAAA;IACD,sBAAI,6BAAG;aAAP;YACI,IAAI,GAAG,GAAG,CAAC,CAAC;YACZ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,UAAS,KAAK,EAAE,KAAK;gBACrC,GAAG,IAAI,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YACrC,CAAC,CAAC,CAAC;YACH,MAAM,CAAC,GAAG,CAAC;QACf,CAAC;;;OAAA;IACL,mBAAC;AAAD,CAAC,AA3DD,IA2DC"}
3 \ No newline at end of file 3 \ No newline at end of file
frontend/web/js/js_footer.js
1 -var ga_exist = false;  
2 -console.log('GA: ' + typeof ga);  
3 -if (typeof ga == "undefined") {  
4 - console.log('GA is not function and not detected');  
5 -}  
6 -$(".btn-product-details").click(function(e) {  
7 - var raw_data = $(this).closest(".item_container").attr("data-json");  
8 - if (!is_undef(raw_data) && raw_data != '') {  
9 - if (e.preventDefault) e.preventDefault();  
10 - if (e.stopPropagation) e.stopPropagation();  
11 - e.cancelBubble = true;  
12 - e.returnValue = false;  
13 - var raw_data = decodeURIComponent(raw_data);  
14 - var data = JSON.parse(raw_data);  
15 - ga('ec:addProduct', {  
16 - 'id': data.id,  
17 - 'name': data.model,  
18 - 'category': data.categoryPath,  
19 - 'brand': data.brand,  
20 - 'prodType': data.prod_type,  
21 - 'position': data.posIndex  
22 - });  
23 - ga('ec:setAction', 'click', {  
24 - 'list': data.listType  
25 - });  
26 - var tmp_url = data.url;  
27 - if (ga.hasOwnProperty('loaded') && ga.loaded === true) {  
28 - ga('send', 'event', {  
29 - 'eventCategory': 'UX',  
30 - 'eventAction': 'productDetailsClick',  
31 - 'eventLabel': tmp_url,  
32 - 'eventValue': 1,  
33 - 'hitCallback': function() {  
34 - console.log(tmp_url);  
35 - document.location = data.url;  
36 - }  
37 - });  
38 - } else {  
39 - console.log('No GA');  
40 - document.location = tmp_url;  
41 - }  
42 - }  
43 -});  
44 -$(document).ready(function() {  
45 - console.log('Ready GA: ' + typeof ga);  
46 - ga_exist = (typeof ga === "function");  
47 - $('.catalog_item .item_container').each(function() {  
48 - var raw_data = $(this).attr("data-json");  
49 - if (!is_undef(raw_data) && raw_data != '') {  
50 - var raw_data = decodeURIComponent(raw_data);  
51 - var data = JSON.parse(raw_data);  
52 - ga('ec:addImpression', {  
53 - 'id': data.id,  
54 - 'name': data.model,  
55 - 'category': data.categoryPath,  
56 - 'brand': data.brand,  
57 - 'prodType': data.prod_type,  
58 - 'list': data.listType,  
59 - 'position': data.posIndex  
60 - });  
61 - }  
62 - });  
63 -});  
64 -  
65 -function ga_cart_remove(raw_data) {  
66 - if (!is_undef(raw_data) && raw_data != '') {  
67 - var raw_data = decodeURIComponent(raw_data);  
68 - var data = JSON.parse(raw_data);  
69 - console.log('remove data:', data);  
70 - ga('ec:addProduct', {  
71 - 'id': data.id,  
72 - 'name': data.model,  
73 - 'price': data.price,  
74 - 'brand': data.brand,  
75 - 'category': data.categoryPath,  
76 - 'prodType': data.prod_type,  
77 - 'position': data.position,  
78 - 'quantity': $("input[id=qty_" + data.id + ']').val()  
79 - });  
80 - ga("ec:setAction", "remove");  
81 - ga("send", "event", "UX", "click", "removeFromCart");  
82 - }  
83 -}  
84 -  
85 -function ga_cart_add(raw_data) {  
86 - if (!is_undef(raw_data) && raw_data != '') {  
87 - var raw_data = decodeURIComponent(raw_data);  
88 - var data = JSON.parse(raw_data);  
89 - console.log('add data:', data);  
90 - var modalBox = $('#buyForm');  
91 - ga('ec:addProduct', {  
92 - 'id': data.id,  
93 - 'name': data.model,  
94 - 'category': data.categoryPath,  
95 - 'brand': data.brand,  
96 - 'prodType': data.prod_type,  
97 - 'price': data.price,  
98 - 'quantity': $("input.prod_count", modalBox).val()  
99 - });  
100 - ga('ec:setAction', 'add');  
101 - ga('send', 'event', 'UX', 'click', 'addToCart');  
102 - }  
103 -}  
104 -  
105 -function ga_order_preview() {  
106 - var is_cart_empty = 1;  
107 - $('.order_item').each(function() {  
108 - var raw_data = $(this).attr("data-json");  
109 - if (!is_undef(raw_data) && raw_data != '') {  
110 - var raw_data = decodeURIComponent(raw_data);  
111 - var data = JSON.parse(raw_data);  
112 - console.log('add data:', data);  
113 - ga('ec:addProduct', {  
114 - 'id': data.id,  
115 - 'name': data.model,  
116 - 'price': data.price,  
117 - 'brand': data.brand,  
118 - 'category': data.categoryPath,  
119 - 'prodType': data.prod_type,  
120 - 'position': data.position,  
121 - 'quantity': $("input[id=qty_" + data.id + ']').val()  
122 - });  
123 - is_cart_empty = 0;  
124 - }  
125 - });  
126 - if (is_cart_empty == 0)  
127 - ga("ec:setAction", "checkout", {  
128 - "step": 1  
129 - });  
130 -}  
131 -  
132 -function ga_order_submit() {  
133 - var is_cart_empty = 1;  
134 - $('.order_item').each(function() {  
135 - var raw_data = $(this).attr("data-json");  
136 - if (!is_undef(raw_data) && raw_data != '') {  
137 - var raw_data = decodeURIComponent(raw_data);  
138 - var data = JSON.parse(raw_data);  
139 - console.log('add data:', data);  
140 - ga('ec:addProduct', {  
141 - 'id': data.id,  
142 - 'name': data.model,  
143 - 'price': data.price,  
144 - 'brand': data.brand,  
145 - 'category': data.categoryPath,  
146 - 'prodType': data.prod_type,  
147 - 'position': data.position,  
148 - 'quantity': $("input[id=qty_" + data.id + ']').val()  
149 - });  
150 - is_cart_empty = 0;  
151 - }  
152 - });  
153 -};  
154 -var cart_items = new Array();  
155 -var debug_cart = false;  
156 -debug_cart = true;  
157 -$(document).ready(function() {  
158 - $('.buy_button').on('click', function() {  
159 - var cart = $('#top-cart');  
160 - var modalBox = $('#buyForm');  
161 - if (!$(this).hasClass("btn-large") && !$(this).hasClass("btnBuy")) {  
162 - var imgtodrag = $(this).parent().parent('.img').find("img").eq(0);  
163 - }  
164 - if (typeof imgtodrag == 'object' && typeof imgtodrag.offset() !== 'undefined') {  
165 - var imgclone = imgtodrag.clone().offset({  
166 - top: imgtodrag.offset().top,  
167 - left: imgtodrag.offset().left  
168 - }).css({  
169 - 'opacity': '0.5',  
170 - 'position': 'absolute',  
171 - 'height': '150px',  
172 - 'width': '150px',  
173 - 'z-index': '100'  
174 - }).appendTo($('body')).animate({  
175 - 'top': cart.offset().top + 10,  
176 - 'left': cart.offset().left + 10,  
177 - 'width': 75,  
178 - 'height': 75  
179 - }, 1000, 'easeInOutExpo');  
180 - setTimeout(function() {  
181 - cart.effect("shake", {  
182 - times: 2  
183 - }, 200);  
184 - }, 1500);  
185 - imgclone.animate({  
186 - 'width': 0,  
187 - 'height': 0  
188 - }, function() {  
189 - $(this).detach()  
190 - });  
191 - }  
192 - var prod_id = $(this).prop('lang');  
193 - console.log('prod_id:' + prod_id);  
194 - $("#prod_id", modalBox).val(prod_id);  
195 - var prod_count = 0;  
196 - if (typeof cart_items[prod_id] !== 'undefined') prod_count = parseInt(cart_items[prod_id]);  
197 - if (debug_cart) console.log(cart_items[prod_id] + 'prod_count:' + prod_count);  
198 - $("input.prod_count", modalBox).val(prod_count);  
199 - $('.plus', modalBox).click();  
200 -  
201 -  
202 - $(".tovar .title", modalBox).html('hfdhfg');  
203 -  
204 -  
205 - $(".total_prod", modalBox).html('hgjhgjghk');  
206 - update_count_basket(4, 54);  
207 -  
208 - //save_cart($("#prod_id", modalBox).val(), $("input.prod_count", modalBox).val());  
209 - $(this).html('ะšัƒะฟะธั‚ัŒ ะตั‰ะต');  
210 - if (ga_exist) {  
211 - var raw_data = $(this).closest(".item_container").attr("data-json");  
212 - ga_cart_add(raw_data);  
213 - }  
214 - });  
215 - $.mask.definitions['~'] = '[+-]';  
216 - $('.customerphone, .phone').mask('+380 (99) 999-99-99', {  
217 - completed: function() {  
218 - $("button, .btn", $(this).parent()).removeClass('disabled');  
219 - }  
220 - });  
221 - $('.phone_short').mask('(099)999-99-99', {  
222 - completed: function() {  
223 - $("button, .btn", $(this).parent()).removeClass('disabled');  
224 - }  
225 - });  
226 - $('#buy_back_call_submit').bind('click', function() {  
227 - var modalBox = $('#buyForm');  
228 - var prod_id = $("#prod_id", modalBox).val();  
229 - var phone_el = $("input[name=customerphone]", modalBox);  
230 - var tmp_phone = $(phone_el).val();  
231 - if (empty(tmp_phone)) {  
232 - $(phone_el).focus();  
233 - alert('ะŸะพะถะฐะปัƒะนัั‚ะฐ ะฒะฒะตะดะธั‚ะต ะฝะพะผะตั€ ั‚ะตะปะตั„ะพะฝะฐ!');  
234 - } else {  
235 - send_feedback(tmp_phone, 'prod_id:' + prod_id, {  
236 - 'type': 'fastOrder'  
237 - });  
238 - }  
239 - if (debug_cart)  
240 - console.log(prod_id);  
241 - });  
242 - $('.fast_order_form .btn').bind('click', function() {  
243 - var modalBox = $('#buyForm');  
244 - var phone_el = $(".fast_order_form input[name=phone]");  
245 - var tmp_phone = $(phone_el).val();  
246 - var prod_id = $(this).prop('lang');  
247 - if (empty(tmp_phone)) {  
248 - $(phone_el).focus();  
249 - alert('ะŸะพะถะฐะปัƒะนัั‚ะฐ ะฒะฒะตะดะธั‚ะต ะฝะพะผะตั€ ั‚ะตะปะตั„ะพะฝะฐ!');  
250 - } else {  
251 - if (typeof ga == "function") ga('send', 'event', 'ะšะฐั€ั‚ะพั‡ะบะฐ ั‚ะพะฒะฐั€ะฐ', 'ะšัƒะฟะธั‚ัŒ ะฒ 1 ะบะปะธะบ');  
252 - send_feedback(tmp_phone, 'prod_id:' + prod_id, {  
253 - 'type': 'fastOrder'  
254 - });  
255 - }  
256 - });  
257 -});  
258 -  
259 -function save_cart(prod_id, prod_count, sender) {  
260 - var cart = $('#top-cart');  
261 - var modalBox = $('#buyForm');  
262 - if (!sender) sender = modalBox;  
263 - cart_items[prod_id] = prod_count;  
264 - JsHttpRequest.query('hr_gate.php?test=500&r=' + Math.random(), {  
265 - 'sp': "prod_in_basket",  
266 - 'prod_id': prod_id,  
267 - 'prod_count': prod_count  
268 - }, function(result, errors) {  
269 - if (errors) console.log('Errors: ' + errors);  
270 - if (result) {  
271 - if (debug_cart)  
272 - console.log(result);  
273 - if (result.prod_info) {  
274 - var prod = result.prod_info;  
275 - if (debug_cart) console.log(prod);  
276 - if (typeof prod === 'object') {  
277 - var modelTitle = ((prod.prod_type) ? prod.prod_type + '<br>' : '') + prod.brand + ' ' + prod.model;  
278 - $(".tovar .title", modalBox).html(modelTitle);  
279 - var tmp_count = parseInt($("input.prod_count", sender).val());  
280 - if (debug_cart) console.log('count: ' + tmp_count);  
281 - $(".total_prod", sender).html(format_money(tmp_count * parseFloat(prod.price)));  
282 - if (prod.photo_path) {  
283 - var photo = prod.photo_path;  
284 - if (debug_cart) console.log('photo: ' + photo);  
285 - $(".tovar img", modalBox).prop('src', photo);  
286 - }  
287 - }  
288 - }  
289 - if (result.count_prod && result.total_sum) {  
290 - update_count_basket(result.count_prod, result.total_sum);  
291 - }  
292 - }  
293 - }, true);  
294 -}  
295 -  
296 -function update_count_basket(count, sum) {  
297 - console.log(count + ' s:' + sum);  
298 - var cart = $('#top-cart');  
299 - var modalBox = $('#buyForm');  
300 - if (count > 0) {  
301 - var sum_str = format_money(sum);  
302 - cart.find('.btn.btn-cart').addClass('not_empty');  
303 - cart.find('#top-cart-content').html('<a href="ordering.htm"><span class="in_the_cart">ะ’ ะบะพั€ะทะธะฝะต</span><span id="in_cart_col">' + count + ' ั‚ะพะฒะฐั€' + ((count > 4) ? 'ะพะฒ' : ((count > 1) ? 'ะฐ' : '')) + '</span><br/><span id="in_cart_sum">ะฝะฐ ' + sum_str + ' </span><br/></a><div id="in_cart_a"><a class="btn" href="ordering.htm">ะพั„ะพั€ะผะธั‚ัŒ ะฟะพะบัƒะฟะบัƒ</a></div>');  
304 - $(".cart_count", modalBox).html(count);  
305 - $(".cart_total").html(sum_str);  
306 - } else {  
307 - cart.find('.btn.btn-cart').removeClass('not_empty');  
308 - cart.find('#top-cart-content').html('<p class="empty-cart">ะšะพั€ะทะธะฝะฐ ะฟัƒัั‚ะฐ</p>');  
309 - $(".cart_count", modalBox).html('--');  
310 - $(".cart_total").html('--');  
311 - }  
312 - if (sum < 1000) var free_delivery = "ะ”ะปั ะฑะตัะฟะปะฐั‚ะฝะพะน ะดะพัั‚ะฐะฒะบะธ ะพัั‚ะฐะปะพััŒ ะดะพะฑะฐะฒะธั‚ัŒ ะฒ ะทะฐะบะฐะท ั‚ะพะฒะฐั€ะพะฒ ะฝะฐ <b>" + format_money(1000 - sum) + "</b> ";  
313 - else var free_delivery = "ะ‘ะตัะฟะปะฐั‚ะฝะฐั ะดะพัั‚ะฐะฒะบะฐ!!!";  
314 - $('.dostavka').html(free_delivery + '<br/><br/>');  
315 -};  
316 -jQuery(function($) {});  
317 -  
318 -function send_feedback(tel, reason, opt) {  
319 - var feedback_type = '';  
320 - if (opt && opt.type) feedback_type = opt.type;  
321 - console.log(tel + ' | ' + reason + ' | ' + opt);  
322 - if (typeof ga == "function") ga('send', 'event', 'callback', 'click');  
323 - JsHttpRequest.query('hr_gate.php?test=500&r=' + Math.random(), {  
324 - 'sp': "callback",  
325 - 'tel': tel,  
326 - 'feedback_type': feedback_type,  
327 - 'reason': reason,  
328 - 'href': location.href  
329 - }, function(result, errors) {  
330 - if (errors) console.log('errors: ' + errors);  
331 - var msg = '';  
332 - if (result) {  
333 - $('#errormessage').hide();  
334 - msg = 'ะกะฟะฐัะธะฑะพ ะทะฐ ะพะฑั€ะฐั‰ะตะฝะธะต. ะะฐัˆะธ ะผะตะฝะตะดะถะตั€ั‹ ัะฒัะถัƒั‚ัŒัั ั ะ’ะฐะผะธ ะฒ ะฑะปะธะถะฐะนัˆะตะต ะฒั€ะตะผั';  
335 - } else {  
336 - $('#errormessage').hide();  
337 - msg = 'ะ˜ะทะฒะธะฝะธั‚ะต. ะกะตั€ะฒะธั ะฒั€ะตะผะตะฝะฝะพ ะฝะต ะดะพัั‚ัƒะฟะตะฝ';  
338 - }  
339 - alert(msg);  
340 - }, true);  
341 -}  
342 -$(document).ready(function() {  
343 - $('#header_feedback .btn').click(function(event) {  
344 - tel = $('#header_feedback input[name=phone]').val();  
345 - var reason = '';  
346 - console.log('callback :: tel:' + tel + ' reason: ' + reason);  
347 - if (tel == '') {  
348 - $('#errormessage').show();  
349 - console.log('feedback error');  
350 - } else {  
351 - $('#errormessage').hide();  
352 - send_feedback(tel, reason);  
353 - }  
354 - });  
355 -});;  
356 -  
357 -function onRegistrationFormSubmit(form) {  
358 - if (!empty(form)) {  
359 - form.submit();  
360 - return true;  
361 - $("#botmena").click();  
362 - result_msg = "ะฃัะฟะตัˆะฝะพ ะทะฐั€ะตะณะธัั‚ั€ะธั€ะพะฒะฐะฝ!";  
363 - $().message(result_msg);  
364 - } else alert('Form empty');  
365 - return false;  
366 -}  
367 -$(document).ready(function() {});;  
368 -jQuery(function($) {  
369 - $.mask.definitions['~'] = '[+-]';  
370 - $('#pc_phone').mask('+380 (99) 999-99-99');  
371 - $('#pc_code').mask('9999');  
372 -});  
373 -$(document).ready(function() {  
374 - $('#btnPromoBuy').click(function(event) {  
375 - login = $('#popup_getpromoprod #pc_login').val();  
376 - phone = $('#popup_getpromoprod #pc_phone').val();  
377 - code = $('#popup_getpromoprod #pc_code').val();  
378 - err_msg = $('#popup_getpromoprod #errormessage');  
379 - err_msg_promo = $('#popup_getpromoprod #errormessagepromo');  
380 - $(err_msg_promo).hide();  
381 - if (empty(login) || empty(phone) || empty(code)) {  
382 - $(err_msg).show();  
383 - return;  
384 - } else if (!in_array(code, new Array(1001, 2002, 3003, 4004))) {  
385 - $(err_msg_promo).show();  
386 - return;  
387 - } else {  
388 - $(err_msg).hide();  
389 - JsHttpRequest.query('hr_gate.php?test=500&r=' + Math.random(), {  
390 - 'sp': "promoprod",  
391 - 'login': login,  
392 - 'phone': phone,  
393 - 'code': code,  
394 - 'href': location.href  
395 - }, function(result, errors) {  
396 - if (errors) alert(errors);  
397 - if (result) {  
398 - $(err_msg).hide();  
399 - $('#promoprodTbl').html('<tr><td colspan="2" ><p style="margin-top:15px;"><center>ะ’ะฐัˆะฐ ะทะฐัะฒะบะฐ ะฟั€ะธะฝัั‚ะฐ. ะ’ะฐัˆ ะบะพะด "' + result.code + '"<br>ะ’ ะฑะปะธะถะฐะนัˆะตะต ะฒั€ะตะผั ะผะตะฝะตะดะถะตั€ ั ะ’ะฐะผะธ ัะฒัะถะตั‚ัั.</center></p></td></tr>');  
400 - } else {  
401 - $(err_msg).hide();  
402 - $('#promoprodTbl').html('<tr><td colspan="2" ><p style="margin-top:15px;"><center>ะ˜ะทะฒะธะฝะธั‚ะต.<br /> ะกะตั€ะฒะธั ะฒั€ะตะผะตะฝะฝะพ ะฝะต ะดะพัั‚ัƒะฟะตะฝ</center></p></td></tr>');  
403 - }  
404 - }, true);  
405 - }  
406 - });  
407 -});;  
408 -$(document).ready(function() {  
409 - $('#toogle_seo_text').after('<span id="toogle_seo_button" style="margin-bottom: 5px;display:block;margin-top:5px;cursor: pointer;text-align:center;">ะ ะฐะทะฒะตั€ะฝัƒั‚ัŒ ั‚ะตะบัั‚</span>');  
410 - $('#toogle_seo_text').css('display', 'none');  
411 - $('#toogle_seo_button').click(function() {  
412 - if ($('#toogle_seo_text').is(":hidden")) {  
413 - $('#toogle_seo_text').show(1500);  
414 - $('#toogle_seo_button').html("ะกะฒะตั€ะฝัƒั‚ัŒ ั‚ะตะบัั‚");  
415 - } else {  
416 - $('#toogle_seo_text').hide(1500);  
417 - $('#toogle_seo_button').html("ะ ะฐะทะฒะตั€ะฝัƒั‚ัŒ ั‚ะตะบัั‚");  
418 - }  
419 - });  
420 -});;  
421 -$(document).ready(function() {  
422 - $('a:not([href-data=""])').each(function() {  
423 - $(this).attr('href', $(this).attr('href-data'));  
424 - });  
425 -});;  
426 -var compareWindow;  
427 -var new_window = '';  
428 -var name_cookie = 'compare_id';  
429 -$(document).ready(function() {  
430 - $("a.compare_href, a.compare_menu, a.compare_delete_basket").css('display', "inline");  
431 - check_id_compare();  
432 - var a;  
433 - if (getCookie(name_cookie)) a = explode(',', getCookie(name_cookie));  
434 - if (a) {  
435 - $('a.compare_menu').html("ะ’ ะบะพั€ะทะธะฝะต ัั€ะฐะฒะฝะตะฝะธั: " + a.length + " ั‚ะพะฒ.");  
436 - $('a.compare_basket').html('ะกั€ะฐะฒะฝะธั‚ัŒ ั‚ะพะฒะฐั€ั‹ (' + a.length + ' ัˆั‚.)').attr('href', '?p=compare&' + name_cookie + '=' + getCookie(name_cookie));  
437 - $('a.compare_delete_basket').html('<img style="border:none;" height="12px;" title="ะฃะดะฐะปะธั‚ัŒ" src="/images/compare/delete.png">').attr('href', "");  
438 - }  
439 - $('a.compare_menu').bind('click', function() {  
440 - if (getCookie(name_cookie)) a = explode(',', getCookie(name_cookie));  
441 - if ($.cookie(name_cookie)) {  
442 - compareWindow = open('?p=compare&' + name_cookie + '=' + getCookie(name_cookie), 'compareWindow', 'scrollbars=1');  
443 - }  
444 - });  
445 - $('a.close_compare').bind('click', function() {  
446 - window.close();  
447 - });  
448 - $('a.compare_delete').bind('click', function() {  
449 - var t = get_current_compare($(this).attr('name'));  
450 - if (t['data']) {  
451 - set_cookie(name_cookie, t['data']);  
452 - $(this).attr('href', '?p=compare&' + name_cookie + '=' + t['data']);  
453 - if (window.opener && !window.opener.closed) window.opener.check_id_compare();  
454 - } else {  
455 - set_cookie(name_cookie, ";");  
456 - if (window.opener && !window.opener.closed) window.opener.check_id_compare();  
457 - window.close();  
458 - delete(compareWindow);  
459 - }  
460 - });  
461 - $('a.compare_delete_basket').bind('click', function() {  
462 - set_cookie(name_cookie, ";");  
463 - $('a.compare_menu').html('ะกั€ะฐะฒะฝะธั‚ัŒ ั‚ะพะฒะฐั€ั‹ (0 ัˆั‚.)');  
464 - $('a.go_to_compare').each(function() {  
465 - if ($(this).attr('lang')) $(this).html("ะกั€ะฐะฒะฝะธั‚ัŒ");  
466 - else $(this).html("ะกั€ะฐะฒะฝะธั‚ัŒ ั‚ะพะฒะฐั€");  
467 - $(this).attr('class', 'compare_href');  
468 - $(this).unbind();  
469 - bind_event_compare();  
470 - });  
471 - return false;  
472 - });  
473 - $('a.compare_zakaz').bind('mouseover', function() {  
474 - var id_img = $(this).attr('name');  
475 - $('img#' + id_img).attr('src', '/images/compare/basket_h.png');  
476 - });  
477 - $('a.compare_zakaz').bind('mouseout', function() {  
478 - var id_img = $(this).attr('name');  
479 - $('img#' + id_img).attr('src', '/images/compare/basket.png');  
480 - });  
481 -});  
482 -  
483 -function bind_event_compare() {  
484 - $('a.compare_href').bind('click', function() {  
485 - var length = set_cookie_s(name_cookie, $(this).attr('name'));  
486 - $('a.compare_menu').html("ะ’ ะบะพั€ะทะธะฝะต ัั€ะฐะฒะฝะตะฝะธั: " + length + " ั‚ะพะฒ.")  
487 - $('a.compare_delete_basket').html('<img style="border:none;" height="12px;" src="/images/compare/delete.png">').attr('href', "");  
488 - check_id_compare();  
489 - compareWindow = openWindowAdv('?p=compare&' + name_cookie + '=' + getCookie(name_cookie), 'compareWindow');  
490 - return false;  
491 - });  
492 -}  
493 -  
494 -function check_id_compare() {  
495 - var a;  
496 - if (getCookie(name_cookie)) a = explode(',', getCookie(name_cookie));  
497 - if (a) {  
498 - $('a.compare_href').each(function() {  
499 - if ($.inArray($(this).attr('name'), a) > -1) {  
500 - $(this).html('ะš ัั€ะฐะฒะฝะตะฝะธัŽ');  
501 - $(this).attr('class', 'go_to_compare compare');  
502 - $(this).unbind();  
503 - $(this).bind('click', function() {  
504 - compareWindow = openWindowAdv('?p=compare&' + name_cookie + '=' + getCookie(name_cookie), 'compareWindow');  
505 - });  
506 - } else {  
507 - if ($(this).attr('lang')) $(this).html("ะกั€ะฐะฒะฝะธั‚ัŒ");  
508 - else $(this).html("ะกั€ะฐะฒะฝะธั‚ัŒ ั‚ะพะฒะฐั€");  
509 - }  
510 - });  
511 - $('a.go_to_compare').each(function() {  
512 - if ($.inArray($(this).attr('name'), a) < 0) {  
513 - $(this).unbind();  
514 - if ($(this).attr('lang')) $(this).html("ะกั€ะฐะฒะฝะธั‚ัŒ");  
515 - else $(this).html("ะกั€ะฐะฒะฝะธั‚ัŒ ั‚ะพะฒะฐั€");  
516 - $(this).attr('class', 'compare_href');  
517 - } else {  
518 - $(this).unbind();  
519 - $(this).bind('click', function() {  
520 - compareWindow = openWindowAdv('?p=compare&' + name_cookie + '=' + getCookie(name_cookie), 'compareWindow');  
521 - });  
522 - }  
523 - });  
524 - $('a.compare_menu').html("ะ’ ะบะพั€ะทะธะฝะต ัั€ะฐะฒะฝะตะฝะธั: " + a.length + " ั‚ะพะฒ.");  
525 - } else {  
526 - $('a.compare_menu').html("ะ’ ะบะพั€ะทะธะฝะต ัั€ะฐะฒะฝะตะฝะธั: 0 ั‚ะพะฒ.");  
527 - $('a.go_to_compare').each(function() {  
528 - $(this).unbind();  
529 - if ($(this).attr('lang')) $(this).html("ะกั€ะฐะฒะฝะธั‚ัŒ");  
530 - else $(this).html("ะกั€ะฐะฒะฝะธั‚ัŒ ั‚ะพะฒะฐั€");  
531 - $(this).attr('class', 'compare_href');  
532 - });  
533 - }  
534 - bind_event_compare();  
535 -}  
536 -  
537 -function get_current_compare(delete_prod_number) {  
538 - var a;  
539 - if (getCookie(name_cookie)) a = explode(',', getCookie(name_cookie));  
540 - var d = '';  
541 - var x = 0;  
542 - if (a) {  
543 - for (var b = 0; b < a.length; b++) {  
544 - if (a[b] != delete_prod_number) {  
545 - d += a[b] + ',';  
546 - x++;  
547 - }  
548 - }  
549 - var data = [];  
550 - data['count'] = x;  
551 - data['data'] = d.substr(0, d.length - 1);  
552 - return data;  
553 - } else {  
554 - return '';  
555 - }  
556 -}  
557 -  
558 -function set_cookie_s(name, value) {  
559 - var a = Array(0);  
560 - if (getCookie(name)) a = explode(',', getCookie(name));  
561 - a.push(value);  
562 - var len = unique(a);  
563 - set_cookie(name, implode(',', len));  
564 - return len.length;  
565 -}  
566 -  
567 -function set_cookie(name, value) {  
568 - if (empty(name)) return;  
569 - var cookie_clause = name + "=" + value;  
570 - if (window.opener && !window.opener.closed) {  
571 - try {  
572 - window.opener.document.cookie = cookie_clause;  
573 - } catch (e) {  
574 - document.cookie = cookie_clause;  
575 - }  
576 - } else document.cookie = cookie_clause;  
577 - return true;  
578 -}  
579 -  
580 -function getCookie(name) {  
581 - if (window.opener && !window.opener.closed) {  
582 - try {  
583 - var cookie = " " + window.opener.document.cookie;  
584 - } catch (e) {  
585 - var cookie = " " + document.cookie;  
586 - }  
587 - } else var cookie = " " + document.cookie;  
588 - var search = " " + name + "=";  
589 - var setStr = null;  
590 - var offset = 0;  
591 - var end = 0;  
592 - if (cookie.length > 0) {  
593 - offset = cookie.indexOf(search);  
594 - if (offset != -1) {  
595 - offset += search.length;  
596 - end = cookie.indexOf(";", offset)  
597 - if (end == -1) {  
598 - end = cookie.length;  
599 - }  
600 - setStr = unescape(cookie.substring(offset, end));  
601 - }  
602 - }  
603 - return (setStr);  
604 -}  
605 -  
606 -function implode(glue, pieces) {  
607 - return ((pieces instanceof Array) ? pieces.join(glue) : pieces);  
608 -}  
609 -  
610 -function explode(delimiter, string, limit) {  
611 - var emptyArray = {  
612 - 0: ''  
613 - };  
614 - if (arguments.length < 2 || typeof arguments[0] == 'undefined' || typeof arguments[1] == 'undefined') {  
615 - return null;  
616 - }  
617 - if (delimiter === '' || delimiter === false || delimiter === null) {  
618 - return false;  
619 - }  
620 - if (typeof delimiter == 'function' || typeof delimiter == 'object' || typeof string == 'function' || typeof string == 'object') {  
621 - return emptyArray;  
622 - }  
623 - if (delimiter === true) {  
624 - delimiter = '1';  
625 - }  
626 - if (!limit) {  
627 - return string.toString().split(delimiter.toString());  
628 - } else {  
629 - var splitted = string.toString().split(delimiter.toString());  
630 - var partA = splitted.splice(0, limit - 1);  
631 - var partB = splitted.join(delimiter.toString());  
632 - partA.push(partB);  
633 - return partA;  
634 - }  
635 -}  
636 -  
637 -function unique(arrayName) {  
638 - var newArray = new Array();  
639 - label: for (var i = 0; i < arrayName.length; i++) {  
640 - for (var j = 0; j < newArray.length; j++) {  
641 - if (newArray[j] == arrayName[i]) continue label;  
642 - }  
643 - newArray[newArray.length] = arrayName[i];  
644 - }  
645 - return newArray;  
646 -}  
647 -  
648 -function openWindowAdv(url, wnd) {  
649 - var theName = null;  
650 - theName = wnd;  
651 - eval('var wind=' + wnd + ';');  
652 - if (!theName || theName.closed || !is_object(wind) || wind.closed) {  
653 - var windowHeight, windowWidth, windowTop, windowLeft;  
654 - windowHeight = $(window).height();  
655 - windowWidth = $(window).width();  
656 - windowTop = 0;  
657 - windowLeft = 0;  
658 - var varStore = "";  
659 - varStore = varStore + "width=" + windowWidth;  
660 - varStore = varStore + ",height=" + windowHeight;  
661 - varStore = varStore + ",resizable=" + "1";  
662 - varStore = varStore + ",scrollbars=" + "1";  
663 - varStore = varStore + ",menubar=" + "0";  
664 - varStore = varStore + ",toolbar=" + "0";  
665 - varStore = varStore + ",directories=" + "0";  
666 - varStore = varStore + ",location=" + "0";  
667 - varStore = varStore + ",status=" + "0";  
668 - varStore = varStore + ",left=" + windowLeft;  
669 - varStore = varStore + ",top=" + windowTop;  
670 - varStore = varStore + ",ScreenX=" + windowLeft;  
671 - varStore = varStore + ",ScreenY=" + windowTop;  
672 - wind = window.open(url, theName, varStore)  
673 - wind.focus();  
674 - } else {  
675 - wind.focus();  
676 - }  
677 - return wind;  
678 -};  
679 -$(document).ready(function() {  
680 - var count = 5;  
681 - var def_val = 0;  
682 - var title_txt = "ะŸะพัั‚ะฐะฒะธั‚ัŒ ";  
683 - $('div.rate').each(function() {  
684 - var id_prod = 0;  
685 - var param = $(this).attr('name').split(',');  
686 - for (q in param) {  
687 - var data = param[q].split('.');  
688 - if (data[0] == 'count') count = data[1];  
689 - if (data[0] == 'def_val') def_val = data[1];  
690 - if (data[0] == 'id_prod') id_prod = data[1];  
691 - }  
692 - render($(this), count, def_val, id_prod);  
693 - });  
694 -  
695 - function render(elem, c, v, id_prod) {  
696 - $(elem).html('');  
697 - var color;  
698 - if (v < 0) {  
699 - color = 'red';  
700 - $('span[name=rate_' + id_prod + ']').html(v);  
701 - } else {  
702 - color = 'green';  
703 - $('span[name=rate_' + id_prod + ']').html('+' + v);  
704 - }  
705 - var pos = position_start(c, v);  
706 - var counter = Math.abs(v);  
707 - for (var x = 0; x < (c * 2); x++) {  
708 - var css_class = "passive";  
709 - if (x >= pos && counter > 0) {  
710 - css_class = color;  
711 - counter--;  
712 - } else css_class = "passive";  
713 - var pos_rate = ((x - c) >= 0) ? "+" + (x - c + 1) : x - c;  
714 - css_class = ((x % 2 == 1) ? css_class + '2' : css_class + '1');  
715 - var otstup = ((x % 2 == 1) ? '&nbsp;' : '');  
716 - $(elem).append('<a class="' + css_class + '" name="a_rate" lang="' + pos_rate + ':' + id_prod + '"></a>');  
717 - }  
718 - bind_stars(id_prod);  
719 - }  
720 -  
721 - function position_start(count_stars, rate) {  
722 - count_stars = parseInt(count_stars);  
723 - if (rate < 0) {  
724 - var result = count_stars - Math.abs(rate);  
725 - if (result > 0) return result;  
726 - else return 0;  
727 - } else {  
728 - return count_stars;  
729 - }  
730 - }  
731 -  
732 - function paint_stars(pos_start, length, id_prod, color, curr_css_class) {  
733 - var current_arr_stars = Array(0);  
734 - var arr_stars = $('div#rate_' + id_prod + ' a[name=a_rate]');  
735 - for (var x = pos_start; x < (parseInt(pos_start) + parseInt(length)); x++) {  
736 - var css_class;  
737 - if (color != '') {  
738 - css_class = ((x % 2 == 1) ? color + '2' : color + '1');  
739 - } else {  
740 - css_class = (curr_css_class != '') ? curr_css_class : '';  
741 - }  
742 - current_arr_stars[x] = $(arr_stars[x]).attr('class');  
743 - $(arr_stars[x]).removeClass().addClass(css_class);  
744 - }  
745 - return current_arr_stars;  
746 - }  
747 -  
748 - function bind_stars(id_prod) {  
749 - $('div#rate_' + id_prod + ' a[name=a_rate]').each(function() {  
750 - var data = $(this).attr('lang').split(':');  
751 - if (parseInt(data[0]) == 0 || parseInt(data[1]) == 0) return 0;  
752 - $(this).attr('title', title_txt + data[0]);  
753 - var current_arr_stars = Array(0);  
754 - $(this).bind('mouseover', function() {  
755 - var rate = $(this).attr('lang').split(':');  
756 - if (parseInt(rate[0]) == 0) return 0;  
757 - var color;  
758 - var pos;  
759 - if (rate[0] < 0) {  
760 - color = 'red';  
761 - pos = (Math.abs(rate[0]) < count) ? count - Math.abs(rate[0]) : 0;  
762 - } else {  
763 - color = 'green';  
764 - pos = count;  
765 - }  
766 - current_arr_stars = paint_stars(pos, Math.abs(rate[0]), data[1], color, '');  
767 - });  
768 - $(this).bind('mouseout', function() {  
769 - if (current_arr_stars.length > 0) {  
770 - for (q in current_arr_stars) {  
771 - paint_stars(q, 1, data[1], '', current_arr_stars[q]);  
772 - }  
773 - }  
774 - });  
775 - $(this).bind('click', function() {  
776 - var id = data[1];  
777 - JsHttpRequest.query('hr_gate.php?test=500&r=' + Math.random(), {  
778 - 'sp': "rate",  
779 - 'id': id,  
780 - 'abs': data[0]  
781 - }, function(result, errors) {  
782 - if (errors) alert(errors);  
783 - if (result) {  
784 - if (result.yet_voting > 0) {  
785 - alert('ะ’ั‹ ัƒะถะต ะณะพะปะพัะพะฒะฐะปะธ!');  
786 - return;  
787 - }  
788 - if (result.not_registered > 0) {  
789 - alert('ะงั‚ะพะฑั‹ ะฟั€ะพะณะพะปะพัะพะฒะฐั‚ัŒ ะ’ะฐะผ ะฝะตะพะฑั…ะพะดะธะผะพ ะทะฐั€ะตะณะธัั‚ั€ะธั€ะพะฒะฐั‚ัŒัั!');  
790 - return;  
791 - }  
792 - if (result.new_data) render($('div#rate_' + id), result.new_data.count, result.new_data.rate, id);  
793 - }  
794 - }, true);  
795 - })  
796 - });  
797 - }  
798 -});  
799 \ No newline at end of file 0 \ No newline at end of file
frontend/web/js/js_head.js
1 -/* Minify: at least one missing file. See http://code.google.com/p/minify/wiki/Debugging */  
2 -  
3 -;  
4 -var matched, browser;  
5 -jQuery.uaMatch = function(ua) {  
6 - ua = ua.toLowerCase();  
7 - var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || /(webkit)[ \/]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [];  
8 - return {  
9 - browser: match[1] || "",  
10 - version: match[2] || "0"  
11 - };  
12 -};  
13 -matched = jQuery.uaMatch(navigator.userAgent);  
14 -browser = {};  
15 -if (matched.browser) {  
16 - browser[matched.browser] = true;  
17 - browser.version = matched.version;  
18 -}  
19 -if (browser.chrome) {  
20 - browser.webkit = true;  
21 -} else if (browser.webkit) {  
22 - browser.safari = true;  
23 -}  
24 -jQuery.browser = browser;;  
25 -/*!  
26 - * Bootstrap v3.3.5 (http://getbootstrap.com)  
27 - * Copyright 2011-2015 Twitter, Inc.  
28 - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)  
29 - */  
30 -  
31 -/*!  
32 - * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=a28fbf72a29cf7f8dd3e)  
33 - * Config saved to config.json and https://gist.github.com/a28fbf72a29cf7f8dd3e  
34 - */  
35 -if ("undefined" == typeof jQuery) throw new Error("Bootstrap's JavaScript requires jQuery"); + function(t) {  
36 - "use strict";  
37 - var e = t.fn.jquery.split(" ")[0].split(".");  
38 - if (e[0] < 2 && e[1] < 9 || 1 == e[0] && 9 == e[1] && e[2] < 1) throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")  
39 -}(jQuery), + function(t) {  
40 - "use strict";  
41 -  
42 - function e(e) {  
43 - return this.each(function() {  
44 - var i = t(this),  
45 - n = i.data("bs.alert");  
46 - n || i.data("bs.alert", n = new o(this)), "string" == typeof e && n[e].call(i)  
47 - })  
48 - }  
49 - var i = '[data-dismiss="alert"]',  
50 - o = function(e) {  
51 - t(e).on("click", i, this.close)  
52 - };  
53 - o.VERSION = "3.3.5", o.TRANSITION_DURATION = 150, o.prototype.close = function(e) {  
54 - function i() {  
55 - a.detach().trigger("closed.bs.alert").remove()  
56 - }  
57 - var n = t(this),  
58 - s = n.attr("data-target");  
59 - s || (s = n.attr("href"), s = s && s.replace(/.*(?=#[^\s]*$)/, ""));  
60 - var a = t(s);  
61 - e && e.preventDefault(), a.length || (a = n.closest(".alert")), a.trigger(e = t.Event("close.bs.alert")), e.isDefaultPrevented() || (a.removeClass("in"), t.support.transition && a.hasClass("fade") ? a.one("bsTransitionEnd", i).emulateTransitionEnd(o.TRANSITION_DURATION) : i())  
62 - };  
63 - var n = t.fn.alert;  
64 - t.fn.alert = e, t.fn.alert.Constructor = o, t.fn.alert.noConflict = function() {  
65 - return t.fn.alert = n, this  
66 - }, t(document).on("click.bs.alert.data-api", i, o.prototype.close)  
67 -}(jQuery), + function(t) {  
68 - "use strict";  
69 -  
70 - function e(e) {  
71 - return this.each(function() {  
72 - var o = t(this),  
73 - n = o.data("bs.button"),  
74 - s = "object" == typeof e && e;  
75 - n || o.data("bs.button", n = new i(this, s)), "toggle" == e ? n.toggle() : e && n.setState(e)  
76 - })  
77 - }  
78 - var i = function(e, o) {  
79 - this.$element = t(e), this.options = t.extend({}, i.DEFAULTS, o), this.isLoading = !1  
80 - };  
81 - i.VERSION = "3.3.5", i.DEFAULTS = {  
82 - loadingText: "loading..."  
83 - }, i.prototype.setState = function(e) {  
84 - var i = "disabled",  
85 - o = this.$element,  
86 - n = o.is("input") ? "val" : "html",  
87 - s = o.data();  
88 - e += "Text", null == s.resetText && o.data("resetText", o[n]()), setTimeout(t.proxy(function() {  
89 - o[n](null == s[e] ? this.options[e] : s[e]), "loadingText" == e ? (this.isLoading = !0, o.addClass(i).attr(i, i)) : this.isLoading && (this.isLoading = !1, o.removeClass(i).removeAttr(i))  
90 - }, this), 0)  
91 - }, i.prototype.toggle = function() {  
92 - var t = !0,  
93 - e = this.$element.closest('[data-toggle="buttons"]');  
94 - if (e.length) {  
95 - var i = this.$element.find("input");  
96 - "radio" == i.prop("type") ? (i.prop("checked") && (t = !1), e.find(".active").removeClass("active"), this.$element.addClass("active")) : "checkbox" == i.prop("type") && (i.prop("checked") !== this.$element.hasClass("active") && (t = !1), this.$element.toggleClass("active")), i.prop("checked", this.$element.hasClass("active")), t && i.trigger("change")  
97 - } else this.$element.attr("aria-pressed", !this.$element.hasClass("active")), this.$element.toggleClass("active")  
98 - };  
99 - var o = t.fn.button;  
100 - t.fn.button = e, t.fn.button.Constructor = i, t.fn.button.noConflict = function() {  
101 - return t.fn.button = o, this  
102 - }, t(document).on("click.bs.button.data-api", '[data-toggle^="button"]', function(i) {  
103 - var o = t(i.target);  
104 - o.hasClass("btn") || (o = o.closest(".btn")), e.call(o, "toggle"), t(i.target).is('input[type="radio"]') || t(i.target).is('input[type="checkbox"]') || i.preventDefault()  
105 - }).on("focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', function(e) {  
106 - t(e.target).closest(".btn").toggleClass("focus", /^focus(in)?$/.test(e.type))  
107 - })  
108 -}(jQuery), + function(t) {  
109 - "use strict";  
110 -  
111 - function e(e) {  
112 - return this.each(function() {  
113 - var o = t(this),  
114 - n = o.data("bs.carousel"),  
115 - s = t.extend({}, i.DEFAULTS, o.data(), "object" == typeof e && e),  
116 - a = "string" == typeof e ? e : s.slide;  
117 - n || o.data("bs.carousel", n = new i(this, s)), "number" == typeof e ? n.to(e) : a ? n[a]() : s.interval && n.pause().cycle()  
118 - })  
119 - }  
120 - var i = function(e, i) {  
121 - this.$element = t(e), this.$indicators = this.$element.find(".carousel-indicators"), this.options = i, this.paused = null, this.sliding = null, this.interval = null, this.$active = null, this.$items = null, this.options.keyboard && this.$element.on("keydown.bs.carousel", t.proxy(this.keydown, this)), "hover" == this.options.pause && !("ontouchstart" in document.documentElement) && this.$element.on("mouseenter.bs.carousel", t.proxy(this.pause, this)).on("mouseleave.bs.carousel", t.proxy(this.cycle, this))  
122 - };  
123 - i.VERSION = "3.3.5", i.TRANSITION_DURATION = 600, i.DEFAULTS = {  
124 - interval: 5e3,  
125 - pause: "hover",  
126 - wrap: !0,  
127 - keyboard: !0  
128 - }, i.prototype.keydown = function(t) {  
129 - if (!/input|textarea/i.test(t.target.tagName)) {  
130 - switch (t.which) {  
131 - case 37:  
132 - this.prev();  
133 - break;  
134 - case 39:  
135 - this.next();  
136 - break;  
137 - default:  
138 - return  
139 - }  
140 - t.preventDefault()  
141 - }  
142 - }, i.prototype.cycle = function(e) {  
143 - return e || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(t.proxy(this.next, this), this.options.interval)), this  
144 - }, i.prototype.getItemIndex = function(t) {  
145 - return this.$items = t.parent().children(".item"), this.$items.index(t || this.$active)  
146 - }, i.prototype.getItemForDirection = function(t, e) {  
147 - var i = this.getItemIndex(e),  
148 - o = "prev" == t && 0 === i || "next" == t && i == this.$items.length - 1;  
149 - if (o && !this.options.wrap) return e;  
150 - var n = "prev" == t ? -1 : 1,  
151 - s = (i + n) % this.$items.length;  
152 - return this.$items.eq(s)  
153 - }, i.prototype.to = function(t) {  
154 - var e = this,  
155 - i = this.getItemIndex(this.$active = this.$element.find(".item.active"));  
156 - return t > this.$items.length - 1 || 0 > t ? void 0 : this.sliding ? this.$element.one("slid.bs.carousel", function() {  
157 - e.to(t)  
158 - }) : i == t ? this.pause().cycle() : this.slide(t > i ? "next" : "prev", this.$items.eq(t))  
159 - }, i.prototype.pause = function(e) {  
160 - return e || (this.paused = !0), this.$element.find(".next, .prev").length && t.support.transition && (this.$element.trigger(t.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this  
161 - }, i.prototype.next = function() {  
162 - return this.sliding ? void 0 : this.slide("next")  
163 - }, i.prototype.prev = function() {  
164 - return this.sliding ? void 0 : this.slide("prev")  
165 - }, i.prototype.slide = function(e, o) {  
166 - var n = this.$element.find(".item.active"),  
167 - s = o || this.getItemForDirection(e, n),  
168 - a = this.interval,  
169 - r = "next" == e ? "left" : "right",  
170 - l = this;  
171 - if (s.hasClass("active")) return this.sliding = !1;  
172 - var h = s[0],  
173 - d = t.Event("slide.bs.carousel", {  
174 - relatedTarget: h,  
175 - direction: r  
176 - });  
177 - if (this.$element.trigger(d), !d.isDefaultPrevented()) {  
178 - if (this.sliding = !0, a && this.pause(), this.$indicators.length) {  
179 - this.$indicators.find(".active").removeClass("active");  
180 - var p = t(this.$indicators.children()[this.getItemIndex(s)]);  
181 - p && p.addClass("active")  
182 - }  
183 - var c = t.Event("slid.bs.carousel", {  
184 - relatedTarget: h,  
185 - direction: r  
186 - });  
187 - return t.support.transition && this.$element.hasClass("slide") ? (s.addClass(e), s[0].offsetWidth, n.addClass(r), s.addClass(r), n.one("bsTransitionEnd", function() {  
188 - s.removeClass([e, r].join(" ")).addClass("active"), n.removeClass(["active", r].join(" ")), l.sliding = !1, setTimeout(function() {  
189 - l.$element.trigger(c)  
190 - }, 0)  
191 - }).emulateTransitionEnd(i.TRANSITION_DURATION)) : (n.removeClass("active"), s.addClass("active"), this.sliding = !1, this.$element.trigger(c)), a && this.cycle(), this  
192 - }  
193 - };  
194 - var o = t.fn.carousel;  
195 - t.fn.carousel = e, t.fn.carousel.Constructor = i, t.fn.carousel.noConflict = function() {  
196 - return t.fn.carousel = o, this  
197 - };  
198 - var n = function(i) {  
199 - var o, n = t(this),  
200 - s = t(n.attr("data-target") || (o = n.attr("href")) && o.replace(/.*(?=#[^\s]+$)/, ""));  
201 - if (s.hasClass("carousel")) {  
202 - var a = t.extend({}, s.data(), n.data()),  
203 - r = n.attr("data-slide-to");  
204 - r && (a.interval = !1), e.call(s, a), r && s.data("bs.carousel").to(r), i.preventDefault()  
205 - }  
206 - };  
207 - t(document).on("click.bs.carousel.data-api", "[data-slide]", n).on("click.bs.carousel.data-api", "[data-slide-to]", n), t(window).on("load", function() {  
208 - t('[data-ride="carousel"]').each(function() {  
209 - var i = t(this);  
210 - e.call(i, i.data())  
211 - })  
212 - })  
213 -}(jQuery), + function(t) {  
214 - "use strict";  
215 -  
216 - function e(e) {  
217 - var i = e.attr("data-target");  
218 - i || (i = e.attr("href"), i = i && /#[A-Za-z]/.test(i) && i.replace(/.*(?=#[^\s]*$)/, ""));  
219 - var o = i && t(i);  
220 - return o && o.length ? o : e.parent()  
221 - }  
222 -  
223 - function i(i) {  
224 - i && 3 === i.which || (t(n).remove(), t(s).each(function() {  
225 - var o = t(this),  
226 - n = e(o),  
227 - s = {  
228 - relatedTarget: this  
229 - };  
230 - n.hasClass("open") && (i && "click" == i.type && /input|textarea/i.test(i.target.tagName) && t.contains(n[0], i.target) || (n.trigger(i = t.Event("hide.bs.dropdown", s)), i.isDefaultPrevented() || (o.attr("aria-expanded", "false"), n.removeClass("open").trigger("hidden.bs.dropdown", s))))  
231 - }))  
232 - }  
233 -  
234 - function o(e) {  
235 - return this.each(function() {  
236 - var i = t(this),  
237 - o = i.data("bs.dropdown");  
238 - o || i.data("bs.dropdown", o = new a(this)), "string" == typeof e && o[e].call(i)  
239 - })  
240 - }  
241 - var n = ".dropdown-backdrop",  
242 - s = '[data-toggle="dropdown"]',  
243 - a = function(e) {  
244 - t(e).on("click.bs.dropdown", this.toggle)  
245 - };  
246 - a.VERSION = "3.3.5", a.prototype.toggle = function(o) {  
247 - var n = t(this);  
248 - if (!n.is(".disabled, :disabled")) {  
249 - var s = e(n),  
250 - a = s.hasClass("open");  
251 - if (i(), !a) {  
252 - "ontouchstart" in document.documentElement && !s.closest(".navbar-nav").length && t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click", i);  
253 - var r = {  
254 - relatedTarget: this  
255 - };  
256 - if (s.trigger(o = t.Event("show.bs.dropdown", r)), o.isDefaultPrevented()) return;  
257 - n.trigger("focus").attr("aria-expanded", "true"), s.toggleClass("open").trigger("shown.bs.dropdown", r)  
258 - }  
259 - return !1  
260 - }  
261 - }, a.prototype.keydown = function(i) {  
262 - if (/(38|40|27|32)/.test(i.which) && !/input|textarea/i.test(i.target.tagName)) {  
263 - var o = t(this);  
264 - if (i.preventDefault(), i.stopPropagation(), !o.is(".disabled, :disabled")) {  
265 - var n = e(o),  
266 - a = n.hasClass("open");  
267 - if (!a && 27 != i.which || a && 27 == i.which) return 27 == i.which && n.find(s).trigger("focus"), o.trigger("click");  
268 - var r = " li:not(.disabled):visible a",  
269 - l = n.find(".dropdown-menu" + r);  
270 - if (l.length) {  
271 - var h = l.index(i.target);  
272 - 38 == i.which && h > 0 && h--, 40 == i.which && h < l.length - 1 && h++, ~h || (h = 0), l.eq(h).trigger("focus")  
273 - }  
274 - }  
275 - }  
276 - };  
277 - var r = t.fn.dropdown;  
278 - t.fn.dropdown = o, t.fn.dropdown.Constructor = a, t.fn.dropdown.noConflict = function() {  
279 - return t.fn.dropdown = r, this  
280 - }, t(document).on("click.bs.dropdown.data-api", i).on("click.bs.dropdown.data-api", ".dropdown form", function(t) {  
281 - t.stopPropagation()  
282 - }).on("click.bs.dropdown.data-api", s, a.prototype.toggle).on("keydown.bs.dropdown.data-api", s, a.prototype.keydown).on("keydown.bs.dropdown.data-api", ".dropdown-menu", a.prototype.keydown)  
283 -}(jQuery), + function(t) {  
284 - "use strict";  
285 -  
286 - function e(e, o) {  
287 - return this.each(function() {  
288 - var n = t(this),  
289 - s = n.data("bs.modal"),  
290 - a = t.extend({}, i.DEFAULTS, n.data(), "object" == typeof e && e);  
291 - s || n.data("bs.modal", s = new i(this, a)), "string" == typeof e ? s[e](o) : a.show && s.show(o)  
292 - })  
293 - }  
294 - var i = function(e, i) {  
295 - this.options = i, this.$body = t(document.body), this.$element = t(e), this.$dialog = this.$element.find(".modal-dialog"), this.$backdrop = null, this.isShown = null, this.originalBodyPad = null, this.scrollbarWidth = 0, this.ignoreBackdropClick = !1, this.options.remote && this.$element.find(".modal-content").load(this.options.remote, t.proxy(function() {  
296 - this.$element.trigger("loaded.bs.modal")  
297 - }, this))  
298 - };  
299 - i.VERSION = "3.3.5", i.TRANSITION_DURATION = 300, i.BACKDROP_TRANSITION_DURATION = 150, i.DEFAULTS = {  
300 - backdrop: !0,  
301 - keyboard: !0,  
302 - show: !0  
303 - }, i.prototype.toggle = function(t) {  
304 - return this.isShown ? this.hide() : this.show(t)  
305 - }, i.prototype.show = function(e) {  
306 - var o = this,  
307 - n = t.Event("show.bs.modal", {  
308 - relatedTarget: e  
309 - });  
310 - this.$element.trigger(n), this.isShown || n.isDefaultPrevented() || (this.isShown = !0, this.checkScrollbar(), this.setScrollbar(), this.$body.addClass("modal-open"), this.escape(), this.resize(), this.$element.on("click.dismiss.bs.modal", '[data-dismiss="modal"]', t.proxy(this.hide, this)), this.$dialog.on("mousedown.dismiss.bs.modal", function() {  
311 - o.$element.one("mouseup.dismiss.bs.modal", function(e) {  
312 - t(e.target).is(o.$element) && (o.ignoreBackdropClick = !0)  
313 - })  
314 - }), this.backdrop(function() {  
315 - var n = t.support.transition && o.$element.hasClass("fade");  
316 - o.$element.parent().length || o.$element.appendTo(o.$body), o.$element.show().scrollTop(0), o.adjustDialog(), n && o.$element[0].offsetWidth, o.$element.addClass("in"), o.enforceFocus();  
317 - var s = t.Event("shown.bs.modal", {  
318 - relatedTarget: e  
319 - });  
320 - n ? o.$dialog.one("bsTransitionEnd", function() {  
321 - o.$element.trigger("focus").trigger(s)  
322 - }).emulateTransitionEnd(i.TRANSITION_DURATION) : o.$element.trigger("focus").trigger(s)  
323 - }))  
324 - }, i.prototype.hide = function(e) {  
325 - e && e.preventDefault(), e = t.Event("hide.bs.modal"), this.$element.trigger(e), this.isShown && !e.isDefaultPrevented() && (this.isShown = !1, this.escape(), this.resize(), t(document).off("focusin.bs.modal"), this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"), this.$dialog.off("mousedown.dismiss.bs.modal"), t.support.transition && this.$element.hasClass("fade") ? this.$element.one("bsTransitionEnd", t.proxy(this.hideModal, this)).emulateTransitionEnd(i.TRANSITION_DURATION) : this.hideModal())  
326 - }, i.prototype.enforceFocus = function() {  
327 - t(document).off("focusin.bs.modal").on("focusin.bs.modal", t.proxy(function(t) {  
328 - this.$element[0] === t.target || this.$element.has(t.target).length || this.$element.trigger("focus")  
329 - }, this))  
330 - }, i.prototype.escape = function() {  
331 - this.isShown && this.options.keyboard ? this.$element.on("keydown.dismiss.bs.modal", t.proxy(function(t) {  
332 - 27 == t.which && this.hide()  
333 - }, this)) : this.isShown || this.$element.off("keydown.dismiss.bs.modal")  
334 - }, i.prototype.resize = function() {  
335 - this.isShown ? t(window).on("resize.bs.modal", t.proxy(this.handleUpdate, this)) : t(window).off("resize.bs.modal")  
336 - }, i.prototype.hideModal = function() {  
337 - var t = this;  
338 - this.$element.hide(), this.backdrop(function() {  
339 - t.$body.removeClass("modal-open"), t.resetAdjustments(), t.resetScrollbar(), t.$element.trigger("hidden.bs.modal")  
340 - })  
341 - }, i.prototype.removeBackdrop = function() {  
342 - this.$backdrop && this.$backdrop.remove(), this.$backdrop = null  
343 - }, i.prototype.backdrop = function(e) {  
344 - var o = this,  
345 - n = this.$element.hasClass("fade") ? "fade" : "";  
346 - if (this.isShown && this.options.backdrop) {  
347 - var s = t.support.transition && n;  
348 - if (this.$backdrop = t(document.createElement("div")).addClass("modal-backdrop " + n).appendTo(this.$body), this.$element.on("click.dismiss.bs.modal", t.proxy(function(t) {  
349 - return this.ignoreBackdropClick ? void(this.ignoreBackdropClick = !1) : void(t.target === t.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus() : this.hide()))  
350 - }, this)), s && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !e) return;  
351 - s ? this.$backdrop.one("bsTransitionEnd", e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION) : e()  
352 - } else if (!this.isShown && this.$backdrop) {  
353 - this.$backdrop.removeClass("in");  
354 - var a = function() {  
355 - o.removeBackdrop(), e && e()  
356 - };  
357 - t.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one("bsTransitionEnd", a).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION) : a()  
358 - } else e && e()  
359 - }, i.prototype.handleUpdate = function() {  
360 - this.adjustDialog()  
361 - }, i.prototype.adjustDialog = function() {  
362 - var t = this.$element[0].scrollHeight > document.documentElement.clientHeight;  
363 - this.$element.css({  
364 - paddingLeft: !this.bodyIsOverflowing && t ? this.scrollbarWidth : "",  
365 - paddingRight: this.bodyIsOverflowing && !t ? this.scrollbarWidth : ""  
366 - })  
367 - }, i.prototype.resetAdjustments = function() {  
368 - this.$element.css({  
369 - paddingLeft: "",  
370 - paddingRight: ""  
371 - })  
372 - }, i.prototype.checkScrollbar = function() {  
373 - var t = window.innerWidth;  
374 - if (!t) {  
375 - var e = document.documentElement.getBoundingClientRect();  
376 - t = e.right - Math.abs(e.left)  
377 - }  
378 - this.bodyIsOverflowing = document.body.clientWidth < t, this.scrollbarWidth = this.measureScrollbar()  
379 - }, i.prototype.setScrollbar = function() {  
380 - var t = parseInt(this.$body.css("padding-right") || 0, 10);  
381 - this.originalBodyPad = document.body.style.paddingRight || "", this.bodyIsOverflowing && this.$body.css("padding-right", t + this.scrollbarWidth)  
382 - }, i.prototype.resetScrollbar = function() {  
383 - this.$body.css("padding-right", this.originalBodyPad)  
384 - }, i.prototype.measureScrollbar = function() {  
385 - var t = document.createElement("div");  
386 - t.className = "modal-scrollbar-measure", this.$body.append(t);  
387 - var e = t.offsetWidth - t.clientWidth;  
388 - return this.$body[0].removeChild(t), e  
389 - };  
390 - var o = t.fn.modal;  
391 - t.fn.modal = e, t.fn.modal.Constructor = i, t.fn.modal.noConflict = function() {  
392 - return t.fn.modal = o, this  
393 - }, t(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function(i) {  
394 - var o = t(this),  
395 - n = o.attr("href"),  
396 - s = t(o.attr("data-target") || n && n.replace(/.*(?=#[^\s]+$)/, "")),  
397 - a = s.data("bs.modal") ? "toggle" : t.extend({  
398 - remote: !/#/.test(n) && n  
399 - }, s.data(), o.data());  
400 - o.is("a") && i.preventDefault(), s.one("show.bs.modal", function(t) {  
401 - t.isDefaultPrevented() || s.one("hidden.bs.modal", function() {  
402 - o.is(":visible") && o.trigger("focus")  
403 - })  
404 - }), e.call(s, a, this)  
405 - })  
406 -}(jQuery), + function(t) {  
407 - "use strict";  
408 -  
409 - function e(e) {  
410 - return this.each(function() {  
411 - var o = t(this),  
412 - n = o.data("bs.tooltip"),  
413 - s = "object" == typeof e && e;  
414 - (n || !/destroy|hide/.test(e)) && (n || o.data("bs.tooltip", n = new i(this, s)), "string" == typeof e && n[e]())  
415 - })  
416 - }  
417 - var i = function(t, e) {  
418 - this.type = null, this.options = null, this.enabled = null, this.timeout = null, this.hoverState = null, this.$element = null, this.inState = null, this.init("tooltip", t, e)  
419 - };  
420 - i.VERSION = "3.3.5", i.TRANSITION_DURATION = 150, i.DEFAULTS = {  
421 - animation: !0,  
422 - placement: "top",  
423 - selector: !1,  
424 - template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',  
425 - trigger: "hover focus",  
426 - title: "",  
427 - delay: 0,  
428 - html: !1,  
429 - container: !1,  
430 - viewport: {  
431 - selector: "body",  
432 - padding: 0  
433 - }  
434 - }, i.prototype.init = function(e, i, o) {  
435 - if (this.enabled = !0, this.type = e, this.$element = t(i), this.options = this.getOptions(o), this.$viewport = this.options.viewport && t(t.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport), this.inState = {  
436 - click: !1,  
437 - hover: !1,  
438 - focus: !1  
439 - }, this.$element[0] instanceof document.constructor && !this.options.selector) throw new Error("`selector` option must be specified when initializing " + this.type + " on the window.document object!");  
440 - for (var n = this.options.trigger.split(" "), s = n.length; s--;) {  
441 - var a = n[s];  
442 - if ("click" == a) this.$element.on("click." + this.type, this.options.selector, t.proxy(this.toggle, this));  
443 - else if ("manual" != a) {  
444 - var r = "hover" == a ? "mouseenter" : "focusin",  
445 - l = "hover" == a ? "mouseleave" : "focusout";  
446 - this.$element.on(r + "." + this.type, this.options.selector, t.proxy(this.enter, this)), this.$element.on(l + "." + this.type, this.options.selector, t.proxy(this.leave, this))  
447 - }  
448 - }  
449 - this.options.selector ? this._options = t.extend({}, this.options, {  
450 - trigger: "manual",  
451 - selector: ""  
452 - }) : this.fixTitle()  
453 - }, i.prototype.getDefaults = function() {  
454 - return i.DEFAULTS  
455 - }, i.prototype.getOptions = function(e) {  
456 - return e = t.extend({}, this.getDefaults(), this.$element.data(), e), e.delay && "number" == typeof e.delay && (e.delay = {  
457 - show: e.delay,  
458 - hide: e.delay  
459 - }), e  
460 - }, i.prototype.getDelegateOptions = function() {  
461 - var e = {},  
462 - i = this.getDefaults();  
463 - return this._options && t.each(this._options, function(t, o) {  
464 - i[t] != o && (e[t] = o)  
465 - }), e  
466 - }, i.prototype.enter = function(e) {  
467 - var i = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type);  
468 - return i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i)), e instanceof t.Event && (i.inState["focusin" == e.type ? "focus" : "hover"] = !0), i.tip().hasClass("in") || "in" == i.hoverState ? void(i.hoverState = "in") : (clearTimeout(i.timeout), i.hoverState = "in", i.options.delay && i.options.delay.show ? void(i.timeout = setTimeout(function() {  
469 - "in" == i.hoverState && i.show()  
470 - }, i.options.delay.show)) : i.show())  
471 - }, i.prototype.isInStateTrue = function() {  
472 - for (var t in this.inState)  
473 - if (this.inState[t]) return !0;  
474 - return !1  
475 - }, i.prototype.leave = function(e) {  
476 - var i = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type);  
477 - return i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i)), e instanceof t.Event && (i.inState["focusout" == e.type ? "focus" : "hover"] = !1), i.isInStateTrue() ? void 0 : (clearTimeout(i.timeout), i.hoverState = "out", i.options.delay && i.options.delay.hide ? void(i.timeout = setTimeout(function() {  
478 - "out" == i.hoverState && i.hide()  
479 - }, i.options.delay.hide)) : i.hide())  
480 - }, i.prototype.show = function() {  
481 - var e = t.Event("show.bs." + this.type);  
482 - if (this.hasContent() && this.enabled) {  
483 - this.$element.trigger(e);  
484 - var o = t.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]);  
485 - if (e.isDefaultPrevented() || !o) return;  
486 - var n = this,  
487 - s = this.tip(),  
488 - a = this.getUID(this.type);  
489 - this.setContent(), s.attr("id", a), this.$element.attr("aria-describedby", a), this.options.animation && s.addClass("fade");  
490 - var r = "function" == typeof this.options.placement ? this.options.placement.call(this, s[0], this.$element[0]) : this.options.placement,  
491 - l = /\s?auto?\s?/i,  
492 - h = l.test(r);  
493 - h && (r = r.replace(l, "") || "top"), s.detach().css({  
494 - top: 0,  
495 - left: 0,  
496 - display: "block"  
497 - }).addClass(r).data("bs." + this.type, this), this.options.container ? s.appendTo(this.options.container) : s.insertAfter(this.$element), this.$element.trigger("inserted.bs." + this.type);  
498 - var d = this.getPosition(),  
499 - p = s[0].offsetWidth,  
500 - c = s[0].offsetHeight;  
501 - if (h) {  
502 - var f = r,  
503 - u = this.getPosition(this.$viewport);  
504 - r = "bottom" == r && d.bottom + c > u.bottom ? "top" : "top" == r && d.top - c < u.top ? "bottom" : "right" == r && d.right + p > u.width ? "left" : "left" == r && d.left - p < u.left ? "right" : r, s.removeClass(f).addClass(r)  
505 - }  
506 - var g = this.getCalculatedOffset(r, d, p, c);  
507 - this.applyPlacement(g, r);  
508 - var m = function() {  
509 - var t = n.hoverState;  
510 - n.$element.trigger("shown.bs." + n.type), n.hoverState = null, "out" == t && n.leave(n)  
511 - };  
512 - t.support.transition && this.$tip.hasClass("fade") ? s.one("bsTransitionEnd", m).emulateTransitionEnd(i.TRANSITION_DURATION) : m()  
513 - }  
514 - }, i.prototype.applyPlacement = function(e, i) {  
515 - var o = this.tip(),  
516 - n = o[0].offsetWidth,  
517 - s = o[0].offsetHeight,  
518 - a = parseInt(o.css("margin-top"), 10),  
519 - r = parseInt(o.css("margin-left"), 10);  
520 - isNaN(a) && (a = 0), isNaN(r) && (r = 0), e.top += a, e.left += r, t.offset.setOffset(o[0], t.extend({  
521 - using: function(t) {  
522 - o.css({  
523 - top: Math.round(t.top),  
524 - left: Math.round(t.left)  
525 - })  
526 - }  
527 - }, e), 0), o.addClass("in");  
528 - var l = o[0].offsetWidth,  
529 - h = o[0].offsetHeight;  
530 - "top" == i && h != s && (e.top = e.top + s - h);  
531 - var d = this.getViewportAdjustedDelta(i, e, l, h);  
532 - d.left ? e.left += d.left : e.top += d.top;  
533 - var p = /top|bottom/.test(i),  
534 - c = p ? 2 * d.left - n + l : 2 * d.top - s + h,  
535 - f = p ? "offsetWidth" : "offsetHeight";  
536 - o.offset(e), this.replaceArrow(c, o[0][f], p)  
537 - }, i.prototype.replaceArrow = function(t, e, i) {  
538 - this.arrow().css(i ? "left" : "top", 50 * (1 - t / e) + "%").css(i ? "top" : "left", "")  
539 - }, i.prototype.setContent = function() {  
540 - var t = this.tip(),  
541 - e = this.getTitle();  
542 - t.find(".tooltip-inner")[this.options.html ? "html" : "text"](e), t.removeClass("fade in top bottom left right")  
543 - }, i.prototype.hide = function(e) {  
544 - function o() {  
545 - "in" != n.hoverState && s.detach(), n.$element.removeAttr("aria-describedby").trigger("hidden.bs." + n.type), e && e()  
546 - }  
547 - var n = this,  
548 - s = t(this.$tip),  
549 - a = t.Event("hide.bs." + this.type);  
550 - return this.$element.trigger(a), a.isDefaultPrevented() ? void 0 : (s.removeClass("in"), t.support.transition && s.hasClass("fade") ? s.one("bsTransitionEnd", o).emulateTransitionEnd(i.TRANSITION_DURATION) : o(), this.hoverState = null, this)  
551 - }, i.prototype.fixTitle = function() {  
552 - var t = this.$element;  
553 - (t.attr("title") || "string" != typeof t.attr("data-original-title")) && t.attr("data-original-title", t.attr("title") || "").attr("title", "")  
554 - }, i.prototype.hasContent = function() {  
555 - return this.getTitle()  
556 - }, i.prototype.getPosition = function(e) {  
557 - e = e || this.$element;  
558 - var i = e[0],  
559 - o = "BODY" == i.tagName,  
560 - n = i.getBoundingClientRect();  
561 - null == n.width && (n = t.extend({}, n, {  
562 - width: n.right - n.left,  
563 - height: n.bottom - n.top  
564 - }));  
565 - var s = o ? {  
566 - top: 0,  
567 - left: 0  
568 - } : e.offset(),  
569 - a = {  
570 - scroll: o ? document.documentElement.scrollTop || document.body.scrollTop : e.scrollTop()  
571 - },  
572 - r = o ? {  
573 - width: t(window).width(),  
574 - height: t(window).height()  
575 - } : null;  
576 - return t.extend({}, n, a, r, s)  
577 - }, i.prototype.getCalculatedOffset = function(t, e, i, o) {  
578 - return "bottom" == t ? {  
579 - top: e.top + e.height,  
580 - left: e.left + e.width / 2 - i / 2  
581 - } : "top" == t ? {  
582 - top: e.top - o,  
583 - left: e.left + e.width / 2 - i / 2  
584 - } : "left" == t ? {  
585 - top: e.top + e.height / 2 - o / 2,  
586 - left: e.left - i  
587 - } : {  
588 - top: e.top + e.height / 2 - o / 2,  
589 - left: e.left + e.width  
590 - }  
591 - }, i.prototype.getViewportAdjustedDelta = function(t, e, i, o) {  
592 - var n = {  
593 - top: 0,  
594 - left: 0  
595 - };  
596 - if (!this.$viewport) return n;  
597 - var s = this.options.viewport && this.options.viewport.padding || 0,  
598 - a = this.getPosition(this.$viewport);  
599 - if (/right|left/.test(t)) {  
600 - var r = e.top - s - a.scroll,  
601 - l = e.top + s - a.scroll + o;  
602 - r < a.top ? n.top = a.top - r : l > a.top + a.height && (n.top = a.top + a.height - l)  
603 - } else {  
604 - var h = e.left - s,  
605 - d = e.left + s + i;  
606 - h < a.left ? n.left = a.left - h : d > a.right && (n.left = a.left + a.width - d)  
607 - }  
608 - return n  
609 - }, i.prototype.getTitle = function() {  
610 - var t, e = this.$element,  
611 - i = this.options;  
612 - return t = e.attr("data-original-title") || ("function" == typeof i.title ? i.title.call(e[0]) : i.title)  
613 - }, i.prototype.getUID = function(t) {  
614 - do t += ~~(1e6 * Math.random()); while (document.getElementById(t));  
615 - return t  
616 - }, i.prototype.tip = function() {  
617 - if (!this.$tip && (this.$tip = t(this.options.template), 1 != this.$tip.length)) throw new Error(this.type + " `template` option must consist of exactly 1 top-level element!");  
618 - return this.$tip  
619 - }, i.prototype.arrow = function() {  
620 - return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")  
621 - }, i.prototype.enable = function() {  
622 - this.enabled = !0  
623 - }, i.prototype.disable = function() {  
624 - this.enabled = !1  
625 - }, i.prototype.toggleEnabled = function() {  
626 - this.enabled = !this.enabled  
627 - }, i.prototype.toggle = function(e) {  
628 - var i = this;  
629 - e && (i = t(e.currentTarget).data("bs." + this.type), i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i))), e ? (i.inState.click = !i.inState.click, i.isInStateTrue() ? i.enter(i) : i.leave(i)) : i.tip().hasClass("in") ? i.leave(i) : i.enter(i)  
630 - }, i.prototype.destroy = function() {  
631 - var t = this;  
632 - clearTimeout(this.timeout), this.hide(function() {  
633 - t.$element.off("." + t.type).removeData("bs." + t.type), t.$tip && t.$tip.detach(), t.$tip = null, t.$arrow = null, t.$viewport = null  
634 - })  
635 - };  
636 - var o = t.fn.tooltip;  
637 - t.fn.tooltip = e, t.fn.tooltip.Constructor = i, t.fn.tooltip.noConflict = function() {  
638 - return t.fn.tooltip = o, this  
639 - }  
640 -}(jQuery), + function(t) {  
641 - "use strict";  
642 -  
643 - function e(e) {  
644 - return this.each(function() {  
645 - var o = t(this),  
646 - n = o.data("bs.popover"),  
647 - s = "object" == typeof e && e;  
648 - (n || !/destroy|hide/.test(e)) && (n || o.data("bs.popover", n = new i(this, s)), "string" == typeof e && n[e]())  
649 - })  
650 - }  
651 - var i = function(t, e) {  
652 - this.init("popover", t, e)  
653 - };  
654 - if (!t.fn.tooltip) throw new Error("Popover requires tooltip.js");  
655 - i.VERSION = "3.3.5", i.DEFAULTS = t.extend({}, t.fn.tooltip.Constructor.DEFAULTS, {  
656 - placement: "right",  
657 - trigger: "click",  
658 - content: "",  
659 - template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'  
660 - }), i.prototype = t.extend({}, t.fn.tooltip.Constructor.prototype), i.prototype.constructor = i, i.prototype.getDefaults = function() {  
661 - return i.DEFAULTS  
662 - }, i.prototype.setContent = function() {  
663 - var t = this.tip(),  
664 - e = this.getTitle(),  
665 - i = this.getContent();  
666 - t.find(".popover-title")[this.options.html ? "html" : "text"](e), t.find(".popover-content").children().detach().end()[this.options.html ? "string" == typeof i ? "html" : "append" : "text"](i), t.removeClass("fade top bottom left right in"), t.find(".popover-title").html() || t.find(".popover-title").hide()  
667 - }, i.prototype.hasContent = function() {  
668 - return this.getTitle() || this.getContent()  
669 - }, i.prototype.getContent = function() {  
670 - var t = this.$element,  
671 - e = this.options;  
672 - return t.attr("data-content") || ("function" == typeof e.content ? e.content.call(t[0]) : e.content)  
673 - }, i.prototype.arrow = function() {  
674 - return this.$arrow = this.$arrow || this.tip().find(".arrow")  
675 - };  
676 - var o = t.fn.popover;  
677 - t.fn.popover = e, t.fn.popover.Constructor = i, t.fn.popover.noConflict = function() {  
678 - return t.fn.popover = o, this  
679 - }  
680 -}(jQuery), + function(t) {  
681 - "use strict";  
682 -  
683 - function e(e) {  
684 - return this.each(function() {  
685 - var o = t(this),  
686 - n = o.data("bs.tab");  
687 - n || o.data("bs.tab", n = new i(this)), "string" == typeof e && n[e]()  
688 - })  
689 - }  
690 - var i = function(e) {  
691 - this.element = t(e)  
692 - };  
693 - i.VERSION = "3.3.5", i.TRANSITION_DURATION = 150, i.prototype.show = function() {  
694 - var e = this.element,  
695 - i = e.closest("ul:not(.dropdown-menu)"),  
696 - o = e.data("target");  
697 - if (o || (o = e.attr("href"), o = o && o.replace(/.*(?=#[^\s]*$)/, "")), !e.parent("li").hasClass("active")) {  
698 - var n = i.find(".active:last a"),  
699 - s = t.Event("hide.bs.tab", {  
700 - relatedTarget: e[0]  
701 - }),  
702 - a = t.Event("show.bs.tab", {  
703 - relatedTarget: n[0]  
704 - });  
705 - if (n.trigger(s), e.trigger(a), !a.isDefaultPrevented() && !s.isDefaultPrevented()) {  
706 - var r = t(o);  
707 - this.activate(e.closest("li"), i), this.activate(r, r.parent(), function() {  
708 - n.trigger({  
709 - type: "hidden.bs.tab",  
710 - relatedTarget: e[0]  
711 - }), e.trigger({  
712 - type: "shown.bs.tab",  
713 - relatedTarget: n[0]  
714 - })  
715 - })  
716 - }  
717 - }  
718 - }, i.prototype.activate = function(e, o, n) {  
719 - function s() {  
720 - a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !1), e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded", !0), r ? (e[0].offsetWidth, e.addClass("in")) : e.removeClass("fade"), e.parent(".dropdown-menu").length && e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !0), n && n()  
721 - }  
722 - var a = o.find("> .active"),  
723 - r = n && t.support.transition && (a.length && a.hasClass("fade") || !!o.find("> .fade").length);  
724 - a.length && r ? a.one("bsTransitionEnd", s).emulateTransitionEnd(i.TRANSITION_DURATION) : s(), a.removeClass("in")  
725 - };  
726 - var o = t.fn.tab;  
727 - t.fn.tab = e, t.fn.tab.Constructor = i, t.fn.tab.noConflict = function() {  
728 - return t.fn.tab = o, this  
729 - };  
730 - var n = function(i) {  
731 - i.preventDefault(), e.call(t(this), "show")  
732 - };  
733 - t(document).on("click.bs.tab.data-api", '[data-toggle="tab"]', n).on("click.bs.tab.data-api", '[data-toggle="pill"]', n)  
734 -}(jQuery), + function(t) {  
735 - "use strict";  
736 -  
737 - function e(e) {  
738 - return this.each(function() {  
739 - var o = t(this),  
740 - n = o.data("bs.affix"),  
741 - s = "object" == typeof e && e;  
742 - n || o.data("bs.affix", n = new i(this, s)), "string" == typeof e && n[e]()  
743 - })  
744 - }  
745 - var i = function(e, o) {  
746 - this.options = t.extend({}, i.DEFAULTS, o), this.$target = t(this.options.target).on("scroll.bs.affix.data-api", t.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", t.proxy(this.checkPositionWithEventLoop, this)), this.$element = t(e), this.affixed = null, this.unpin = null, this.pinnedOffset = null, this.checkPosition()  
747 - };  
748 - i.VERSION = "3.3.5", i.RESET = "affix affix-top affix-bottom", i.DEFAULTS = {  
749 - offset: 0,  
750 - target: window  
751 - }, i.prototype.getState = function(t, e, i, o) {  
752 - var n = this.$target.scrollTop(),  
753 - s = this.$element.offset(),  
754 - a = this.$target.height();  
755 - if (null != i && "top" == this.affixed) return i > n ? "top" : !1;  
756 - if ("bottom" == this.affixed) return null != i ? n + this.unpin <= s.top ? !1 : "bottom" : t - o >= n + a ? !1 : "bottom";  
757 - var r = null == this.affixed,  
758 - l = r ? n : s.top,  
759 - h = r ? a : e;  
760 - return null != i && i >= n ? "top" : null != o && l + h >= t - o ? "bottom" : !1  
761 - }, i.prototype.getPinnedOffset = function() {  
762 - if (this.pinnedOffset) return this.pinnedOffset;  
763 - this.$element.removeClass(i.RESET).addClass("affix");  
764 - var t = this.$target.scrollTop(),  
765 - e = this.$element.offset();  
766 - return this.pinnedOffset = e.top - t  
767 - }, i.prototype.checkPositionWithEventLoop = function() {  
768 - setTimeout(t.proxy(this.checkPosition, this), 1)  
769 - }, i.prototype.checkPosition = function() {  
770 - if (this.$element.is(":visible")) {  
771 - var e = this.$element.height(),  
772 - o = this.options.offset,  
773 - n = o.top,  
774 - s = o.bottom,  
775 - a = Math.max(t(document).height(), t(document.body).height());  
776 - "object" != typeof o && (s = n = o), "function" == typeof n && (n = o.top(this.$element)), "function" == typeof s && (s = o.bottom(this.$element));  
777 - var r = this.getState(a, e, n, s);  
778 - if (this.affixed != r) {  
779 - null != this.unpin && this.$element.css("top", "");  
780 - var l = "affix" + (r ? "-" + r : ""),  
781 - h = t.Event(l + ".bs.affix");  
782 - if (this.$element.trigger(h), h.isDefaultPrevented()) return;  
783 - this.affixed = r, this.unpin = "bottom" == r ? this.getPinnedOffset() : null, this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix", "affixed") + ".bs.affix")  
784 - }  
785 - "bottom" == r && this.$element.offset({  
786 - top: a - e - s  
787 - })  
788 - }  
789 - };  
790 - var o = t.fn.affix;  
791 - t.fn.affix = e, t.fn.affix.Constructor = i, t.fn.affix.noConflict = function() {  
792 - return t.fn.affix = o, this  
793 - }, t(window).on("load", function() {  
794 - t('[data-spy="affix"]').each(function() {  
795 - var i = t(this),  
796 - o = i.data();  
797 - o.offset = o.offset || {}, null != o.offsetBottom && (o.offset.bottom = o.offsetBottom), null != o.offsetTop && (o.offset.top = o.offsetTop), e.call(i, o)  
798 - })  
799 - })  
800 -}(jQuery), + function(t) {  
801 - "use strict";  
802 -  
803 - function e(e) {  
804 - var i, o = e.attr("data-target") || (i = e.attr("href")) && i.replace(/.*(?=#[^\s]+$)/, "");  
805 - return t(o)  
806 - }  
807 -  
808 - function i(e) {  
809 - return this.each(function() {  
810 - var i = t(this),  
811 - n = i.data("bs.collapse"),  
812 - s = t.extend({}, o.DEFAULTS, i.data(), "object" == typeof e && e);  
813 - !n && s.toggle && /show|hide/.test(e) && (s.toggle = !1), n || i.data("bs.collapse", n = new o(this, s)), "string" == typeof e && n[e]()  
814 - })  
815 - }  
816 - var o = function(e, i) {  
817 - this.$element = t(e), this.options = t.extend({}, o.DEFAULTS, i), this.$trigger = t('[data-toggle="collapse"][href="#' + e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + '"]'), this.transitioning = null, this.options.parent ? this.$parent = this.getParent() : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle()  
818 - };  
819 - o.VERSION = "3.3.5", o.TRANSITION_DURATION = 350, o.DEFAULTS = {  
820 - toggle: !0  
821 - }, o.prototype.dimension = function() {  
822 - var t = this.$element.hasClass("width");  
823 - return t ? "width" : "height"  
824 - }, o.prototype.show = function() {  
825 - if (!this.transitioning && !this.$element.hasClass("in")) {  
826 - var e, n = this.$parent && this.$parent.children(".panel").children(".in, .collapsing");  
827 - if (!(n && n.length && (e = n.data("bs.collapse"), e && e.transitioning))) {  
828 - var s = t.Event("show.bs.collapse");  
829 - if (this.$element.trigger(s), !s.isDefaultPrevented()) {  
830 - n && n.length && (i.call(n, "hide"), e || n.data("bs.collapse", null));  
831 - var a = this.dimension();  
832 - this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded", !0), this.$trigger.removeClass("collapsed").attr("aria-expanded", !0), this.transitioning = 1;  
833 - var r = function() {  
834 - this.$element.removeClass("collapsing").addClass("collapse in")[a](""), this.transitioning = 0, this.$element.trigger("shown.bs.collapse")  
835 - };  
836 - if (!t.support.transition) return r.call(this);  
837 - var l = t.camelCase(["scroll", a].join("-"));  
838 - this.$element.one("bsTransitionEnd", t.proxy(r, this)).emulateTransitionEnd(o.TRANSITION_DURATION)[a](this.$element[0][l]);  
839 - }  
840 - }  
841 - }  
842 - }, o.prototype.hide = function() {  
843 - if (!this.transitioning && this.$element.hasClass("in")) {  
844 - var e = t.Event("hide.bs.collapse");  
845 - if (this.$element.trigger(e), !e.isDefaultPrevented()) {  
846 - var i = this.dimension();  
847 - this.$element[i](this.$element[i]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1), this.$trigger.addClass("collapsed").attr("aria-expanded", !1), this.transitioning = 1;  
848 - var n = function() {  
849 - this.transitioning = 0, this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")  
850 - };  
851 - return t.support.transition ? void this.$element[i](0).one("bsTransitionEnd", t.proxy(n, this)).emulateTransitionEnd(o.TRANSITION_DURATION) : n.call(this)  
852 - }  
853 - }  
854 - }, o.prototype.toggle = function() {  
855 - this[this.$element.hasClass("in") ? "hide" : "show"]()  
856 - }, o.prototype.getParent = function() {  
857 - return t(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(t.proxy(function(i, o) {  
858 - var n = t(o);  
859 - this.addAriaAndCollapsedClass(e(n), n)  
860 - }, this)).end()  
861 - }, o.prototype.addAriaAndCollapsedClass = function(t, e) {  
862 - var i = t.hasClass("in");  
863 - t.attr("aria-expanded", i), e.toggleClass("collapsed", !i).attr("aria-expanded", i)  
864 - };  
865 - var n = t.fn.collapse;  
866 - t.fn.collapse = i, t.fn.collapse.Constructor = o, t.fn.collapse.noConflict = function() {  
867 - return t.fn.collapse = n, this  
868 - }, t(document).on("click.bs.collapse.data-api", '[data-toggle="collapse"]', function(o) {  
869 - var n = t(this);  
870 - n.attr("data-target") || o.preventDefault();  
871 - var s = e(n),  
872 - a = s.data("bs.collapse"),  
873 - r = a ? "toggle" : n.data();  
874 - i.call(s, r)  
875 - })  
876 -}(jQuery), + function(t) {  
877 - "use strict";  
878 -  
879 - function e(i, o) {  
880 - this.$body = t(document.body), this.$scrollElement = t(t(i).is(document.body) ? window : i), this.options = t.extend({}, e.DEFAULTS, o), this.selector = (this.options.target || "") + " .nav li > a", this.offsets = [], this.targets = [], this.activeTarget = null, this.scrollHeight = 0, this.$scrollElement.on("scroll.bs.scrollspy", t.proxy(this.process, this)), this.refresh(), this.process()  
881 - }  
882 -  
883 - function i(i) {  
884 - return this.each(function() {  
885 - var o = t(this),  
886 - n = o.data("bs.scrollspy"),  
887 - s = "object" == typeof i && i;  
888 - n || o.data("bs.scrollspy", n = new e(this, s)), "string" == typeof i && n[i]()  
889 - })  
890 - }  
891 - e.VERSION = "3.3.5", e.DEFAULTS = {  
892 - offset: 10  
893 - }, e.prototype.getScrollHeight = function() {  
894 - return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)  
895 - }, e.prototype.refresh = function() {  
896 - var e = this,  
897 - i = "offset",  
898 - o = 0;  
899 - this.offsets = [], this.targets = [], this.scrollHeight = this.getScrollHeight(), t.isWindow(this.$scrollElement[0]) || (i = "position", o = this.$scrollElement.scrollTop()), this.$body.find(this.selector).map(function() {  
900 - var e = t(this),  
901 - n = e.data("target") || e.attr("href"),  
902 - s = /^#./.test(n) && t(n);  
903 - return s && s.length && s.is(":visible") && [  
904 - [s[i]().top + o, n]  
905 - ] || null  
906 - }).sort(function(t, e) {  
907 - return t[0] - e[0]  
908 - }).each(function() {  
909 - e.offsets.push(this[0]), e.targets.push(this[1])  
910 - })  
911 - }, e.prototype.process = function() {  
912 - var t, e = this.$scrollElement.scrollTop() + this.options.offset,  
913 - i = this.getScrollHeight(),  
914 - o = this.options.offset + i - this.$scrollElement.height(),  
915 - n = this.offsets,  
916 - s = this.targets,  
917 - a = this.activeTarget;  
918 - if (this.scrollHeight != i && this.refresh(), e >= o) return a != (t = s[s.length - 1]) && this.activate(t);  
919 - if (a && e < n[0]) return this.activeTarget = null, this.clear();  
920 - for (t = n.length; t--;) a != s[t] && e >= n[t] && (void 0 === n[t + 1] || e < n[t + 1]) && this.activate(s[t])  
921 - }, e.prototype.activate = function(e) {  
922 - this.activeTarget = e, this.clear();  
923 - var i = this.selector + '[data-target="' + e + '"],' + this.selector + '[href="' + e + '"]',  
924 - o = t(i).parents("li").addClass("active");  
925 - o.parent(".dropdown-menu").length && (o = o.closest("li.dropdown").addClass("active")), o.trigger("activate.bs.scrollspy")  
926 - }, e.prototype.clear = function() {  
927 - t(this.selector).parentsUntil(this.options.target, ".active").removeClass("active")  
928 - };  
929 - var o = t.fn.scrollspy;  
930 - t.fn.scrollspy = i, t.fn.scrollspy.Constructor = e, t.fn.scrollspy.noConflict = function() {  
931 - return t.fn.scrollspy = o, this  
932 - }, t(window).on("load.bs.scrollspy.data-api", function() {  
933 - t('[data-spy="scroll"]').each(function() {  
934 - var e = t(this);  
935 - i.call(e, e.data())  
936 - })  
937 - })  
938 -}(jQuery), + function(t) {  
939 - "use strict";  
940 -  
941 - function e() {  
942 - var t = document.createElement("bootstrap"),  
943 - e = {  
944 - WebkitTransition: "webkitTransitionEnd",  
945 - MozTransition: "transitionend",  
946 - OTransition: "oTransitionEnd otransitionend",  
947 - transition: "transitionend"  
948 - };  
949 - for (var i in e)  
950 - if (void 0 !== t.style[i]) return {  
951 - end: e[i]  
952 - };  
953 - return !1  
954 - }  
955 - t.fn.emulateTransitionEnd = function(e) {  
956 - var i = !1,  
957 - o = this;  
958 - t(this).one("bsTransitionEnd", function() {  
959 - i = !0  
960 - });  
961 - var n = function() {  
962 - i || t(o).trigger(t.support.transition.end)  
963 - };  
964 - return setTimeout(n, e), this  
965 - }, t(function() {  
966 - t.support.transition = e(), t.support.transition && (t.event.special.bsTransitionEnd = {  
967 - bindType: t.support.transition.end,  
968 - delegateType: t.support.transition.end,  
969 - handle: function(e) {  
970 - return t(e.target).is(this) ? e.handleObj.handler.apply(this, arguments) : void 0  
971 - }  
972 - })  
973 - })  
974 -}(jQuery);;  
975 -  
976 -function openWindow(theURL, winName, features) {  
977 - if (!features) features = "status=yes,toolbar=no,menubar=no,location=no";  
978 - return window.open(theURL, winName, features);  
979 -}  
980 -  
981 -function load_script(href) {  
982 - if (typeof jQuery != 'undefined') {  
983 - var script = document.createElement('script');  
984 - script.type = 'text/javascript';  
985 - script.src = href;  
986 - $("head").append(script);  
987 - } else  
988 - with(document) {  
989 - var span = null;  
990 - span = body.appendChild(createElement("SPAN"));  
991 - span.style.display = 'none';  
992 - span.innerHTML = 'Text for IE.<s' + 'cript></' + 'script>';  
993 - setTimeout(function() {  
994 - var s = span.getElementsByTagName("script")[0];  
995 - s.language = "JavaScript";  
996 - if (s.setAttribute) s.setAttribute('src', href);  
997 - else s.src = href;  
998 - }, 10);  
999 - }  
1000 -}  
1001 -  
1002 -function initModules(paramArr) {  
1003 - if (empty(paramArr.arr)) return;  
1004 - var modules = paramArr.arr;  
1005 - var base_dir = '';  
1006 - if (!empty(paramArr.base)) base_dir = paramArr.base;  
1007 - for (var i = 0; i < modules.length; i++) {  
1008 - var curr = modules[i];  
1009 - if (curr.indexOf('.js') <= 0 && curr.indexOf('.inc') <= 0) curr = curr + '.js';  
1010 - load_script(base_dir + curr);  
1011 - }  
1012 -}  
1013 -  
1014 -function printEmail(str, title) {  
1015 - if (empty(str)) return;  
1016 - if (empty(title)) title = str;  
1017 - document.write('<a href="mailto:' + str + '">' + title + '</a>');  
1018 -}  
1019 -  
1020 -function getFlashVer() {  
1021 - var f = "-",  
1022 - n = navigator;  
1023 - if (n.plugins && n.plugins.length) {  
1024 - for (var ii = 0; ii < n.plugins.length; ii++) {  
1025 - if (n.plugins[ii].name.indexOf('Shockwave Flash') != -1) {  
1026 - f = n.plugins[ii].description.split('Shockwave Flash ')[1];  
1027 - break;  
1028 - }  
1029 - }  
1030 - } else if (window.ActiveXObject) {  
1031 - for (var ii = 12; ii >= 2; ii--) {  
1032 - try {  
1033 - var fl = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + ii + "');");  
1034 - if (fl) {  
1035 - f = ii + '.0';  
1036 - break;  
1037 - }  
1038 - } catch (e) {}  
1039 - }  
1040 - }  
1041 - return f;  
1042 -}  
1043 -  
1044 -function empty(variable) {  
1045 - if (typeof(variable) == 'undefined') return true;  
1046 - if (variable == '' || variable == 0 || variable == '0' || !variable) return true;  
1047 - return false;  
1048 -}  
1049 -  
1050 -function is_undef(variable) {  
1051 - if (typeof(variable) == 'undefined') return true;  
1052 - return false;  
1053 -}  
1054 -  
1055 -function is_array() {  
1056 - if (typeof arguments[0] == 'object') {  
1057 - var criterion = arguments[0].constructor.toString().match(/array/i);  
1058 - return (criterion != null);  
1059 - }  
1060 - return false;  
1061 -}  
1062 -  
1063 -function is_hash() {  
1064 - if (typeof arguments[0] == 'object') {  
1065 - var non_empty = false;  
1066 - for (var k in arguments[0])  
1067 - if (!is_undef(k) || !is_undef(arguments[0][k])) {  
1068 - non_empty = true;  
1069 - break;  
1070 - }  
1071 - var criterion = arguments[0].constructor.toString().match(/object\(\)/i) && non_empty;  
1072 - return (criterion != null);  
1073 - }  
1074 - return false;  
1075 -}  
1076 -  
1077 -function array_search(needle, haystack) {  
1078 - if (typeof(needle) == 'undefined' || typeof(haystack) == 'undefined') return false;  
1079 - if (typeof(haystack.length) == 'undefined' || needle == false) return false;  
1080 - for (var i = 0; i <= haystack.length - 1; i++)  
1081 - if (needle == haystack[i]) return i;  
1082 - return -1;  
1083 -}  
1084 -  
1085 -function in_array(needle, haystack) {  
1086 - if (typeof(needle) == 'undefined' || typeof(haystack) == 'undefined') return false;  
1087 - if (typeof(haystack.length) == 'undefined' || !needle) return false;  
1088 - for (var i = 0; i <= haystack.length - 1; i++)  
1089 - if (needle == haystack[i]) return true;  
1090 - return false;  
1091 -}  
1092 -  
1093 -function is_obj(variable) {  
1094 - if (typeof(variable) == 'object') return true;  
1095 - return false;  
1096 -}  
1097 -  
1098 -function is_object(variable) {  
1099 - return is_obj(variable);  
1100 -}  
1101 -  
1102 -function getElement(e, f) {  
1103 - f = (f) ? f : self;  
1104 - if (document.getElementById) return f.document.getElementById(e);  
1105 - if (document.layers) {  
1106 - f = (f) ? f : self;  
1107 - if (f.document.layers[e]) {  
1108 - return f.document.layers[e];  
1109 - }  
1110 - for (W = 0; i < f.document.layers.length; W++) {  
1111 - return (getElement(e, f.document.layers[W]));  
1112 - }  
1113 - }  
1114 - if (document.all) {  
1115 - return f.document.all[e];  
1116 - }  
1117 - return false;  
1118 -}  
1119 -  
1120 -function getElementByMask(mask, container) {  
1121 - if (empty(container)) {  
1122 - container = document.getElementsByTagName('body')[0];  
1123 - }  
1124 - if (!empty(container)) {  
1125 - var out_array = new Array();  
1126 - var arr = container.childNodes;  
1127 - var out_array = arr;  
1128 - var str = '';  
1129 - if (!empty(arr))  
1130 - for (var i = 0; i < arr.length; i++)  
1131 - if (!empty(arr[i])) {  
1132 - var new_el_arr = getElementByMask(mask, arr[i]);  
1133 - if (new_el_arr)  
1134 - for (var j = 0; j < new_el_arr.length; i++)  
1135 - if (!empty(new_el_arr[j])) {  
1136 - new_el = new_el_arr[j];  
1137 - if (!empty(new_el.id) && IsContain(mask, new_el.id)) {  
1138 - out_array.push(new_el_arr[j]);  
1139 - }  
1140 - }  
1141 - }  
1142 - if (!empty(out_array)) return out_array;  
1143 - }  
1144 - return false;  
1145 -}  
1146 -arrPrototypeReserved = ["sizeOf", "show"];  
1147 -  
1148 -function show_array(arr) {  
1149 - var str = '';  
1150 - for (var k in arr) {  
1151 - str = str + k + "=>" + arr[k] + ', ';  
1152 - }  
1153 - if (str.length > 0) str = str.substring(0, str.length - 2);  
1154 - alert(str);  
1155 -}  
1156 -  
1157 -function init_arr_from_str(str) {  
1158 - if (!empty(str)) {  
1159 - var tmp_arr = str.split(",");  
1160 - var out_arr = new Array();  
1161 - for (var k in tmp_arr)  
1162 - if (!empty(tmp_arr[k])) {  
1163 - var tmp_arr2 = tmp_arr[k].split(":");  
1164 - out_arr[tmp_arr2[0]] = tmp_arr2[1];  
1165 - }  
1166 - return out_arr;  
1167 - }  
1168 - return false;  
1169 -}  
1170 -  
1171 -function IsContain(needle, s) {  
1172 - var re = new RegExp(needle, "i");  
1173 - return re.test(s);  
1174 -}  
1175 -  
1176 -function strip_tags() {  
1177 - var re = /<\S[^><]*>/g  
1178 - return arguments[0].replace(re, "");  
1179 -}  
1180 -  
1181 -function el_value(el) {  
1182 - var ret_val = false;  
1183 - if (!empty(el.type)) {  
1184 - var tmp = el.type;  
1185 - if (tmp.indexOf('select') > -1) {  
1186 - if (el.selectedIndex != -1) return el.options[el.selectedIndex].value;  
1187 - } else if (tmp.indexOf('radio') > -1) {  
1188 - var tmp_form = el.form;  
1189 - var radioGrp = tmp_form[el.name];  
1190 - for (var i = 0; i < radioGrp.length; i++) {  
1191 - if (radioGrp[i].checked) {  
1192 - return radioGrp[i].value;  
1193 - }  
1194 - }  
1195 - }  
1196 - }  
1197 - if (typeof(el.value) != 'undefined') return el.value;  
1198 - return ret_val;  
1199 -}  
1200 -  
1201 -function addEvent(elm, evType, fn, useCapture) {  
1202 - useCapture = useCapture || false;  
1203 - if (elm.addEventListener) {  
1204 - elm.addEventListener(evType, fn, useCapture);  
1205 - return true;  
1206 - } else if (elm.attachEvent) {  
1207 - var r = elm.attachEvent('on' + evType, fn);  
1208 - return r;  
1209 - } else {  
1210 - elm['on' + evType] = fn;  
1211 - }  
1212 -}  
1213 -  
1214 -function fix_inline_links() {  
1215 - var tmp_els = document.getElementsByTagName("a");  
1216 - var base_url = document.getElementsByTagName('base')[0].href;  
1217 - var curr_url = location.href;  
1218 - if (curr_url.indexOf("#") >= 0) {  
1219 - curr_url = curr_url.substring(0, curr_url.indexOf("#"));  
1220 - }  
1221 - var curr_el, tmp_str;  
1222 - if (!empty(tmp_els) && !empty(base_url))  
1223 - for (var i = 0; i < tmp_els.length; i++) {  
1224 - curr_el = tmp_els[i];  
1225 - if (!empty(curr_el.href)) {  
1226 - tmp_str = curr_el.href;  
1227 - if (tmp_str.indexOf("#") >= 0) {  
1228 - if (tmp_str.indexOf(base_url) >= 0) {  
1229 - tmp_str = tmp_str.substr(base_url.length);  
1230 - if (tmp_str.indexOf("#") == 0) curr_el.href = curr_url + tmp_str;  
1231 - }  
1232 - }  
1233 - }  
1234 - }  
1235 -}  
1236 -  
1237 -function clear_fields_requireness(selector) {  
1238 - if (empty(selector)) return;  
1239 - $(selector).each(function() {  
1240 - var el_id = $(this).attr('id');  
1241 - var i = 0;  
1242 - while (el_id.lastIndexOf("_") > -1) {  
1243 - if (el_id[el_id.length - 1] != "_" || i > 100) break;  
1244 - el_id = el_id.substr(0, el_id.length - 1);  
1245 - i++;  
1246 - }  
1247 - $(this).attr('id', el_id);  
1248 - });  
1249 -};  
1250 -debugMode = false;  
1251 -requesterName = "IBS support";  
1252 -var min_pwd_length = 4;  
1253 -var lng;  
1254 -var errMsgs = new Array();  
1255 -errMsgs[1] = '๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ "';  
1256 -var el_first;  
1257 -var elTitles = new Array();  
1258 -elTitles["login"] = "Login";  
1259 -elTitles["pwd"] = "Password";  
1260 -elTitles["pwdconf"] = "Password Confirmation";  
1261 -elTitles["firstName"] = "๏ฟฝ๏ฟฝ๏ฟฝ";  
1262 -elTitles["lastName"] = "๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ";  
1263 -elTitles["city"] = "๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ";  
1264 -elTitles["suburb"] = "Suburb";  
1265 -elTitles["strAddress"] = "๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ";  
1266 -elTitles["phoneBusiness"] = "Business Phone Number";  
1267 -elTitles["email"] = "Email";  
1268 -elTitles["fio"] = "๏ฟฝ๏ฟฝ๏ฟฝ";  
1269 -elTitles["phone"] = "๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ";  
1270 -var timeout2 = null;  
1271 -var of = document.form1;  
1272 -var scr = window.screen;  
1273 -  
1274 -function init() {  
1275 - var of = document.form1;  
1276 -}  
1277 -  
1278 -function unmake_required(el) {  
1279 - if (!is_obj(el) && !empty(el)) el = getElement(el);  
1280 - if (empty(el)) return;  
1281 - var id = el.id;  
1282 - if (!empty(id)) {  
1283 - if (id.substr(id.length - 1, 1) == "_") el.id = id.substr(0, id.length - 1);  
1284 - }  
1285 - return true;  
1286 -}  
1287 -  
1288 -function make_required(el) {  
1289 - if (!is_obj(el) && !empty(el)) el = getElement(el);  
1290 - if (empty(el)) return;  
1291 - var id = el.id;  
1292 - if (!empty(id)) {  
1293 - if (id.substr(id.length - 1, 1) != "_") el.id = id + '_';  
1294 - }  
1295 - return true;  
1296 -}  
1297 -  
1298 -function focusEmpty(of) {  
1299 - var empty_el_arr = new Array();  
1300 - var ee_count = 0;  
1301 - var found = false;  
1302 - el_first = null;  
1303 - for (var i = 0; i < of.elements.length; i++) {  
1304 - el = of.elements[i];  
1305 - elID = of.elements[i].id;  
1306 - if (elID.substr(elID.length - 1, 1) == "_") {  
1307 - var elValue = el_value(el);  
1308 - if (elValue == false || elValue == '') {  
1309 - found = true;  
1310 - if (el_first == null) el_first = el;  
1311 - empty_el_arr[ee_count] = el.name;  
1312 - ee_count = ee_count + 1;  
1313 - } else {  
1314 - el.className = '';  
1315 - }  
1316 - }  
1317 - }  
1318 - if (found == true) {  
1319 - var recipient = document.getElementById('err_reporter');  
1320 - if (recipient) {  
1321 - var list = '';  
1322 - for (var i = 0; i < empty_el_arr.length; i++) {  
1323 - if (elTitles[empty_el_arr[i]])  
1324 - list = list + (elTitles[empty_el_arr[i]] || empty_el_arr[i]) + ', ';  
1325 - }  
1326 - if (list != '') recipient.innerHTML = shellErrMsg(errMsgs[1]) + list.substr(0, list.length - 2) + '" !<br><br>';  
1327 - window.status = strip_tags(recipient.innerHTML);  
1328 - }  
1329 - var anchor_to = '#top_a';  
1330 - var new_loc = location.href;  
1331 - if (new_loc.indexOf(anchor_to) <= 0) {  
1332 - new_loc = new_loc + anchor_to;  
1333 - }  
1334 - window.location.href = new_loc;  
1335 - if (el_first.style) el_first.className = "input_hl";  
1336 - if (timeout2) clearTimeout(timeout2);  
1337 - timeout2 = setTimeout("el_first.focus();", 400);  
1338 - return 0;  
1339 - }  
1340 - return 1;  
1341 -}  
1342 -  
1343 -function shellErrMsg(msg) {  
1344 - return '<span style="color:#777777">' + msg + '</span>';  
1345 -}  
1346 -  
1347 -function onSubmit(obj) {  
1348 - if (typeof(obj) == 'string') obj = getElement(obj);  
1349 - if (typeof(obj.form) == 'undefined') return false;  
1350 - var of = obj.form;  
1351 - if (focusEmpty(of) == 1) {  
1352 - of.submit();  
1353 - return true;  
1354 - }  
1355 - return false;  
1356 -}  
1357 -  
1358 -function onSubmit_a(form) {  
1359 - var of = document.forms[form];  
1360 - if (focusEmpty(of) == 1) {  
1361 - of.submit();  
1362 - }  
1363 -}  
1364 -  
1365 -function onCancel() {  
1366 - var nav_path = (PathTo) ? PathTo : 'index.php';  
1367 - if (!empty(PathTo)) location.href = PathTo;  
1368 -}  
1369 -  
1370 -function checkEmail(obj) {  
1371 - var oEmail = obj.form.email;  
1372 - var email = oEmail.value;  
1373 - if (lng == 'ru') {  
1374 - err_msg = "E-mail ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ! ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ";  
1375 - } else if (lng == 'ua') {  
1376 - err_msg = "E-mail ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ! ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ-๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ";  
1377 - } else {  
1378 - err_msg = "Incorrect email format! Please reenter";  
1379 - }  
1380 - if (oEmail.value) {  
1381 - var parts = email.split("@");  
1382 - if ((parts.length != 2) || (!parts[0]) || (!parts[1])) {  
1383 - alert(err_msg);  
1384 - oEmail.focus();  
1385 - return false;  
1386 - } else {  
1387 - var domain_parts = parts[1].split(".");  
1388 - if (domain_parts.length < 2) {  
1389 - alert(err_msg);  
1390 - oEmail.focus();  
1391 - return false;  
1392 - }  
1393 - confEmail = getElement('emailconf_');  
1394 - if (!empty(confEmail) && email != confEmail.value) {  
1395 - alert(err_msg);  
1396 - confEmail.focus();  
1397 - return false;  
1398 - }  
1399 - return true;  
1400 - }  
1401 - } else {  
1402 - return true;  
1403 - }  
1404 -}  
1405 -  
1406 -function checkPwd(obj) {  
1407 - var oPwd = obj.form.pwd;  
1408 - var oPwdconf = obj.form.pwdconf;  
1409 - var pwd = oPwd.value;  
1410 - if ((pwd != '')) {  
1411 - if (pwd.length < min_pwd_length) {  
1412 - if (lng == 'ru') {  
1413 - err_msg = "๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ " + min_pwd_length + " ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ! ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ";  
1414 - } else if (lng == 'ua') {  
1415 - err_msg = "๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ " + min_pwd_length + " ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ! ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ-๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ";  
1416 - } else {  
1417 - err_msg = "Password length less than " + min_pwd_length + " characters! Please enter longer password";  
1418 - }  
1419 - alert(err_msg);  
1420 - oPwd.focus();  
1421 - return false;  
1422 - } else {  
1423 - if (pwd != oPwdconf.value) {  
1424 - if (lng == 'ru') {  
1425 - err_msg = "๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ! ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ";  
1426 - } else if (lng == 'ua') {  
1427 - err_msg = "๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ! ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ-๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ";  
1428 - } else {  
1429 - err_msg = "Password and password confirmation aren`t equal! Please enter identical passwords";  
1430 - }  
1431 - alert(err_msg);  
1432 - oPwd.focus();  
1433 - return false;  
1434 - } else {  
1435 - return true;  
1436 - }  
1437 - }  
1438 - } else {  
1439 - return true;  
1440 - }  
1441 -}  
1442 -  
1443 -function doReset() {  
1444 - form1.reset();  
1445 - init();  
1446 -}  
1447 -var rusChars = new Array('๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ', '๏ฟฝ');  
1448 -var transChars = new Array('#', 'a', 'b', 'v', 'g', 'd', 'e', 'yo', 'zh', 'z', 'i', 'y', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'f', 'kh', 'ts', 'ch', 'sh', 'shch', 'e', 'yu', 'ya', 'y', '', '', 'ye', 'i', 'yi');  
1449 -  
1450 -function convert(from) {  
1451 - if (empty(from)) return;  
1452 - from = from.toLowerCase();  
1453 - var to = "";  
1454 - var len = from.length;  
1455 - var character, isRus;  
1456 - for (i = 0; i < len; i++) {  
1457 - character = from.charAt(i, 1);  
1458 - isRus = false;  
1459 - j = array_search(character, rusChars);  
1460 - if (j > -1 && j != false) isRus = true;  
1461 - to += (isRus) ? transChars[j] : character;  
1462 - }  
1463 - return to;  
1464 -}  
1465 -  
1466 -function str2tid(str) {  
1467 - if (str == '') return false;  
1468 - str = str.replace(/\s{1,}/gi, "_");  
1469 - str = convert(str);  
1470 - str = str.replace(/[^a-zA-Z0-9_]/gi, "");  
1471 - return str;  
1472 -}  
1473 -  
1474 -function IsContain(needle, s) {  
1475 - var re = new RegExp(needle, "i");  
1476 - return re.test(s);  
1477 -};  
1478 -var base_url = $("base").attr("href");  
1479 -tmp = $("link[rel=stylesheet]").attr("href");  
1480 -if (!empty(tmp)) var domain_url = tmp.substr(0, tmp.indexOf("res/"));  
1481 -  
1482 -jQuery.extend({  
1483 - setHomepage: function(url) {  
1484 - if (document.all) {  
1485 - document.body.style.behavior = 'url(#default#homepage)';  
1486 - document.body.setHomePage(url);  
1487 - } else if (window.sidebar) {  
1488 - if (window.netscape) {  
1489 - try {  
1490 - netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
1491 - } catch (e) {  
1492 - var strTemp = '';  
1493 - strTemp += "this action was aviod by your browser,";  
1494 - strTemp += "if you want to enable,please enter about:config in your address line,";  
1495 - strTemp += "and change the value of signed.applets.codebase_principal_support to true";  
1496 - alert(strTemp);  
1497 - }  
1498 - }  
1499 - var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);  
1500 - prefs.setCharPref('browser.startup.homepage', url);  
1501 - }  
1502 - }  
1503 -});;  
1504 -$(document).ready(function() {  
1505 - $(".button").hover(function() {  
1506 - $(".cc", $(this)).addClass("cc_h");  
1507 - $(".rr", $(this)).addClass("rr_h");  
1508 - $(".ll", $(this)).addClass("ll_h");  
1509 - }, function() {  
1510 - $(".cc_h", $(this)).removeClass("cc_h");  
1511 - $(".rr_h", $(this)).removeClass("rr_h");  
1512 - $(".ll_h", $(this)).removeClass("ll_h");  
1513 - });  
1514 -});;  
1515 -var tmp, loading, overlay, wrap, outer, content, close, title, nav_left, nav_right, currentOpts = {};;  
1516 -(function($) {  
1517 - var  
1518 - selectedIndex = 0,  
1519 - selectedOpts = {},  
1520 - selectedArray = [],  
1521 - currentIndex = 0,  
1522 - currentArray = [],  
1523 - ajaxLoader = null,  
1524 - imgPreloader = new Image(),  
1525 - imgRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,  
1526 - swfRegExp = /[^\.]\.(swf)\s*$/i,  
1527 - loadingTimer, loadingFrame = 1,  
1528 - titleHeight = 0,  
1529 - titleStr = '',  
1530 - start_pos, final_pos, busy = false,  
1531 - fx = $.extend($('<div/>')[0], {  
1532 - prop: 0  
1533 - }),  
1534 - isIE6 = navigator.userAgent.match(/msie [6]/i) && !window.XMLHttpRequest,  
1535 - _abort = function() {  
1536 - loading.hide();  
1537 - imgPreloader.onerror = imgPreloader.onload = null;  
1538 - if (ajaxLoader) {  
1539 - ajaxLoader.abort();  
1540 - }  
1541 - tmp.empty();  
1542 - },  
1543 - _error = function() {  
1544 - if (false === selectedOpts.onError(selectedArray, selectedIndex, selectedOpts)) {  
1545 - loading.hide();  
1546 - busy = false;  
1547 - return;  
1548 - }  
1549 - selectedOpts.titleShow = false;  
1550 - selectedOpts.width = 'auto';  
1551 - selectedOpts.height = 'auto';  
1552 - tmp.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');  
1553 - _process_inline();  
1554 - },  
1555 - _start = function() {  
1556 - var obj = selectedArray[selectedIndex],  
1557 - href, type, title, str, emb, ret;  
1558 - _abort();  
1559 - selectedOpts = $.extend({}, $.fn.fancybox.defaults, (typeof $(obj).data('fancybox') == 'undefined' ? selectedOpts : $(obj).data('fancybox')));  
1560 - ret = selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts);  
1561 - if (ret === false) {  
1562 - busy = false;  
1563 - return;  
1564 - } else if (typeof ret == 'object') {  
1565 - selectedOpts = $.extend(selectedOpts, ret);  
1566 - }  
1567 - title = selectedOpts.title || (obj.nodeName ? $(obj).attr('title') : obj.title) || '';  
1568 - if (obj.nodeName && !selectedOpts.orig) {  
1569 - selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj);  
1570 - }  
1571 - if (title === '' && selectedOpts.orig && selectedOpts.titleFromAlt) {  
1572 - title = selectedOpts.orig.attr('alt');  
1573 - }  
1574 - href = selectedOpts.href || (obj.nodeName ? $(obj).attr('href') : obj.href) || null;  
1575 - if ((/^(?:javascript)/i).test(href) || href == '#') {  
1576 - href = null;  
1577 - }  
1578 - if (selectedOpts.type) {  
1579 - type = selectedOpts.type;  
1580 - if (!href) {  
1581 - href = selectedOpts.content;  
1582 - }  
1583 - } else if (selectedOpts.content) {  
1584 - type = 'html';  
1585 - } else if (href) {  
1586 - if (href.match(imgRegExp)) {  
1587 - type = 'image';  
1588 - } else if (href.match(swfRegExp)) {  
1589 - type = 'swf';  
1590 - } else if ($(obj).hasClass("iframe")) {  
1591 - type = 'iframe';  
1592 - } else if (href.indexOf("#") === 0) {  
1593 - type = 'inline';  
1594 - } else {  
1595 - type = 'ajax';  
1596 - }  
1597 - }  
1598 - if (!type) {  
1599 - _error();  
1600 - return;  
1601 - }  
1602 - if (type == 'inline') {  
1603 - obj = href.substr(href.indexOf("#"));  
1604 - type = $(obj).length > 0 ? 'inline' : 'ajax';  
1605 - }  
1606 - selectedOpts.type = type;  
1607 - selectedOpts.href = href;  
1608 - selectedOpts.title = title;  
1609 - if (selectedOpts.autoDimensions) {  
1610 - if (selectedOpts.type == 'html' || selectedOpts.type == 'inline' || selectedOpts.type == 'ajax') {  
1611 - selectedOpts.width = 'auto';  
1612 - selectedOpts.height = 'auto';  
1613 - } else {  
1614 - selectedOpts.autoDimensions = false;  
1615 - }  
1616 - }  
1617 - if (selectedOpts.modal) {  
1618 - selectedOpts.overlayShow = true;  
1619 - selectedOpts.hideOnOverlayClick = false;  
1620 - selectedOpts.hideOnContentClick = false;  
1621 - selectedOpts.enableEscapeButton = false;  
1622 - selectedOpts.showCloseButton = false;  
1623 - }  
1624 - selectedOpts.padding = parseInt(selectedOpts.padding, 10);  
1625 - selectedOpts.margin = parseInt(selectedOpts.margin, 10);  
1626 - tmp.css('padding', (selectedOpts.padding + selectedOpts.margin));  
1627 - $('.fancybox-inline-tmp').unbind('fancybox-cancel').bind('fancybox-change', function() {  
1628 - $(this).replaceWith(content.children());  
1629 - });  
1630 - switch (type) {  
1631 - case 'html':  
1632 - tmp.html(selectedOpts.content);  
1633 - _process_inline();  
1634 - break;  
1635 - case 'inline':  
1636 - if ($(obj).parent().is('#fancybox-content') === true) {  
1637 - busy = false;  
1638 - return;  
1639 - }  
1640 - $('<div class="fancybox-inline-tmp" />').hide().insertBefore($(obj)).bind('fancybox-cleanup', function() {  
1641 - $(this).replaceWith(content.children());  
1642 - }).bind('fancybox-cancel', function() {  
1643 - $(this).replaceWith(tmp.children());  
1644 - });  
1645 - $(obj).appendTo(tmp);  
1646 - _process_inline();  
1647 - break;  
1648 - case 'image':  
1649 - busy = false;  
1650 - $.fancybox.showActivity();  
1651 - imgPreloader = new Image();  
1652 - imgPreloader.onerror = function() {  
1653 - _error();  
1654 - };  
1655 - imgPreloader.onload = function() {  
1656 - busy = true;  
1657 - imgPreloader.onerror = imgPreloader.onload = null;  
1658 - _process_image();  
1659 - };  
1660 - imgPreloader.src = href;  
1661 - break;  
1662 - case 'swf':  
1663 - selectedOpts.scrolling = 'no';  
1664 - str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"><param name="movie" value="' + href + '"></param>';  
1665 - emb = '';  
1666 - $.each(selectedOpts.swf, function(name, val) {  
1667 - str += '<param name="' + name + '" value="' + val + '"></param>';  
1668 - emb += ' ' + name + '="' + val + '"';  
1669 - });  
1670 - str += '<embed src="' + href + '" type="application/x-shockwave-flash" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"' + emb + '></embed></object>';  
1671 - tmp.html(str);  
1672 - _process_inline();  
1673 - break;  
1674 - case 'ajax':  
1675 - busy = false;  
1676 - $.fancybox.showActivity();  
1677 - selectedOpts.ajax.win = selectedOpts.ajax.success;  
1678 - ajaxLoader = $.ajax($.extend({}, selectedOpts.ajax, {  
1679 - url: href,  
1680 - data: selectedOpts.ajax.data || {},  
1681 - error: function(XMLHttpRequest, textStatus, errorThrown) {  
1682 - if (XMLHttpRequest.status > 0) {  
1683 - _error();  
1684 - }  
1685 - },  
1686 - success: function(data, textStatus, XMLHttpRequest) {  
1687 - var o = typeof XMLHttpRequest == 'object' ? XMLHttpRequest : ajaxLoader;  
1688 - if (o.status == 200) {  
1689 - if (typeof selectedOpts.ajax.win == 'function') {  
1690 - ret = selectedOpts.ajax.win(href, data, textStatus, XMLHttpRequest);  
1691 - if (ret === false) {  
1692 - loading.hide();  
1693 - return;  
1694 - } else if (typeof ret == 'string' || typeof ret == 'object') {  
1695 - data = ret;  
1696 - }  
1697 - }  
1698 - tmp.html(data);  
1699 - _process_inline();  
1700 - }  
1701 - }  
1702 - }));  
1703 - break;  
1704 - case 'iframe':  
1705 - _show();  
1706 - break;  
1707 - }  
1708 - },  
1709 - _process_inline = function() {  
1710 - var  
1711 - w = selectedOpts.width,  
1712 - h = selectedOpts.height;  
1713 - if (w.toString().indexOf('%') > -1) {  
1714 - w = parseInt(($(window).width() - (selectedOpts.margin * 2)) * parseFloat(w) / 100, 10) + 'px';  
1715 - } else {  
1716 - w = w == 'auto' ? 'auto' : w + 'px';  
1717 - }  
1718 - if (h.toString().indexOf('%') > -1) {  
1719 - h = parseInt(($(window).height() - (selectedOpts.margin * 2)) * parseFloat(h) / 100, 10) + 'px';  
1720 - } else {  
1721 - h = h == 'auto' ? 'auto' : h + 'px';  
1722 - }  
1723 - tmp.wrapInner('<div style="width:' + w + ';height:' + h + ';overflow: ' + (selectedOpts.scrolling == 'auto' ? 'auto' : (selectedOpts.scrolling == 'yes' ? 'scroll' : 'hidden')) + ';position:relative;"></div>');  
1724 - selectedOpts.width = tmp.width();  
1725 - selectedOpts.height = tmp.height();  
1726 - _show();  
1727 - },  
1728 - _process_image = function() {  
1729 - selectedOpts.width = imgPreloader.width;  
1730 - selectedOpts.height = imgPreloader.height;  
1731 - $("<img />").attr({  
1732 - 'id': 'fancybox-img',  
1733 - 'src': imgPreloader.src,  
1734 - 'alt': selectedOpts.title  
1735 - }).appendTo(tmp);  
1736 - _show();  
1737 - },  
1738 - _show = function() {  
1739 - var pos, equal;  
1740 - loading.hide();  
1741 - if (wrap.is(":visible") && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {  
1742 - $.event.trigger('fancybox-cancel');  
1743 - busy = false;  
1744 - return;  
1745 - }  
1746 - busy = true;  
1747 - $(content.add(overlay)).unbind();  
1748 - $(window).unbind("resize.fb scroll.fb");  
1749 - $(document).unbind('keydown.fb');  
1750 - if (wrap.is(":visible") && currentOpts.titlePosition !== 'outside') {  
1751 - wrap.css('height', wrap.height());  
1752 - }  
1753 - currentArray = selectedArray;  
1754 - currentIndex = selectedIndex;  
1755 - currentOpts = selectedOpts;  
1756 - if (currentOpts.overlayShow) {  
1757 - overlay.css({  
1758 - 'background-color': currentOpts.overlayColor,  
1759 - 'opacity': currentOpts.overlayOpacity,  
1760 - 'cursor': currentOpts.hideOnOverlayClick ? 'pointer' : 'auto',  
1761 - 'height': $(document).height()  
1762 - });  
1763 - if (!overlay.is(':visible')) {  
1764 - if (isIE6) {  
1765 - $('select:not(#fancybox-tmp select)').filter(function() {  
1766 - return this.style.visibility !== 'hidden';  
1767 - }).css({  
1768 - 'visibility': 'hidden'  
1769 - }).one('fancybox-cleanup', function() {  
1770 - this.style.visibility = 'inherit';  
1771 - });  
1772 - }  
1773 - overlay.show();  
1774 - }  
1775 - } else {  
1776 - overlay.hide();  
1777 - }  
1778 - final_pos = _get_zoom_to();  
1779 - _process_title();  
1780 - if (wrap.is(":visible")) {  
1781 - $(close.add(nav_left).add(nav_right)).hide();  
1782 - pos = wrap.position(), start_pos = {  
1783 - top: pos.top,  
1784 - left: pos.left,  
1785 - width: wrap.width(),  
1786 - height: wrap.height()  
1787 - };  
1788 - equal = (start_pos.width == final_pos.width && start_pos.height == final_pos.height);  
1789 - content.fadeTo(currentOpts.changeFade, 0.3, function() {  
1790 - var finish_resizing = function() {  
1791 - content.html(tmp.contents()).fadeTo(currentOpts.changeFade, 1, _finish);  
1792 - };  
1793 - $.event.trigger('fancybox-change');  
1794 - content.empty().removeAttr('filter').css({  
1795 - 'border-width': currentOpts.padding,  
1796 - 'width': final_pos.width - currentOpts.padding * 2,  
1797 - 'height': selectedOpts.autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding * 2  
1798 - });  
1799 - if (equal) {  
1800 - finish_resizing();  
1801 - } else {  
1802 - fx.prop = 0;  
1803 - $(fx).animate({  
1804 - prop: 1  
1805 - }, {  
1806 - duration: currentOpts.changeSpeed,  
1807 - easing: currentOpts.easingChange,  
1808 - step: _draw,  
1809 - complete: finish_resizing  
1810 - });  
1811 - }  
1812 - });  
1813 - return;  
1814 - }  
1815 - wrap.removeAttr("style");  
1816 - content.css('border-width', currentOpts.padding);  
1817 - if (currentOpts.transitionIn == 'elastic') {  
1818 - start_pos = _get_zoom_from();  
1819 - content.html(tmp.contents());  
1820 - wrap.show();  
1821 - if (currentOpts.opacity) {  
1822 - final_pos.opacity = 0;  
1823 - }  
1824 - fx.prop = 0;  
1825 - $(fx).animate({  
1826 - prop: 1  
1827 - }, {  
1828 - duration: currentOpts.speedIn,  
1829 - easing: currentOpts.easingIn,  
1830 - step: _draw,  
1831 - complete: _finish  
1832 - });  
1833 - return;  
1834 - }  
1835 - if (currentOpts.titlePosition == 'inside' && titleHeight > 0) {  
1836 - title.show();  
1837 - }  
1838 - content.css({  
1839 - 'width': final_pos.width - currentOpts.padding * 2,  
1840 - 'height': selectedOpts.autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding * 2  
1841 - }).html(tmp.contents());  
1842 - wrap.css(final_pos).fadeIn(currentOpts.transitionIn == 'none' ? 0 : currentOpts.speedIn, _finish);  
1843 - },  
1844 - _format_title = function(title) {  
1845 - if (title && title.length) {  
1846 - if (currentOpts.titlePosition == 'float') {  
1847 - return '<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">' + title + '</td><td id="fancybox-title-float-right"></td></tr></table>';  
1848 - }  
1849 - return '<div id="fancybox-title-' + currentOpts.titlePosition + '">' + title + '</div>';  
1850 - }  
1851 - return false;  
1852 - },  
1853 - _process_title = function() {  
1854 - titleStr = currentOpts.title || '';  
1855 - titleHeight = 0;  
1856 - title.empty().removeAttr('style').removeClass();  
1857 - if (currentOpts.titleShow === false) {  
1858 - title.hide();  
1859 - return;  
1860 - }  
1861 - titleStr = $.isFunction(currentOpts.titleFormat) ? currentOpts.titleFormat(titleStr, currentArray, currentIndex, currentOpts) : _format_title(titleStr);  
1862 - if (!titleStr || titleStr === '') {  
1863 - title.hide();  
1864 - return;  
1865 - }  
1866 - title.addClass('fancybox-title-' + currentOpts.titlePosition).html(titleStr).appendTo('body').show();  
1867 - switch (currentOpts.titlePosition) {  
1868 - case 'inside':  
1869 - title.css({  
1870 - 'width': final_pos.width - (currentOpts.padding * 2),  
1871 - 'marginLeft': currentOpts.padding,  
1872 - 'marginRight': currentOpts.padding  
1873 - });  
1874 - titleHeight = title.outerHeight(true);  
1875 - title.appendTo(outer);  
1876 - final_pos.height += titleHeight;  
1877 - break;  
1878 - case 'over':  
1879 - title.css({  
1880 - 'marginLeft': currentOpts.padding,  
1881 - 'width': final_pos.width - (currentOpts.padding * 2),  
1882 - 'bottom': currentOpts.padding  
1883 - }).appendTo(outer);  
1884 - break;  
1885 - case 'float':  
1886 - title.css('left', parseInt((title.width() - final_pos.width - 40) / 2, 10) * -1).appendTo(wrap);  
1887 - break;  
1888 - default:  
1889 - title.css({  
1890 - 'width': final_pos.width - (currentOpts.padding * 2),  
1891 - 'paddingLeft': currentOpts.padding,  
1892 - 'paddingRight': currentOpts.padding  
1893 - }).appendTo(wrap);  
1894 - break;  
1895 - }  
1896 - title.hide();  
1897 - },  
1898 - _set_navigation = function() {  
1899 - if (currentOpts.enableEscapeButton || currentOpts.enableKeyboardNav) {  
1900 - $(document).bind('keydown.fb', function(e) {  
1901 - if (e.keyCode == 27 && currentOpts.enableEscapeButton) {  
1902 - e.preventDefault();  
1903 - $.fancybox.close();  
1904 - } else if ((e.keyCode == 37 || e.keyCode == 39) && currentOpts.enableKeyboardNav && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {  
1905 - e.preventDefault();  
1906 - $.fancybox[e.keyCode == 37 ? 'prev' : 'next']();  
1907 - }  
1908 - });  
1909 - }  
1910 - if (!currentOpts.showNavArrows) {  
1911 - nav_left.hide();  
1912 - nav_right.hide();  
1913 - return;  
1914 - }  
1915 - if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex !== 0) {  
1916 - nav_left.show();  
1917 - }  
1918 - if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex != (currentArray.length - 1)) {  
1919 - nav_right.show();  
1920 - }  
1921 - },  
1922 - _finish = function() {  
1923 - if (!$.support.opacity) {  
1924 - content.get(0).style.removeAttribute('filter');  
1925 - wrap.get(0).style.removeAttribute('filter');  
1926 - }  
1927 - if (selectedOpts.autoDimensions) {  
1928 - content.css('height', 'auto');  
1929 - }  
1930 - wrap.css('height', 'auto');  
1931 - if (titleStr && titleStr.length) {  
1932 - title.show();  
1933 - }  
1934 - if (currentOpts.showCloseButton) {  
1935 - close.show();  
1936 - }  
1937 - _set_navigation();  
1938 - if (currentOpts.hideOnContentClick) {  
1939 - content.bind('click', $.fancybox.close);  
1940 - }  
1941 - if (currentOpts.hideOnOverlayClick) {  
1942 - overlay.bind('click', $.fancybox.close);  
1943 - }  
1944 - $(window).bind("resize.fb", $.fancybox.resize);  
1945 - if (currentOpts.centerOnScroll) {  
1946 - $(window).bind("scroll.fb", $.fancybox.center);  
1947 - }  
1948 - if (currentOpts.type == 'iframe') {  
1949 - $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + (navigator.userAgent.match(/msie [6]/i) ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + currentOpts.href + '"></iframe>').appendTo(content);  
1950 - }  
1951 - wrap.show();  
1952 - busy = false;  
1953 - $.fancybox.center();  
1954 - currentOpts.onComplete(currentArray, currentIndex, currentOpts);  
1955 - _preload_images();  
1956 - },  
1957 - _preload_images = function() {  
1958 - var href, objNext;  
1959 - if ((currentArray.length - 1) > currentIndex) {  
1960 - href = currentArray[currentIndex + 1].href;  
1961 - if (typeof href !== 'undefined' && href.match(imgRegExp)) {  
1962 - objNext = new Image();  
1963 - objNext.src = href;  
1964 - }  
1965 - }  
1966 - if (currentIndex > 0) {  
1967 - href = currentArray[currentIndex - 1].href;  
1968 - if (typeof href !== 'undefined' && href.match(imgRegExp)) {  
1969 - objNext = new Image();  
1970 - objNext.src = href;  
1971 - }  
1972 - }  
1973 - },  
1974 - _draw = function(pos) {  
1975 - var dim = {  
1976 - width: parseInt(start_pos.width + (final_pos.width - start_pos.width) * pos, 10),  
1977 - height: parseInt(start_pos.height + (final_pos.height - start_pos.height) * pos, 10),  
1978 - top: parseInt(start_pos.top + (final_pos.top - start_pos.top) * pos, 10),  
1979 - left: parseInt(start_pos.left + (final_pos.left - start_pos.left) * pos, 10)  
1980 - };  
1981 - if (typeof final_pos.opacity !== 'undefined') {  
1982 - dim.opacity = pos < 0.5 ? 0.5 : pos;  
1983 - }  
1984 - wrap.css(dim);  
1985 - content.css({  
1986 - 'width': dim.width - currentOpts.padding * 2,  
1987 - 'height': dim.height - (titleHeight * pos) - currentOpts.padding * 2  
1988 - });  
1989 - },  
1990 - _get_viewport = function() {  
1991 - return [$(window).width() - (currentOpts.margin * 2), $(window).height() - (currentOpts.margin * 2), $(document).scrollLeft() + currentOpts.margin, $(document).scrollTop() + currentOpts.margin];  
1992 - },  
1993 - _get_zoom_to = function() {  
1994 - var view = _get_viewport(),  
1995 - to = {},  
1996 - resize = currentOpts.autoScale,  
1997 - double_padding = currentOpts.padding * 2,  
1998 - ratio;  
1999 - if (currentOpts.width.toString().indexOf('%') > -1) {  
2000 - to.width = parseInt((view[0] * parseFloat(currentOpts.width)) / 100, 10);  
2001 - } else {  
2002 - to.width = currentOpts.width + double_padding;  
2003 - }  
2004 - if (currentOpts.height.toString().indexOf('%') > -1) {  
2005 - to.height = parseInt((view[1] * parseFloat(currentOpts.height)) / 100, 10);  
2006 - } else {  
2007 - to.height = currentOpts.height + double_padding;  
2008 - }  
2009 - if (resize && (to.width > view[0] || to.height > view[1])) {  
2010 - if (selectedOpts.type == 'image' || selectedOpts.type == 'swf') {  
2011 - ratio = (currentOpts.width) / (currentOpts.height);  
2012 - if ((to.width) > view[0]) {  
2013 - to.width = view[0];  
2014 - to.height = parseInt(((to.width - double_padding) / ratio) + double_padding, 10);  
2015 - }  
2016 - if ((to.height) > view[1]) {  
2017 - to.height = view[1];  
2018 - to.width = parseInt(((to.height - double_padding) * ratio) + double_padding, 10);  
2019 - }  
2020 - } else {  
2021 - to.width = Math.min(to.width, view[0]);  
2022 - to.height = Math.min(to.height, view[1]);  
2023 - }  
2024 - }  
2025 - to.top = parseInt(Math.max(view[3] - 20, view[3] + ((view[1] - to.height - 40) * 0.5)), 10);  
2026 - to.left = parseInt(Math.max(view[2] - 20, view[2] + ((view[0] - to.width - 40) * 0.5)), 10);  
2027 - return to;  
2028 - },  
2029 - _get_obj_pos = function(obj) {  
2030 - var pos = obj.offset();  
2031 - pos.top += parseInt(obj.css('paddingTop'), 10) || 0;  
2032 - pos.left += parseInt(obj.css('paddingLeft'), 10) || 0;  
2033 - pos.top += parseInt(obj.css('border-top-width'), 10) || 0;  
2034 - pos.left += parseInt(obj.css('border-left-width'), 10) || 0;  
2035 - pos.width = obj.width();  
2036 - pos.height = obj.height();  
2037 - return pos;  
2038 - },  
2039 - _get_zoom_from = function() {  
2040 - var orig = selectedOpts.orig ? $(selectedOpts.orig) : false,  
2041 - from = {},  
2042 - pos, view;  
2043 - if (orig && orig.length) {  
2044 - pos = _get_obj_pos(orig);  
2045 - from = {  
2046 - width: pos.width + (currentOpts.padding * 2),  
2047 - height: pos.height + (currentOpts.padding * 2),  
2048 - top: pos.top - currentOpts.padding - 20,  
2049 - left: pos.left - currentOpts.padding - 20  
2050 - };  
2051 - } else {  
2052 - view = _get_viewport();  
2053 - from = {  
2054 - width: currentOpts.padding * 2,  
2055 - height: currentOpts.padding * 2,  
2056 - top: parseInt(view[3] + view[1] * 0.5, 10),  
2057 - left: parseInt(view[2] + view[0] * 0.5, 10)  
2058 - };  
2059 - }  
2060 - return from;  
2061 - },  
2062 - _animate_loading = function() {  
2063 - if (!loading.is(':visible')) {  
2064 - clearInterval(loadingTimer);  
2065 - return;  
2066 - }  
2067 - $('div', loading).css('top', (loadingFrame * -40) + 'px');  
2068 - loadingFrame = (loadingFrame + 1) % 12;  
2069 - };  
2070 - $.fn.fancybox = function(options) {  
2071 - if (!$(this).length) {  
2072 - return this;  
2073 - }  
2074 - $(this).data('fancybox', $.extend({}, options, ($.metadata ? $(this).metadata() : {}))).unbind('click.fb').bind('click.fb', function(e) {  
2075 - e.preventDefault();  
2076 - if (busy) {  
2077 - return;  
2078 - }  
2079 - busy = true;  
2080 - $(this).blur();  
2081 - selectedArray = [];  
2082 - selectedIndex = 0;  
2083 - var rel = $(this).attr('rel') || '';  
2084 - if (!rel || rel == '' || rel === 'nofollow') {  
2085 - selectedArray.push(this);  
2086 - } else {  
2087 - selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "]");  
2088 - selectedIndex = selectedArray.index(this);  
2089 - }  
2090 - _start();  
2091 - return;  
2092 - });  
2093 - return this;  
2094 - };  
2095 - $.fancybox = function(obj) {  
2096 - var opts;  
2097 - if (busy) {  
2098 - return;  
2099 - }  
2100 - busy = true;  
2101 - opts = typeof arguments[1] !== 'undefined' ? arguments[1] : {};  
2102 - selectedArray = [];  
2103 - selectedIndex = parseInt(opts.index, 10) || 0;  
2104 - if ($.isArray(obj)) {  
2105 - for (var i = 0, j = obj.length; i < j; i++) {  
2106 - if (typeof obj[i] == 'object') {  
2107 - $(obj[i]).data('fancybox', $.extend({}, opts, obj[i]));  
2108 - } else {  
2109 - obj[i] = $({}).data('fancybox', $.extend({  
2110 - content: obj[i]  
2111 - }, opts));  
2112 - }  
2113 - }  
2114 - selectedArray = jQuery.merge(selectedArray, obj);  
2115 - } else {  
2116 - if (typeof obj == 'object') {  
2117 - $(obj).data('fancybox', $.extend({}, opts, obj));  
2118 - } else {  
2119 - obj = $({}).data('fancybox', $.extend({  
2120 - content: obj  
2121 - }, opts));  
2122 - }  
2123 - selectedArray.push(obj);  
2124 - }  
2125 - if (selectedIndex > selectedArray.length || selectedIndex < 0) {  
2126 - selectedIndex = 0;  
2127 - }  
2128 - _start();  
2129 - };  
2130 - $.fancybox.showActivity = function() {  
2131 - clearInterval(loadingTimer);  
2132 - loading.show();  
2133 - loadingTimer = setInterval(_animate_loading, 66);  
2134 - };  
2135 - $.fancybox.hideActivity = function() {  
2136 - loading.hide();  
2137 - };  
2138 - $.fancybox.next = function() {  
2139 - return $.fancybox.pos(currentIndex + 1);  
2140 - };  
2141 - $.fancybox.prev = function() {  
2142 - return $.fancybox.pos(currentIndex - 1);  
2143 - };  
2144 - $.fancybox.pos = function(pos) {  
2145 - if (busy) {  
2146 - return;  
2147 - }  
2148 - pos = parseInt(pos);  
2149 - selectedArray = currentArray;  
2150 - if (pos > -1 && pos < currentArray.length) {  
2151 - selectedIndex = pos;  
2152 - _start();  
2153 - } else if (currentOpts.cyclic && currentArray.length > 1) {  
2154 - selectedIndex = pos >= currentArray.length ? 0 : currentArray.length - 1;  
2155 - _start();  
2156 - }  
2157 - return;  
2158 - };  
2159 - $.fancybox.cancel = function() {  
2160 - if (busy) {  
2161 - return;  
2162 - }  
2163 - busy = true;  
2164 - $.event.trigger('fancybox-cancel');  
2165 - _abort();  
2166 - selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts);  
2167 - busy = false;  
2168 - };  
2169 - $.fancybox.close = function() {  
2170 - if (busy || wrap.is(':hidden')) {  
2171 - return;  
2172 - }  
2173 - busy = true;  
2174 - if (currentOpts && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {  
2175 - busy = false;  
2176 - return;  
2177 - }  
2178 - _abort();  
2179 - $(close.add(nav_left).add(nav_right)).hide();  
2180 - $(content.add(overlay)).unbind();  
2181 - $(window).unbind("resize.fb scroll.fb");  
2182 - $(document).unbind('keydown.fb');  
2183 - content.find('iframe').attr('src', isIE6 && /^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank');  
2184 - if (currentOpts.titlePosition !== 'inside') {  
2185 - title.empty();  
2186 - }  
2187 - wrap.stop();  
2188 -  
2189 - function _cleanup() {  
2190 - overlay.fadeOut('fast');  
2191 - title.empty().hide();  
2192 - wrap.hide();  
2193 - $.event.trigger('fancybox-cleanup');  
2194 - content.empty();  
2195 - currentOpts.onClosed(currentArray, currentIndex, currentOpts);  
2196 - currentArray = selectedOpts = [];  
2197 - currentIndex = selectedIndex = 0;  
2198 - currentOpts = selectedOpts = {};  
2199 - busy = false;  
2200 - }  
2201 - if (currentOpts.transitionOut == 'elastic') {  
2202 - start_pos = _get_zoom_from();  
2203 - var pos = wrap.position();  
2204 - final_pos = {  
2205 - top: pos.top,  
2206 - left: pos.left,  
2207 - width: wrap.width(),  
2208 - height: wrap.height()  
2209 - };  
2210 - if (currentOpts.opacity) {  
2211 - final_pos.opacity = 1;  
2212 - }  
2213 - title.empty().hide();  
2214 - fx.prop = 1;  
2215 - $(fx).animate({  
2216 - prop: 0  
2217 - }, {  
2218 - duration: currentOpts.speedOut,  
2219 - easing: currentOpts.easingOut,  
2220 - step: _draw,  
2221 - complete: _cleanup  
2222 - });  
2223 - } else {  
2224 - wrap.fadeOut(currentOpts.transitionOut == 'none' ? 0 : currentOpts.speedOut, _cleanup);  
2225 - }  
2226 - };  
2227 - $.fancybox.resize = function() {  
2228 - if (overlay.is(':visible')) {  
2229 - overlay.css('height', $(document).height());  
2230 - }  
2231 - $.fancybox.center(true);  
2232 - };  
2233 - $.fancybox.center = function() {  
2234 - var view, align;  
2235 - if (busy) {  
2236 - return;  
2237 - }  
2238 - align = arguments[0] === true ? 1 : 0;  
2239 - view = _get_viewport();  
2240 - if (!align && (wrap.width() > view[0] || wrap.height() > view[1])) {  
2241 - return;  
2242 - }  
2243 - wrap.stop().animate({  
2244 - 'top': parseInt(Math.max(view[3] - 20, view[3] + ((view[1] - content.height() - 40) * 0.5) - currentOpts.padding)),  
2245 - 'left': parseInt(Math.max(view[2] - 20, view[2] + ((view[0] - content.width() - 40) * 0.5) - currentOpts.padding))  
2246 - }, typeof arguments[0] == 'number' ? arguments[0] : 200);  
2247 - };  
2248 - $.fancybox.init = function() {  
2249 - if ($("#fancybox-wrap").length) {  
2250 - return;  
2251 - }  
2252 - tmp = $('<div id="fancybox-tmp"></div>');  
2253 - loading = $('<div id="fancybox-loading"><div></div></div>');  
2254 - overlay = $('<div id="fancybox-overlay"></div>');  
2255 - wrap = $('<div id="fancybox-wrap"></div>');  
2256 - $('body').append(tmp, loading, overlay, wrap);  
2257 - outer = $('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(wrap);  
2258 - outer.append(content = $('<div id="fancybox-content"></div>'), close = $('<a id="fancybox-close"></a>'), title = $('<div id="fancybox-title"></div>'), nav_left = $('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'), nav_right = $('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));  
2259 - close.click($.fancybox.close);  
2260 - loading.click($.fancybox.cancel);  
2261 - nav_left.click(function(e) {  
2262 - e.preventDefault();  
2263 - $.fancybox.prev();  
2264 - });  
2265 - nav_right.click(function(e) {  
2266 - e.preventDefault();  
2267 - $.fancybox.next();  
2268 - });  
2269 - if ($.fn.mousewheel) {  
2270 - wrap.bind('mousewheel.fb', function(e, delta) {  
2271 - if (busy) {  
2272 - e.preventDefault();  
2273 - } else if ($(e.target).get(0).clientHeight == 0 || $(e.target).get(0).scrollHeight === $(e.target).get(0).clientHeight) {  
2274 - e.preventDefault();  
2275 - $.fancybox[delta > 0 ? 'prev' : 'next']();  
2276 - }  
2277 - });  
2278 - }  
2279 - if (!$.support.opacity) {  
2280 - wrap.addClass('fancybox-ie');  
2281 - }  
2282 - if (isIE6) {  
2283 - loading.addClass('fancybox-ie6');  
2284 - wrap.addClass('fancybox-ie6');  
2285 - $('<iframe id="fancybox-hide-sel-frame" src="' + (/^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank') + '" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(outer);  
2286 - }  
2287 - };  
2288 - $.fn.fancybox.defaults = {  
2289 - padding: 10,  
2290 - margin: 40,  
2291 - opacity: false,  
2292 - modal: false,  
2293 - cyclic: false,  
2294 - scrolling: 'auto',  
2295 - width: 560,  
2296 - height: 340,  
2297 - autoScale: true,  
2298 - autoDimensions: true,  
2299 - centerOnScroll: false,  
2300 - ajax: {},  
2301 - swf: {  
2302 - wmode: 'transparent'  
2303 - },  
2304 - hideOnOverlayClick: true,  
2305 - hideOnContentClick: false,  
2306 - overlayShow: true,  
2307 - overlayOpacity: 0.7,  
2308 - overlayColor: '#777',  
2309 - titleShow: true,  
2310 - titlePosition: 'float',  
2311 - titleFormat: null,  
2312 - titleFromAlt: false,  
2313 - transitionIn: 'fade',  
2314 - transitionOut: 'fade',  
2315 - speedIn: 300,  
2316 - speedOut: 300,  
2317 - changeSpeed: 300,  
2318 - changeFade: 'fast',  
2319 - easingIn: 'swing',  
2320 - easingOut: 'swing',  
2321 - showCloseButton: true,  
2322 - showNavArrows: true,  
2323 - enableEscapeButton: true,  
2324 - enableKeyboardNav: true,  
2325 - onStart: function() {},  
2326 - onCancel: function() {},  
2327 - onComplete: function() {},  
2328 - onCleanup: function() {},  
2329 - onClosed: function() {},  
2330 - onError: function() {}  
2331 - };  
2332 - $(document).ready(function() {  
2333 - $.fancybox.init();  
2334 - });  
2335 -})(jQuery);;  
2336 -eval(function(p, a, c, k, e, r) {  
2337 - e = function(c) {  
2338 - return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))  
2339 - };  
2340 - if (!''.replace(/^/, String)) {  
2341 - while (c--) r[e(c)] = k[c] || e(c);  
2342 - k = [function(e) {  
2343 - return r[e]  
2344 - }];  
2345 - e = function() {  
2346 - return '\\w+'  
2347 - };  
2348 - c = 1  
2349 - };  
2350 - while (c--)  
2351 - if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);  
2352 - return p  
2353 -}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});', 62, 74, '||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'), 0, {}));  
2354 -(function($) {  
2355 - $.fn.innerfade = function(options) {  
2356 - return this.each(function() {  
2357 - $.innerfade(this, options);  
2358 - });  
2359 - };  
2360 - $.innerfade = function(container, options) {  
2361 - var settings = {  
2362 - 'animationtype': 'fade',  
2363 - 'speed': 'normal',  
2364 - 'type': 'sequence',  
2365 - 'timeout': 2000,  
2366 - 'containerheight': 'auto',  
2367 - 'runningclass': 'innerfade',  
2368 - 'children': null  
2369 - };  
2370 - if (options)  
2371 - $.extend(settings, options);  
2372 - if (settings.children === null)  
2373 - var elements = $(container).children();  
2374 - else  
2375 - var elements = $(container).children(settings.children);  
2376 - if (elements.length > 1) {  
2377 - $(container).css('position', 'relative').css('height', settings.containerheight).addClass(settings.runningclass);  
2378 - for (var i = 0; i < elements.length; i++) {  
2379 - $(elements[i]).css('z-index', String(elements.length - i)).css('position', 'absolute').hide();  
2380 - };  
2381 - if (settings.type == "sequence") {  
2382 - setTimeout(function() {  
2383 - $.innerfade.next(elements, settings, 1, 0);  
2384 - }, settings.timeout);  
2385 - $(elements[0]).show();  
2386 - } else if (settings.type == "random") {  
2387 - var last = Math.floor(Math.random() * (elements.length));  
2388 - setTimeout(function() {  
2389 - do {  
2390 - current = Math.floor(Math.random() * (elements.length));  
2391 - } while (last == current);  
2392 - $.innerfade.next(elements, settings, current, last);  
2393 - }, settings.timeout);  
2394 - $(elements[last]).show();  
2395 - } else if (settings.type == 'random_start') {  
2396 - settings.type = 'sequence';  
2397 - var current = Math.floor(Math.random() * (elements.length));  
2398 - setTimeout(function() {  
2399 - $.innerfade.next(elements, settings, (current + 1) % elements.length, current);  
2400 - }, settings.timeout);  
2401 - $(elements[current]).show();  
2402 - } else {  
2403 - alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\'');  
2404 - }  
2405 - }  
2406 - };  
2407 - $.innerfade.next = function(elements, settings, current, last) {  
2408 - if (settings.animationtype == 'slide') {  
2409 - $(elements[last]).slideUp(settings.speed);  
2410 - $(elements[current]).slideDown(settings.speed);  
2411 - } else if (settings.animationtype == 'fade') {  
2412 - $(elements[last]).fadeOut(settings.speed);  
2413 - $(elements[current]).fadeIn(settings.speed, function() {  
2414 - removeFilter($(this)[0]);  
2415 - });  
2416 - } else  
2417 - alert('Innerfade-animationtype must either be \'slide\' or \'fade\'');  
2418 - if (settings.type == "sequence") {  
2419 - if ((current + 1) < elements.length) {  
2420 - current = current + 1;  
2421 - last = current - 1;  
2422 - } else {  
2423 - current = 0;  
2424 - last = elements.length - 1;  
2425 - }  
2426 - } else if (settings.type == "random") {  
2427 - last = current;  
2428 - while (current == last)  
2429 - current = Math.floor(Math.random() * elements.length);  
2430 - } else  
2431 - alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\'');  
2432 - setTimeout((function() {  
2433 - $.innerfade.next(elements, settings, current, last);  
2434 - }), settings.timeout);  
2435 - };  
2436 -})(jQuery);  
2437 -  
2438 -function removeFilter(element) {  
2439 - if (element.style.removeAttribute) {  
2440 - element.style.removeAttribute('filter');  
2441 - }  
2442 -};  
2443 -jQuery.fn.extend({  
2444 - everyTime: function(interval, label, fn, times, belay) {  
2445 - return this.each(function() {  
2446 - jQuery.timer.add(this, interval, label, fn, times, belay);  
2447 - });  
2448 - },  
2449 - oneTime: function(interval, label, fn) {  
2450 - return this.each(function() {  
2451 - jQuery.timer.add(this, interval, label, fn, 1);  
2452 - });  
2453 - },  
2454 - stopTime: function(label, fn) {  
2455 - return this.each(function() {  
2456 - jQuery.timer.remove(this, label, fn);  
2457 - });  
2458 - }  
2459 -});  
2460 -jQuery.extend({  
2461 - timer: {  
2462 - guid: 1,  
2463 - global: {},  
2464 - regex: /^([0-9]+)\s*(.*s)?$/,  
2465 - powers: {  
2466 - 'ms': 1,  
2467 - 'cs': 10,  
2468 - 'ds': 100,  
2469 - 's': 1000,  
2470 - 'das': 10000,  
2471 - 'hs': 100000,  
2472 - 'ks': 1000000  
2473 - },  
2474 - timeParse: function(value) {  
2475 - if (value == undefined || value == null)  
2476 - return null;  
2477 - var result = this.regex.exec(jQuery.trim(value.toString()));  
2478 - if (result[2]) {  
2479 - var num = parseInt(result[1], 10);  
2480 - var mult = this.powers[result[2]] || 1;  
2481 - return num * mult;  
2482 - } else {  
2483 - return value;  
2484 - }  
2485 - },  
2486 - add: function(element, interval, label, fn, times, belay) {  
2487 - var counter = 0;  
2488 - if (jQuery.isFunction(label)) {  
2489 - if (!times)  
2490 - times = fn;  
2491 - fn = label;  
2492 - label = interval;  
2493 - }  
2494 - interval = jQuery.timer.timeParse(interval);  
2495 - if (typeof interval != 'number' || isNaN(interval) || interval <= 0)  
2496 - return;  
2497 - if (times && times.constructor != Number) {  
2498 - belay = !!times;  
2499 - times = 0;  
2500 - }  
2501 - times = times || 0;  
2502 - belay = belay || false;  
2503 - if (!element.$timers)  
2504 - element.$timers = {};  
2505 - if (!element.$timers[label])  
2506 - element.$timers[label] = {};  
2507 - fn.$timerID = fn.$timerID || this.guid++;  
2508 - var handler = function() {  
2509 - if (belay && this.inProgress)  
2510 - return;  
2511 - this.inProgress = true;  
2512 - if ((++counter > times && times !== 0) || fn.call(element, counter) === false)  
2513 - jQuery.timer.remove(element, label, fn);  
2514 - this.inProgress = false;  
2515 - };  
2516 - handler.$timerID = fn.$timerID;  
2517 - if (!element.$timers[label][fn.$timerID])  
2518 - element.$timers[label][fn.$timerID] = window.setInterval(handler, interval);  
2519 - if (!this.global[label])  
2520 - this.global[label] = [];  
2521 - this.global[label].push(element);  
2522 - },  
2523 - remove: function(element, label, fn) {  
2524 - var timers = element.$timers,  
2525 - ret;  
2526 - if (timers) {  
2527 - if (!label) {  
2528 - for (label in timers)  
2529 - this.remove(element, label, fn);  
2530 - } else if (timers[label]) {  
2531 - if (fn) {  
2532 - if (fn.$timerID) {  
2533 - window.clearInterval(timers[label][fn.$timerID]);  
2534 - delete timers[label][fn.$timerID];  
2535 - }  
2536 - } else {  
2537 - for (var fn in timers[label]) {  
2538 - window.clearInterval(timers[label][fn]);  
2539 - delete timers[label][fn];  
2540 - }  
2541 - }  
2542 - for (ret in timers[label]) break;  
2543 - if (!ret) {  
2544 - ret = null;  
2545 - delete timers[label];  
2546 - }  
2547 - }  
2548 - for (ret in timers) break;  
2549 - if (!ret)  
2550 - element.$timers = null;  
2551 - }  
2552 - }  
2553 - }  
2554 -});;  
2555 -$(document).ready(function() {  
2556 - $("#search_str_").keyup(function() {  
2557 - var qstr = $(this).val();  
2558 - if (qstr.length > 1) {  
2559 - $.ajax({  
2560 - type: "POST",  
2561 - url: "/ajax/quick_search.php",  
2562 - data: "qstr=" + qstr,  
2563 - success: function(html) {  
2564 - $("#out_qsearch").html(html);  
2565 - $("#out_qsearch").show();  
2566 - }  
2567 - });  
2568 - } else {  
2569 - $("#out_qsearch").html("");  
2570 - }  
2571 - });  
2572 - $("#sform").mouseenter(function() {  
2573 - $("#out_qsearch").show();  
2574 - });  
2575 - $("#sform").mouseleave(function() {  
2576 - $("#out_qsearch").hide();  
2577 - });  
2578 -});;  
2579 -  
2580 -  
2581 -! function(a) {  
2582 - "function" == typeof define && define.amd ? define(["jquery"], a) : a("object" == typeof exports ? require("jquery") : jQuery)  
2583 -}  
2584 -(function(a) {  
2585 - var b, c = navigator.userAgent,  
2586 - d = /iphone/i.test(c),  
2587 - e = /chrome/i.test(c),  
2588 - f = /android/i.test(c);  
2589 - a.mask = {  
2590 - definitions: {  
2591 - 9: "[0-9]",  
2592 - a: "[A-Za-z]",  
2593 - "*": "[A-Za-z0-9]"  
2594 - },  
2595 - autoclear: !0,  
2596 - dataName: "rawMaskFn",  
2597 - placeholder: "_"  
2598 - }, a.fn.extend({  
2599 - caret: function(a, b) {  
2600 - var c;  
2601 - if (0 !== this.length && !this.is(":hidden")) return "number" == typeof a ? (b = "number" == typeof b ? b : a, this.each(function() {  
2602 - this.setSelectionRange ? this.setSelectionRange(a, b) : this.createTextRange && (c = this.createTextRange(), c.collapse(!0), c.moveEnd("character", b), c.moveStart("character", a), c.select())  
2603 - })) : (this[0].setSelectionRange ? (a = this[0].selectionStart, b = this[0].selectionEnd) : document.selection && document.selection.createRange && (c = document.selection.createRange(), a = 0 - c.duplicate().moveStart("character", -1e5), b = a + c.text.length), {  
2604 - begin: a,  
2605 - end: b  
2606 - })  
2607 - },  
2608 - unmask: function() {  
2609 - return this.trigger("unmask")  
2610 - },  
2611 - mask: function(c, g) {  
2612 - var h, i, j, k, l, m, n, o;  
2613 - if (!c && this.length > 0) {  
2614 - h = a(this[0]);  
2615 - var p = h.data(a.mask.dataName);  
2616 - return p ? p() : void 0  
2617 - }  
2618 - return g = a.extend({  
2619 - autoclear: a.mask.autoclear,  
2620 - placeholder: a.mask.placeholder,  
2621 - completed: null  
2622 - }, g), i = a.mask.definitions, j = [], k = n = c.length, l = null, a.each(c.split(""), function(a, b) {  
2623 - "?" == b ? (n--, k = a) : i[b] ? (j.push(new RegExp(i[b])), null === l && (l = j.length - 1), k > a && (m = j.length - 1)) : j.push(null)  
2624 - }), this.trigger("unmask").each(function() {  
2625 - function h() {  
2626 - if (g.completed) {  
2627 - for (var a = l; m >= a; a++)  
2628 - if (j[a] && C[a] === p(a)) return;  
2629 - g.completed.call(B)  
2630 - }  
2631 - }  
2632 -  
2633 - function p(a) {  
2634 - return g.placeholder.charAt(a < g.placeholder.length ? a : 0)  
2635 - }  
2636 -  
2637 - function q(a) {  
2638 - for (; ++a < n && !j[a];);  
2639 - return a  
2640 - }  
2641 -  
2642 - function r(a) {  
2643 - for (; --a >= 0 && !j[a];);  
2644 - return a  
2645 - }  
2646 -  
2647 - function s(a, b) {  
2648 - var c, d;  
2649 - if (!(0 > a)) {  
2650 - for (c = a, d = q(b); n > c; c++)  
2651 - if (j[c]) {  
2652 - if (!(n > d && j[c].test(C[d]))) break;  
2653 - C[c] = C[d], C[d] = p(d), d = q(d)  
2654 - }  
2655 - z(), B.caret(Math.max(l, a))  
2656 - }  
2657 - }  
2658 -  
2659 - function t(a) {  
2660 - var b, c, d, e;  
2661 - for (b = a, c = p(a); n > b; b++)  
2662 - if (j[b]) {  
2663 - if (d = q(b), e = C[b], C[b] = c, !(n > d && j[d].test(e))) break;  
2664 - c = e  
2665 - }  
2666 - }  
2667 -  
2668 - function u() {  
2669 - var a = B.val(),  
2670 - b = B.caret();  
2671 - if (o && o.length && o.length > a.length) {  
2672 - for (A(!0); b.begin > 0 && !j[b.begin - 1];) b.begin--;  
2673 - if (0 === b.begin)  
2674 - for (; b.begin < l && !j[b.begin];) b.begin++;  
2675 - B.caret(b.begin, b.begin)  
2676 - } else {  
2677 - for (A(!0); b.begin < n && !j[b.begin];) b.begin++;  
2678 - B.caret(b.begin, b.begin)  
2679 - }  
2680 - h()  
2681 - }  
2682 -  
2683 - function v() {  
2684 - A(), B.val() != E && B.change()  
2685 - }  
2686 -  
2687 - function w(a) {  
2688 - if (!B.prop("readonly")) {  
2689 - var b, c, e, f = a.which || a.keyCode;  
2690 - o = B.val(), 8 === f || 46 === f || d && 127 === f ? (b = B.caret(), c = b.begin, e = b.end, e - c === 0 && (c = 46 !== f ? r(c) : e = q(c - 1), e = 46 === f ? q(e) : e), y(c, e), s(c, e - 1), a.preventDefault()) : 13 === f ? v.call(this, a) : 27 === f && (B.val(E), B.caret(0, A()), a.preventDefault())  
2691 - }  
2692 - }  
2693 -  
2694 - function x(b) {  
2695 - if (!B.prop("readonly")) {  
2696 - var c, d, e, g = b.which || b.keyCode,  
2697 - i = B.caret();  
2698 - if (!(b.ctrlKey || b.altKey || b.metaKey || 32 > g) && g && 13 !== g) {  
2699 - if (i.end - i.begin !== 0 && (y(i.begin, i.end), s(i.begin, i.end - 1)), c = q(i.begin - 1), n > c && (d = String.fromCharCode(g), j[c].test(d))) {  
2700 - if (t(c), C[c] = d, z(), e = q(c), f) {  
2701 - var k = function() {  
2702 - a.proxy(a.fn.caret, B, e)()  
2703 - };  
2704 - setTimeout(k, 0)  
2705 - } else B.caret(e);  
2706 - i.begin <= m && h()  
2707 - }  
2708 - b.preventDefault()  
2709 - }  
2710 - }  
2711 - }  
2712 -  
2713 - function y(a, b) {  
2714 - var c;  
2715 - for (c = a; b > c && n > c; c++) j[c] && (C[c] = p(c))  
2716 - }  
2717 -  
2718 - function z() {  
2719 - B.val(C.join(""))  
2720 - }  
2721 -  
2722 - function A(a) {  
2723 - var b, c, d, e = B.val(),  
2724 - f = -1;  
2725 - for (b = 0, d = 0; n > b; b++)  
2726 - if (j[b]) {  
2727 - for (C[b] = p(b); d++ < e.length;)  
2728 - if (c = e.charAt(d - 1), j[b].test(c)) {  
2729 - C[b] = c, f = b;  
2730 - break  
2731 - }  
2732 - if (d > e.length) {  
2733 - y(b + 1, n);  
2734 - break  
2735 - }  
2736 - } else C[b] === e.charAt(d) && d++, k > b && (f = b);  
2737 - return a ? z() : k > f + 1 ? g.autoclear || C.join("") === D ? (B.val() && B.val(""), y(0, n)) : z() : (z(), B.val(B.val().substring(0, f + 1))), k ? b : l  
2738 - }  
2739 - var B = a(this),  
2740 - C = a.map(c.split(""), function(a, b) {  
2741 - return "?" != a ? i[a] ? p(b) : a : void 0  
2742 - }),  
2743 - D = C.join(""),  
2744 - E = B.val();  
2745 - B.data(a.mask.dataName, function() {  
2746 - return a.map(C, function(a, b) {  
2747 - return j[b] && a != p(b) ? a : null  
2748 - }).join("")  
2749 - }), B.one("unmask", function() {  
2750 - B.off(".mask").removeData(a.mask.dataName)  
2751 - }).on("focus.mask", function() {  
2752 - if (!B.prop("readonly")) {  
2753 - clearTimeout(b);  
2754 - var a;  
2755 - E = B.val(), a = A(), b = setTimeout(function() {  
2756 - B.get(0) === document.activeElement && (z(), a == c.replace("?", "").length ? B.caret(0, a) : B.caret(a))  
2757 - }, 10)  
2758 - }  
2759 - }).on("blur.mask", v).on("keydown.mask", w).on("keypress.mask", x).on("input.mask paste.mask", function() {  
2760 - B.prop("readonly") || setTimeout(function() {  
2761 - var a = A(!0);  
2762 - B.caret(a), h()  
2763 - }, 0)  
2764 - }), e && f && B.off("input.mask").on("input.mask", u), A()  
2765 - })  
2766 - }  
2767 - })  
2768 -});;  
2769 -$(document).ready(function() {  
2770 - $(window).scroll(function() {  
2771 - if ($(this).scrollTop() >= 200) {  
2772 - $('.up_arr').css('display', 'block');  
2773 - } else {  
2774 - $('.up_arr').css('display', 'none');  
2775 - }  
2776 - });  
2777 - $(".up_arr").on("click", function() {  
2778 - $("html, body").animate({  
2779 - scrollTop: 0  
2780 - }, 'slow');  
2781 - return false;  
2782 - });  
2783 -// $(document).on("click", '.plus', function() {  
2784 -// var input = $(this).parent().find('input');  
2785 -// var sp = parseFloat($(input).val());  
2786 -// if (sp > 100) {  
2787 -// $(this).parent().find('.minus').attr('class', '').addClass('plus-disabled');  
2788 -// $(input).val(sp + 1);  
2789 -// } else if (sp >= 0 && sp < 100) {  
2790 -// $(this).parent().find('.minus-disabled').attr('class', '').addClass('minus');  
2791 -// $(input).val(sp + 1);  
2792 -// }  
2793 -// if (typeof save_cart == 'function') {  
2794 -// if (!$(input).hasClass('qtyInput')) {  
2795 -// save_cart($("#buyForm #prod_id").val(), $("#buyForm input.prod_count").val());  
2796 -// } else {  
2797 -// save_cart($(input).prop('lang'), $(input).val(), $(this).closest("table.order_details"));  
2798 -// }  
2799 -// }  
2800 -// });  
2801 -// $(document).on("click", '.minus', function() {  
2802 -// var input = $(this).parent().find('input');  
2803 -// var sp = parseFloat($(input).val());  
2804 -// if (sp > 2 && sp < 100) {  
2805 -// $(input).val(sp - 1);  
2806 -// } else if (sp = 2) {  
2807 -// $(this).parent().find('.minus').attr('class', '').addClass('minus-disabled');  
2808 -// $(input).val(sp - 1);  
2809 -// }  
2810 -// if (typeof save_cart == 'function')  
2811 -// if (!$(input).hasClass('qtyInput')) {  
2812 -// save_cart($("#buyForm #prod_id").val(), $("#buyForm input.prod_count").val());  
2813 -// } else {  
2814 -// save_cart($(input).prop('lang'), $(input).val(), $(this).closest("table.order_details"));  
2815 -// }  
2816 -// });  
2817 -// $(".count_choise input").keydown(function(e) {  
2818 -// if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 190]) !== -1 || (e.keyCode == 65 && e.ctrlKey === true) || (e.keyCode >= 35 && e.keyCode <= 39)) {  
2819 -// return;  
2820 -// }  
2821 -// if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {  
2822 -// e.preventDefault();  
2823 -// }  
2824 -// });  
2825 - $('.properties_block .block_title').on('click', function() {  
2826 - properties_block = $(this).parent();  
2827 - if (properties_block.hasClass('closed')) {  
2828 - properties_block.removeClass('closed');  
2829 - properties_block.addClass('opened');  
2830 - properties_block.find('.chechboxes').show(100);  
2831 - } else {  
2832 - properties_block.removeClass('opened');  
2833 - properties_block.addClass('closed');  
2834 - properties_block.find('.chechboxes').hide(100);  
2835 - }  
2836 - });  
2837 - $('#header_feedback form button').on('click', function() {  
2838 - $('#header_feedback form input').css('display', 'inline-block');  
2839 - $(this).html('ะŸะตั€ะตะทะฒะพะฝะธั‚ะต ะผะฝะต <span class="feedback_btn_angle"></span>');  
2840 - return false;  
2841 - });  
2842 - $('.img_part').height($('.info').height());  
2843 - currentScroll = $(window).scrollTop();  
2844 - if (currentScroll > 0) {  
2845 - $('#top-cart-content').addClass('small-cart');  
2846 - } else {  
2847 - $('#top-cart-content').removeClass('small-cart');  
2848 - }  
2849 - $(window).scroll(function() {  
2850 - currentScroll = $(window).scrollTop();  
2851 - if (currentScroll > 0) {  
2852 - $('#top-cart-content').addClass('small-cart');  
2853 - } else {  
2854 - $('#top-cart-content').removeClass('small-cart');  
2855 - }  
2856 - });  
2857 - $(".bsales").mouseover(function() {  
2858 - $("#bs_box").animate({  
2859 - "opacity": 1  
2860 - }, 300);  
2861 - });  
2862 - $(".bsales").mouseleave(function() {  
2863 - $("#bs_box").animate({  
2864 - "opacity": 0  
2865 - }, 300);  
2866 - });  
2867 - prev_img_url = $('#catSlider #myCarousel').find('.item.active .cat-slide-part img').attr('src');  
2868 - next_img_url = $('#catSlider #myCarousel').find('.item.active .cat-slide-part img').attr('src');  
2869 - $('#catSlider #myCarousel').find('.img-nav.img-prev').attr('src', prev_img_url);  
2870 - $('#catSlider #myCarousel').find('.img-nav.img-next').attr('src', next_img_url);  
2871 - $('#myCarousel').carousel({  
2872 - interval: 10000  
2873 - });  
2874 - $('#catSlider #myCarousel').bind('slide.bs.carousel', function(e) {  
2875 - prev_img_url = $(this).find('.item.active .cat-slide-part img').attr('src');  
2876 - next_img_url = $(this).find('.item.active .cat-slide-part img').attr('src');  
2877 - $(this).find('.img-nav.img-prev').attr('src', prev_img_url);  
2878 - $(this).find('.img-nav.img-next').attr('src', next_img_url);  
2879 - });  
2880 -  
2881 -  
2882 - prev_img_url = $('#catSlider #topCarousel').find('.item.active .cat-slide-part img').attr('src');  
2883 - next_img_url = $('#catSlider #topCarousel').find('.item.active .cat-slide-part img').attr('src');  
2884 - $('#catSlider #topCarousel').find('.img-nav.img-prev').attr('src', prev_img_url);  
2885 - $('#catSlider #topCarousel').find('.img-nav.img-next').attr('src', next_img_url);  
2886 - $('#topCarousel').carousel({  
2887 - interval: 10000  
2888 - });  
2889 - $('#catSlider #topCarousel').bind('slide.bs.carousel', function(e) {  
2890 - prev_img_url = $(this).find('.item.active .cat-slide-part img').attr('src');  
2891 - next_img_url = $(this).find('.item.active .cat-slide-part img').attr('src');  
2892 - $(this).find('.img-nav.img-prev').attr('src', prev_img_url);  
2893 - $(this).find('.img-nav.img-next').attr('src', next_img_url);  
2894 - });  
2895 -  
2896 -  
2897 -  
2898 - $('ul.view_type .view_mini_table').on('click', function() {  
2899 - $('.catalog_product_list').removeClass('view_list');  
2900 - $('.catalog_product_list').addClass('view_mini_table');  
2901 - $(this).addClass('selected');  
2902 - $('.view_table').removeClass('selected');  
2903 - $('.view_list').removeClass('selected');  
2904 - });  
2905 - $('ul.view_type .view_table').on('click', function() {  
2906 - $('.catalog_product_list').removeClass('view_mini_table');  
2907 - $('.catalog_product_list').removeClass('view_list');  
2908 - $(this).addClass('selected');  
2909 - $('.view_mini_table').removeClass('selected');  
2910 - $('.view_list').removeClass('selected');  
2911 - });  
2912 - $('ul.view_type .view_list').on('click', function() {  
2913 - $('.catalog_product_list').removeClass('view_mini_table');  
2914 - $('.catalog_product_list').addClass('view_list');  
2915 - $(this).addClass('selected');  
2916 - $('.view_table').removeClass('selected');  
2917 - $('.view_mini_table').removeClass('selected');  
2918 - });  
2919 - $('.phone-select').click(function() {  
2920 - $('.dropdown-popup.popup-phone-operators').slideToggle();  
2921 - return false;  
2922 - });  
2923 - $('.phone-select-header').click(function() {  
2924 - $('.dropdown-popup-header.popup-phone-operators-header').slideToggle();  
2925 - return false;  
2926 - });  
2927 - $(':not(.phone-select)').click(function() {  
2928 - $('.dropdown-popup.popup-phone-operators').hide();  
2929 - });  
2930 - $(':not(.phone-select-header)').click(function() {  
2931 - $('.dropdown-popup-header.popup-phone-operators-header').hide();  
2932 - });  
2933 - $('.city-phone').click(function() {  
2934 - $('.dropdown-popup.popup-city-phones').slideToggle();  
2935 - return false;  
2936 - });  
2937 - $('.city-phone-header').click(function() {  
2938 - $('.dropdown-popup-header.popup-city-phones-header').slideToggle();  
2939 - return false;  
2940 - });  
2941 - $(':not(.city-phone)').click(function() {  
2942 - $('.dropdown-popup.popup-city-phones').hide();  
2943 - });  
2944 - $(':not(.city-phone-header)').click(function() {  
2945 - $('.dropdown-popup-header.popup-city-phones-header').hide();  
2946 - });  
2947 - $('.popup-city-phones .kiev').click(function() {  
2948 - $('.city_block_har').hide();  
2949 - $('.city_block_kiev').show();  
2950 - $('.call_block_title .city-phone').html('ะšะธะตะฒe');  
2951 - });  
2952 - $('.popup-city-phones-header .kiev').click(function() {  
2953 - $('.city_block_har_header').hide();  
2954 - $('.city_block_kiev_header').show();  
2955 - $('.call_block_header_title .city-phone-header').html('ะšะธะตะฒ');  
2956 - });  
2957 - $('.popup-city-phones .har').click(function() {  
2958 - $('.city_block_kiev').hide();  
2959 - $('.city_block_har').show();  
2960 - $('.call_block_title .city-phone').html('ะฅะฐั€ัŒะบะพะฒะต');  
2961 - });  
2962 - $('.popup-city-phones-header .har').click(function() {  
2963 - $('.city_block_kiev_header').hide();  
2964 - $('.city_block_har_header').show();  
2965 - $('.call_block_header_title .city-phone-header').html('ะฅะฐั€ัŒะบะพะฒ');  
2966 - });  
2967 - $('.popup-phone-operators .life').click(function() {  
2968 - $('.popup-phone-operators p').show();  
2969 - $(this).hide();  
2970 - $('.call_block .phones .phone').addClass('hide-operator');  
2971 - $('.call_block .phones .phone.life').removeClass('hide-operator');  
2972 - $('.phone-select > span').first().removeClass().addClass('select-left-life');  
2973 - });  
2974 - $('.popup-phone-operators-header .life').click(function() {  
2975 - $('.popup-phone-operators-header p').show();  
2976 - $(this).hide();  
2977 - $('.call_block_header .phones-header .phone').addClass('hide-operator');  
2978 - $('.call_block_header .phones-header .phone.life').removeClass('hide-operator');  
2979 - $('.phone-select-header > span:first-child').removeClass().addClass('select-left-life');  
2980 - });  
2981 - $('.popup-phone-operators .kstar').click(function() {  
2982 - $('.popup-phone-operators p').show();  
2983 - $(this).hide();  
2984 - $('.call_block .phones .phone').addClass('hide-operator');  
2985 - $('.call_block .phones .phone.kstar').removeClass('hide-operator');  
2986 - $('.phone-select > span').first().removeClass().addClass('select-left-kstar');  
2987 - });  
2988 - $('.popup-phone-operators-header .kstar').click(function() {  
2989 - $('.popup-phone-operators-header p').show();  
2990 - $(this).hide();  
2991 - $('.call_block_header .phones-header .phone').addClass('hide-operator');  
2992 - $('.call_block_header .phones-header .phone.kstar').removeClass('hide-operator');  
2993 - $('.phone-select-header > span:first-child').removeClass().addClass('select-left-kstar');  
2994 - });  
2995 - $('.popup-phone-operators .landline').click(function() {  
2996 - $('.popup-phone-operators p').show();  
2997 - $(this).hide();  
2998 - $('.call_block .phones .phone').addClass('hide-operator');  
2999 - $('.call_block .phones .phone.landline').removeClass('hide-operator');  
3000 - $('.phone-select > span').first().removeClass().addClass('select-left-landline');  
3001 - });  
3002 - $('.popup-phone-operators-header .landline').click(function() {  
3003 - $('.popup-phone-operators-header p').show();  
3004 - $(this).hide();  
3005 - $('.call_block_header .phones-header .phone').addClass('hide-operator');  
3006 - $('.call_block_header .phones-header .phone.landline').removeClass('hide-operator');  
3007 - $('.phone-select-header > span:first-child').removeClass().addClass('select-left-landline');  
3008 - });  
3009 - $('.popup-phone-operators .mts').click(function() {  
3010 - $('.popup-phone-operators p').show();  
3011 - $(this).hide();  
3012 - $('.call_block .phones .phone').addClass('hide-operator');  
3013 - $('.call_block .phones .phone.mts').removeClass('hide-operator');  
3014 - $('.phone-select > span').first().removeClass().addClass('select-left-mts');  
3015 - });  
3016 - $('.popup-phone-operators-header .mts').click(function() {  
3017 - $('.popup-phone-operators-header p').show();  
3018 - $(this).hide();  
3019 - $('.call_block_header .phones-header .phone').addClass('hide-operator');  
3020 - $('.call_block_header .phones-header .phone.mts').removeClass('hide-operator');  
3021 - $('.phone-select-header > span:first-child').removeClass().addClass('select-left-mts');  
3022 - });  
3023 - $('.popup-phone-operators-header p').click(function() {  
3024 - $('.phone-select-header').addClass('wasclicked');  
3025 - });  
3026 -  
3027 - function changePhone() {  
3028 - if (!$('.phone-select-header').hasClass('wasclicked')) {  
3029 - operator = $('.city_blocks_header .city_block_kiev_header .phone-select-header span').first().attr('class');  
3030 - if (operator == 'select-left-landline') {  
3031 - $('.popup-phone-operators-header p').show();  
3032 - $('.popup-phone-operators-header .mts').hide();  
3033 - $('.call_block_header .phones-header .phone').addClass('hide-operator');  
3034 - $('.call_block_header .phones-header .phone.mts').removeClass('hide-operator');  
3035 - $('.phone-select-header > span:first-child').removeClass().addClass('select-left-mts');  
3036 - } else if (operator == 'select-left-mts') {  
3037 - $('.popup-phone-operators-header p').show();  
3038 - $('.popup-phone-operators-header .kstar').hide();  
3039 - $('.call_block_header .phones-header .phone').addClass('hide-operator');  
3040 - $('.call_block_header .phones-header .phone.kstar').removeClass('hide-operator');  
3041 - $('.phone-select-header > span:first-child').removeClass().addClass('select-left-kstar');  
3042 - } else {  
3043 - $('.popup-phone-operators-header p').show();  
3044 - $('.popup-phone-operators-header .landline').hide();  
3045 - $('.call_block_header .phones-header .phone').addClass('hide-operator');  
3046 - $('.call_block_header .phones-header .phone.landline').removeClass('hide-operator');  
3047 - $('.phone-select-header > span:first-child').removeClass().addClass('select-left-landline');  
3048 - }  
3049 - }  
3050 - }  
3051 - $(function() {  
3052 - setInterval(changePhone, 15000);  
3053 - });  
3054 -});  
3055 -  
3056 -function format_money(sum, format) {  
3057 - if (typeof format === 'undefined') format = false;  
3058 - sum = parseFloat(sum).toFixed(2);  
3059 - sum = sum.toString();  
3060 - sum = sum.replace(/\,/g, ".");  
3061 - var parts = sum.split(".");  
3062 - var out = parts[0] + ((!format) ? ' ะณั€ะฝ. ' : '.');  
3063 - if (parts[1]) out = out + parts[1].substr(0, 2) + ((!format) ? ' ะบะพะฟ.' : ' ะณั€ะฝ. ');  
3064 - return out;  
3065 -};  
3066 -/*!  
3067 - Zoom 1.7.14  
3068 - license: MIT  
3069 - http://www.jacklmoore.com/zoom  
3070 - */  
3071 -(function($) {  
3072 - var defaults = {  
3073 - url: false,  
3074 - callback: false,  
3075 - target: false,  
3076 - duration: 120,  
3077 - on: "mouseover",  
3078 - touch: true,  
3079 - onZoomIn: false,  
3080 - onZoomOut: false,  
3081 - magnify: 1  
3082 - };  
3083 - $.zoom = function(target, source, img, magnify) {  
3084 - var targetHeight, targetWidth, sourceHeight, sourceWidth, xRatio, yRatio, offset, $target = $(target),  
3085 - position = $target.css("position"),  
3086 - $source = $(source);  
3087 - $target.css("position", /(absolute|fixed)/.test(position) ? position : "relative");  
3088 - $target.css("overflow", "hidden");  
3089 - img.style.width = img.style.height = "";  
3090 - $(img).addClass("zoomImg").css({  
3091 - position: "absolute",  
3092 - top: 0,  
3093 - left: 0,  
3094 - opacity: 0,  
3095 - width: img.width * magnify,  
3096 - height: img.height * magnify,  
3097 - border: "none",  
3098 - maxWidth: "none",  
3099 - maxHeight: "none"  
3100 - }).appendTo(target);  
3101 - return {  
3102 - init: function() {  
3103 - targetWidth = $target.outerWidth();  
3104 - targetHeight = $target.outerHeight();  
3105 - if (source === $target[0]) {  
3106 - sourceWidth = targetWidth;  
3107 - sourceHeight = targetHeight  
3108 - } else {  
3109 - sourceWidth = $source.outerWidth();  
3110 - sourceHeight = $source.outerHeight()  
3111 - }  
3112 - xRatio = (img.width - targetWidth) / sourceWidth;  
3113 - yRatio = (img.height - targetHeight) / sourceHeight;  
3114 - offset = $source.offset()  
3115 - },  
3116 - move: function(e) {  
3117 - var left = e.pageX - offset.left,  
3118 - top = e.pageY - offset.top;  
3119 - top = Math.max(Math.min(top, sourceHeight), 0);  
3120 - left = Math.max(Math.min(left, sourceWidth), 0);  
3121 - img.style.left = left * -xRatio + "px";  
3122 - img.style.top = top * -yRatio + "px"  
3123 - }  
3124 - }  
3125 - };  
3126 - $.fn.zoom = function(options) {  
3127 - return this.each(function() {  
3128 - var settings = $.extend({}, defaults, options || {}),  
3129 - target = settings.target || this,  
3130 - source = this,  
3131 - $source = $(source),  
3132 - $target = $(target),  
3133 - img = document.createElement("img"),  
3134 - $img = $(img),  
3135 - mousemove = "mousemove.zoom",  
3136 - clicked = false,  
3137 - touched = false,  
3138 - $urlElement;  
3139 - if (!settings.url) {  
3140 - $urlElement = $source.find("img");  
3141 - if ($urlElement[0]) {  
3142 - settings.url = $urlElement.data("src") || $urlElement.attr("src")  
3143 - }  
3144 - if (!settings.url) {  
3145 - return  
3146 - }  
3147 - }(function() {  
3148 - var position = $target.css("position");  
3149 - var overflow = $target.css("overflow");  
3150 - $source.one("zoom.destroy", function() {  
3151 - $source.off(".zoom");  
3152 - $target.css("position", position);  
3153 - $target.css("overflow", overflow);  
3154 - $img.remove()  
3155 - })  
3156 - })();  
3157 - img.onload = function() {  
3158 - var zoom = $.zoom(target, source, img, settings.magnify);  
3159 -  
3160 - function start(e) {  
3161 - zoom.init();  
3162 - zoom.move(e);  
3163 - $img.stop().fadeTo($.support.opacity ? settings.duration : 0, 1, $.isFunction(settings.onZoomIn) ? settings.onZoomIn.call(img) : false)  
3164 - }  
3165 -  
3166 - function stop() {  
3167 - $img.stop().fadeTo(settings.duration, 0, $.isFunction(settings.onZoomOut) ? settings.onZoomOut.call(img) : false)  
3168 - }  
3169 - if (settings.on === "grab") {  
3170 - $source.on("mousedown.zoom", function(e) {  
3171 - if (e.which === 1) {  
3172 - $(document).one("mouseup.zoom", function() {  
3173 - stop();  
3174 - $(document).off(mousemove, zoom.move)  
3175 - });  
3176 - start(e);  
3177 - $(document).on(mousemove, zoom.move);  
3178 - e.preventDefault()  
3179 - }  
3180 - })  
3181 - } else if (settings.on === "click") {  
3182 - $source.on("click.zoom", function(e) {  
3183 - if (clicked) {  
3184 - return  
3185 - } else {  
3186 - clicked = true;  
3187 - start(e);  
3188 - $(document).on(mousemove, zoom.move);  
3189 - $(document).one("click.zoom", function() {  
3190 - stop();  
3191 - clicked = false;  
3192 - $(document).off(mousemove, zoom.move)  
3193 - });  
3194 - return false  
3195 - }  
3196 - })  
3197 - } else if (settings.on === "toggle") {  
3198 - $source.on("click.zoom", function(e) {  
3199 - if (clicked) {  
3200 - stop()  
3201 - } else {  
3202 - start(e)  
3203 - }  
3204 - clicked = !clicked  
3205 - })  
3206 - } else if (settings.on === "mouseover") {  
3207 - zoom.init();  
3208 - $source.on("mouseenter.zoom", start).on("mouseleave.zoom", stop).on(mousemove, zoom.move)  
3209 - }  
3210 - if (settings.touch) {  
3211 - $source.on("touchstart.zoom", function(e) {  
3212 - e.preventDefault();  
3213 - if (touched) {  
3214 - touched = false;  
3215 - stop()  
3216 - } else {  
3217 - touched = true;  
3218 - start(e.originalEvent.touches[0] || e.originalEvent.changedTouches[0])  
3219 - }  
3220 - }).on("touchmove.zoom", function(e) {  
3221 - e.preventDefault();  
3222 - zoom.move(e.originalEvent.touches[0] || e.originalEvent.changedTouches[0])  
3223 - })  
3224 - }  
3225 - if ($.isFunction(settings.callback)) {  
3226 - settings.callback.call(img)  
3227 - }  
3228 - };  
3229 - img.src = settings.url  
3230 - })  
3231 - };  
3232 - $.fn.zoom.defaults = defaults  
3233 -})(window.jQuery);  
3234 \ No newline at end of file 0 \ No newline at end of file
frontend/web/js/script.js
@@ -66,8 +66,6 @@ $(document).on(&#39;click&#39;, &#39;#ordersFrom .cart_remove&#39;, function(e) { @@ -66,8 +66,6 @@ $(document).on(&#39;click&#39;, &#39;#ordersFrom .cart_remove&#39;, function(e) {
66 66
67 /*end order basket form js logic*/ 67 /*end order basket form js logic*/
68 68
69 -  
70 -  
71 $(document).on('click', '.buy_button', function(e) { 69 $(document).on('click', '.buy_button', function(e) {
72 e.preventDefault(); 70 e.preventDefault();
73 var product_variant_id = $(this).data('id'); 71 var product_variant_id = $(this).data('id');