
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",450)
}

function bgcolorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex=(fadescheme==0)? hex-12 : hex+12 // increase or decrease color value depd on fadescheme
//tickerobject.style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;

setTimeout("bgcolorfade()",20);	
}
else{
tickerobject.style.backgroundColor=endcolor;
frame=20;
hex=(fadescheme==0)? 255 : 0
}   
}
hex=35;
function fadetext(){ 
  if(hex<255) { //If color is not white yet
    hex+=5; // increase color darkness
    document.getElementById("subtickertape").style.color=
                      "rgb("+hex+","+hex+","+hex+")";
    setTimeout("fadetext()",20); 
  }
  else
    hex=35 //reset hex value
}


					  
function updatecontent(){ 

if (ie||ns6)
fadetext()
if (ns4){
tickerobject.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>')
tickerobject.subtickertape.document.close()
}
else 
tickerobject.innerHTML=news[i]

if (i<news.length-1)
i++
else
i=0
setTimeout("updatecontent()",speed)
}

/*for testimonials*/
function update_testimonials(){ 
if (ie||ns6)
fade_testimonials()
if (ns4){

quoteobject.quote.document.write('<span class="subquotefont">'+testimonial[j]+'</span>')
quoteobject.quote.document.close()
}
else 
quoteobject.innerHTML=testimonial[j]

if (j<testimonial.length-1){
j++;}
else
j=0;
setTimeout("update_testimonials()",speed_t)
}
hex_t=255;
function fade_testimonials(){ 
  if(hex_t>0) { //If color is not white yet
    hex_t-=5; // increase color darkness
    document.getElementById("subquote").style.color=
                      "rgb("+hex_t+","+hex_t+","+hex_t+")";
    setTimeout("fade_testimonials()",20); 
  }
  else
    hex_t=255 //reset hex value
}
/*End For testimonials*/
