function butHigh (elm) {
	try {
		elm.src = elm.filters[0].src.replace(/but/, "bhl");
	}
	catch (e) {
		elm.src = elm.src.replace(/but/, "bhl");
	}
}
function butNorm (elm) {
	try {
		elm.src = elm.filters[0].src.replace(/bhl/, "but");
	}
	catch (e) {
		elm.src = elm.src.replace(/bhl/, "but");
	}
}
function thnHigh (elm, clr) {
	elm.style.borderColor = clr;
}
function thnNorm (elm, clr) {
	elm.style.borderColor = clr;
}

function selThumb(img) {
	document.getElementById("divFoto").style.backgroundImage="url("+img+")";
}

function winOpen (adr, name, w, h, scr) {
	par = "left=" + Math.floor((screen.width-w)/2) + ",width=" + w;
	par += ",top=" + Math.floor((screen.height-h)/2) + ",height=" + h;
	par += ",scrollbars=" + (scr?"yes":"no");
	par += ",resizable=" + (scr?"yes":"no");
	par += ",status=no";
	return window.open (adr, name, par);
}

