//steuerung bischoff_version v4
function theme_open(theme)
{
	window.parent.frames["main"].location.href=	"seiten/"+theme+".htm";
	win.parent.frames["u_menu"].location.href=theme+"_umenue.htm";
	win.parent.frames["sub"].location.href="seiten/rand/"+theme+".htm";
}

var m_selected = "";

function menu_mark(o,t)
{
	if (m_selected != t)
		document.getElementById(t).style.fontWeight="bold";
}

function menu_unmark(o,t)
{
	if (m_selected != t)
		document.getElementById(t).style.fontWeight="normal";
}

function menu_select(t)
{
	if (m_selected != "")
		document.getElementById(m_selected).style.fontWeight="normal";

	m_selected = t;
	document.getElementById(m_selected).style.fontWeight="bold";
	
	//führt u_menu Inhalte aus /rand  nach 'sub'
	window.parent.frames['sub'].location.href="seiten/rand/"+t+".htm";
};

function write_menu(t)
{
	document.writeln("<a id='"+t+"' name='"+t+"' href='"+t+"_umenue.htm' target='u_menu' onMouseOver=\"menu_mark(this,'"+t+"');\" onMouseOut=\"menu_unmark(this,'"+t+"');\" onClick=\"menu_select('"+t+"'); theme_open('"+t+"');\">"+t+"</a>");
};


function find_image(t)
{
	for (i=0;i<document.images.length;i++)
	{
		if (document.images[i].name == t)
			return document.images[i];
		
	};

};

function submenu_mark(t)
{
	img = find_image(t);

	if (m_selected != t)
		img.src = "iconos/sign_ein.gif";
}

function submenu_unmark(t)
{
	img = find_image(t);

	if (m_selected != t)
		img.src = "iconos/sign_aus.gif";
}

function submenu_select(t)
{
	if (m_selected != "")
	{
		img = find_image(m_selected);
		img.src = "iconos/sign_aus.gif";
	};

	m_selected = t;
	submenu_mark(m_selected);
	
	window.parent.frames['main'].location.href="seiten/"+t+".htm";
	window.parent.frames['sub'].location.href="seiten/rand/"+t+".htm";
};
        
function write_submenu(t)
{
	document.write("<img id=\""+t+"\" name=\""+t+"\" src=\"iconos/sign_aus.gif\" width=10 height=10 hspace=5>");
	document.write("<a onClick=\"submenu_select('"+t+"');\" onMouseOver=\"submenu_mark('"+t+"');\" onMouseOut=\"submenu_unmark('"+t+"');\" href=\"seiten/"+t+".htm\" target=\"main\">"+t+"</a>");	
};






