
	function Browser() {
		var b=navigator.appName;
		if (b=="Netscape") this.b="ns";
		else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
		else if (b=="Microsoft Internet Explorer") this.b="ie";
		if (!b) alert('Unidentified browser./nThis browser is not supported,');
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	this.ns6=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.ie6=(this.version.indexOf('MSIE 6')>0);
	this.opera=(this.b=="opera");
	this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
	this.def=(this.ie||this.dom); // most used browsers, for faster if loops
	var ua=navigator.userAgent.toLowerCase();
	if (ua.indexOf("win")>-1) this.platform="win32";
	else if (ua.indexOf("mac")>-1) this.platform="mac";
	else this.platform="other";
}
is = new Browser();
		
		
		
		function preloader(imgArray) {
			var me=new Array();
			for(i=0;i<=imgArray.length-1;i++) {
				me[i]=new Image();
				me[i].src='i/mn/'+imgArray[i];
			}
		}
		
		function mout(I) {
			if (I!=2) {
			document.images['m'+I].src='i/mn/menu'+I+'_out.gif';
			} else {
			document.images['m'+I].src='i/mn/menu'+I+'_act.gif';
			}
		}
		
		function movr(I) {
			
			document.images['m'+I].src='i/mn/menu'+I+'_ovr.gif';
		}
		imgA='m1_ovr.jpg,m2_ovr.jpg,m3_ovr.jpg,m4_ovr.jpg,m5_ovr.jpg';
		preloader(imgA.split(','));
		imgA='m1_out.jpg,m2_act.jpg,m3_out.jpg,m4_out.jpg,m5_out.jpg';
		preloader(imgA.split(','));
	
		
		
		function changeBGColor(obj,col) {
			obj.style.backgroundColor=col;
		}
		scrollrate=0;
		function scrollup() {
			scrollStart=document.body.scrollTop;
			scrollrate=parseInt(document.body.scrollTop)/5;
			if (parseInt(document.body.scrollTop)>scrollrate) {
				window.scroll(0,parseInt(document.body.scrollTop)-scrollrate);
				scrolltimeout=setTimeout('scrollup()',10);
			} else {
				window.scroll(0,0);
				scrollrate=0;
			}
		}
		
		/*function preload() {
			for (i=1;i<=5;i++) {
				im1=new Image();
				im2=new Image();
				im3=new Image();
			
				im1.src="/i/m"+i+"_act.gif";
				im2.src="/i/m"+i+"_out.gif";
				im2.src="/i/m"+i+"_ovr.gif";
			
			}
		}*/
		
/* Object Definitions... */

function MagiCScroller(nm) {
		this.NewsArray=new Array();
		this.name=nm;
		this.Speed=10;
		this.Pause=3;
		this.Width=15;
		this.Height=15;
		this.pos='absolute';
		this.l='0px';
		this.t='0px';
		this.Initiated=false;
		this.newsIndex=0;
		this.stX=0;
	}
	
	MagiCScroller.prototype.run=function() {
		
		
		slideLayer(this.name+'Sub1',this.stX,this.name+'Main');
		slideLayer(this.name+'Sub2',this.stX+this.Height,this.name+'Main');
		
		this.stX+=-this.Speed;
		
		if (this.stX<-this.Height) {
			
			this.stX=0;
			this.fN++;
			if (this.fN>this.nL) {
				this.fN=0;
			}
			
			this.sN=this.fN+1;
		
		
			if (this.sN>this.nL) {
				this.sN=0;
			}
			
			writeLayer(this.name+'Sub1',this.name+'Main',this.NewsArray[this.fN]);
			writeLayer(this.name+'Sub2',this.name+'Main',this.NewsArray[this.sN]);
			
			slideLayer(this.name+'Sub1',this.stX,this.name+'Main');
		slideLayer(this.name+'Sub2',this.stX+this.Height,this.name+'Main');
			setTimeout(this.name+'.run()',this.Pause*1000);
		} else {
			setTimeout(this.name+'.run()',100);
		}
		
		
	}
	
	
	
	
	MagiCScroller.prototype.init=function() {
		//style'ý yaz...
		t='';
		t+='<style>\n'
		
		t+='#'+this.name+'Main { position:'+this.pos+'; left:'+this.l+'; top:'+this.t+'; overflow:hidden; width:'+this.Width+'px; height:'+this.Height+'px;}\n';
		t+='#'+this.name+'Sub1 { position:absolute; left:0px; top:0px; width:'+this.Width+'px; height:'+this.Height+'px;}\n';
		t+='#'+this.name+'Sub2 { position:absolute; left:0px; top:0px; width:'+this.Width+'px; height:'+this.Height+'px;}\n';
		
		t+='</style>\n';
		
		//layer'larý yaz...
		
		
		document.write(t);
		t='';
		
		
		this.nL=(this.NewsArray).length-1;
		this.newsIndex=0;
		this.fN=0;
		this.sN=this.fN+1;
		if (this.sN>this.nL) {
			this.sN=0;
		}
		
		t+='<div id="'+this.name+'Main">';
		t+='<div id="'+this.name+'Sub1">'+this.NewsArray[this.fN]+'</div>';
		t+='<div id="'+this.name+'Sub2">'+this.NewsArray[this.sN]+'</div>';
		t+='</div>';
		
		document.write(t);
		
		slideLayer(this.name+'Sub1',this.stX,this.name+'Main');
		slideLayer(this.name+'Sub2',this.stX+this.Height,this.name+'Main');
		
		
		setTimeout(this.name+'.run()',this.Pause*1000);
		
	}
	
	//dom utilities
	
	function slideLayer(lyr,t,pr) {
		
		if (is.ie) {
			
			document.all[lyr].style.top=t;
		} else if (is.ns6) {
			document.getElementById(lyr).style.top=t+'px';
		} else if (is.ns4) {
			document.layers[pr].document.layers[lyr].top=t;
		}
	}
	
	function writeLayer(lyr,pr,cont) {
		if (is.ie) {
			document.all[lyr].innerHTML=cont;
		} else if (is.ns6) {
			document.getElementById(lyr).innerHTML=cont;
		} else if (is.ns4) {
			
			document.layers[pr].document.layers[lyr].document.open();
			document.layers[pr].document.layers[lyr].document.write(cont);
			document.layers[pr].document.layers[lyr].document.close();
		}
	}
	
	function sagalt() {
		
		if (is.ns6) {
			if (parseInt(document.body.offsetHeight)>=parseInt(window.innerHeight))
			
				{	
					
					document.getElementById('hometop').style.top=document.body.offsetHeight;
		
				} else {
					
					document.getElementById('hometop').style.top=window.innerHeight;
					
				}
		} else {
			
			//document.body.onload=sagalt2;
			
		}
		document.getElementById('hometop').style.left='580px';
		document.getElementById('hometop').style.visibility='visible';}
		
	function sagalt2() {
		if (document.body.scrollHeight>document.body.clientHeight) {
			document.getElementById('hometop').style.top=document.body.scrollHeight-30;
		} else {
			document.getElementById('hometop').style.top=document.body.clientHeight-30;
		}
		
	}
	
	function openPopUp(src,w,h) {
			KopWin = window.open(src,"ben","toolbar=0,width=" + w + ",height=" + h + ",location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=0,copyhistory=1");
			KopWin.focus();
		}
	function openPopUp2(src,w,h) {
			KopWin = window.open(src,"ben","toolbar=0,width=" + w + ",height=" + h + ",location=0,directories=0,status=0,scrollbars=1,menubar=0,resizable=0,copyhistory=1");
			KopWin.focus();
		}