var UANA_TreeMenu=new Object();UANA_TreeMenu.Load=function(E){E=typeof(E)=="string"&&E!=""?E.split("/"):new Array();var F=0;var A;var B;for(var D=0;D<E.length;D++){A=document.getElementById("ol_"+F);if(A){for(var C=0;C<A.childNodes.length;C++){if(A.childNodes[C].nodeName=="LI"&&A.childNodes[C].title==E[D]){F=A.childNodes[C].id.substr(15);B=document.getElementById("tree_menu_title_"+F);if(B){B.style.color="#CC6600"}B=document.getElementById("foot_menu_"+F);if(B){B.style.color="#CC6600"}this.Tree(F);break}}}}};UANA_TreeMenu.Tree=function(D){var A=document.getElementById("ol_"+D);var C=document.getElementById("tree_menu_icon_"+D);if(C&&A){if(C.className&&C.className=="parent_opened"){C.className="parent";for(var B=0;B<A.childNodes.length;B++){if(A.childNodes[B].nodeName=="LI"){A.childNodes[B].style.display="none"}}}else{C.className="parent_opened";for(var B=0;B<A.childNodes.length;B++){if(A.childNodes[B].nodeName=="LI"){A.childNodes[B].style.display="block"}}}}};function PhotoResize(D){var B=document.getElementById("photo_block");var F=document.getElementById("photo");var G=B.offsetWidth-20;F.style.width=G+"px";var G=G-40;if(D.width>G){var C=D.width/G;var A=Math.floor(D.width/C);var E=Math.floor(D.height/C);D.width=A;D.height=E}D.style.visibility="visible"}function ShowPhoto(A){A=A>0?A:0;if(A==0){A=window.location.hash.replace("#","");if(PHOTOS[A]){ShowPhoto(A)}else{return}}else{window.location.hash=A;var E=document.getElementById("prev");if(E){E.disabled=PositionPhoto(A)==0?true:false}var C=document.getElementById("next");if(C){C.disabled=PositionPhoto(A)==POSITIONS.length-1}var D=document.getElementById("photo_block");if(D){D.style.display="block";D.scrollIntoView(true)}var B=document.getElementById("photo");var F=document.getElementById("photo_descr");if(B&&PHOTOS[A]){B.innerHTML='<img style="visibility:hidden;" src="'+PHOTOS[A]+'" onLoad="PhotoResize(this)" />'}F.innerHTML=DESCRS[A]?DESCRS[A]:""}}function PositionPhoto(A){for(var B=0;B<POSITIONS.length;B++){if(POSITIONS[B]==A){return B}}}function NextPhoto(){var B=window.location.hash.replace("#","");var A=PositionPhoto(B)+1;A=POSITIONS[A];if(PHOTOS[A]){ShowPhoto(A)}else{return}}function PrevPhoto(){var B=window.location.hash.replace("#","");var A=PositionPhoto(B)-1;A=POSITIONS[A];if(PHOTOS[A]){ShowPhoto(A)}else{return}};
