$(window)["load"](function (){$("#slider")["nivoSlider"]({directionNav:false,pauseTime:15000,pauseOnHover:true});} );$(document)["ready"](function (){$(".category_widget a")["click"](function (){$categoryItem=$(this);$(".widget-content\x3E.is_link li")["removeClass"]("selected");$("#text")["css"]("display","none");if($(this)["children"]("span")["hasClass"]("docs")){var _0x44ffx0=$(this)["attr"]("href");$["ajax"]({url:_0x44ffx0,dataFilter:function (_0x44ffx1){return $(_0x44ffx1)["find"]("#text")["html"]();} ,success:function (_0x44ffx1){$["colorbox"]({html:_0x44ffx1,width:"80%",height:"80%"});jQuery("#print")["attr"]("href","javascript:void( 0 )")["click"](function (){$("#contacts")["print"]();return (false);} );} });return false;} else {$("#text")["empty"]()["load"]($(this)["attr"]("href")+" #text",function (){if($categoryItem["text"]()=="Новости"){$("span.cut a")["click"](function (){$value=$(this)["parents"](".page_content")["html"]();$thisElement=$(this)["parents"](".page_content");$(".cutText")["remove"]();$(this)["parents"](".page_content")["append"]("\x3Cdiv class=\x22cutText\x22\x3E\x3C/div\x3E");$(".cutText")["load"]($(this)["attr"]("href")+" #text .page_content",function (){$(".page_other_pages")["remove"]();$(".cutText")["append"]("\x3Cdiv class=\x22back\x22 style=\x22position: absolute; right: -20px; top: -25px;cursor:pointer;\x22\x3E\x3Cstrong\x3EЗакрыть\x3C/strong\x3E\x3C/div\x3E");$(".back")["click"](function (){$(".cutText")["remove"]();} );} );return false;} );} ;$(".gallery")["find"]("a[href$=\x27.jpg\x27],a[href$=\x27.jpeg\x27],a[href$=\x27.png\x27],a[href$=\x27.gif\x27],a[href$=\x27.bmp\x27]")["attr"]("rel","cb-gal");$(".random-gal")["find"]("a[href$=\x27.jpg\x27],a[href$=\x27.jpeg\x27],a[href$=\x27.png\x27],a[href$=\x27.gif\x27],a[href$=\x27.bmp\x27]")["attr"]("rel","cb-rand");if($(".page_content div")["hasClass"]("gallery")===true){var _0x44ffx2=$("a[rel=\x27cb-gal\x27]"),_0x44ffx3;$(document)["bind"]("cbox_complete",function (){if(_0x44ffx2["index"]($["colorbox"]["element"]())==_0x44ffx2["length"]-1&&$(".cboxSlideshow_on #cboxSlideshow")["css"]("display")=="block"){_0x44ffx3=setTimeout($["colorbox"]["close"],$["colorbox"]["settings"]["slideshowSpeed"]);} ;} )["bind"]("cbox_cleanup cbox_load",function (){clearTimeout(_0x44ffx3);} );_0x44ffx2["colorbox"]({loop:false,slideshow:false});} ;var _0x44ffx4=$("div.random-gal a")["hasClass"]("single")===true?false:false;if($("#sidebar div")["hasClass"]("random-gal")===true){var _0x44ffx5=$("a[rel=\x27cb-rand\x27]"),_0x44ffx3;$(document)["bind"]("cbox_complete",function (){if((_0x44ffx5["index"]($["colorbox"]["element"]())==_0x44ffx5["length"]-1)&&$(".cboxSlideshow_on #cboxSlideshow")["css"]("display")=="block"){_0x44ffx3=setTimeout($["colorbox"]["close"],$["colorbox"]["settings"]["slideshowSpeed"]);} ;} )["bind"]("cbox_cleanup cbox_load",function (){clearTimeout(_0x44ffx3);} );_0x44ffx5["colorbox"]({loop:false,slideshow:_0x44ffx4});} ;$("a[rel=\x27cb-gal\x27],a[rel=\x27cb-rand\x27]")["colorbox"]({transition:"elastic",maxWidth:"100%",maxHeight:"100%",photo:true,opacity:"0.6",slideshowSpeed:"2500",slideshowAuto:false});$(".cboxSlideshow_on #cboxSlideshow")["live"]("click",$["fn"]["colorbox"]["next"]);$("a.single")["colorbox"]({transition:"elastic",maxWidth:"100%",maxHeight:"100%",photo:true});$("a.lightbox")["colorbox"]({transition:"elastic",maxWidth:"100%",maxHeight:"100%"});} );$("#text")["fadeIn"](2000);$(this)["parent"]("li")["addClass"]("selected");return false;} ;} );$(".last_pages_widget_30 a")["each"](function (){$(this)["click"](function (){$("#text")["css"]("display","none");$("#text")["empty"]()["load"]($(this)["attr"]("href")+" #text",function (){$("span.cut a")["click"](function (){$value=$(this)["parents"](".page_content")["html"]();$thisElement=$(this)["parents"](".page_content");$(".cutText")["remove"]();$(this)["parents"](".page_content")["append"]("\x3Cdiv class=\x22cutText\x22\x3E\x3C/div\x3E");$(".cutText")["load"]($(this)["attr"]("href")+" #text .page_content",function (){$(".page_other_pages")["remove"]();$(".cutText")["append"]("\x3Cdiv class=\x22back\x22 style=\x22position: absolute; right: -20px; top: -25px;cursor:pointer;\x22\x3E\x3Cstrong\x3EЗакрыть\x3C/strong\x3E\x3C/div\x3E");$(".back")["click"](function (){$(".cutText")["remove"]();} );} );return false;} );$(".page_other_pages")["remove"]();$(".gallery")["find"]("a[href$=\x27.jpg\x27],a[href$=\x27.jpeg\x27],a[href$=\x27.png\x27],a[href$=\x27.gif\x27],a[href$=\x27.bmp\x27]")["attr"]("rel","cb-gal");$(".random-gal")["find"]("a[href$=\x27.jpg\x27],a[href$=\x27.jpeg\x27],a[href$=\x27.png\x27],a[href$=\x27.gif\x27],a[href$=\x27.bmp\x27]")["attr"]("rel","cb-rand");if($(".page_content div")["hasClass"]("gallery")===true){var _0x44ffx2=$("a[rel=\x27cb-gal\x27]"),_0x44ffx3;$(document)["bind"]("cbox_complete",function (){if(_0x44ffx2["index"]($["colorbox"]["element"]())==_0x44ffx2["length"]-1&&$(".cboxSlideshow_on #cboxSlideshow")["css"]("display")=="block"){_0x44ffx3=setTimeout($["colorbox"]["close"],$["colorbox"]["settings"]["slideshowSpeed"]);} ;} )["bind"]("cbox_cleanup cbox_load",function (){clearTimeout(_0x44ffx3);} );_0x44ffx2["colorbox"]({loop:false,slideshow:false});} ;var _0x44ffx4=$("div.random-gal a")["hasClass"]("single")===true?false:false;if($("#sidebar div")["hasClass"]("random-gal")===true){var _0x44ffx5=$("a[rel=\x27cb-rand\x27]"),_0x44ffx3;$(document)["bind"]("cbox_complete",function (){if((_0x44ffx5["index"]($["colorbox"]["element"]())==_0x44ffx5["length"]-1)&&$(".cboxSlideshow_on #cboxSlideshow")["css"]("display")=="block"){_0x44ffx3=setTimeout($["colorbox"]["close"],$["colorbox"]["settings"]["slideshowSpeed"]);} ;} )["bind"]("cbox_cleanup cbox_load",function (){clearTimeout(_0x44ffx3);} );_0x44ffx5["colorbox"]({loop:false,slideshow:_0x44ffx4});} ;$("a[rel=\x27cb-gal\x27],a[rel=\x27cb-rand\x27]")["colorbox"]({transition:"elastic",maxWidth:"100%",maxHeight:"100%",photo:true,opacity:"0.6",slideshowSpeed:"2500",slideshowAuto:false});$(".cboxSlideshow_on #cboxSlideshow")["live"]("click",$["fn"]["colorbox"]["next"]);$("a.single")["colorbox"]({transition:"elastic",maxWidth:"100%",maxHeight:"100%",photo:true});$("a.lightbox")["colorbox"]({transition:"elastic",maxWidth:"100%",maxHeight:"100%"});} );$("#text")["fadeIn"](2000);return false;} );} );$("#mapinfo a")["click"](function (){var _0x44ffx0=$(this)["attr"]("href");$["scrollTo"]($(_0x44ffx0),1200,{axis:"y"});return false;} );$(".page_only")["live"]("click",function (){} );} );$(document)["ready"](function (){$("#main")["fadeIn"](2500);} );
