	//Sniffer
	function Is() 
	{
	    var agent = navigator.userAgent.toLowerCase();
	    this.major = parseInt(navigator.appVersion);
	    this.minor = parseFloat(navigator.appVersion);
	    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
	    this.ns2 = (this.ns && (this.major == 2));
	    this.ns3 = (this.ns && (this.major == 3));
	    this.ns4b = (this.ns && (this.minor < 4.04));
	    this.ns4 = (this.ns && (this.major == 4));
	    this.ns6 = (this.ns && (this.major >= 5));
	    this.ie   = (agent.indexOf("msie") != -1);
	    this.ie3  = (this.ie && (this.major == 2));
	    this.ie4  = (this.ie && (this.major >= 4));
	    this.op = (agent.indexOf("opera") != -1);
	    this.op3 = (this.op && (this.major == 3));
	    this.op4 = (this.op && (this.major == 4));
	    this.op5 = (this.op && (this.major == 5));
	    this.op6 = (this.op && (this.major == 6));
	    this.op7 = (this.op && (this.major == 7));
	    this.win   = (agent.indexOf("win")!=-1);
	    this.mac   = (agent.indexOf("mac")!=-1);
	    this.unix  = (agent.indexOf("x11")!=-1);

		if (this.op) 
		{
			this.ie = false;
			this.ie3 = false;
			this.ie4 = false;
		}

	}
	
	
	var is = new Is();	//Instanz


	//DOM-Switch	
	if(is.ns4 ) 
	{
	    doc_start_tag = 'document["';
	    doc_end_tag = '"]';
	    sty = '';
	    htm = '.document';
	} 
	else if(is.ie4 && !(is.op)) 
	{
		doc_start_tag = 'document.all["';
		doc_end_tag = '"]';
	    sty = '.style';
	    htm = '';
   	}
   	else //	suppose itīs DOM compatible...
	{
	    doc_start_tag = 'document.getElementById("';
	    doc_end_tag = '")';
	    sty = '.style';
	    htm = '.document';
	    
	} 

	if (is.ns4) 
	{
		if(!window.saveInnerWidth) 
		{
		  	window.onresize = resizeIt;
	  		window.saveInnerWidth = window.innerWidth;
	  		window.saveInnerHeight = window.innerHeight;
		}

		function resizeIt() 
		{
	    	if (saveInnerWidth < window.innerWidth ||
	        	saveInnerWidth > window.innerWidth ||
	        	saveInnerHeight > window.innerHeight ||
	        	saveInnerHeight < window.innerHeight )
		    {
		        //location.reload();//
		        window.history.go(0);
		    }
	    }	
	}
	
	if (is.ns4)
		document.write("<script language='JavaScript' src='/js/mEngineNS.js' type='text/javascript'></script>");
	else
		document.write("<script language='JavaScript' src='/js/mEngine.js' type='text/javascript'></script>");
		

	


