function TxtScroller(){

var url = "/Style Library/TekstScroller.swf?xml=/_layouts/cap/XmlInfo.xml?";

htmlcode = '<object id="myIdButtom" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1004" height="16">';
htmlcode += '<param name="movie" value="' + url + rand(99999999999999999999) + '" width="1004" height="16" />';
htmlcode += '<!--[if !IE]>-->';
htmlcode += '<object type="application/x-shockwave-flash" data="' + url + rand(99999999999999999999) + '" width="1004" height="16">';
htmlcode += '<!--<![endif]-->';
htmlcode += '<div>';
htmlcode += '<h1>Alternative content</h1>';
htmlcode += '<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>';
htmlcode += '</div>';
htmlcode += '<!--[if !IE]>-->';
htmlcode += '</object>';
htmlcode += '<!--<![endif]-->';
htmlcode += '</object>';
document.write(htmlcode);
}

function rand(n){
                             return (Math.floor(Math.random() * n + 1));
}

function TxtScrollerNew(){

var url = "/Style library/BilledTicker.swf?";
var url2 ="&Directory=/Billedtaeller/&FirstNames=Pic&Type=png&Time=10&LinkURL=/sponsorer/Sider/Samarbejdspartnere.aspx&amountURL=/_LAYOUTS/CAP/antalbilleder.xml?";

htmlcode = '<object id="myIdRight" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="160" height="383">';
htmlcode += '<param name="movie" value="' + url + url2 + randNew(99999999999999999999) + '" width="160" height="383" />';
htmlcode += '<!--[if !IE]>-->';
htmlcode += '<object type="application/x-shockwave-flash" data="' + url + url2 + randNew(99999999999999999999) + '" width="160" height="383">';
htmlcode += '<!--<![endif]-->';
htmlcode += '<div>';
htmlcode += '<h1>Alternative content</h1>';
htmlcode += '<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>';
htmlcode += '</div>';
htmlcode += '<!--[if !IE]>-->';
htmlcode += '</object>';
htmlcode += '<!--<![endif]-->';
htmlcode += '</object>';
document.write(htmlcode);
}

function randNew(n){
	return (Math.floor(Math.random() * n + 1));
}

