document.documentElement.id="js";function addEvent(C,A,B){if(C.addEventListener){C.addEventListener(A,B,0)}else{if(C.attachEvent){C.attachEvent("on"+A,B)}}}function delEvent(C,A,B){if(C.removeEventListener){C.removeEventListener(A,B,0)}else{if(C.detachEvent){C.detachEvent("on"+A,B)}}}var g_dropdown,g_dropdown_timeout;function dropdown(E){var G=document;var I;if(window.event){I=E.srcElement;event.cancelBubble=true}else{I=E.target;E.stopPropagation()}var H=function(N){var N=N||event;if((N.keyCode==27)&&!(N.ctrlKey||N.altKey)){M()}};var L=function(O){var N=O?O.target:event.srcElement;while(N){if(N.className&&(N.className.indexOf("b-dropdown")!=-1)){return }N=N.parentNode}M()};var C=function(){g_dropdown_timeout=setTimeout(M,1000)};var K=function(){clearTimeout(g_dropdown_timeout)};var M=function(){var N=g_dropdown;if(N){delEvent(G,"click",L);delEvent(G,"keydown",H);delEvent(N,"mouseout",C);delEvent(N,"mouseover",K);N.style.visibility="hidden";var O=N.parentNode;O.insertBefore(N.lastChild,N);O.removeChild(N.nextSibling);O.removeChild(N);g_dropdown=0;return 1}return 0};if(!M()){var B=I;while(B.className.indexOf("b-dropdown")==-1){B=B.parentNode}var A=B.parentNode;g_dropdown=document.createElement("div");g_dropdown.className="b-dropdown-popup";A.insertBefore(g_dropdown,B);var J=navigator.userAgent;var D=document.createElement("iframe");D.frameBorder=0;if(J.match(/MSIE/)&&!J.match("Opera")){D.allowTransparency=1;D.src="javascript:'<body style=\\'background:none;overflow:hidden\\'>'"}else{}g_dropdown.appendChild(D);if((J.match(/MSIE [56]/)||((J.match(/MSIE 7/)&&(document.compatMode!="CSS1Compat"))))&&!J.match("Opera")){var F=document.createElement("div");F.style.width=B.currentStyle.width;F.style.height=B.offsetHeight+"px";A.insertBefore(F,B)}else{A.insertBefore(B.cloneNode(true),B)}g_dropdown.appendChild(B);addEvent(G,"keydown",H);addEvent(G,"click",L);addEvent(g_dropdown,"mouseout",C);addEvent(g_dropdown,"mouseover",K)}return false}preview_current="preview-title";function preview_change(A){current=document.getElementById(preview_current);current.className="";A.className="current";document.getElementById("preview").className="preview "+A.id;preview_current=A.id;return false}if(typeof (y5)!="undefined"){var Olymp2008={};y5.getBaseAndSetAlias("Olymp2008","Olymp.js","utf-8")};