function SlikaUp() {
        ba=arguments.length;
        URL=arguments[0];
        eval("page7 = window.open(URL, '" + 7 + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1');");
}

function PopUp() {
        URL=arguments[0];
        nid=3;
        eval("page" + nid + " = window.open(URL, '" + nid + "', 'toolbar=0,location=0,statusbar=0,menubar=0,scrollbars=2,resizable=1,width=" + 600 + ",height=" + 500 + "');");
}

function PopUpCustom() {
        URL=arguments[0];
        HSIZE=arguments[1];
        VSIZE=arguments[2];
        nid=33;
        eval("page" + nid + " = window.open(URL, '" + nid + "', 'toolbar=0,location=0,statusbar=0,menubar=0,scrollbars=2,resizable=0,width=" + HSIZE + ",height=" + VSIZE + "');");
}

function move_in(slimg, img_name) {
	//alert (slimg);
	slimg.src=img_name;
}

function move_out(slimg, img_name) {
	slimg.src=img_name;
}

function DANES_goTo( url ) {
	window.location.href = url;
}


//PRELOAD IMAGES
function DANES_PreloadImages(rootDirectory) {
	if (document.images)
	{
	  pic1= new Image(326,260); 
	  pic1.src= rootDirectory + "topimage1.gif"; 
	
	  pic2= new Image(326,260); 
	  pic2.src= rootDirectory + "topimage2.gif"; 
	
	  pic3= new Image(326,260); 
	  pic3.src= rootDirectory + "topimage3.gif"; 
	  
	  pic4= new Image(326,260); 
	  pic4.src= rootDirectory + "topimage4.gif";  
	  
	  pic5= new Image(321,260); 
	  pic5.src= rootDirectory + "topimage5.gif"; 
	  
	  pic6= new Image(321,260); 
	  pic6.src= rootDirectory + "topimage6.gif"; 
	  
	  
	}
}



//AJAX-RELATED JS

//displays stream in the ajax div
function ShowAjaxStream(nkat, ntitle) {
	xajax_ShowStream(nkat);
	xajax_ShowNavigation(nkat);
	document.title = ntitle;
}
