var newClass=function(){return function(){return this.init.apply(this,arguments);};};var tb_pathToImage="/thickbox/images/loadingAnimation.gif";jQuery(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image();imgLoader.src=tb_pathToImage;});function tb_init(_1){jQuery(_1).click(function(){var t=this.title||this.name||null;var a=this.href||this.alt;var g=this.rel||false;tb_show(t,a,g);this.blur();return false;});};function tb_show(_2,_3,_4){try{if(typeof document.body.style.maxHeight==="undefined"){jQuery("body","html").css({height:"100%",width:"100%"});jQuery("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){jQuery("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");jQuery("#TB_overlay").click(tb_remove);}}else{if(document.getElementById("TB_overlay")===null){jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");jQuery("#TB_overlay").click(tb_remove);}}if(tb_detectMacXFF()){jQuery("#TB_overlay").addClass("TB_overlayMacFFBGHack");}else{jQuery("#TB_overlay").addClass("TB_overlayBG");}if(_2===null){_2="";}jQuery("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");jQuery("#TB_load").show();var _5;if(_3.indexOf("?")!==-1){_5=_3.substr(0,_3.indexOf("?"));}else{_5=_3;}var _6=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$|\.oid$/;var _7=_5.toLowerCase().match(_6);if(_7==".jpg"||_7==".jpeg"||_7==".png"||_7==".gif"||_7==".bmp"||_7==".oid"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(_4){TB_TempArray=jQuery("a[@rel="+_4+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var _8=TB_TempArray[TB_Counter].href.toLowerCase().match(_6);if(!(TB_TempArray[TB_Counter].href==_3)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length);}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var _9=tb_getPageSize();var x=_9[0]-150;var y=_9[1]-150;var _a=imgPreloader.width;var _b=imgPreloader.height;if(_a>x){_b=_b*(x/_a);_a=x;if(_b>y){_a=_a*(y/_b);_b=y;}}else{if(_b>y){_a=_a*(y/_b);_b=y;if(_a>x){_b=_b*(x/_a);_a=x;}}}TB_WIDTH=_a+30;TB_HEIGHT=_b+60;jQuery("#TB_window").append("<table id='TB_Table'><tbody>"+"<tr><td id='TB_LeftTopCell'></td><td id='TB_TopCell'></td><td id='TB_RightTopCell'></td>"+"<tr><td id='TB_LeftCell'></td><td id='TB_CenterCell'><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'></a></div>"+"<img src='"+_3+"' width='"+_a+"' height='"+_b+"' alt='"+_2+"' />"+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div>"+"</td><td id='TB_RightCell'></td></tr>"+"<tr><td id='TB_LeftBottomCell'></td><td id='TB_BottomCell'></td><td id='TB_RightBottomCell'></td></tr>"+"</tbody></table>");jQuery("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function _c(){if(jQuery(document).unbind("click",_c)){jQuery(document).unbind("click",_c);}jQuery("#TB_window").remove();jQuery("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,_4);return false;};jQuery("#TB_prev").click(_c);}if(!(TB_NextHTML==="")){function _d(){jQuery("#TB_window").remove();jQuery("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,_4);return false;};jQuery("#TB_next").click(_d);}document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}if(keycode==27){tb_remove();}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";_d();}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";_c();}}}}};tb_position();jQuery("#TB_load").remove();jQuery("#TB_ImageOff").click(tb_remove);jQuery("#TB_window").css({display:"block"});};imgPreloader.src=_3;}else{var _e=_3.replace(/^[^\?]+\??/,"");var _f=tb_parseQuery(_e);TB_WIDTH=(_f["width"]*1)+30||630;TB_HEIGHT=(_f["height"]*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(_3.indexOf("TB_iframe")!=-1){urlNoQuery=_3.split("TB_");jQuery("#TB_iframeContent").remove();if(_f["modal"]!="true"){jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+_2+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'></a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>");}else{jQuery("#TB_overlay").unbind();jQuery("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>");}}else{if(jQuery("#TB_window").css("display")!="block"){if(_f["modal"]!="true"){jQuery("#TB_window").append("<table id='TB_Table'><tbody><tr><td id='TB_LeftTopCell'></td><td id='TB_TopCell'></td><td id='TB_RightTopCell'></td></tr><tr><td id='TB_LeftCell'></td><td id='TB_CenterCell'><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'></a></div><div id='TB_ajaxContent' style='width:"+(ajaxContentW-38)+"px;height:"+(ajaxContentH-38)+"px;'></div></div><div id='TB_secondLine'></div></td><td id='TB_RightCell'></td></tr><tr><td id='TB_LeftBottomCell'></td><td id='TB_BottomCell'></td><td id='TB_RightBottomCell'></td></tr></tbody></table>");}else{jQuery("#TB_overlay").unbind();jQuery("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");}}else{jQuery("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";jQuery("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";jQuery("#TB_ajaxContent")[0].scrollTop=0;jQuery("#TB_ajaxWindowTitle").html(_2);}}jQuery("#TB_closeWindowButton").click(tb_remove);if(_3.indexOf("TB_inline")!=-1){jQuery("#TB_ajaxContent").append(jQuery("#"+_f["inlineId"]).children());jQuery("#TB_window").unload(function(){jQuery("#"+_f["inlineId"]).append(jQuery("#TB_ajaxContent").children());});tb_position();jQuery("#TB_load").remove();jQuery("#TB_window").css({display:"block"});}else{if(_3.indexOf("TB_iframe")!=-1){tb_position();if(jQuery.browser.safari){jQuery("#TB_load").remove();jQuery("#TB_window").css({display:"block"});}}else{jQuery("#TB_ajaxContent").load(_3+="&random="+(new Date().getTime()),function(){tb_position();jQuery("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");jQuery("#TB_window").css({display:"block"});});}}}if(!_f["modal"]){document.onkeyup=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}if(keycode==27){tb_remove();}};}}catch(e){}};function tb_showIframe(){jQuery("#TB_load").remove();jQuery("#TB_window").css({display:"block"});};function tb_remove(){jQuery("#TB_imageOff").unbind("click");jQuery("#TB_closeWindowButton").unbind("click");jQuery("#TB_window").fadeOut("fast",function(){jQuery("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove();});jQuery("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){jQuery("body","html").css({height:"auto",width:"auto"});jQuery("html").css("overflow","");}document.onkeydown="";document.onkeyup="";return false;};function tb_position(){jQuery("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});};function tb_parseQuery(_10){var _11={};if(!_10){return _11;}var _12=_10.split(/[;&]/);for(var i=0;i<_12.length;i++){var _13=_12[i].split("=");if(!_13||_13.length!=2){continue;}var key=unescape(_13[0]);var val=unescape(_13[1]);val=val.replace(/\+/g," ");_11[key]=val;}return _11;};function tb_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight;arrayPageSize=[w,h];return arrayPageSize;};function tb_detectMacXFF(){var _14=navigator.userAgent.toLowerCase();if(_14.indexOf("mac")!=-1&&_14.indexOf("firefox")!=-1){return true;}};var loc=window.location;var mis;nN=navigator.appName;function showTB(){var _15="/mistakes/mistakes.php?height=550&width=430";tb_show("BugReport",_15);};function getText(e){if(!e){e=window.event;}if((e.ctrlKey)&&((e.keyCode==10)||(e.keyCode==13))){if(nN=="Microsoft Internet Explorer"){if(document.selection.createRange()){var _16=document.selection.createRange();mis=_16.text;if(mis!=""){showTB();}}}else{if(window.getSelection()){mis=window.getSelection();if(mis!=""){showTB();}}else{if(document.getSelection()){mis=document.getSelection();if(mis!=""){showTB();}}}}return true;}return true;};document.onkeypress=getText;var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));function mygat(){if(typeof (_gat)=="undefined"){window.setTimeout(mygat,1000);}else{var _17=_gat._getTracker("UA-16063160-1");_17._trackPageview();}};function addLoadEvent(_18){var _19=window.onload;if(typeof window.onload!="function"){window.onload=_18;}else{window.onload=function(){if(_19){_19();}_18();};}};addLoadEvent(mygat);var Emails=newClass();Emails.prototype={init:function(){var t=this;t.anchors=jQuery("a.E-mail");},changeAnchors:function(){var t=this;t.anchors.each(function(){var el=jQuery(this);var _1a=el.text();var _1b=_1a.replace("(a)","@");el.attr("href","mailto:"+_1b);el.text("Stawr");});}};jQuery(document).ready(function(){var _1c=new Emails;_1c.changeAnchors();});var Smena=newClass();Smena.prototype={init:function(){var t=this;jQuery(".SpecBlock span").click(function(){jQuery(this).parent(".SpecBlock").find("ol").slideToggle(200);});jQuery(".SpecBlock span").click(function(){jQuery(this).parent(".SpecBlock").find(".SpecBlockToggle").slideToggle(200);});jQuery(".SpecBlockScn span").click(function(){jQuery(this).parent(".SpecBlockScn").find(".PrikazBlock").slideToggle(200);});}};jQuery(document).ready(function(){jQuery(".SpecBlock ol").css({display:"none"});jQuery(".SpecBlockToggle").css({display:"none"});jQuery(".PrikazBlock").css({display:"none"});new Smena();});function socializ(u,t){var s=jQuery("#socializ");s.append("<div id=\"soc1\">"+"<noindex><a rel=\"nofollow\" href=\"http://twitter.com/home?status=%23Ulspu "+t+" - "+u+"\" title=\"Добавить в Twitter\"></a></noindex>"+"<noindex><a rel=\"nofollow\" href=\"http://www.google.com/reader/link?url="+u+"&title="+t+"&srcURL=http://ulspu.ru/\" title=\"Добавить в Google Buzz\"></a></noindex>"+"<noindex><a rel=\"nofollow\" href=\"http://www.friendfeed.com/share?title="+t+" - "+u+"\" title=\"Добавить в FriendFeed\"></a></noindex>"+"<noindex><a rel=\"nofollow\" href=\"http://www.facebook.com/sharer.php?u="+u+"\" title=\"Поделиться в Facebook\"></a></noindex>"+"<noindex><a rel=\"nofollow\" href=\"http://vkontakte.ru/share.php?url="+u+"\" title=\"Поделиться ВКонтакте\"></a></noindex>"+"<noindex><a rel=\"nofollow\" href=\"http://connect.mail.ru/share?share_url="+u+"\" title=\"Поделиться в Моем Мире\"></a></noindex>"+"<noindex><a rel=\"nofollow\" href=\"http://www.livejournal.com/update.bml?event="+u+"&subject="+t+"\" title=\"Опубликовать в своем блоге livejournal.com\"></a></noindex>"+"</div><div id=\"soc2\">"+"<noindex><a rel=\"nofollow\" href=\"http://delicious.com/save?url="+u+"&title="+t+"\" title=\"Сохранить закладку в Delicious\"></a></noindex>"+"<noindex><a rel=\"nofollow\" href=\"http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+u+"&title="+t+"\" title=\"Сохранить закладку в Google\"></a></noindex>"+"<noindex><a rel=\"nofollow\" href=\"http://bobrdobr.ru/add.html?url="+u+"&title="+t+"\" title=\"Забобрить\"></a></noindex>"+"<noindex><a rel=\"nofollow\" href=\"http://memori.ru/link/?sm=1&u_data[url]="+u+"&u_data[name]="+t+"\" title=\"Сохранить закладку в Memori.ru\"></a></noindex>"+"<noindex><a rel=\"nofollow\" href=\"http://www.mister-wong.ru/index.php?action=addurl&bm_url="+u+"&bm_description="+t+"\" title=\"Сохранить закладку в Мистер Вонг\"></a></noindex>"+"</div>"+"<div id=\"socmore\" title=\"Еще\">Закладки</div>");jQuery("#socializ a").each(function(i){jQuery(this).css({backgroundPosition:"-"+20*i+"px 0"}).attr({target:"_blank"});});s.find("a").css({opacity:0.5}).hover(function(){jQuery(this).css({opacity:1});},function(){jQuery(this).css({opacity:0.7});});s.hover(function(){jQuery(this).find("a").css({opacity:0.7});},function(){jQuery(this).find("a").css({opacity:0.5});});jQuery("#soc2").hide();jQuery("#socmore").css({opacity:0.5}).hover(function(){jQuery(this).css({opacity:1});},function(){jQuery(this).css({opacity:0.5});});jQuery("#socmore").toggle(function(){jQuery("#soc1").hide();jQuery("#soc2").fadeIn();jQuery("#socmore").text("Соц. Сети");},function(){jQuery("#soc2").hide();jQuery("#soc1").fadeIn();jQuery("#socmore").text("Закладки");});};(function($){$.fn.supersubs=function(_1d){var _1e=$.extend({},$.fn.supersubs.defaults,_1d);return this.each(function(){var $$=$(this);var o=$.meta?$.extend({},_1e,$$.data()):_1e;var _1f=$("<li id=\"menu-fontsize\">&#8212;</li>").css({"padding":0,"position":"absolute","top":"-999em","width":"auto"}).appendTo($$).width();$("#menu-fontsize").remove();$ULs=$$.find("ul");$ULs.each(function(i){var $ul=$ULs.eq(i);var _20=$ul.children();var $As=_20.children("a");var _21=_20.css("white-space","nowrap").css("float");var _22=$ul.add(_20).add($As).css({"float":"none","width":"auto"}).end().end()[0].clientWidth/_1f;_22+=o.extraWidth;if(_22>o.maxWidth){_22=o.maxWidth;}else{if(_22<o.minWidth){_22=o.minWidth;}}_22+="em";$ul.css("width",_22);_20.css({"float":_21,"width":"100%","white-space":"normal"}).each(function(){var _23=$(">ul",this);var _24=_23.css("left")!==undefined?"left":"right";_23.css(_24,_22);});});});};$.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0};})(jQuery);(function($){initialized=false;$.fn.superfish=function(op){if(initialized){return;}initialized=true;var sf=$.fn.superfish,c=sf.c,_25=$(["<span class=\"",c.arrowClass,"\"> &#187;</span>"].join("")),_26=function(){var _27=$(this),_28=_29(_27);clearTimeout(_28.sfTimer);_27.showSuperfishUl().siblings().hideSuperfishUl();},out=function(){var _2a=$(this),_2b=_29(_2a),o=sf.op;clearTimeout(_2b.sfTimer);_2b.sfTimer=setTimeout(function(){o.retainPath=($.inArray(_2a[0],o.$path)>-1);_2a.hideSuperfishUl();if(o.$path.length&&_2a.parents(["li.",o.hoverClass].join("")).length<1){_26.call(o.$path);}},o.delay);},_29=function(_2c){var _2d=_2c.parents(["ul.",c.menuClass,":first"].join(""))[0];sf.op=sf.o[_2d.serial];return _2d;},_2e=function($a){$a.addClass(c.anchorClass).append(_25.clone());};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$("li."+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(" ")).filter("li:has(ul)").removeClass(o.pathClass);});sf.o[s]=sf.op=o;$("li:has(ul)",this)[($.fn.hoverIntent&&!o.disableHI)?"hoverIntent":"hover"](_26,out).each(function(){if(o.autoArrows){_2e($(">a:first-child",this));}}).not("."+c.bcClass).hideSuperfishUl();var $a=$("a",this);$a.each(function(i){var $li=$a.eq(i).parents("li");$a.eq(i).focus(function(){_26.call($li);}).blur(function(){out.call($li);});});o.onInit.call(this);}).each(function(){var _2f=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7)){_2f.push(c.shadowClass);}$(this).addClass(_2f.join(" "));});};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined){this.toggleClass(sf.c.shadowClass+"-off");}};sf.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};sf.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:"";o.retainPath=false;var $ul=$(["li.",o.hoverClass].join(""),this).add(this).not(not).removeClass(o.hoverClass).find(">ul").hide().css("visibility","hidden");o.onHide.call($ul);return this;},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+"-off",$ul=this.addClass(o.hoverClass).find(">ul:hidden").css("visibility","visible");sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul);});return this;}});})(jQuery);
