jQuery(document).ready(function(c){c("._rss").each(function(){c(".rightbar h1").append('<a href="'+c(this).attr("rel")+'"><img src="/images/i/images/rss_ico.gif" alt="RSS" title="RSS" /></a>');c("head").append('<link rel="alternate" type="application/rss+xml" href="'+c(this).attr("rel")+'" />')});c(".mmenu .drop").each(function(){var e=c(this).find("li");if(e.size()<10){return}var g=c(this).find("ul").parent().append("<ul></ul>").find("ul:last");var f=0,d=Math.floor(e.size()/2);while(f++<d){g.prepend(e[e.size()-f])}c(this).toggleClass("drop drop2")});if(c.fn.fancybox){c(".fancybox a").fancybox({transitionIn:"elastic",transitionOut:"elastic",easingIn:"easeOutBack",easingOut:"easeInBack",type:"image"})}c(".pagebar").each(function(){var d=c(this).next();if(parseInt(d.attr("_last"))>parseInt(c(this).find("a:last").text())){c(this).append(d.find(">*"))}});c("form.ajax").bind("submit",function(){var d,e=c(this);e.find("input._phone").each(function(){var g=c(this).attr("name");var f=e.find("[name="+g+"_code]").val()+"-"+e.find("[name="+g+"_phone]").val();c(this).val(f=="-"?"":f)});c(this).find("._req ").each(function(){if(c(this).val()==""){d=true;c(this).focus();alert("Не все обязательные поля заполнены!");return false}});if(!d){c(this).ajaxSubmit({url:e.attr("rel"),iframe:true,success:function(f){var i=/<div class=.{0,1}nc_mail_from_site.{0,1}>(.*?)<\/div>/.exec(f);if(i){alert(i[1].replace("\n","<br>"));e.find("input[type=text],textarea").val("");e.find("input:checked").attr("checked",false)}else{var h=/nc_captcha_hash[',"]{0,1}\svalue=[',"]{0,1}(\w+)/.exec(f);if(h){e.find("input[name=nc_captcha_hash]").val(h[1]);e.find("img._captcha").attr("src","/netcat/modules/captcha/img.php?code="+h[1])}var g=/<div class=.{0,1}warnText.{0,1}>(.+)<\/div>/.exec(f);if(g){alert(g[1].replace(/<[^>]*>/g,""))}}}})}return false});c("form .bbutton-box a,.plashka a").click(function(){c(this).parents("form").submit();return false});if(window.google&&google.maps){c("._map").each(function(){var f=c(this).attr("_center").split(",");var e={center:new google.maps.LatLng(parseFloat(f[0]),parseFloat(f[1])),zoom:parseInt(c(this).attr("_zoom")),mapTypeId:google.maps.MapTypeId.ROADMAP};var h=new google.maps.Map(this,e);var d=new google.maps.Marker({map:h,icon:c("body").attr("_marker"),position:new google.maps.LatLng(parseFloat(f[0]),parseFloat(f[1]))});var g=new google.maps.InfoWindow({content:c("#"+c(this).attr("rel")).html()});google.maps.event.addListener(d,"click",function(){g.open(h,this)})});c("._markers").each(function(){var d=new google.maps.LatLngBounds();var f=c(this).find("._lonlat");f.each(function(){var i=c(this).attr("lonlat").split(",");d.extend(new google.maps.LatLng(parseFloat(i[0]),parseFloat(i[1])))});var h=new google.maps.LatLng(-34.397,150.644);var e={mapTypeId:google.maps.MapTypeId.ROADMAP};var g=new google.maps.Map(c(this).prev()[0],e);g.fitBounds(d);f.each(function(){var j=c(this).attr("lonlat").split(",");var i=new google.maps.Marker({map:g,icon:c("body").attr("_marker"),title:c(this).find("._address").text(),position:new google.maps.LatLng(parseFloat(j[0]),parseFloat(j[1]))});var k=new google.maps.InfoWindow({content:c(this).html()});google.maps.event.addListener(i,"click",function(){k.open(g,this)})})})}c("form.search a").click(function(){c(this).parents("form").submit()});var b;c(".b-form-search").each(function(){b=new google.search.WebSearch();b.setSiteRestriction(document.domain);var d=c(".h-paging");b.setSearchCompleteCallback(this,function(){var g=b.results,e="",j;for(var f=0;f<g.length;f++){j=g[f];e+='<li><span><a href="'+j.url+'">'+j.title+"</a>"+j.content+"</span></li>"}c(".b-search-result").html(e);e="";var l=b.cursor;if(l&&l.pages.length>1){var h=l.currentPageIndex;e+="";for(var f=0;f<l.pages.length;f++){var k=l.pages[f];e+=(f>0?" ":"")+(h==f?'<a class="act" href="#">'+(f+1)+"</a>":'<a href="#">'+(f+1)+"</a>")}d.show()}else{d.hide()}d.html(e);d.find("a").click(function(){b.gotoPage(parseInt(c(this).text())-1);return false})})}).bind("submit",function(){var d=c(this).find("input[type=text]").val();b.execute(d);return false}).submit();if(window.Highcharts){Highcharts.setOptions({lang:{downloadPNG:"Скачать изображение PNG",downloadJPEG:"Скачать изображение JPEG",downloadPDF:"Скачать документ PDF",downloadSVG:"Скачать векторное изображение SVG",exportButtonTitle:"Экспорт в растерное или векторное изображение",printButtonTitle:"Распечатать график"}});var a=new Highcharts.Chart({chart:{renderTo:"chart",spacingRight:20,backgroundColor:null,borderWidth:0},title:false,subtitle:false,xAxis:{type:"datetime",maxZoom:180*24*3600000,title:{text:null},labels:{formatter:function(){var f=new Date();f.setTime(this.value);var g=f.getFullYear()%100,e=f.getMonth()+1;return(e<10?"0":"")+e+"."+(g<10?"0":"")+g}}},yAxis:{tickPixelInterval:30,labels:{formatter:function(){return this.value}},title:{text:"тысячи рублей"},startOnTick:false,showFirstLabel:false},tooltip:{formatter:function(){var g=new Date();g.setTime(this.x);var h=g.getFullYear()%100,f=g.getMonth()+1,e=g.getDay()+1;return(e<10?"0":"")+e+"."+(f<10?"0":"")+f+"."+g.getFullYear()+"<br/><b>"+this.points[0].y+"</b>"},shared:true},legend:{enabled:false},plotOptions:{line:{color:"#f69650",lineWidth:2,marker:{enabled:false,states:{hover:{enabled:true,radius:5}}},shadow:false,states:{hover:{lineWidth:2}}}},series:[{type:"line"}]});c("select.chartzoom").change(function(){var d;if(c(this).val()+0!=0){d=c(this).val().split("-");d=Date.UTC(parseInt(d[0]),parseInt(d[1])-1,parseInt(d[2])-1)}else{d=a.xAxis[0].getExtremes().dataMin}a.xAxis[0].setExtremes(d,a.xAxis[0].getExtremes().dataMax)});c(c(".charts a").click(function(){c(this).parents("ul").find("li").removeClass("act");c(this).parents("li").addClass("act");c.post("/netcat/modules/default/chart.php",{field:c(this).attr("rel")},function(d){a.series[0].setData(d)},"json");return false}).get(0)).click()}c(c(".reports a").click(function(){c(this).parents("ul").find("li").removeClass("act");c(this).parents("li").addClass("act");c.post("/netcat/modules/default/reports.php",{year:c(this).text()},function(d){c("table.treport td").html("");c.each(d,function(){c("table.treport tr[rel="+this[0]+"]").find("td:eq("+(this[1]-1)+")").html('<a href="'+this[2]+'"><img alt="#" src="/images/i/images/ch01.gif"></a>')})},"json");return false}).get(0)).click();c("div.other-doc").each(function(){if(c(this).find("li").size()>0){c(this).show()}});c(".gal-box li a").click(function(){c(".gal-box .slide[rel="+c(this).attr("rel")+"]").fadeIn();return false});c(".gal-box .back-link a").click(function(){c(this).parents(".slide").fadeOut()});c("#container-1").tabs();c("#mycarousel").each(function(){if(c(this).find(">li").size()>4){c(this).parents(".gal-box").removeClass("_hidearrow")}})});var func=function(){if($.fn.jcarousel){$("#mycarousel").jcarousel({visible:4,wrap:"circular"})}$(".accordion h3").click(function(){$(this).next("div").slideToggle("slow").siblings("div:visible").slideUp("slow");$(this).toggleClass("active");$(this).siblings("h3").removeClass("active");return false});$(".vslide01").click(function(){$(".slide01").fadeIn("");return false});$(".close01").click(function(){$(".slide01").fadeOut("");return false});$(".vslide02").click(function(){$(".slide02").fadeIn("");return false});$(".close02").click(function(){$(".slide02").fadeOut("");return false});$(".vslide03").click(function(){$(".slide03").fadeIn("");return false});$(".close03").click(function(){$(".slide03").fadeOut("");return false});$(".vslide04").click(function(){$(".slide04").fadeIn("");return false});$(".close04").click(function(){$(".slide04").fadeOut("");return false});$(".vslide05").click(function(){$(".slide05").fadeIn("");return false});$(".close05").click(function(){$(".slide05").fadeOut("");return false});$(".vslide06").click(function(){$(".slide06").fadeIn("");return false});$(".close06").click(function(){$(".slide06").fadeOut("");return false});$(".view-ib").click(function(){$(".idrop").show();return false});$(".idrop span").click(function(){$(".idrop").hide();return false})};$(func);
