/********************************************************************************
This script is made by and copyrighted to Thomas Brattli at www.bratta.com
Visit for more great scripts. 
This may be used freely as long as this msg is intact!
********************************************************************************
Browsercheck:*/
ie=document.all?1:0
n=document.layers?1:0

betweendelay=5000

timeOn=5000;
timeOff=1000;

var loop=1

//What font do you want it use?
FontFace='arial,helvetiva'

//What font-size (in pixel)?
FontSize=18

fadeback=4

//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 0
colors=new Array()
colors[0]='#000000'
colors[1]='#303030'
colors[2]='#656565'
colors[3]='#9B9B9B'
colors[4]='#CFCFCF'
colors[5]='#FFFFFF'
colors[6]='0'

//This is the news you wanna have, set the link and the text. If you don't wan't it to link anywhere
//use a # as the link
news=new Array()
//Copy the three lines and change the info and numbers to get more news.


news[0]=new Array()
news[0]["text"]="Save the Date for PONCHO's Big Bash for the Arts! <br>October 2, 2010 at the Sheraton Seattle Hotel"
news[0]["link"]="http://www.poncho.org/bigbash.shtml"

news[1]=new Array()
news[1]["text"]="Arts matter. You can help. Donate now."
news[1]["link"]="https://poncho.ejoinme.org/MyPages/PONCHOCashDonation/tabid/6257/Default.aspx"







/*Don't change anything below this!
*********************************************************************************/
/*faderInit=new Function("oNews=new makeObj('divNews','divCont'); fadeNews(0)") */

function faderinit() {
if (ie) oNews=new makeObj('divNews','divCont');
if (ie) fadeNews(0);
}

function makeObj(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'
    this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')
    this.writeref=(n) ? eval(nest+'document.'+obj+'.document'):eval(obj);		
	  this.fadeIt=b_fadeIt
    this.obj = obj + "Object"; 	eval(this.obj + "=this")	
}
function b_fadeIt(text,link,font,size,speed,fn,num,c0,c1,c2,c3,c4,c5,c6){
  if(num<arguments.length && arguments[num]!=0){
		writetext='<a href="'+link+'" style="text-decoration:none; font-size:'+size+'px">'+'<font face="'+font+'" color="'+arguments[num]+'">'+text+'</font></a>'
		if(n){this.writeref.write(writetext); this.writeref.close()}
		if(ie) this.writeref.innerHTML=writetext		
		num++
    
		setTimeout(this.obj+'.fadeIt("'+text+'","'+link+'","'+font+'",'+size+','+speed+',"'+fn+'",'+num+',"'+c0+'","'+c1+'","'+c2+'","'+c3+'","'+c4+'","'+c5+'","'+c6+'")',speed)
    
	}else {
  if (fn.indexOf('Back')>0) {betweendelay = 5000} else {betweendelay = 200};
  // setTimeout('eval('+fn+')',betweendelay)
  setTimeout('eval('+fn+')',betweendelay)
  }
}
function fadeNews(num){
	if(num<news.length){
		fn = fadeback ? 'fadeBack('+num+')' : 'fadeNews('+(num+1)+')' ;
		oNews.fadeIt(news[num]["text"],news[num]["link"],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(news[num]["text"],news[num]["link"],FontFace,FontSize,100,'fadeNews('+(num+1)+')',7,colors[6],colors[5],colors[4],colors[3],colors[2],colors[1],colors[0])
	}
}

/*End of fadescript
**********************************************************************************/