// JavaScript Document<!-- LIVE CAMERA -->
	
newImage = new Image();

function Choose()
{
if (navigator.appName == 'Netscape')
{ 
document.images.livecam.src = "http://csokonai.dyndns.org:8888/videostream.cgi?user=demo&pwd=demo";
}
else
{
 InitialImage();
}
}

 function LoadnewImage() 
{ 
var unique = new Date();
document.images.livecam.src = newImage.src; newImage.src =
"http://csokonai.dyndns.org:8888/snapshot.cgi?user=demo&pwd=demo;?time=" + unique.getTime();
 } 

function InitialImage() 
{ 
var unique = new Date();
newImage.onload = LoadnewImage; newImage.src =
"http://csokonai.dyndns.org:8888/snapshot.cgi?user=demo&pwd=demo;?time="
+ unique.getTime();
 document.images.livecam.onload=""; 
}

	<!-- END OF LIVE CAMERA -->
	
	<!-- DISABLE RIGHT-CLICK -->

	var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")


	<!-- END OF DISABLE RIGHT-CLICK -->



var i=0;
var x=0;
var y;
var rolunkTomb = ["<h3><i>\"...\"</i><br>_<br><br></h3>",
				  "<h3><i>\"...\"</i><br>_<br><br></h3>",
				  "<h3><i>\"...\"</i><br>_<br><br></h3>"];

function init() {
setTimeout("imageChange()",1330);
}

function textChange()
{
document.getElementById("rolunk").innerHTML=rolunkTomb[i];
i+=1;
if (i==3) {i=0};
}

function imageChange() {
y=x%3;
k=(x-y)/3+1;
if (y == 0) {document.getElementById("kep1").src="../img/orzes"+ k +".jpg";}
if (y == 1) {document.getElementById("kep2").src="../img/technika"+ k +".jpg";}
if (y == 2) {document.getElementById("kep3").src="../img/takaritas"+ k +".jpg";}//textChange();
x+=1;
if (x==27) {x=0};
init();
}

