/*
 * Program/File: Jahn-TV-Homepage/show_menu.js
 * Author: M. Petersen
 * Date: 2007-10-10
 * Last modified: 2008-09-01
 *
 */





<!--
	/*
	 * shows or hides the menu
	 *
	 */
	function pop(mode, menu)
	{
		/*
		 * fetches the right menu
		 *
		 */
		var popupmenu = document.getElementById(menu + '_menu');

		/*
		 * decides what to do
		 *
		 */
    		if(mode == '1')
		{
			popupmenu.style.visibility = 'visible';
    		}
		else
		{
			popupmenu.style.visibility = 'hidden';
    		}
  	}


	/* 
	 * marks the entry, while
	 * the mouse is over the
	 * object
	 *
	 */
	function hover(mode, menu_entry)
	{
		/*
		 * fetches the right menu
		 *
		 */
		var entry = document.getElementById(menu_entry);

		/*
		 * changes the cursor
		 *
		 */
		entry.style.cursor = 'pointer';

		/*
		 * decides what to do
		 *
		 */
    		if(mode == '1')
		{
			entry.style.backgroundColor = '#FF6347';
    		}
		else
		{
			entry.style.backgroundColor = '#F8F8FF';
    		}
  	}


	/*
	 * shows the selected page
	 *
	 */
	function select(menu)
	{
		/*
		 * updates the url with the selected page
		 *
		 */
		window.location.replace(menu + '.html');
  	}
//-->
