var browser = (navigator.appName.substring(0,9) == "Microsoft") ? 0 : 1; var browserName = navigator.appName; var browserVer = parseInt(navigator.appVersion); var type_browser var name_browser if ((browserName.indexOf('Microsoft')>=0 && browserVer >= 4)) { name_browser = "MSIE"; type_browser = 1; // Microsoft-800 if (screen.width >= 1024) type_browser = 2; // Microsoft-1024 } if ((browserName.indexOf('Netscape')>=0 && browserVer >= 4)) { name_browser = "NSCP"; type_browser = 3; // Netscape-800 if (screen.width >= 1024) type_browser = 4; // Netscape-1024 } size_pic = "_small"; width_title = 370; height_title = 46; width_icon = 241; height_icon = 280; width_kleymo = 103; height_kleymo = 100; width_svecha = 79; height_svecha = 120; width_ramka_top = 241; height_ramka_top = 26; width_ramka_left = 8; width_ramka_right = 8; width_ramka = 225; height_ramka = 232; height_for_title = 3; height_after_title = 1; height_after_subtitle = 6; height_for_text = 5; height_after_text = 12; height_for_read_glav = 1+15; height_ramka = 228; top_height_hram = 1; for_menu_height_hram = 8; if (screen.width > 800) { width_title = 454; height_title = 56; size_pic = ""; width_icon = 304; height_icon = 353; width_kleymo = 128; height_kleymo = 124; width_svecha = 97; height_svecha = 148; width_ramka_top = 304; height_ramka_top = 33; width_ramka_left = 9; width_ramka_right = 10; width_ramka = 285; height_ramka = 287; height_for_title = 3; height_after_title = 3; height_after_subtitle = 12; height_for_text = 12; height_after_text = 17; height_for_read_glav = 33; top_height_hram = 20; for_menu_height_hram = 12; } function showBut(name,suf) { document.images[name].src = eval(name + suf + ".src"); } var pageWin function loadPage(name) { var x=""; pageGo = name + ".htm"; // Microsoft-800 & Netscape-800 if ((type_browser == 1) || (type_browser == 3)) { pageWin = window.open(pageGo,'bookWin','width=790,height=540,top=0,left=0,copyhistory=0,resizable=1,scrollbars=1,toolbar=0,menubar=0,status=0'); } // Microsoft-1024 & Netscape-1024 if ((type_browser == 2) || (type_browser == 4)) { pageWin = window.open(pageGo,'bookWin','width=1010,height=670,top=0,left=0,copyhistory=0,resizable=1,scrollbars=1,toolbar=0,menubar=0,status=0'); } } function showNumb (n,mode){ if (mode==1) { x="bg"+n+".bgColor='8C4129';"; eval(x) x="br"+n+".bgColor='8C4129';"; eval(x) } else { x="bg"+n+".bgColor='BB582F';"; eval(x) x="br"+n+".bgColor='FFFFCC';"; eval(x) } if (current_n>0) { x="bg"+current_n+".bgColor='8C4129';"; eval(x) x="br"+current_n+".bgColor='FFFFCC';"; eval(x) } } var current_n=0; var mp3Win; function RunMP3 (name,n){ for (var i=1; i<=qGlav; i++) { x="bg"+i+".bgColor='8C4129';"; eval(x); x="br"+i+".bgColor='8C4129';"; eval(x); if (n=="0") current_n="0"; } if (n!="0") { x="bg"+n+".bgColor='8C4129';"; eval(x); x="br"+n+".bgColor='FFFFCC';"; eval(x); if (current_n!="0") { x="br"+current_n+".bgColor='8C4129';"; eval(x); } current_n=n; } }