var fade_content=new Array()

//Add New Items To The Newslist
fade_content[0]='Air Specialists, Inc launches its new website!   <span style="font-weight:bold"><a href="news.html">Check Out</a> more great news via our News Center now...</span>';
fade_content[1]='Take advantage of our great new <span style="font-weight:bold">"Computer-based Training"   <span style="font-weight:bold"><a href="training.html#computer">providing your business with the tools and talent</a> to earn more...</span>';
fade_content[2]='Looking for the latest and greatest manufacturers and links to their website?   <span style="font-weight:bold"><a href="products.html">Look no further!</a></span>';
fade_content[3]='Want to enhance your overall skills?   <span style="font-weight:bold"><a href="news.html">Get the knowledge you need today</a>  from ASI, Inc via our Text and Computer Based Training Courses...</span>';
fade_content[4]='Air Specialists, Inc Is giving away a Black & Decker Cordless VersaPak 2 Position Pivot Driver™ Screwdriver   <span style="font-weight:bold"><a href="register.html">Are YOU ready to register for our great giveaway?</a> Do it now!</span>';

//Adjust the timer between faded items (in miliseconds)
var fade_delay=10000

//Adjust fonts/size/color of elements 
fade_begin='<font face="Tahoma,Arial,Sans-Serif" size=2>' 
fade_close='</font>'

///Do Not Edit Below This Line/////////////////
var fade_ie4=document.all&&!document.getElementById
var fade_ns4=document.layers
var fade_DOM2=document.getElementById
var fader_delay = 0
var index=0
if (fade_DOM2)
  base_delay = 2000
  
//function to change content
function changecontent()
{
  if (index>=fade_content.length)
    index=0
  if (fade_DOM2){
    document.getElementById("fscroller").style.color="rgb(255,255,255)"
  
  document.getElementById("fscroller").innerHTML=fade_begin+fade_content[index]+fade_close
  colorfade()
}
else if (fade_ie4)
  document.all.fscroller.innerHTML=fade_begin+fade_content[index]+fade_close
else if (fade_ns4)
{
  document.fscrollerns.document.fscrollerns_sub.document.write(fade_begin+fade_content[index]+fade_close)
  document.fscrollerns.document.fscrollerns_sub.document.close()
}
index++
setTimeout("changecontent()",fade_delay+fader_delay)
}
// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com
fade_frame=20;
fade_hex=255  // Initial color value.
  function colorfade() 
{
  // 20 frames fading process
  if(fade_frame>0) 
  {	
    fade_hex-=12; // increase color value
    document.getElementById("fscroller").style.color="rgb("+fade_hex+","+fade_hex+","+fade_hex+")"; // Set color value.
    fade_frame--;
    setTimeout("colorfade()",20);
  }
  else
  {
    document.getElementById("fscroller").style.color="rgb(0,0,0)";
    fade_frame=20;
    fade_hex=255
  }
}

if (fade_ie4||fade_DOM2)
{
  document.write('<div id="fscroller" style="width:150;height:150;padding:2px"></div>');
}
else
{
  // pick a random array item
  document.write('<ilayer id="fscrollerns" width=150; height=150;><layer id="fscrollerns_sub" width=150; height=120; left=0 top=0></layer></ilayer>');
}

window.onload=changecontent

