var manufacturer = navigator.appName;
var version = parseInt(navigator.appVersion);
var type_browser = 0;
var h;

if  ((manufacturer.indexOf('Microsoft')>=0 && version >= 4))  {
   type_browser = 1;   // Microsoft-800
   if  (screen.width >= 1024) 
   type_browser = 2;   // Microsoft-1024
}

if  ((manufacturer.indexOf('Netscape')>=0 && version >= 4))  {
   type_browser = 3;   // Netscape-800
   if  (screen.width >= 1024) 
   type_browser = 4;   // Netscape-1024
}

// Function opens new window and views an article in it
function loadArticle(name)  {
A_Go = name + ".htm";

// Microsoft-800  &  Netscape-800
if  ((type_browser == 1) || (type_browser == 3))  { 
var newWin = window.open(A_Go, name,'width=790,height=505,top=0,left=0,copyhistory=1,resizable=1,scrollbars=1,toolbar=0,menubar=1,status=1');
}

// Microsoft-1024  &  Netscape-1024
if  ((type_browser == 2) || (type_browser == 4))  { 
var newWin = window.open(A_Go, name,'width=1016,height=640,top=0,left=0,copyhistory=1,resizable=1,scrollbars=1,toolbar=0,menubar=1,status=1');
}

}
//-------------------------------------------

// Functions for animated buttons
function Sel(img, filename)
{
  var name;
  
  name='item'+img;
  
  document.all(name).src='design/' + filename;
}


function NotSel(img, filename)
{
  var name;
  
  name='item'+img;

  document.all(name).src='design/' + filename;
}
//--------------------------------------------

function G()
{
  /*G_Win = window.open('movie1.html','g','width=500,height=345,top=100,left=60,copyhistory=0,resizable=0,scrollbars=0,toolbar=0,menubar=0,status=0');*/
  G_Win = window.open('rozd.html','g','width=1014,height=768,top=100,left=60,copyhistory=0,resizable=0,scrollbars=0,toolbar=0,menubar=0,status=0');
}

//--------------------------------------------

function show_image(img)
{
 if  ((type_browser == 1) || (type_browser == 2))
 {
  src = 'design/photos/photo' + img + '.jpg';
  document.all('photo').src = 'design/photos/photo' + img + '.jpg';
 }
 else if  ((type_browser == 3) || (type_browser == 4)) 
 {
  src = 'design/photos/photo' + img + '.jpg';
  G_Win = window.open(src,img,'width=790,height=505,top=0,left=0,copyhistory=1,resizable=1,scrollbars=1,toolbar=0,menubar=1,status=1');
 }
}
