	function zobr_img(file, title) {
		 okno = window.open('', '', 'fullscreen=0,titlebar=0,locationbar=0,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,hotkeys=0,width=200,height=200');
		okno.document.open("text/html", "replace");
		okno.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');
		okno.document.write('<HTML>');
		if (title == null) {
			title = 'Picture';
		}
		okno.document.write('<HEAD><title>'+title+'</title></HEAD>');
		okno.document.write('<BODY BOTTOMMARGIN="0" TOPMARGIN="0" LEFTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" BGCOLOR="#FFFFFF" onload="resizeTo((document.images.picture.width+15),(document.images.picture.height+35))">');
		okno.document.write('<img src="'+file+'" border=0 name="picture" onclick="window.close(self)">');			
		okno.document.write('<SCRIPT language=\"Javascript\">');
		okno.document.write('moveTo(0,0);');
		okno.document.write('<\/SCRIPT>');
		okno.document.write('</body></html>');		
		okno.document.close();
		okno.focus();
	}	


DOM=(document.getElementById)?1:0;
NS4=(document.layers)?1:0;
IE4=(document.all)?1:0;
function getObjNN4(obj,name) {
	var x = obj.layers;
	var thereturn;
	for (var i=0;i<x.length;i++) {
		if(x[i].id == name) thereturn = x[i];
		else if (x[i].layers.length) var tmp = getObjNN4(x[i],name);
		if (tmp) thereturn = tmp;
	}
	return thereturn;
} 
function sGetObj(name) {
	if (DOM) return document.getElementById(name);
	else if (IE4) return document.all[name];
	else if (NS4) return getObjNN4(document,name);
} 
function gal_img_switch(td) {
	var img = sGetObj(td.id+'_img');
        if(td.className.match(/on/)) {
	    td.className = td.className.replace(/on/, 'off');	
	    img.className = img.className.replace(/on/, 'off');	
       } else {
	    td.className = td.className.replace(/off/, 'on');
	    img.className = img.className.replace(/off/, 'on');	
       }
}
