/* PHOTO POPUP  WITH ORIGINAL SIZE ZOOM FACILITY*/
function foto_orgsize(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>");
}

/* STANDARD PHOTO POPUP */
function foto(id, width, height) {
	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><style type=\"text/css\">body{padding:0;margin:0;}</style></head><body><img src=\"./mma_bin.php?src=mid&amp;id=" + id + "\"/></body></html>");
}

/* PRINT PAGE */
function printWindow(str, id) {
	window.open("print.php?lng=slo&strId="+str+"&id="+id+"","print", "width=670,height=500,location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes, resizable=no,status=no")
}

/* MOUSEOVER CSS CLASS */
/* 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");
}
