/*
FoolWire 1.2 - Channel Renderer
javascript to write headlines from www.fool.com
copyright 1999 The Motley Fool
Usage of this file constitutes agreement with The Motley Fool terms of use found at:
http://www.fool.com/about/headlines/headlines.htm
Please direct questions to webbizdev@fool.com
Written by Mark Kennedy

This renderer should work with 3.0 browsers and above
*/

// Channel Rendering Function
function RenderChannel(provider) {
	if(channels[provider]) {
		document.write(channel_begin);
		if(window.link_target) {		
			if(parseInt(navigator.appVersion) > 3)	
			document.write(title_begin + channels[provider].title + title_end);
			for(url in channels[provider].items) {
				document.write(item_begin + '<a target="' + link_target + '" href="' + url + '">' + channels[provider].items[url] + '</a>' + item_end);
			}		
		} else {
		
			if(parseInt(navigator.appVersion) > 3) 	
			document.write(title_begin + channels[provider].title + title_end);
			for(url in channels[provider].items) {
				document.write(item_begin + '<a href="' + url + '">' + channels[provider].items[url] + '</a>' + item_end);
			}
		}
		

			if(window.show_logos) { 
			document.write(logo_begin + '<a target="' + link_target + '" href="' + channels[provider].logo.link + '"><img ' + logo_attributes + ' alt="' + channels[provider].logo.title + '" src="' + channels[provider].logo.src + '"></a>'+ logo_end) }

		

		document.write(channel_end);
	}
}
RenderChannel("The Motley Fool");