// JavaScript Document

// Cross Fading Ticker

<!--
//Cross Fading News Ticker - Copyright (
//     c) 2002, Nick Radford
//Use this script as you want... though 
//     give me credit for it!
NewsDelay=3000		//Time each story is displayed for
NewsFadeDelay=1000	//Time taken to fade from one story to the next
NewsFont='Arial'	//Ticket font family
NewsFontSize='3'	//Ticket font size
NewsTextColor=new Array("#212021","#323334","#46484A","#5E6163","#777B7F","#91969C","#ABB1B7","#C1C8D0","#D6DEE6","#E8F0F9")
NewsStory=0		//Working Variable
LastNewsStory=0		//Working Variable
NewsColor=0		//Working Variable
NewsArray=new Array(
'We actually dig the skanky chicks in the front row.',
'We do gear right.  Everything else we do is so wrong.',
'Small men, over compensating with tone.',
'No one listened to us when we were kids.',
'Desperately hoping to be modeled.',
'Modeling amps don\'t suck ... much.',
'We\'ll make a solid state amp when a monkey flies out of our butt.',
'Peace, love and a hot frickin\' tube power section.',
'What\'s so funny about peace love and great tube tone?',
'No Animals were harmed in the making of these amps ... but man, if we ever get the chance.',
'Destroying the rain forest one tube at a time.',
'If we knew you were coming, we\'d have baked a cake with a tube in it.',
'Superior technology ... in like, 1936.',
'Jim Marshall wants us dead.',
'We don\'t have any reason to lie to you, we just do it for fun.',
'In some cultures, tubes are an aphrodisiac.',
'I\'m not happy to see you ... that REALLY is a Blackheart in my pocket.',
'If you bought another tube amp you paid too much .... and got crap tone.',
'Every 2 minutes, another modeling amp is victimized. Have you no Blackheart?',
'We make being a home-wrecker look good.',
	'')


    function DisplayNews(){
    	LastNewsStory=NewsStory
    	NewsStory++; if( NewsStory>(Math.floor(NewsArray.length/2)) ){NewsStory=1}
    	FadeNews()
}


    function FadeNews(){
    	if (NewsColor<(NewsTextColor.length)/2){var NewsLayer=1}
    	else {var NewsLayer=2}
    	//Old Story


        	if (LastNewsStory>0){
        		var NewsText = '<b><center><FONT color="'+ NewsTextColor[NewsColor] +'" face="'+ NewsFont +'" size="'+ NewsFontSize +'">'+ NewsArray[(LastNewsStory-1)*2] +'</FONT></center></b>'
        			if(document.layers){ document.eval('newslayer'+(3-NewsLayer)).document.write(NewsText); document.eval('newslayer'+(3-NewsLayer)).document.close() }//NN4
        			if(document.all){ eval('newslayer'+(3-NewsLayer)).innerHTML=NewsText }//IE
        			if(!document.all && document.getElementById){ document.getElementById('newslayer'+(3-NewsLayer)).innerHTML=NewsText }//NN6
        	}
        	//New Story
        		var NewsText = '<b><center><FONT color="'+ NewsTextColor[(NewsTextColor.length)-NewsColor-1] +'" face="'+ NewsFont +'" size="'+ NewsFontSize +'">'+ NewsArray[(NewsStory-1)*2] +'</FONT></center></b>'
        			if(document.layers){ document.eval('newslayer'+NewsLayer).document.write(NewsText); document.eval('newslayer'+NewsLayer).document.close() }//NN4
        			if(document.all){ eval('newslayer'+NewsLayer).innerHTML=NewsText }//IE
        			if(!document.all && document.getElementById){ document.getElementById('newslayer'+NewsLayer).innerHTML=NewsText; }//NN6
        	NewsColor++
        	if (NewsColor>=NewsTextColor.length){ NewsColor=0; setTimeout('DisplayNews()',NewsDelay) }
        	else { setTimeout('FadeNews()',NewsFadeDelay/NewsTextColor.length) }
    }

