[21~/*
Fading Scroller- By DynamicDrive.com
For full source code, 100's more DHTML scripts, and TOS,
visit http://www.dynamicdrive.com
*/

var delay=3000 //set delay between message change (in miliseconds)
var fcontent=new Array()
var fcontenttilbud=new Array()
begintag="<table width='163px' border='0' cellspacing='0' cellpadding='0'><tr valign='top'><td width='8px' align='left' style='border-bottom : 1px solid #ffffff;'><img src='images/kantleftsmallF.gif' width='8' height='8' alt='' border='0'><img src='images/kantfirkant.gif' width='8' height='8' alt='' border='0'></td><td width='100%' align='center' class='faneHead' height='15px' bgcolor='#31659C' colspan='2' style='padding-top:1px'><strong>Nyheder</strong></td></tr><tr valign='top' bgcolor='c6DFFF' class='center1'><td class='center1' style='padding-left:10px;padding-right:3px;border-bottom : 1px solid #ffffff;' colspan='3'><div class='center1'>"
fcontent[1]="Gadeinfo.dk indbyder til gratis møde for alle virksomheder...<br><a class='semere' href='nyhed1.php'>Læs mere her &raquo;&raquo;</a><br><br>"
fcontent[0]="Gratis at være tilmeldt! Kun gebyr for butikker på 349,- pr. år...<br><a class='semere' href='nyhed2.php'>Læs mere her &raquo;&raquo;</a><br><br>"
closetag="</td></tr></table><br>"
fcontenttilbud[0]="Din egen private hjemmeside - kun 2495,- med CMS...<br><a class='semere' href='t1.php'>Læs mere her &raquo;&raquo;</a><br><br>"
fcontenttilbud[1]="Hjemmesider fra 3000,- til virksomheder med mange udvidelser...<br><a class='semere' href='t2.php'>Læs mere her &raquo;&raquo;</a><br><br>"
middletag="</td></tr></table><br><table width='163px' border='0' cellspacing='0' cellpadding='0'><tr valign='top'>    <td width='8px' align='left' style='border-bottom : 1px solid #ffffff;'>	<img src='images/kantleftsmallF.gif' width='8' height='8' alt='' border='0'><img src='images/kantfirkant.gif' width='8' height='8' alt='' border='0'></td><td width='100%' align='center' class='faneHead' height='15px' bgcolor='#31659C' colspan='2' style='padding-top:1px'><strong>Tilbud</strong></td></tr><tr valign='top' bgcolor='c6DFFF' class='center1'><td class='center1' style='padding-left:10px;padding-right:3px;border-bottom : 1px solid #ffffff;' colspan='3'>"
var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0

if (DOM2)
faderdelay=3000

//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]+middletag+fcontenttilbud[index]+closetag
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+middletag+fcontenttilbud[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+middletag+fcontenttilbud[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
}   
}

window.onload=changecontent
