/*-------------------------------------------------
************* Parameter Settings ******************
---------------------------------------------------*/

tinyMCE.init({
	mode : "textareas",
	theme : "advanced",
	plugins : "contextmenu",
	force_br_newlines : true,
	editor_deselector : "mceNoEditor",
	theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	<!-- theme_advanced_path_location : "bottom", -->
	extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
});

function menudata0()
{
    /*---------------------------------------------
    Expand Icon Images
    ---------------------------------------------*/

        //Expand Images are the icons which indicate an additional sub menu level.
		/*
        this.main_expand_image_style = "background: url(images/sample2_main_arrow.gif) center right no-repeat;";
        this.main_expand_image_hover_style = "background: url(images/sample2_main_arrow.gif) center right no-repeat;";

		this.subs_expand_image_style = "background: url(images/sample2_sub_arrow.gif) center right no-repeat;";
		this.subs_expand_image_hover_style = "background: url(images/sample2_sub_arrow.gif) center right no-repeat;";
		*/
	/*---------------------------------------------
	Menu Container Settings
	---------------------------------------------*/
	
		//Main Container

		   this.main_container_border_width = "0px"
           this.main_container_border_style = "solid"
		   
           this.main_container_styles =   "background-color:transparent;			\
		   								   margin:0px right; \
                                           border:none;"


		//Sub Containers
	
		   this.subs_container_padding = "2px, 10px, 5px, 10px"
		   this.subs_container_border_width = "2px"
		   this.subs_container_border_style = "solid"  

		   this.subs_container_styles =   "background-color:#92C0D9;		\
										   border-color:#FFFFFF;	\
										   margin:1px 1px 1px 30px;"

    /*---------------------------------------------
    Menu Item Settings:               background-image:url(/images/design/bg_menu_hover.gif);	\
    ---------------------------------------------*/

	//Main Items

           this.main_item_padding = "5px,10px,5px,10px"
                  
           this.main_item_styles =        "text-decoration:none;		\
                                           font-weight:bold;			\
                                           font-family:Arial;			\
                                           background-color:transparent;	\
										   font-size:12px;			\
                                           color:#000000;			\
                                           border-right:0px solid #FFFFFF;			\
                                           text-align:center;"

           this.main_item_hover_styles =  "background-color:;	\
										   background-repeat:repeat-x;  \
                                           text-decoration:none;		\
										   border-style:solid;			\
                                           border-color:#FFFFFF;		\
										   border-width:0px;			\
                                           color:#FFCC66;"

           this.main_item_active_styles = "background-color:transparent;		\
                                           text-decoration:normal;		\
										   border-width:0px;	\
                                           color:#111111;"

	//Sub Items

           this.subs_item_padding = "2px,5px,2px,5px"
           
           this.subs_item_styles =        "text-decoration:none;		\
                                           font-face:Verdana;			\
                                           font-size:10px;			\
                                           font-weight:normal;			\
                                           background-color:#transparent;	\
                                           color:#FFFFFF;			\
                                           border-style:none;			\
                                           text-align:left;			\
                                           border-style:none;			\
                                           border-color:#000000;		\
                                           border-width:0px;"	

           this.subs_item_hover_styles =  "background-color:transparent;\
                                           text-decoration:underline;\
                                           color:#ff0000;"

           this.subs_item_active_styles = "background-color:#ffffff;		\
                                           color:#255585;"

   /*---------------------------------------------
    Additional Setting
    ---------------------------------------------*/

        //Main Menu Orientation
           this.main_is_horizontal = true
	

        //Main Menu Item Widths 

//       	 this.main_item_width = 60			//default width for all items

           this.main_item_width0 = 60		//optional specific width for the first menu item
           this.main_item_width1 = 60		//optional specific width for the second menu item...
           this.main_item_width2 = 60		//optional specific width for the second menu item...
           this.main_item_width3 = 60		//optional specific width for the second menu item...
           this.main_item_width4 = 60		//optional specific width for the second menu item...
           this.main_item_width5 = 60		//optional specific width for the second menu item...
   		 this.main_item_width6 = 90		//optional specific width for the second menu item...
		 this.main_item_width7 = 50
           
		 //The mouse off and mouse over delay for sub menus
         this.menu_showhide_delay = 50;
}

<!-- löscht die Sucheneingabe, wenn mit der Maus drauf geklickt wird -->
function clearField() 
{
	if (document.layers) {frmS=document.layers['headersuche'].document.forms['formLogin'];} else {frmS=document.forms['formLogin'];}
	with (frmS) 
		{
			obj = elements['username']; obj.value=''; obj.focus();
		}
}

<!-- checkt, ob ein Benutzername beim Benutzerwechsel Formular eingegeben wurde. -->
function checkSwitchLogin()
{ 
	if (document.getElementById("switchUser").name.value == "")
	{
		alert("Hinweis: Bitte gebe einen Benutzernamen ein!.")
		document.getElementById("switchUser").name.focus()
		
		return false
	}
}

<!-- checkt, ob das G-Book Formular komplett ausgefüllt wurde. -->
function checkRequiredFields_gbook(input)
{
    var requiredFields = new Array("titel",
                                   "realname",
                                   "email",
                                   "kommentar");

    var fieldNames = new Array("Titel",
                               "Name",
                               "Email",
                               "Kommentar");
    var fieldCheck   = true;
    var fieldsNeeded = "Um einen Gästebucheintrag zu erstellen\nmüssen noch folgende Felder ausgefüllt werden!\n\nBitte fülle noch folgende leere Felder aus:\n\n\t";

    for(var fieldNum=0; fieldNum < requiredFields.length; fieldNum++) {
        if ((input.elements[requiredFields[fieldNum]].value == "") ||
            (input.elements[requiredFields[fieldNum]].value == " ")) {

            fieldsNeeded += fieldNames[fieldNum] + "\n\t";
            fieldCheck = false;
        }
    }

    if (fieldCheck == true)
    {
        return true;
    }
    else
    {
        alert(fieldsNeeded);
        return false;
    }
}

	<!-- Neues Browser Fenster öffnen -->
	function MM_openBrWindow(theURL,winName,features) { //v2.0
		window.open(theURL,winName,features);
	}
