if(typeof jQuery!='undefined'){$(function(){$('html').addClass('jready').removeClass('no-js');$(".mod-articles-category-introtext").each(function(){$(this).find("object").eq(1).hide();})
$("a[rel^='prettyPhoto']").prettyPhoto();$('.content tr:not(thead tr, tfoot tr):odd, li:odd').addClass('odd');if($(".item-214").hasClass("active"))$(".item-226").addClass("active");var url="http://zsuo.ru";var title="Законодательное собрание Ульяновской области";function addFavorite(a){try{window.external.AddFavorite(url,title);}catch(e){try{window.sidebar.addPanel(title,url,"");}catch(e){if(typeof(opera)=="object"){a.rel="sidebar";a.title=title;a.url=url;return true;}else{alert("Нажмите Ctrl-D для добавления в избранное");}}}return false;}$("#add_fav").click(function(){addFavorite(this);})
$(".orderby").click(function(){if($(this).hasClass("allyear")){$("#law_month").val("0");}else{var thisorder=$(this).attr("rel");$("#orderby").val(thisorder);}$("#laws_form").submit();return false;})
$(".law_pagenav").click(function(){var thispage=$(this).attr("rel");$("#thispage").val(thispage);$("#laws_form").submit();return false;})
$(".laws_filter_butt").click(function(){$("#thispage").val('1');})
ul_pagination_width=0;$(".pagination ul li").each(function(){ul_pagination_width+=$(this).outerWidth()+8;})
$(".pagination ul").css("width",(ul_pagination_width+8)+"px");$.fn.highlight=function(pat){function innerHighlight(node,pat){var skip=0;if(node.nodeType==3){var pos=node.data.toUpperCase().indexOf(pat);if(pos>=0){var spannode=document.createElement('span');spannode.className='highlight';var middlebit=node.splitText(pos);var endbit=middlebit.splitText(pat.length);var middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);skip=1;}}else if(node.nodeType==1&&node.childNodes&&!/(script|style)/i.test(node.tagName)){for(var i=0;i<node.childNodes.length;++i){i+=innerHighlight(node.childNodes[i],pat);}}return skip;}return this.each(function(){innerHighlight(this,pat.toUpperCase());});};$.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode){replaceChild(this.firstChild,this);normalize();}}).end();};var bul=$("#Chkbox0");bul.click(function(){if($(this).attr("checked")!='checked')$(this).toggleClass("thischecked");})
$("#userForm").submit(function(){if(bul.attr("checked")!='checked'){$(".rsform-block-chkbox td").css("color","#ff0000");alert('Вы должны согласиться с условиями!');return false;}})});}window.addEvent('domready',function(){new Element('a',{href:'mediapage/fotoalbom/category/38-aktsiya-qulyanovtsy-put-k-pobedeq.html'}).wraps($$('div.module_right.video .module_header')[0]);});