document.getElementById("bgimage").style.background = "url("+path+"img/line"+cviat+".jpg) repeat-y";

i=absolute.charAt(absolute.indexOf("razdel")+6);
j=absolute.charAt(absolute.indexOf("razdel")+7);
if (j != "/")
	i = i + j;

if (i != "/" && typeof glava[i] != "undefined") {
	document.getElementById("mainimage").style.background = "url("+path+"img/"+glava[i]+") repeat";
}
else if (i != "/" && typeof glavaostanali != "undefined") {
	document.getElementById("mainimage").style.background = "url("+path+"img/"+glavaostanali+") repeat";
}
else {
	document.getElementById("mainimage").style.background = "url("+path+"img/"+mainimg+") repeat";
}