/*Browsercheck:*/ie=document.all?1:0 // Internet Explorern=document.layers?1:0 // Netscape 4.x//declare globals to build object referencevar whichDom = "", styleObj = "", howDom ="", writeObj =""var isNav4, isNav6, isIEvar isBrand = navigator.appNamevar agt = navigator.userAgent.toLowerCase()var navVer = parseInt(navigator.appVersion)isNav4 = (isBrand == "Netscape" && navVer < 5) ? true : falseisNav6 = (isBrand == "Netscape" && navVer >= 5) ? true : falseisNav46 = ((isBrand == "Netscape") && (parseFloat(navigator.appVersion) >= parseFloat(4.6)) && (parseFloat(navigator.appVersion) < parseFloat(4.7))) ? true : falseisNav47 = ((isBrand == "Netscape") && (parseFloat(navigator.appVersion) >= parseFloat(4.7))) ? true : falseisIE = ((agt.indexOf("msie") != -1) && (parseInt(navVer) >= 4)) ? true : false//construct object referencevar doc = documentvar layers = doc.layersvar all = doc.allif (layers)  {  whichDom = '["'  styleObj = '"]'} else if (all)  {  whichDom = ".all."  styleObj = ".style"} else {  whichDom = '.getElementById("'  styleObj = '").style'}if (layers)  {  howDom = '.'  writeObj = '.'} else if (all)  {  howDom = ".all."  writeObj = ""} else {  howDom = '.getElementById("'  writeObj = '")'}//Css style object referencefunction setObject(obj) {var theObj	if (typeof obj == "string")		theObj = eval("document" + whichDom + obj + styleObj)	else		theObj = obj		return theObj}//Content object referencefunction objectForWriting(obj,nest) {var theObj	if (typeof obj == "string")		if (n)//Navigator 4.x			theObj = eval(nest + "document" + howDom + obj + writeObj + "document");		else 			theObj = eval("document" + howDom + obj + writeObj);	else {		theObj = obj		}		return theObj}/********************************************************************************Here are the variables you must set: (this is the only part you have to change)Remember that, if you wan't different size for the layers, different clip or anythingchange that in the stylesheet.*///The number of news linesvar lines = 2;//The current first news var currentNews=0;//The delay between the fades (in milliseconds) smaller value gives less time:betweendelay=3000//Do you wan't it to start over on the first one when it's gone trought all the news?//(set to 0 if not)var loop=1//What font do you wan't it use?FontFace='verdana,arial,helvetiva'//What font-size (in pixel)?FontSize=11//Do you wan't it to fade out aswell? 1 for on, 0 for offfadeback=0//Set the colors, first color is same as background, last color is the color it stops at://You can have upto 7 colors, set the ones you wan't use to 0colors=new Array()colors[0]='#FFFFFF'colors[1]='#EEEEEE'colors[2]='#CCCCCC'colors[3]='#999999'colors[4]='#666666'colors[5]='#333333'colors[6]='#000000'/*Dont change anything below this!*********************************************************************************/fadeInit=new Function("oNews=new makeObj('divNews1','divCont'); fadeNews(0)");function makeObj(obj,nest){    nest=(!nest) ? '':'document.'+nest+'.'    this.css=setObject('divNews1');	this.writeref=objectForWriting(obj, nest);	this.fadeIt=b_fadeIt    this.obj = obj + "Object"; 	eval(this.obj + "=this")	}function b_fadeIt(font,size,speed,fn,num,c0,c1,c2,c3,c4,c5,c6){	if(num<arguments.length && arguments[num]!=0){	//writetext='<hr size="1" width="100%">';	writetext='';		for (var i=0; i<lines; i++) { //write a newsline		    type=news[(currentNews+i)%newsCounter]["type"];			time=news[(currentNews+i)%newsCounter]["time"];			if (news[(currentNews+i)%newsCounter]["text"].length>55)				text=news[(currentNews+i)%newsCounter]["text"].slice(0,55)+"...";			else				text=news[(currentNews+i)%newsCounter]["text"];			link=news[(currentNews+i)%newsCounter]["link"];			target=news[(currentNews+i)%newsCounter]["target"];			writetext+='<a href="'+link+'"'			+' target="'+target+'"'			+' font-size:'+size+'px" class="body"><img src="../../vai.gif" width="7" height="7" border=0 hspace="3">'			+'<font face="'+font+'" color="'+arguments[num]+'">'			//+'<img src="'+type+'.gif"> '			+'<font color="#000000"><b>'+time+'</a> </b></font>'			+'<a href="'+link+'"'			+' target="'+target+'"'			+' font-size:'+size+'px" class="body">'			+'<font face="'+font+'" color="'+arguments[num]+'">'			+text			//+' [<b>'+type+'</b>]'			+'</font></a><br>';			//if (i+1<lines)			writetext+='<hr size="1" width="100%" color="cccccc">';	    }		if(n){this.writeref.write(writetext); this.writeref.close()}		if (isNav6) this.writeref.innerHTML=writetext;		if(ie) this.writeref.innerHTML=writetext				num++		setTimeout(this.obj+'.fadeIt("'+font+'",'+size+','+speed+',"'		+fn+'",'+num+',"'+c0+'","'+c1+'","'+c2+'","'+c3+'","'+c4+'","'+c5+'","'+c6+'")',speed)	}else setTimeout('eval('+fn+')',betweendelay)}function fadeNews(num){	if (top.news==null) {		alert("Warning: news file not loaded! Reload the page.");		return;	}    currentNews=num;	if(num<news.length){		fn=fadeback?'fadeBack('+num+')':'fadeNews('+(num+1)+')';		oNews.fadeIt(FontFace,FontSize,100,fn,7,		colors[0],colors[1],colors[2],colors[3],colors[4],colors[5],colors[6])	}else if(loop)fadeNews(0)}function fadeBack(num){	if(num>=0){		oNews.fadeIt(FontFace,FontSize,100,'fadeNews('+(num+1)		+')',7,colors[6],colors[5],colors[4],colors[3],colors[2],colors[1],colors[0])	}}/*End of fadescript**********************************************************************************/
