/*
Fading Scroller- By HENGSHUI.COM.CN
For full source code, 100's more DHTML scripts, and TOS,
visit http://www.HENGSHUI.COM.CN
*/

var delay=2000 //set delay between message change (in miliseconds)
var fcontent=new Array()
begintag='<font face="arial" size=1>' //set opening tag, such as font declarations
fcontent[0]="<div align=\"center\"><strong>WHAT WE MAINLY OFFER</strong></div><br>horse mane and tail hair, animal fine hair, goat hair and cattle tail hair, also horse tail hair fabrics. <a href=\"mailto:ap123456@heinfo.net\">Send us your inquiry</a> . We assure you of our always prompt attention and response."
fcontent[1]="<div align=\"center\"><strong>HORSE TAIL HAIR!</strong></div><br>We process and provide mainly horse mane hair and horsetail hair in good quality. Horsetail hair can be divided into black, white, gray, mixed and brown according to natural colors. It can be divided into natural horsetail hair, dyed horsetail hair, washed horsetail hair according to ways of process. Horsetail hair can be divided into 11 sizes according to length."
fcontent[2]="<div align=\"center\"><strong>ANIMAL FINE HAIR!</strong></div><br>Our mainly products include dressed yellow weasel tail hair, dressed raccoon hair, badger hair, dressed civet cat tail hair, dressed cattle ear hair, squirrel tail hair, dressed deer body hair, etc. Sizes start from 25mm."
fcontent[3]="<div align=\"center\"><strong>HORSE TAIL HAIR FABRICS!</strong></div><br>Horsetail hair fabrics for clothing enjoy the characteristics of non-shrinking, good flexibility, softness and stiffness.  It is ideal quality lining cloth for making business suits and other quality clothing. Industrial horsetail hair fabrics are used in manufacturing back covers and seat covers for top grade sofa and cars, superior handbags and all sorts of cases and bags. "
closetag='</font>'

var fwidth=120 //set scroller width
var fheight=200 //set scroller height

///No need to edit below this line/////////////////

var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0

if (DOM2)
faderdelay=10000

//function to change content
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color="rgb(255,255,255)"
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag)
document.fscrollerns.document.fscrollerns_sub.document.close()
}

index++
setTimeout("changecontent()",delay+faderdelay)
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

frame=20;
hex=255  // Initial color value.

function colorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex-=12; // increase color value
document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("colorfade()",20);	
}
else{
document.getElementById("fscroller").style.color="rgb(0,0,0)";
frame=20;
hex=255
}   
}

if (ie4||DOM2)
document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+';padding:2px"></div>')

window.onload=changecontent
