//
// Copyright 2005 by maninweb.de - all rights reserved
//

//
// Globals...
//	
	
	var mlvpBrowser = null;
	
//	
// Functions...
//	
	
	function mlfhBrowser()
	{
//		Check...
		
		this.ver =  navigator.appVersion;
		this.nsx =  navigator.appName;
		this.dom =  document.getElementById                      ? 1 : 0;
		this.ie5 = (this.ver.indexOf("MSIE 5") > -1 && this.dom) ? 1 : 0;
		this.ie4 = (document.all && !this.dom)                   ? 1 : 0;
		this.ns5 = (this.dom && parseInt(this.ver) > 4)          ? 1 : 0;
		this.ok  = (this.dom || this.ie5 || this.ie4 || this.ns5);
		
//		Return...
		
		return this;
	}
	
	function mlfpGetFile(u)
   	{
   		return  u.substring(Math.max(u.lastIndexOf("/"),u.lastIndexOf("\\")) + 1,u.length);
   	}
   
	function mlfhGetPath(u, v)
   	{
   		var s = u.substring(0,Math.max(u.lastIndexOf("/"),u.lastIndexOf("\\")));
     	
     	if (v > 0)
     	{
      		s = s.substring(0,Math.max(s.lastIndexOf("/"),s.lastIndexOf("\\")) + 1);
     	}
     	
     	if (v > 1)
     	{
      		s = s.substring(0,s.length - 1);
     	}
     	
     	return s;
   	}
   
   	function mlfpSetStatus()
  	{
     	window.status = "maninweb.de - the next generation";
   	}
	
	function mlfpBaseInitialize(k)
   	{
     	mlvpBrowser     = new mlfhBrowser();
//		mlvpBrowser.nsx = k;
   	}
   