//alert(navigator.appVersion); if((navigator.appName=="Microsoft Internet Explorer")&&((navigator.appVersion.search("MSIE 6")>0)||(navigator.appVersion.search("MSIE 7")>0))){ version=1; } else{ version=0; } if(navigator.appVersion.search("Chrome")>0){ version_Chrome=0; version_Chrome_sub=0; } else{ version_Chrome=0; version_Chrome_sub=0; } function showcomment(comment,x,y,namer,texter){ document.getElementById(namer).style.left=x+30; document.getElementById(namer).style.top=y+document.body.scrollTop; document.getElementById(texter).innerHTML=comment; document.getElementById(namer).style.display='block'; } function outcomment(namers){ document.getElementById(namers).style.display='none'; } function open_win(adres,width,height,targetwin){ to_height=0; if(navigator.appName=="Netscape" && navigator.appVersion.search("Chrome")<0){ to_height=30; } height+=(80+to_height); width+=50; if(adres.indexOf('scroll_true')>0){ eval("popupWin=open('"+adres+"', '"+targetwin+"','name=\""+adres+"\",scrollbars=yes,help=no,location=no,status=yes,toolbar=no,unadorned=yes,directories=no,menubar=no,resizable=no,width="+width+",height="+height+"')"); } else { eval("popupWin=open('"+adres+"', '"+targetwin+"','name=\""+adres+"\",scrollbars=no,help=no,location=no,status=yes,toolbar=no,unadorned=yes,directories=no,menubar=no,resizable=no,width="+width+",height="+height+"')"); } popupWin.focus(); } function open_win_full(adres){ eval("open('"+adres+"', 'displayWindow','name=\""+adres+"\",scroll=no,fullscreen=1')"); } function set_display(ob_name, valuer){ mas=new Array("none","block"); document.getElementById(ob_name).style.display=mas[valuer]; } function change_display(ob_name){ if(document.getElementById(ob_name).style.display=="none"){ document.getElementById(ob_name).style.display = "block"; } else{ document.getElementById(ob_name).style.display = "none"; } } function CheckEmailFormat( sEmail ) { sEmail = sEmail.replace( new RegExp('/\(.*?\)/'), '' ) var oRegExp = /^[A-Za-z0-9][-\w]*(\.[A-Za-z0-9][-\w]*)*@[A-Za-z0-9][-\w]*(\.[A-Za-z0-9][-\w]*)*\.[a-zA-Z]{2,4}$/ return oRegExp.test(sEmail) } function checkregistrationForm (form) { if (form.email.value.length == 0) { alert('Введите e-mail!'); form.email.focus(); return false; } if (!CheckEmailFormat(form.email.value)) { alert('E-mail адрес введен неправильно.'); form.email.focus(); return false; } return true; } function focsubs(){ if (document.registration_form.email.value=='Введите e-mail') document.registration_form.email.value=''; } function blursubs(){ if (document.registration_form.email.value=='') document.registration_form.email.value='Введите e-mail'; } function focsearch(){ if (document.search_form.search_text.value=='Поиск на сайте') document.search_form.search_text.value=''; } function blursearch(){ if (document.search_form.search_text.value=='') document.search_form.search_text.value='Поиск на сайте'; } function show_layer(layername){ if(main_menu_loaded){ eval("document.getElementById('"+layername+"').style.top=document.getElementById('metka_top').offsetTop+38-version_Chrome"); eval("document.getElementById('"+layername+"').style.left=179+document.getElementById('"+layername+"_td').offsetLeft"); document.getElementById(layername).style.visibility='visible'; } } function hide_layer(layername){ if(main_menu_loaded){ document.getElementById(layername).style.visibility='hidden'; eval("document.getElementById('"+layername+"').style.left=0") } } function show_layer_sub(layername){ if(sub_menu_loaded){ eval("document.getElementById('"+layername+"').style.top=document.getElementById('metka_top_sub').offsetTop+65-version_Chrome_sub"); eval("document.getElementById('"+layername+"').style.left=180+document.getElementById('"+layername+"_td').offsetLeft"); document.getElementById(layername).style.visibility='visible'; } } function hide_layer_sub(layername){ if(sub_menu_loaded){ document.getElementById(layername).style.visibility='hidden'; eval("document.getElementById('"+layername+"').style.left=0") } } function checkFeedbackForm (form) { if (form.email.value.length == 0) { alert('Введите e-mail!'); form.email.focus(); return false; } if (!CheckEmailFormat(form.email.value)) { alert('E-mail адрес введен неправильно.'); form.email.focus(); return false; } if (form.name.value.length == 0) { alert('Введите ваше имя!'); form.name.focus(); return false; } if (form.text.value.length == 0) { alert('Введите ваше сообщение!'); form.text.focus(); return false; } return true; } function open_graphic(adres,width,height){ width+=20; height+=20; eval("open('"+adres+"', 'displayWindow','scroll=no,help=no,status=no,unadorned=yes,directories=no,menubar=no,resizable=no,width="+width+",height="+height+"')"); } function print_flash(flasherbody){ document.write(flasherbody);} var ourInterval = 0; var scrollSpeed = 50; var scrollWidth = 10; function scrollStart(direction, divID){ ourInterval = setInterval("scroll"+direction+"('"+divID+"')", scrollSpeed); } function scrollEnd(){ clearInterval(ourInterval); } function scrollTop(which){ document.getElementById(which).scrollTop = document.getElementById(which).scrollTop + scrollWidth; } function scrollDown(which){ document.getElementById(which).scrollTop = document.getElementById(which).scrollTop - scrollWidth; }