		var ENGLISH = 0;
		var GERMAN  = 1;

		function IsLanguage(mode)
		{
		   return (mode==top.frames["top"].language);
		}

		function SetLanguageTo(mode)
		{
		   top.frames["top"].language=mode;
		}

	    function SearchFrameWihName(f, lookfor)
		{
		   for (var i=0; i < f.frames.length; i++)
		   {
		      if (f.frames[i].name == lookfor)
			     return f.frames[i];
			  else if ( f.frames[i].frames.length>0 )
			  {
			   	   var f1 =  SearchFrameWihName(f.frames[i], lookfor)
				   if (f1!=null)
				 	  return f1;
			  }
		   }
		   return null;
		}

	    function SearchTopFrameWihName(f, lookfor)
		{
		   for (var i=0; i < f.frames.length; i++)
		   {
		      if (f.frames[i].name == lookfor)
			     return f.frames[i];
		   }
		   return null;
		}

		function Load2Frames(leftcontents, rightcontents)
	    {
   	       var fleft = SearchFrameWihName(top, "left");
   	       var fright= SearchFrameWihName(top, "right");
		   if (fleft!=null)
		   	  fleft.location.href = leftcontents;
		   else
		      window.location.href = "error";
   	       if (fright!=null)
		   	  fright.location.href = rightcontents;
	    }

		function LoadNewMenu(topcontents)
	    {
   	   var ftop = SearchTopFrameWihName(top, "menu");
		   if (ftop!=null)
		   	  ftop.location.href = topcontents;
		   return 0;
	    }

		function LoadNewSubMenu(submenucontents)
	    {
   	   var ftop = SearchTopFrameWihName(top, "submenu");
		   if (ftop!=null)
		   	  ftop.location.href = submenucontents;
			 return 0;
	    }

		function LoadNewSubMenu2(submenucontents)
	    {
			 return 1;
	    }

		function LoadNewCenter(centercontents)
	    {
   	       var ftop = SearchTopFrameWihName(top, "center");
		   if (ftop!=null)
		   	  ftop.location.href = centercontents;
		    return 0;
	    }
