DOM=(document.getElementById)?1:0;
NS4=(document.layers)?1:0;
IE4=(document.all)?1:0;
DHTML = (DOM || NS4 || IE4);
Op5=(navigator.userAgent.indexOf("Opera 5") > -1 || navigator.userAgent.indexOf("Opera/5") > -1)?1:0;

function getObj(name) {
	if (DOM) {
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	} else
	if (IE4) {
		this.obj = document.all[name];
		this.style = document.all[name].style;
	} else
	if (NS4) {
		this.obj = getObjNN4(document.name);
		this.style = this.obj;
	}
	return this;
}

function getObjNN4(obj,name) {
	var x = obj.layers;
	var thereturn;
	for (var i=0;i<x.length;i++) {
		if(x[i].id == name) thereturn = x[i];
		else if (x[i].layers.length) var tmp = getObjNN4(x[i],name);
		if (tmp) thereturn = tmp;
	}
	return thereturn;
}

function sGetObj(name) {
	if (DOM) return document.getElementById(name);
	else if (IE4) return document.all[name];
	else if (NS4) return getObjNN4(document,name);
}
 
 
 
 function change_on(styl){
	it = sGetObj('vyskoc');
	it.className = styl;
 }
 function change_off(){
	it = sGetObj('vyskoc');
	it.className = "vyskoc";
 }



/* QUEUE FUNCTIONS */



function Queue() {
	this.queue = new Array();
}

Queue.prototype.add = function(name) {
	this.queue.push(name);
}

Queue.prototype.process = function() {
	var func = '';
	while(this.queue.length > 0) {
		func = this.queue.shift();
		eval(func);
	}
}



/* QUEUE */



init_queue = new Queue();                                                                     
dest_queue = new Queue();                                                                     


