document.write('<div id="thefeed" style="font-size:12px;font-family:sans-serif"></div>');
// Feed (Dynamic) v1.1a (01/12/2005) http://www.maxxblade.co.uk/feed
function datesort(a,b){if(a==b){return 0;}else{return (a>b)?-1:1;}}
function newfeedtype(colour,name,homeurl){ feedtype[feedtype.length]=new Array(colour,name,homeurl);return feedtype.length-1;}
function newstory(feeddate,feedlink,feedhead){splitdate=feeddate.split("/");newdate=new Date(splitdate[2],splitdate[1]-1,splitdate[0]);feed[feed.length]=new Array(newdate.getTime(),feedlink,feedhead,feedno);}
function drawNews(){document.getElementById('thefeed').innerHTML='<a href="'+feedtype[feed[hd][3]][2]+'/'+feed[hd][1]+'" target="_blank"><font color="'+feedtype[feed[hd][3]][0]+'"><b>'+feedtype[feed[hd][3]][1]+' ::</b></font> '+'<font color="#000099">'+feed[hd][2].substring(0,headlinechars)+'</font></a>';}
function addHeadline(){clearTimeout(removehead);headlinechars+=2;drawNews();if(headlinechars<feed[hd][2].length){headlinetime=setTimeout("addHeadline()",50);}else{removehead=setTimeout("removeHeadline()",3000);}}
function removeHeadline(){clearTimeout(headlinetime);headlinechars-=4;drawNews();if(headlinechars>0){removehead=setTimeout("removeHeadline()",50);}else{nextStory();}}
function nextStory(){hd=(hd<feed.length-1)?hd+1:0;addHeadline();if(hd==1){feed.sort(datesort);}}
var hd=0,feed=new Array(),feedtype=new Array(),headlinechars=0,removehead,feedno=newfeedtype('#444444',"Feed v1.1a by MaxxBlade","http://www.maxxblade.co.uk");newstory("01/01/2000","feed/index.htm","Newsfeeds are now loading, stand by...");addHeadline();
