//	Name:			FlexNavigation.js
//	Purpose:		To load the top center header for all the pages.
//	How is created:	Manually. This program is Static.
//	Where Used:		Globally.
//	How is Used:	Depending on the category a different image is loaded.

function displayHdr708(){document.write("<a href='http://wnyt.com'>");document.write("<img src='http://wnyt.com/wnytimages/FlexHeader/Weather 314x86.jpg' alt='' border='0'>");document.write("</a>");}
function displayHdr300(){document.write("<a href='http://wnyt.com/'>");document.write("<img src='http://wnyt.com/wnytimages/FlexHeader/jimbenitabob314x86.jpg' alt='' border='0'>");document.write("</a>");}
function displayHdr256(){document.write("<a href='http://wnyt.com/article/256/'>");document.write("<img src='http://wnyt.com/wnytimages/FlexHeader/sports314x86.jpg' alt='' border='0'>");document.write("</a>");}
function displayHdr0(){document.write("<a href='http://wnyt.com/'>");document.write("<img src='http://wnyt.com/wnytimages/FlexHeader/liveatnoon314x86.jpg' alt='' border='0'>");document.write("</a>");}
doc = document.URL;
wcat = 300;
if(doc.indexOf('/article/') >= 0) wcat = 0;
if(doc.indexOf('cat=') >= 0) wcat = doc.split('cat=')[1];//	Whether or not an id was passed.
if(wcat == 708 || doc.indexOf('/708/') >= 0) displayHdr708();
else if(wcat == 300 || doc.indexOf('/300/') >= 0) displayHdr300();
else if(wcat == 300 || doc.indexOf('/300/') >= 0) displayHdr300();
else if(wcat == 256 || doc.indexOf('/256/') >= 0) displayHdr256();
else if(wcat == 0 || doc.indexOf('/0/') >= 0) displayHdr0();
else displayHdr0();

