<!--
function setcountdown(theyear,themonth,theday,thehour,themin){
         yr=theyear;
         mo=themonth;
         da=theday;
         hh=thehour;
         mm=themin;
}

function autosetcountdown(){
  var now = new Date();
  var month = now.getMonth();
  var date = now.getDate();
  var day = now.getDay();
  var year = now.getYear();

  if (year < 2000) year = year + 1900;

  var monarr = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

  if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) monarr[1] = "29";

  while (date != 1){
        date = date - 1;
        day = day - 1;
        if (day < 0) day = day + 7;
  }
  lastfriday=0;
  weekday = 0;

  while (date != monarr[month]){
        date = date + 1;
        day = day + 1;
        if (day > 6) day = 7 - day;
        if (day == 5) lastfriday = date;
  }

  yr=year;
  mo=month+1;
  da=lastfriday;
  hh=18;
  mm=0;
}

//////////CONFIGURE THE COUNTDOWN SCRIPT HERE//////////////////

//STEP 1: Configure the countdown-to date, in the format year, month, day:

autosetcountdown();
//setcountdown(2006,10,lastfridayday(),18,00)
//STEP 2: Change the two text below to reflect the occasion, and message to display on that occasion, respectively
var occasion="do Masy Krytycznej"
var message_on_occasion="Dziś o 18:00 jedziemy !!! (spod HSW ''Łuczniczka'')"
var message_faster="<br> pospiesz się! jeszcze zdążysz!"

//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countdown area
var countdownwidth='750px'      //szeroko&#65533;&#230; okienka
var countdownheight='20px'      //wysoko&#65533;&#230; okienka
var countdownbgcolor='white'    //Kolor t&#179;a
var opentags=''
var closetags=''

//////////DO NOT EDIT PASS THIS LINE//////////////////

var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=''

function start_countdown(){
         if (document.layers)
            document.countdownnsmain.visibility="show"
         else if (document.all||document.getElementById)
            crosscount=document.getElementById&&!document.all?document.getElementById("countdownie") : countdownie
            countdown()
}

if (document.all||document.getElementById)
document.write('<span class="countner" id="countdownie" ></span>')

window.onload=start_countdown


function countdown(){
         var today=new Date()
         var todayy=today.getYear()
         if (todayy < 1000)
            todayy+=1900
            var todaym=today.getMonth()
            var todayd=today.getDate()
            var todayh=today.getHours()
            var todaymin=today.getMinutes()
            var todaysec=today.getSeconds()
            var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
            futurestring=montharray[mo-1]+" "+da+", "+yr+" "+hh+":"+mm+":"+0

            dd=Date.parse(futurestring)-Date.parse(todaystring)
            dday=Math.floor(dd/(60*60*1000*24)*1)                                            //przypis licznika dni
            dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)                         //przypis licznika godzin
            dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)                 //przypis licznika minut
            dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)          //przypis licznika sekund


//if on day of occasion
if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+message_on_occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+message_on_occasion+closetags
return
}
//if passed day of occasion
else if (dday<=-1){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+"No i po masie!!!"+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+"No i po masie!!!"+closetags
return
}
//else, if not yet
else{
if(dday<=0&&dhour<=0&&dmin>=0&&todayd==da)
   speed=" "+message_faster;
else
   speed="";

if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+dday+ " dni, "+dhour+" godzin, "+dmin+" minut, i "+dsec+" sekund "+occasion+speed+closetags
}
setTimeout("countdown()",1000)
}
-->