document.write('<div id="navrow">')
	document.write('<div id="logo"><a href="index.php"><img src="img/logo.gif" alt="" /></a></div>')
	document.write('<div id="nav">')

if (document.title.search(/Home/) != -1)
document.write('<a href="index.php"><img src="img/nav_home_on.gif" id="navhome" alt="Home" /></a>')
else
document.write('<a href="index.php"><img src="img/nav_home_off.gif" id="navhome" alt="Home" '
+ 'onmouseover="this.src=\'img/nav_home_on.gif\'; return true" '
+ 'onmouseout="this.src=\'img/nav_home_off.gif\'; return true" '
+ '/></a>')

if (document.title.search(/Programmes/) != -1)
document.write('<a href="prog.php"><img src="img/nav_prog_on.gif" id="navprog" alt="Programmes" /></a>')
else
document.write('<a href="prog.php"><img src="img/nav_prog_off.gif" id="navprog" alt="Programmes" '
+ 'onmouseover="this.src=\'img/nav_prog_on.gif\'; return true" '
+ 'onmouseout="this.src=\'img/nav_prog_off.gif\'; return true" '
+ '/></a>')

if (document.title.search(/Calendar of Events/) != -1)
document.write('<a href="events.php"><img src="img/nav_events_on.gif" id="navevents" alt="Calendar of Events" /></a>')
else
document.write('<a href="events.php"><img src="img/nav_events_off.gif" id="navevents" alt="Calendar of Events" '
+ 'onmouseover="this.src=\'img/nav_events_on.gif\'; return true" '
+ 'onmouseout="this.src=\'img/nav_events_off.gif\'; return true" '
+ '/></a>')

if (document.title.search(/Event Archives/) != -1)
document.write('<a href="archives.php"><img src="img/nav_archives_on.gif" id="navarchives" alt="Event Archives" /></a>')
else
document.write('<a href="archives.php"><img src="img/nav_archives_off.gif" id="navarchives" alt="Event Archives" '
+ 'onmouseover="this.src=\'img/nav_archives_on.gif\'; return true" '
+ 'onmouseout="this.src=\'img/nav_archives_off.gif\'; return true" '
+ '/></a>')

if (document.title.search(/Articles & News/) != -1)
document.write('<a href="news.php"><img src="img/nav_news_on.gif" id="navnews" alt="Articles & News" /></a>')
else
document.write('<a href="news.php"><img src="img/nav_news_off.gif" id="navnews" alt="Articles & News" '
+ 'onmouseover="this.src=\'img/nav_news_on.gif\'; return true" '
+ 'onmouseout="this.src=\'img/nav_news_off.gif\'; return true" '
+ '/></a>')

if (document.title.search(/Photo Gallery/) != -1)
document.write('<a href="gallery.php"><img src="img/nav_gallery_on.gif" id="navgallery" alt="Photo Gallery" /></a>')
else
document.write('<a href="gallery.php"><img src="img/nav_gallery_off.gif" id="navgallery" alt="Photo Gallery" '
+ 'onmouseover="this.src=\'img/nav_gallery_on.gif\'; return true" '
+ 'onmouseout="this.src=\'img/nav_gallery_off.gif\'; return true" '
+ '/></a>')

if (document.title.search(/About Us/) != -1)
document.write('<a href="about.php"><img src="img/nav_about_on.gif" id="navabout" alt="About Us" /></a>')
else
document.write('<a href="about.php"><img src="img/nav_about_off.gif" id="navabout" alt="About Us" '
+ 'onmouseover="this.src=\'img/nav_about_on.gif\'; return true" '
+ 'onmouseout="this.src=\'img/nav_about_off.gif\'; return true" '
+ '/></a>')

if (document.title.search(/Contact Us/) != -1)
document.write('<a href="contact.php"><img src="img/nav_contact_on.gif" id="navcontact" alt="Contact Us" /></a>')
else
document.write('<a href="contact.php"><img src="img/nav_contact_off.gif" id="navcontact" alt="Contact Us" '
+ 'onmouseover="this.src=\'img/nav_contact_on.gif\'; return true" '
+ 'onmouseout="this.src=\'img/nav_contact_off.gif\'; return true" '
+ '/></a>')

	document.write('</div>')
document.write('</div>')
