function show_img(title,s_url){
    var s_img = new Image();
    s_img.src=s_url;
    var width=s_img.width;
    var height=s_img.height;
    var imgnwin=window.open("","imgswin","resizable=yes,scrollbars=no,toolbar=no,location=no,directoties=no,status=no,menubar=no,width="+width+",height="+height);
    imgnwin.document.open();
    imgnwin.document.write("<html><head><title>"+title+"</title></head><body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0><img src='"+s_url+"' border=0></body></html>");
    imgnwin.document.close();
    imgnwin.focus();
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].background = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		preloadFlag = true;
	}
}


<!--  -->

function show_menu(name_obj,name_td, name_a){
	var obj=null, o_td=null;
	obj=document.getElementById(name_obj);
	o_td=document.getElementById(name_td);
	o_a=document.getElementById(name_a);
	if (obj!=null && o_td!=null && o_a!=null) {hide_all(); obj.style.visibility="visible"; o_a.style.color="white"; o_td.style.background="black"}
}

function show_bg(name_td, name_a){
	o_td=null;
	o_td=document.getElementById(name_td);
	o_a=document.getElementById(name_a);
	if (o_td!=null && o_a!=null) {hide_all(); o_a.style.color="white"; o_td.style.background="black"}
}

function hide_all() {
	for (var i=0; i<div_count; i++)
	{
		if (document.getElementById("m"+i)!=null) {
			document.all["m"+i].style.visibility="hidden";
		}
		if (document.getElementById("td"+i)!=null) {
			document.all["td"+i].style.background="";
		}
		if (document.getElementById("a"+i)!=null) {
			document.all["a"+i].style.color="";
		}
	}
}