
startList=function(){var maxMenu=document.getElementsByTagName("UL").length;if(document.all&&document.getElementById){for(var j=0;j<maxMenu;j++){if(document.getElementById("nav".concat(j))){navRoot=document.getElementById("nav".concat(j));for(i=0;i<navRoot.childNodes.length;i++){node=navRoot.childNodes[i];if(node.nodeName.toUpperCase()=="LI"){node.onmouseover=function(){this.className+=" over";}
node.onmouseout=function(){this.className=this.className.replace(" over","");}
if(!node.getElementsByTagName("UL").length)node.className+=" nosub";}}}}}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&document.getElementById)x=document.getElementById(n);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function preloadImg(imgArr){if(imgArr[0]){var img=new Array();for(var i=0;i<imgArr.length;i++){img[i]=new Image();img[i].src=imgArr[i];}}}
preloadImg(["/img/chooseSpecOn.gif"]);function show(name){if(document.getElementById)
{var link=document.getElementById(name);link.style.display='block';}}
function hide(name){if(document.getElementById)
{var link=document.getElementById(name);link.style.display='none';}}
function hint(txt,o){if(!document.getElementById('jshint'))document.body.innerHTML="<div style=\"position:absolute;\" id=\"jshint\"></div>"+document.body.innerHTML;var y=o.offsetTop;var x=o.offsetLeft+o.offsetWidth+5;while(o.offsetParent){o=o.offsetParent;y+=o.offsetTop;x+=o.offsetLeft;}
document.getElementById('jshint').innerHTML="<div style=\"position:relative; z-index:9999; left:"+x+"px; top:"+y+"px; \" class=\"hint\">"+txt+"</div>"
o.onmouseout=function(){document.getElementById('jshint').innerHTML="";this.onmouseout=null;}}
function openWin(name,docUrl){var newWin=window.open(docUrl,name,"width="+screen.width/2+", height="+screen.height/2+", toolbar=no, personalbar=no, scrollbars=yes, location=yes, directories=no, statusbar=no, menubar=no, status=no, resizable=yes");}
function openImg(txt,w,h){win=window.open("","",'resizable=no,menubar=no,status=no,scrollbars=no, top=200, left=220, width='+w+',height='+h);win.focus();win.document.writeln("<html><body bgcolor='white' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onClick='window.close();'>"+txt+"</body></html>");}
function popup(src,w,h,alt){win=window.open("about:blank","picturePopup",'resizable=no,menubar=no,status=no,scrollbars=no, top=200, left=220, width='+w+',height='+h);win.document.writeln("<html><head><title>"+alt+"</title></head><body bgcolor='white' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onClick='window.close();'><img src=\""+src+"\" width=\""+w+"\" height=\""+h+"\" alt=\""+alt+"\"></body></html>");win.focus();}
function noInfo(sectName){alert("В данный момент в разделе "+sectName+" нет информации.");}
sstr="";function setHands(){var di=document.images
var i=di.length;while(i--)if(di[i].onclick)di[i].className="onclick";}
function faq(par,cn){var els=par.getElementsByTagName("*");var l=els.length;while(l--){if(els[l].className==cn){els[l].onclick=showHideContent;els[l].onclick();}}}
function showDiv(id){var div=document.getElementById(id);if(div.style.display=='block'){div.style.display='none';}else{div.style.display='block';}
return false;}
function showHideContent(){var v=this.sh?"":"none";this.sh=!this.sh;var els=this.parentNode.getElementsByTagName("*");var l=els.length;while(l--)els[l].style.display=v;this.style.display="";}
$(document).ready(function(){var allImages=document.getElementsByTagName('img');var str="";var img;var count=allImages.length;for(var i=0;i<count;i++){str=allImages[i].onclick;if((allImages[i].className=="toAlter")&&(typeof(str)!="function")){img=allImages[i];var src=img.src;var firstIndex=src.search(".mini.");if(firstIndex!=-1){var firstPart=src.substring(firstIndex,0);var secondPart=src.substring(firstIndex+5);var finalLink=firstPart+secondPart;var elem=document.createElement("a");elem.href=finalLink;elem.className="pirobox_gall";elem.title=img.alt;img.parentNode.insertBefore(elem,img);elem.appendChild(img);}}}
$().piroBox({my_speed:400,bg_alpha:0.3,slideShow:true,slideSpeed:4,close_all:'.piro_close,.piro_overlay'});addLoadEvent(bannerRotator);setHands()
startList()});function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}
else{window.onload=function(){if(oldonload)oldonload();func();}}}
var elements=2;var time=4;var currentBanner=0;noElement=elements+1;time=time*1000;function bannerRotator(){currentBanner++;if(currentBanner==noElement){currentBanner=1;}
if(currentBanner==1){prevBanner=elements;}
else{prevBanner=currentBanner-1;}
var hide=document.getElementById('banner_blok_1_'+prevBanner);hide.style.display='none';var show=document.getElementById('banner_blok_1_'+currentBanner);show.style.display='block';var hide=document.getElementById('banner_blok_2_'+prevBanner);hide.style.display='none';var show=document.getElementById('banner_blok_2_'+currentBanner);show.style.display='block';setTimeout('bannerRotator()',time);}