//*************************************************
//    script.js
//    Copyright (C) 2002-2003, Serge V. Starenko
//    www.xt-labs.com
//    Email: starenko@xt-labs.com
//    All Rights Reserved.
//    See license.txt for more details
//*************************************************



function MZ()
{
 if(navigator.userAgent.indexOf('Mozilla')+1) return true;
 else return false;
}

function NN6()
{
 if(navigator.userAgent.indexOf('Netscape6')+1) return true;
 else return false;
}

function NN7()
{
 if(navigator.userAgent.indexOf('Netscape/7')+1) return true;
 else return false;
}

function IE()
{
 if(window.navigator.appName.indexOf("Explorer") >= 0) return true;
 else return false;
}

function Layer(layerName)
{
 if (NN6() || NN7() || MZ()) 
  return document.getElementById(layerName).style;
 else 
  if (IE()) 
   return document.all[layerName].style;
  else 
   return document.layers[layerName];
}

function Visible(layerName,status)
{
 Layer(layerName).visibility = status==true ? 'visible' : 'hidden';
}

function Move(layerName, mx, my)
{
 layer = Layer(layerName);
 layer.left = mx;
 layer.top  = my;
}

function ecard() {
  img=window.open("http://www.patpol.com.pl/ecard.html","ecard","status=no,toolbar=no,scrollbars=no,width=310,height=390")
}

