//Sktypty na potrzeby strony WWW Auto Systemu - www.autosystem.com.pl
//Przygotowal Marcin Wiacek - www.marcin-wiacek.topnet.pl

ns4=(document.layers)?true:false;
ie4=(document.all)?true:false;
ie5=(ie4 && navigator.userAgent.indexOf('MSIE 5')>0)?true:false;

var showed=false;

if (ie4 || ns4)
{
  if (ns4) pop=document.Popup;
  if (ie4) pop=Popup.style;
  document.onmousemove = mouseMove;
  if (ns4) document.captureEvents(Event.MOUSEMOVE);
}

function mouseMove(e)
{
  if (showed)
  {
    if (ns4) {x=e.pageX;y=e.pageY;}
    if (ie4) {x=event.x;y=event.y;}
    if (ie5) {x=event.x+document.body.scrollLeft;y=event.y+document.body.scrollTop;}
    pop.top=y+15;
    pop.left=x;
  }
}

function pokaz(tekst)
{
  var txt="<TABLE border=0 cellspacing=0 cellpadding=0><tr><td bgcolor=#FFFFFF>"+tekst+"</TD><td width=1 bgcolor=#000000><img src=point.gif width=0 height=0></td></TR><tr><td bgcolor=#000000 colspan=2 height=1><img src=point.gif width=0 height=1></td></tr></TABLE>";
  if (ns4) {var pop2 = pop.document;pop2.write(txt);pop2.close();}
  if (ie4) document.all["Popup"].innerHTML=txt;
  if (ns4 || ie4) showed=true;
  pop.visibility='visible';
}

function chowaj()
{
  pop.visibility='hidden';
  showed=false;
}

function opis(tekst)
{
  this.tekst=tekst;
}

function nopis(numer,tekst)
{
  teksty[numer]=new opis(tekst);
}

function minicjuj(ilosc)
{
  for (i=0;i<ilosc;++i) this[i]=0;
  this.length=ilosc;
  return this;
}

teksty=new minicjuj(6);
nopis(0,"&nbsp;Strona główna&nbsp;");
nopis(1,"&nbsp;Najczesciej zadawane pytania i rozne przydatne informacje dotyczace uczestnictwa w Auto Systemie&nbsp;");
nopis(2,"&nbsp;Dane techniczne i wielkosci rat oferowanych modeli&nbsp;");
nopis(3,"&nbsp;Promocje Auto Systemu&nbsp;");
nopis(4,"&nbsp;Adresy i numery telefonow do Salonow&nbsp;");
nopis(5,"&nbsp;Wyniki i informacje o Aktach Asygnacyjnych&nbsp;");
nopis(6,"&nbsp;Bezposredni kontakt z Auto Systemem - adresy e-mail, bezplatne infolinie&nbsp;");

