function VoidTrue() { return true; } function VoidFalse() { return false; } window.onerror = VoidTrue; if (self.parent.frames.length != 0) self.parent.location=document.location; // убить Фреймы s=navigator.appVersion; isNS = (navigator.appName == "Netscape"); isIE4 = (navigator.appName == "Microsoft Internet Explorer") && parseInt(navigator.appVersion) >= 4; ver4 = parseInt(navigator.appVersion) >= 4; if (isNaN (verIE=parseFloat (s.substring (s.indexOf ('MSIE')+5,s.indexOf (';',s.indexOf ('MSIE')))))) verIE=0; ok = document.images != null; function Refresh() { window.location.reload() } function SetImg(img,ref,txt) { if (ok) document.images[img].src = ref; if (txt != null) window.status = ' ' + txt; return ok; } function WO(p1,p2,p3) { w = null; eval("w = wi"+"ndow.o"+"pen(p1,p2,p3);"); return w; } win_mail = null; function openMail(addr) { if (typeof addr == 'undefined') addr = ''; else addr = '?'+addr; if (win_mail == null || win_mail.closed) win_mail = WO('/mail.asp'+addr,'mail','menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=500,height=400'); else win_mail.focus(); return false; } win_help = null; function openHelp(theme) { if (typeof theme == 'undefined') theme = ''; else theme = '?'+theme; if (win_help == null || win_help.closed) win_help = WO('/help.asp'+theme,'help','menubar=no,location=yes,resizable=yes,scrollbars=yes,status=no,width=700,height=500'); else with (win_help){ location.href='/help.asp'+theme; focus(); } return false; } win_vote = null; function openVote(id) { if (typeof id != 'undefined') if (win_vote == null || win_vote.closed) win_vote = WO('/web/vote.asp?id='+id+'&ref='+location.href,'vote','menubar=no,location=no,resizable=yes,status=no,width=300,height=200'); else win_vote.focus(); return true; } win_reg = null; function openReg(url) { document.cookie = (typeof url != 'undefined')? 'Back='+url+'; path=/' : 'Back=; path=/'; if (win_reg == null || win_reg.closed) win_reg = WO('/reg.asp','reg','menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=600,height=450'); else win_reg.focus(); return false; } win_chat = null; function openChat() { lgn=(typeof lgn == 'undefined')? '' : '?'+lgn; if (win_chat == null || win_chat.closed) win_chat = WO('/forum/chat.asp','chat','menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=450,height=450'); else win_chat.focus(); return false; } function openIMG(imgurl) { if (ShowImg != null && imgurl != '') return ShowImg(imgurl) } win_puzzle = null; function openPuzzle(img,iname) { if (typeof img != 'undefined' && img!='') { img = '/puzzle.asp?img='+img; if (typeof iname != 'undefined' && iname!='') img+='&name='+iname; if (win_puzzle == null || win_puzzle.closed) win_puzzle = WO(img,'puzzle','fullscreen=yes'); else with (win_puzzle){location.href=img; focus(); } } return false; } function eMail (ema,domain,txt) { ema+='@'+domain; if (txt=='') txt=ema; document.write (''+txt+''); return false; } // Sponsors function WriteLinks(tit,lab) { document.write('
'); Links=Links.split(';'); l = (Links.length)/3; for(i = 0; i < l; i++) { r1 = 3*parseInt((Math.random())*l); Num= Links[r1]; Url = Links[r1+1]; Name = Links[r1+2]; r2 = 3*parseInt((Math.random())*l); Links[r1] = Links[r2]; Links[r1+1] = Links[r2+1]; Links[r1+2] = Links[r2+2]; Links[r2] = Num; Links[r2+1] = Url; Links[r2+2] = Name; } i=3*parseInt((Math.random())*l); document.write(''+tit+'
'); document.write('
'); for(i = 0; i < l; i++) document.write(''+Links[i*3+2]+'
'); return true; } function MainLinks() { Links='ruscult;www.RussianCulture.ru;Культура России;tvkultura;www.tvkultura.ru;Канал Культура;archi;www.archi.ru;Архитектура;rambler;www.rambler.ru;Rambler.ru;yandex;www.yandex.ru;Yandex.ru;menmuz;museum.fondpotanin.ru;Фонд Потанина'; WriteLinks('ПАРТНЕРЫ','p'); //Links='darwin;www.darwin.museum.ru;Дарвиновский музей;'; //WriteLinks('БЛАГОДАРНОСТИ','g'); Links='cpic;www.evarussia.ru;ЦПиК;adit;www.adit.ru;АДИТ;future;www.future.museum.ru;Музей будущего;amr;www.amr-museum.ru;АМР'; WriteLinks('КОЛЛЕГИ','c'); } var selData; function mistake(){ if(event.keyCode==13) if(event.ctrlKey) { r = document.selection.createRange(); if (r.text.length>0) { selData=r.text; window.open ('/mist.asp','','width=450,height=250'); } } } document.onkeydown=mistake; _d=document;menunum=0;zi=20; function AddMenu (nMenu) { _m='menu'+(menunum++); _d.write (''); eval (_m).clMnT=0; return menunum-1} function HideM (_m) { with (eval (_m)) { style.display='none'; if (par) if (!eval(par).mouse) HideMenu (par)} allmvis=true; for (i=0;i= 200 || Xpos >= sw)) { isMenu=false; setMenu(); } else { if (!isMenu && Ypos < 200 && Xpos < sw) { isMenu=true; setTimeout('setMenu()',500); } } } function PositionMenu(){ fMenu.style.top = document.body.scrollTop+'px'; fMenu.style.left = document.body.scrollLeft+'px'; } function setMenu(){ fMenu.style.display = (isMenu)? '':'none'; } if (mrMenu&&ver4) { isMenu = false; document.write(''); fMenu.innerHTML=mrMenu.innerHTML; window.onscroll = PositionMenu; document.onmousemove = MoveHandler; } function ShowImg(imgurl) { // museum.ru BigImage.removeAttribute('height'); BigImage.src=imgurl; s=event.srcElement.title; if ( s==null || s=='' ) s=event.srcElement.alt; ImgTitle.innerHTML=(s==null||s=='')?'изображение':s; return false; } function ShowImg(imgurl) { BigImage.removeAttribute('height'); BigImage.src=imgurl; s=event.srcElement.title; if (s==null||s=='') s=event.srcElement.alt; ImgTitle.innerHTML=(s==null||s=='')?'image':s; return false; } menuBigImg=AddMenu ([['big','$J$BigImage.height+=100'],['original','$J$BigImage.removeAttribute(\'height\')'],['small','$J$BigImage.height-=100'],['puzzle','$J$openPuzzle (BigImage.src)']]); bigimgtext=''; document.write(bigimgtext);