function opendwin(descript,name) {
  fotowin=window.open(descript, name, "width=700,height=600,dependent,scrollbars,resizable,menubar,top=10,left=10");
  fotowin.focus();
}

function openwin(descript) {
  fotowin=window.open(descript, 'hint', "width=700,height=600,dependent,scrollbars,resizable,menubar,top=10,left=10");
  fotowin.focus();
}

function showpicture(descript) {
  fotowin=window.open(descript, 'hint', 'width=840,height=600,dependent,scrollbars,resizable,menubar,top=60,left=30');
  fotowin.focus();
}
function run() {}

function openwin(descript) {
  fotowin=window.open(descript, 'hint', "width=700,height=600,dependent,scrollbars,resizable,menubar,top=60,left=320");
  fotowin.focus();
}
function showpicture(descript) {
  fotowin=window.open(descript, 'hint', 'width=700,height=600,dependent,scrollbars,resizable,menubar,top=60,left=320');
  fotowin.focus();
}
function run() {}

function show(name)
{
	if (document.getElementById) {
		if (document.getElementById(name).style.display!='block') {
			document.getElementById(name).style.display='block';
		}
		else {
			document.all[name].style.display='none';
		}
	}
	return;
}

function hide(name)
{
	document.all[name].style.display='none';
	return;
}

function show2(name)
{
	document.all[name].style.display='block';
	return;
}

function setObjectBgColor(objectName, objectColor)
{
  switch (navigator.family)
  {
   case 'nn4':
     	document[objectName].bgColor = objectColor;
     	break;
   case 'ie4':
   case 'opera':
        document.all[objectName].bgColor = objectColor;
     	break;
   case 'gecko':
     	document.getElementById(objectName).bgColor = objectColor;
     	break;
   default:
   		break;
  }
}
var lastid = false;


function hm(lastid, color)
{
	lastid2 = lastid-1;
	hide('menu'+lastid);
	show2('TSUBMENU');	
	return;
}

function sm(id, color)
{
	id2 = id-1;
	if (lastid) hm(lastid, "#336633");
	show('menu'+id);
	hide('TSUBMENU');	
	
	lastid = id;
	return;
}

function opengramm(descript) {
  fotowin=window.open(descript, 'gramm', "width=700,height=600,dependent,scrollbars,resizable,menubar,top=10,left=10");
  fotowin.focus();
}
