﻿$(document).ready(function(){lastBlock=$("#kwick_1");maxWidth=723;minWidth=50;var slideNum=1
$("#kwick_1").animate({width:maxWidth+"px"},{queue:false,duration:400});$("#example6 > ul > li > span").hide();$("#kwick_1 .span").slideToggle("slow");var picturesSlides=setInterval(function(){slideNum=slideNum+1
if(slideNum==1){slideNum==2;$("#kwick_5").animate({width:minWidth+"px"},{queue:false,duration:400});$("#kwick_1").animate({width:maxWidth+"px"},{queue:false,duration:400});$("#example6 > ul > li > span").hide();$("#kwick_1 .span").slideToggle("slow");lastBlock=$("#kwick_1");};if(slideNum==2){$("#kwick_1").animate({width:minWidth+"px"},{queue:false,duration:400});$("#kwick_2").animate({width:maxWidth+"px"},{queue:false,duration:400});$("#example6 > ul > li > span").hide();$("#kwick_2 .span").slideToggle("slow");lastBlock=$("#kwick_2");};if(slideNum==3){$("#kwick_2").animate({width:minWidth+"px"},{queue:false,duration:400});$("#kwick_3").animate({width:maxWidth+"px"},{queue:false,duration:400});$("#example6 > ul > li > span").hide();$("#kwick_3 .span").slideToggle("slow");lastBlock=$("#kwick_3");};if(slideNum==4){$("#kwick_3").animate({width:minWidth+"px"},{queue:false,duration:400});$("#kwick_4").animate({width:maxWidth+"px"},{queue:false,duration:400});$("#example6 > ul > li > span").hide();$("#kwick_4 .span").slideToggle("slow");lastBlock=$("#kwick_4");};if(slideNum==5){$("#kwick_4").animate({width:minWidth+"px"},{queue:false,duration:400});$("#kwick_5").animate({width:maxWidth+"px"},{queue:false,duration:400});$("#example6 > ul > li > span").hide();$("#kwick_5 .span").slideToggle("slow");slideNum=0;lastBlock=$("#kwick_5");};},8000);$("#example6 .kwicks li").hover(function(){clearInterval(picturesSlides);$(lastBlock).animate({width:minWidth+"px"},{queue:false,duration:400});$(this).animate({width:maxWidth+"px"},{queue:false,duration:400});currentBlock=this;if((($(this)).attr("id"))=="kwick_1"){if(currentBlock!=lastBlock){$("#example6 > ul > li > span").hide();$("#kwick_1 .span").slideToggle("slow");};};if((($(this)).attr("id"))=="kwick_2"){if(currentBlock!=lastBlock){$("#example6 > ul > li > span").hide();$("#kwick_2 .span").slideToggle("slow");};};if((($(this)).attr("id"))=="kwick_3"){if(currentBlock!=lastBlock){$("#example6 > ul > li > span").hide();$("#kwick_3 .span").slideToggle("slow");};};if((($(this)).attr("id"))=="kwick_4"){if(currentBlock!=lastBlock){$("#example6 > ul > li > span").hide();$("#kwick_4 .span").slideToggle("slow");};};if((($(this)).attr("id"))=="kwick_5"){if(currentBlock!=lastBlock){$("#example6 > ul > li > span").hide();$("#kwick_5 .span").slideToggle("slow");};};lastBlock=this;});currentBlock=lastBlock;lastBlock=lastBlock;});$(document).ready(function(){$(".but_2").mouseover(function(){$(".but_2 > div").fadeIn();$("#main_but_2").css("background","#000 url('/bg/main_but_2.png') no-repeat 6px 0");$("#main_but_2 > a").css("color","white");});$(".but_2 div").mouseover(function(){$("#main_but_2").css("background","#000 url('/bg/main_but_2.png') no-repeat 6px 0");$("#main_but_2 > a").css("color","white");$(".but_2 > div").show();});$(".but_2 div").mouseout(function(){$(".but_2 > div").hide();$("#main_but_2").css("background","url('/bg/main_but_2_off.png') no-repeat 6px 0");$("#main_but_2 > a").css("color","#5e5e5e");});});function check_special(){var name=0;var umail=0;document.getElementById('form_name').style.backgroundColor='transparent';document.getElementById('form_tel').style.backgroundColor='transparent';document.getElementById('form_name').style.color='#000';document.getElementById('form_tel').style.color='#000';if(document.getElementById("form_name").value==""){umail++;};if(document.getElementById("form_tel").value==""){name++;};if(umail!=0){document.getElementById('form_name').style.backgroundColor='black';document.getElementById('form_name').style.color='#fff';};if(name!=0){document.getElementById('form_tel').style.backgroundColor='black';document.getElementById('form_tel').style.color='#fff';};if(umail==0&&name==0){document.form_special.submit();};}
