function foto(id, width, height){
	height+=20;
	fotowin = window.open("", "foto", "width =" +width +",height =" +height +",location=no,menubar=no,directories=no,toolbar=no,scrollbars=no,resizable=no,status=no");
	fotowin.document.write("<html><head><link href=\"css/print_pic.css\" rel=\"stylesheet\" type=\"text/css\"></head><body><img src=\"./mma_bin.php?src=mid&amp;id=" + id + "\"/><br><div align=\"center\"><a href=\"./mma_bin.php?src=&amp;id=" + id + "\" target=\"_blank\">originalna velikost</a></div></body></html>");
}

/* rollover script */
/* Note: Changes target class to modify its looks */

/* mouse over */
function switchclass_over(which, className) {
	which.className=className+'On';
}

/* mouse out */
function switchclass_out(which, className) {
	which.className=className;
}

/* mouseover images */
function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
		}
	}
}
function switchOver(num)
{
	document['image'+num].src = eval("image" + num + "over.src");
}
function switchOff(num)
{
	document['image'+num].src = eval("image" + num + "off.src");
}