home *** CD-ROM | disk | FTP | other *** search
- <!--
- var version = "ver2";
-
- function typeOfBrowser() {
- var browser;
- var bName = navigator.appName;
- var bVersion = parseInt(navigator.appVersion);
-
- if (bName == "Netscape" && bVersion == 2) browser = "Netscape2";
- else if (bName == "Netscape" && bVersion == 3) browser = "Netscape3";
- else if (bName == "Netscape" && bVersion >= 4) browser = "Netscape4";
- else if (bName == "Microsoft Internet Explorer" && bVersion >= 3 && bVersion<4) browser = "IE3";
- else if (bName == "Microsoft Internet Explorer" && bVersion >= 4) browser = "IE4";
- if (bName == "Netscape" && bVersion >= 3) version = "verOK";
- else if (bName == "Microsoft Internet Explorer" && bVersion >= 4) version = "verOK";
- //--else version = "ver2";
-
- return browser;
- }
-
-
- function typeOfOS() {
- var OS;
-
- if (navigator.userAgent.indexOf('IRIX') != -1) OS = "Irix";
- else if (navigator.userAgent.indexOf('Mac') != -1) OS = "Macintosh";
- else if (navigator.userAgent.indexOf('Win') != -1) {
- if (navigator.userAgent.indexOf('95') != -1) OS = "Windows95";
- else if (navigator.userAgent.indexOf('NT') != -1) OS = "WindowsNT";
- else OS = "Windows3.1";
- }
- else {OS = "other";}
-
- return OS;
- }
-
-
- BrowName = typeOfBrowser();
- OpSys = typeOfOS();
-
-
- function btn_on(butName) {
- if (version == "verOK") {
- btnOn = eval(butName + "on.src");
- document[butName].src = btnOn;
- }
- }
-
- function btn_off(butName) {
- if (version == "verOK") {
- btnOf = eval(butName + "of.src");
- document[butName].src = btnOf;
- }
- }
-
-
-
- var navigatorType = "Other";
- if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4) navigatorType = "IE4+";
- else if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4) ) navigatorType = "Netscape4+";
-
- function checkFlash() {
- var flashInstalled;
- flashInstalled = 0;
- if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {
- // Check for Flash 4+> in Netscape
- var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
- if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >=4 )
- flashInstalled = 1;
- } else if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
- navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
- // Assume any Windows IE supports the OBJECT tag
- flashInstalled = 1;
- }
- //--if (navigator.mimeTypes["application/x-shockwave-flash"]) flashInstalled = 1;
-
- return flashInstalled;
- }
-
-
- function openWindow(urlName,urlTitle,winX,winY,winW,winH,winParams) {
-
- if (winX < 0) {
- winW = screen.width-160;
- winH = screen.height-60;
- winX = (screen.width - winW)/ 2;
- winY = (screen.height - winH)/ 2;
- }
- if (winParams == "")
- winPar = "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,dependent=no";
- else
- winPar = winParams;
-
- winPar += ",width="+winW+",height="+winH+",left="+winX+",top="+winY;
-
- //pWin = window.open(urlName,'cdzWin',winPar)
-
- var sLn = "";
-
- posDot = urlName.lastIndexOf(".");
- sLn = urlName.substring(posDot+1,urlName.length);
- if ((sLn == "gif") || (sLn == "jpg")) {
- sLn = "<html> \n" +
- "<head> \n" +
- "<meta http-equiv='Content-Type' content='text/html; charset=windows-1250'> \n" +
- "<title>" + urlTitle + "</title> \n" +
- "<LINK href='h_style.css' rel=StyleSheet title='holba_web_style' type=text/css> \n" +
- "</head> \n" +
- "<body topmargin='0' leftmargin='0' bgcolor='#40AA54'> \n" +
-
- "<table align='center' width='100%' cellspacing='0' cellpadding='0' border='0'> \n" +
- " <tr> \n" +
- " <td align='center' valign='middle'> \n" +
- " <img src='"+urlName+"' border=0> \n" +
- " </td> \n" +
- " </tr> \n" +
-
- " <tr> \n" +
- " <td align='center' valign='middle'> \n" +
- " <button type='submit' class='h_lo' accesskey='Z' onClick='window.close();'><u>Z</u>av°φt</button> \n" +
- " </td> \n" +
- " </tr> \n" +
- "</table> \n" +
-
- "</body> \n" +
- "</html>";
- pWin = window.open("","workWin",winPar);
- pWin.document.writeln(sLn);
- }
- else {
-
- pWin = window.open(urlName,"workWin",winPar);
- }
-
- }
-
-
- function changeFocus() {
- if (BrowName != "Netscape4") {
- document.links[document.links.length-1].focus();
- }
- //--alert(parent.frames['s_logo'].document.links[parent.frames['s_logo'].document.links.length-1]);
- //--parent.frames['s_logo'].document.links[parent.frames['s_logo'].document.links.length-1].focus();
-
- }
-
- function changeUrl(pageTarget) {
- var frameName = parent.frames['h_main'].location;
- parent.frames['h_main'].location = frameName;
- parent.frames['h_main'].location.hash = pageTarget;
- }
-
-
- function changeFrames(pageTop,pageMain,pageMenu,pageMisc) {
-
- if (pageTop != "") {
- parent.frames['h_info'].location = pageTop;
- }
- if (pageMain != "") {
- parent.frames['h_main'].location = pageMain;
- }
- if (pageMenu != "") {
- parent.frames['h_menu'].location = pageMenu;
- }
- if (pageMisc != "") {
- parent.frames['h_misc'].location = pageMisc;
- }
-
- //-- var frameDoc = String(parent.frames['s_main'].location);
- //-- posBackslash = frameDoc.lastIndexOf("/");
- //-- frameDoc = frameDoc.substring(posBackslash + 1, frameDoc.length);
- //-- if (frameDoc != "s_main.htm")
- //-- parent.frames['s_main'].location = "s_main.htm";
- }
-
-
- function infoNavigation() {
- var tabDef = new Array("<table align='center' cellspacing='1' cellpadding='0' border='0'>",
- " <tr>",
- " <td colspan='3' align='center' valign='bottom'>",
- " <a href='#' onClick=changeFocus();changeUrl('top_doc') ",
- " onMouseover=document.images['topd'].src='i_toph.gif' ",
- " onMouseout=document.images['topd'].src='i_top.gif'> ",
- " <img src='i_top.gif' name='topd' width='7' height='3' border='0' alt='ZaΦßtek strßnky'></a></td> ",
- " </tr> ",
- " <tr> ",
- " <td align='right' valign='top'> ",
- " <a href='#' onClick=changeFocus();history.back() ",
- " onMouseover=document.images['back'].src='i_backh.gif' ",
- " onMouseout=document.images['back'].src='i_back.gif'> ",
- " <img src='i_back.gif' name='back' width='3' height='7' border='0' alt='Zp∞t'></a></td> ",
- " <td align='center' valign='top'> ",
- " <a href='s_info.htm' target='_self' onClick=changeFocus();changeFrames('s_top.htm','s_main.htm','s_menu.htm','s_info.htm') ",
- " onMouseover=document.images['home'].src='i_homeh.gif' ",
- " onMouseout=document.images['home'].src='i_home.gif'> ",
- " <img src='i_home.gif' name='home' width='7' height='7' border='0' alt='Domovskß strßnka'></a></td> ",
- " <td align='left' valign='top'> ",
- " <a href='#' onClick=changeFocus();history.forward() ",
- " onMouseover=document.images['fwd'].src='i_fwdh.gif' ",
- " onMouseout=document.images['fwd'].src='i_fwd.gif'> ",
- " <img src='i_fwd.gif' name='fwd' width='3' height='7' border='0' alt='Vp°ed'></a></td> ",
- " </tr> ",
- " <tr> ",
- " <td colspan='3' align='center' valign='top'> ",
- " <a href='#' onClick=changeFocus();changeUrl('bottom_doc') ",
- " onMouseover=document.images['btmd'].src='i_btmh.gif' ",
- " onMouseout=document.images['btmd'].src='i_btm.gif'> ",
- " <img src='i_btm.gif' name='btmd' width='7' height='3' border='0' alt='Konec strßnky'></a></td> ",
- " </tr> ",
- "</table> ");
-
- for (var n=0; n < tabDef.length; n++) {
- document.write(tabDef[n]);
- }
-
- }
-
-
-
- window.onError = null;
-
- function initMouse() {
- if (OpSys != "Macintosh") {
- if (BrowName == "IE4") {
- document.onmousemove = mouseMove;
- }
- if (BrowName == "Netscape4") {
- document.onmousemove = mouseMove;
- document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP);
- }
- }
- }
-
- function mouseMove(e) {
-
- if (OpSys != "Macintosh") {
- if (BrowName == "Netscape4") {
- var x=e.pageX;
- var y=e.pageY;
- document.layers['barL'].top = y;
- document.layers['barL'].left = x-1032;
- document.layers['barT'].top = y-776;
- document.layers['barT'].left = x;
- document.layers['barR'].top = y;
- document.layers['barR'].left = x+8;
- document.layers['barB'].top = y+8;
- document.layers['barB'].left = x;
- return false;
- }
- else if (BrowName == "IE4") {
- var x=event.x;
- var y=event.y;
- barL.style.top = y;
- barL.style.left = x-1032;
- barT.style.top = y-776;
- barT.style.left = x;
- barR.style.top = y;
- barR.style.left = x+8;
- barB.style.top = y+8;
- barB.style.left = x;
- return false;
- }
-
- }
-
- }
-
- function writeCorners(rowColor,sizeCorner,vertAlign,pathImg) {
-
- var p = vertAlign.substring(0,1);
- document.write(''+
- '<tr align="center" bgcolor="'+rowColor+'">'+
- ' <td align="left" valign="'+vertAlign+'"><img src="'+pathImg+'p_'+p+'l.gif" width="'+sizeCorner+'" height="'+sizeCorner+'" border="0"></td>'+
- ' <td></td>'+
- ' <td align="right" valign='+vertAlign+'><img src="'+pathImg+'p_'+p+'r.gif" width="'+sizeCorner+'" height="'+sizeCorner+'" border="0"></td>'+
- ' </tr>');
- }
-
- //-->
-