// -- begin artistrica.com functions (c) 2004 By Artistrica.com -------------------------------------
function ML(Cat, Big) { // ucitava središnju slikicu
	// prvi parametar skripte ke kategorija, drugi parametar je broj slicice
	DefCat = Cat
	DefPic = Big
	switch(DefCat) {
		case 1:
		BigPath = "bilder/big/nature/" // path od velikih fotki
		break
		case 2:
		BigPath = "bilder/big/animals/" // path od velikih fotki
		break
		case 3:
		BigPath = "bilder/big/cars/" // path od velikih fotki
		break
		case 4:
		BigPath = "bilder/big/people/" // path od velikih fotki
		break
		case 5:
		BigPath = "bilder/big/misc/" // path od velikih fotki
		break
		case 6:
		BigPath = "bilder/big/guests/danilo/" // path od velikih fotki
		break
		case 7:
		BigPath = "bilder/big/guests/igor/" // path od velikih fotki
		break
		default: // ako nema parametra ili je razlicit od navedenih onda je default
		BigPath = "bilder/big/nature/" // path od velikih fotki
		}
	DajGaNa()
}
function MovePic(direction) { // ucitava slijedecu ili prethodnu slicicu
	if (direction == 'f') {
		DefPic++
		}
		else {
		DefPic--
		}
	if (DefPic <= 0 || DefPic > 42 ) { // ako je manji od nule ili veci od 42
		DefPic = 1
		}
	DajGaNa()
}
function DajGaNa() { // Mijenja <div> tag za default picture & ucitava picture
	var partA = "<a onClick=openAC('" + DefCat + "_" + DefPic + "') href='#' onFocus='if(this.blur)this.blur()'>"
	document.getElementById('slikca').innerHTML = partA + "<img src='" + BigPath + DefCat + "_" + DefPic + ".jpg' alt='Add a comment to pic # " + DefCat + "_" + DefPic + "' border='1'></a>"
	document.getElementById('comm').innerHTML = partA + "Add a comment to pic # " + DefCat + "_" + DefPic + "</a>"
}
function openAC(pic){
	var comm = "comment.asp?P="
	win=window.open(comm + pic,'AddComment','scrollbars=yes,resizable=no,width=680,height=750,top=30,left=30,status=no,location=no,toolbar=no', marginwidth=0, marginheight=0);
}	
// -- end artistrica.com functions (c) 2004 By Artistrica.com ---------------------------------------

