///////////////////////////////////////////////////////////
////////////////////REFRESH PICS///////////////////////////
///////////////////////////////////////////////////////////
 
// browser sniffer:
browserVer = parseInt(navigator.appVersion);
if (navigator.appName == "Microsoft Internet Explorer" && browserVer < 4)
{
alert("Internet Explorer 3 users need to hit 'Refesh' to update the image");
}

//this eliminates JavaScript error messages
onError=null

// The variables you need to change are: the filename of the picture,
// the refresh rate, the expected time to download and further down,
// the FORM ACTION (look for the ***).
var picname1 = "http://www.snezni-telefon.si/Images/Kamere/1_a.jpg";  // set this to the filename of your campicture
var picname2 = "http://www.snezni-telefon.si/Images/Kamere/1_b.jpg";
var picname3 = "http://www.snezni-telefon.si/Images/Kamere/1_c.jpg";
var picname4 = "http://www.snezni-telefon.si/Images/Kamere/1_d.jpg";
var speed = 60;  // "var speed" is the refresh rate adjustment in seconds
var y = 14;      // expected time to download the picture file. It  MUST be
                 // set at a smaller number than the "speed" variable!

var x = speed;   // current countdown
var cachepic1 = new Image();
var cachepic2 = new Image();
var cachepic3 = new Image();
var cachepic4 = new Image();

function stopClock() {
	x = "00";
	document.form0.clock.value = x;
}

function startClock() {
        if (x != "00") {
	x = x - 1;
	document.form0.clock.value = x;
         if (x == y) {
          recache()
        }
	if (x <= 0)
        {
          reload()
        }
	timerID = setTimeout("startClock()", 1000);
        }
}

function recache() {
      var now = new Date();
      var camImg1 = picname1 + "?" + now.getTime();
      cachepic1.src = camImg1;
      var camImg2 = picname2 + "?" + now.getTime();
      cachepic2.src = camImg2;
      var camImg3 = picname3 + "?" + now.getTime();
      cachepic3.src = camImg3;
      var camImg4 = picname4 + "?" + now.getTime();
      cachepic4.src = camImg4;
    }

function reload() {
    document.images.campicture1.src = cachepic1.src;
    document.images.campicture2.src = cachepic2.src;
    document.images.campicture3.src = cachepic3.src;
    document.images.campicture4.src = cachepic4.src;
    x = speed;
    document.form0.clock.value = x;
              	  }
              	  
              	  
// <!-- 840820817
// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/email/ 

function dive(steel,attitude,algebra) {
steel += ' ';
var horse = steel.length;
var cabin = 0;
var bed = '';
for(var cavern = 0; cavern < horse; cavern++) {
cabin = 0;
while(steel.charCodeAt(cavern) != 32) {
cabin = cabin * 10;
cabin = cabin + steel.charCodeAt(cavern)-48;
cavern++;
}
bed += String.fromCharCode(stink(cabin,attitude,algebra));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+bed;
}

function shave(computer,conception,glass) {
computer += ' ';
var notice = computer.length;
var waste = 0;
for(var encounter = 0; encounter < notice; encounter++) {
waste = 0;
while(computer.charCodeAt(encounter) != 32) {
waste = waste * 10;
waste = waste + computer.charCodeAt(encounter)-48;
encounter++;
}
//document.write('&');
//document.write('#');
//document.write(stink(waste,conception,glass));
document.write(String.fromCharCode(stink(waste,conception,glass)));
}
}

function stink(time,hero,game) {
if (game % 2 == 0) {
mother = 1;
for(var millenium = 1; millenium <= game/2; millenium++) {
way = (time*time) % hero;
mother = (way*mother) % hero;
}
} else {
mother = time;
for(var nitrogen = 1; nitrogen <= game/2; nitrogen++) {
way = (time*time) % hero;
mother = (way*mother) % hero;
}
}
return mother;
}
