<!---
var msg="Witamy";
Nowe=null; 
nn4=(document.layers) ? true : false; 
ie4=(document.all) ? true : false; 

function PiszFoot(n)
{ 
var LastModDate = new Date(document.lastModified);
var Lev='';

for(i=0;i<n;i++)
{Lev=Lev+'../'}
document.write('<div align="left"><hr>');
document.write('<a href="mailto:chabin@chabin.pol.pl" onMouseOver=');
document.write("'");
document.write('mail_pic.src="'+Lev+'pics/email.gif"');
document.write("'");
document.write('onMouseOut=');
document.write("'");
document.write('mail_pic.src="'+Lev+'pics/email1.gif"');
document.write("'");
document.write('>');
document.write('<img name="mail_pic" src="'+Lev+'pics/email1.gif" border=0 alt="Napisz do nas ...">chabin@chabin.pol.pl</a></div>');
document.write('<hr>');
document.write('<TABLE width="100%"><TR><TD CLASS="Dat1" align="left" width="50%">');
//document.write("Aktualizacja : " + DatToTxt(LastModDate,1));
document.write('</TD><TD align="right"><a href="mailto:ai@ai.lodz.pl">');
document.write('<img name="mail" src="'+Lev+'pics/ai.gif" border=0 alt="wykonanie"></a></TD></TR></TABLE>');
}

function DatToTxt(data,tryb)
{
if (tryb == null) {tryb=1};
var dzien = new Array("Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Pištek", "Sobota");
var miesiac = new Array("stycznia","lutego","marca","kwietnia", "maja","czerwca","lipca","sierpnia","września","października", "listopada","grudnia");
var DT = data.getDate()+'&nbsp;'+miesiac[data.getMonth()]+'&nbsp;';

if (data.getYear()<2000) {DT=DT+(data.getYear()+1900);}
else {DT=DT+(data.getYear());}

if (tryb==2)
  {DT=dzien[data.getDay()]+',&nbsp;'+DT;}
return DT;

}
function Dzisiaj()
{
data = new Date();
document.write(DatToTxt(data,2));
}

function WriHead(n)
{
Lev='';
for(i=0;i<n;i++)
{Lev=Lev+'../'}

document.write('<a CLASS="HeadF1">CHABIN<SUP>&reg;</SUP> - SERVICE</a>');
document.write('<a CLASS="HeadF2"><br>CENTRALNY AUTORYZOWANY SERWIS DYSTRYBUCYJNY <br>BRIGGS &amp; STRATTON W POLSCE</a><br>');
document.write('<a CLASS="Dat1"><div align="right"><right>');
Dzisiaj();
document.write('<div align="right"><right></a>');
}

function ShowPic(w,s,src,tyt)
{
ie4=(document.all) ? true : false; 
if (Nowe) { 
 if (ie4) Nowe.close(); 
 else if (nn4) Nowe.closed; 
 Nowe=null; 
 };

config='toolbar=no,menubar=no,location=no,personalbar=no, scrollbars=no,status=no,';
config+='directories=no,resizable=no,height='+w+',width='+s
Nowe=window.open("", "Nowe",config); 
Nowe.document.writeln("<HTML><HEAD><TITLE>"+tyt+"</TITLE><STYLE>BODY{BACKGROUND-REPEAT:no-repeat; BACKGROUND-POSITION:center} </STYLE></HEAD>");
Nowe.document.writeln('<script>');
Nowe.document.writeln('function klik(){');
Nowe.document.writeln('  if (event.button == 1 || event.button == 2 || event.button == 3) {');
Nowe.document.writeln('    self.close();');
Nowe.document.writeln('    return false;');
Nowe.document.writeln('  }');
Nowe.document.writeln('  return true;');
Nowe.document.writeln('}');
Nowe.document.writeln('document.onmousedown=klik;');
Nowe.document.writeln('window.onmousedown=klik;');
Nowe.document.writeln('</SCRIPT>');
if (ie4)
  Nowe.document.writeln('<BODY BACKGROUND="'+src+'">');
else
  {
   Nowe.document.writeln("<BODY>"); 
   Nowe.document.writeln('<TABLE width="100%">'); 
   Nowe.document.writeln('<TR><TD align="center"><img src="'+src+'"></TD></TR>'); 
   Nowe.document.writeln('</TABLE>'); 
  }
Nowe.document.writeln("</BODY></HTML>") 
Nowe.focus() 
if (ie4)
  window.onunload = function(){Nowe.close()};
else
  window.onunload = function(){Nowe.closed};
} 



function klik()
{
  if (event.button == 2 || event.button == 3) 
       {
        alert("Operation denied");
        return false;
       }
  return true;
}

function SetRi()
{
document.onmousedown=klik;
window.onmousedown=klik;
}

function scrollit_r21(seed)
 {
          var out = " ";
          var c    = 1;
          if (seed > 100)  {
                    seed--;
                    var cmd="scrollit_r21(" + seed + ") ";
                    timerTwo=window.setTimeout(cmd, 100) ;
          }
          else if (seed <= 100 && seed > 0)  {
                    for (c=0 ; c < seed ; c++) {
                              out+=" ";
                    }
                    out+=msg;
                    seed--;
                    var cmd="scrollit_r21(" + seed + ") ";
                              window.status=out;
                    timerTwo=window.setTimeout(cmd, 100);
          }
          else if (seed <= 0) {
                    if (-seed < msg.length) {
                              out+=msg.substring(-seed,msg.length);
                              seed--;
                              var cmd="scrollit_r21(" + seed + ")";
                              window.status=out;
                              timerTwo=window.setTimeout(cmd, 100) ;
                    }
                    else  {
                              window.status=" ";
                              timerTwo=window.setTimeout("scrollit_r21(100)",75);
                    }
          }
}
function StatusTxt(tekst,co) { 
if (co==1) {tekst=' Chabin Service - centralny dystrybutor Briggs & Stratton w Polsce - '+tekst}
msg=tekst;
//window.setTimeout ('scrollit_r21(100) ' ,500) ;
}


//--->

