var kontrola = 0;
var win = 0;




function prenos(mypage, myname, w, h, scroll, vrijednost) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;

	splitani = vrijednost.split(".")
		for (i=0;splitani[i];i++) {
		}
	
		splitani[i-2] += "v"
		spojeni = ""
		for(j=0;j<i;j++) {
			if (j!=i-1) spojeni += splitani[j] + "."
			else spojeni += splitani[j]
		}

	myname = myname.replace("_","  ")

	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize'
	win = window.open(mypage, 'a', winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	win.document.writeln("<title>" +myname+ "</title>");
	win.document.writeln("<style type=\"text/css\"><!-- .body { font-family:  Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: normal; text-decoration: none }--></style>")
	win.document.write("<body bgcolor=\"#FFFFFF\"   text=\"#000000\" leftmargin=\"0\" topmargin=\"0\">");
	win.document.writeln("<img name=fotog src=\"" +spojeni+ "\">");
	win.document.write("<span class=body>Please wait...</span>");
	while (!win.fotog.complete) {
		
	}
	win.resizeTo(win.fotog.width+7,win.fotog.height+29);
	win.document.writeln("</body>");
}

function HelpWindow(mypage, myname, w, h, scroll) {
	var win2 = (screen.width - w) / 2;
	var win3 = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+win2+',left='+win3+',scrollbars='+scroll+',noresize'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function init(){
    linkovi = document.getElementsByTagName ("a");
    for (x=0; x < linkovi.length; x++){
      linkovi[x].onfocus = new Function ('if (this.blur) this.blur()');
    }
	
	try{
		decoGreyboxLinks();	
	}catch(e){
		
	}
}

