function FORUMtopnavBar() {
         
document.write('<TABLE cols=4 WIDTH=800 BORDER=0 cellpadding=0 cellspacing=0>');
document.write('<col width=200><col width=200><col width=200><col width=200>');
document.write('<tr><td colspan="4" align=center><img src="http://www.downtheroadpub.ca/images/newheader.gif"></td></tr>');

document.write('<tr height=45>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/index.html"><img src="http://www.downtheroadpub.ca/images/btn_home_c.gif"></td>');
else
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/index.html"><img src="http://www.downtheroadpub.ca/images/btn_home.gif"></td>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Menu")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/menu.html"><img src="http://www.downtheroadpub.ca/images/btn_menu_c.gif"></td>');
else
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/menu.html"><img src="http://www.downtheroadpub.ca/images/btn_menu.gif"></td>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Pictures")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/pics.html"><img src="http://www.downtheroadpub.ca/images/btn_pics_c.gif"></td>');
else
document.write('<td align=center><a href="http://www.downtheroadpub.ca/pics.html"><img src="http://www.downtheroadpub.ca/images/btn_pics.gif"></td>');

if (document.title.substring(0,21) == "www.downtheroadpub.ca")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/forum/index.php"><img src="http://www.downtheroadpub.ca/images/btn_forum_c.gif"></td>');
else
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/forum/index.php"><img src="http://www.downtheroadpub.ca/images/btn_forum.gif"></td>');
	
document.write('</tr></table>');

}

function NEWtopnavBar() {
         
document.write('<TABLE cols=2 WIDTH=840 height=250 BORDER=0 cellpadding=0 cellspacing=0>');
document.write('<col width=560><col width=280><tr><td align=center valign=center rowspan=4><img src="images/newheader.gif" width=560 height=250></td>');
if (document.title == "Barrie Ontario's Down The Road Irish Pub")
	document.write('<td class=menunav><img src="images/btn_home_c.gif" width=200 height=39></td></tr>');
else
	document.write('<td class=menunav><img src="images/btn_home.gif" width=140 height=39></td></tr>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Menu")
	document.write('<tr><td class=menunav><img src="images/btn_menu_c.gif" width=200 height=39></td></tr>');
else
	document.write('<tr><td class=menunav><img src="images/btn_menu.gif" width=140 height=39></td></tr>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Crew")
	document.write('<tr><td class=menunav><img src="images/btn_crew_c.gif" width=200 height=39></td></tr>');
else
	document.write('<tr><td class=menunav><img src="images/btn_crew.gif" width=140 height=39></td></tr>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Pictures")
	document.write('<td class=menunav><img src="images/btn_pics_c.gif" width=200 height=39></td></tr>');	
else
	document.write('<td class=menunav><img src="images/btn_pics.gif" width=140 height=39></td></tr>');	

document.write('</table>');

}         

function countdown() {

<!-- Begin
var date = new Date("March 17, 2008");
var description = "Only";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write("<img src='images/smirish_shamrock.gif' width=32 height=32><img src='images/smirish_shamrock.gif' width=32 height=32>")
document.write("<img src='images/smirish_shamrock.gif' width=32 height=32><img src='images/smirish_shamrock.gif' width=32 height=32>")
document.write("<img src='images/smirish_shamrock.gif' width=32 height=32><h5>ONLY ")
document.write(days+1);
document.write(" PRACTICE DAYS LEFT</h5>");
// End -->

}

function sidenavbar() {
document.write('<div class="leftnav">');
if (document.title == "Barrie Ontario's Down The Road Irish Pub")
	document.write('<a href="index_new.html"><img src="images/btn_home2_c.gif"></a><br>');
else
	document.write('<a href="index_new.html"><img src="images/btn_home2.gif"></a><br>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Menu")
	document.write('<a href="menu_new.html"><img src="images/btn_menu2_c.gif"></a><br>');
else
	document.write('<a href="menu_new.html"><img src="images/btn_menu2.gif"></a><br>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Crew")
	document.write('<a href="crew_new.html"><img src="images/btn_crew2_c.gif"></a><br>');
else
	document.write('<a href="crew_new.html"><img src="images/btn_crew2.gif"></a><br>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Pictures")
	document.write('<a href="pics_new.html"><img src="images/btn_pics2_c.gif"></a><br>');
else
	document.write('<a href="pics_new.html"><img src="images/btn_pics2.gif"></a><br>');
document.write('</div>');
}

function topnavBar() {
         
document.write('<TABLE cols=1 WIDTH=560 height=250 BORDER=0 cellpadding=0 cellspacing=0>');
document.write('<tr><td align=center><img src="images/newheader.gif"></td></tr>');
document.write('</table>');

}         

function xmastopnavBar() {
         
document.write('<div id="xmaslights"><img src="images/ChristmasLightBar.gif"></div>');
document.write('<TABLE cols=4 WIDTH=800 BORDER=0 cellpadding=0 cellspacing=0>');
document.write('<col width=200><col width=200><col width=200><col width=200>');
document.write('<tr><td colspan="4" align=center><img src="images/xmasheader.gif"></td></tr>');

document.write('<tr height=45>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/index.html"><img src="images/btn_home_c.gif"></td>');
else
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/index.html"><img src="images/btn_home.gif"></td>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Menu")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/menu.html"><img src="images/btn_menu_c.gif"></td>');
else
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/menu.html"><img src="images/btn_menu.gif"></td>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Crew")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/crew.html"><img src="images/btn_crew_c.gif"></td>');
else
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/crew.html"><img src="images/btn_crew.gif"></td>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Pictures")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/pics.html"><img src="images/btn_pics_c.gif"></td>');
else
document.write('<td align=center><a href="http://www.downtheroadpub.ca/pics.html"><img src="images/btn_pics.gif"></td>');

if (document.title != "Barrie Ontario's Down The Road Irish Pub")
	document.write('</tr><tr><td colspan="4" align=right><embed src="dtr2.mp3" width="50" height="30" autostart="TRUE"></td>');
	
document.write('</tr><tr><td colspan="4" align=center><img src="images/cel_frame_spacer.png" width=800 height=53></td>');

//document.write('<table WIDTH=750>');

//document.write('<tr><td colspan="5" align=right>');
//ShowDate();
document.write('</tr></table>');

}

function realtopnavBar() {
         
document.write('<TABLE cols=4 WIDTH=800 BORDER=0 cellpadding=0 cellspacing=0>');
document.write('<col width=200><col width=200><col width=200><col width=200>');
document.write('<tr><td colspan="4" align=center><img src="images/newheader.gif"></td></tr>');

document.write('<tr height=45>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/index.html"><img src="images/btn_home_c.gif"></td>');
else
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/index.html"><img src="images/btn_home.gif"></td>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Menu")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/menu.html"><img src="images/btn_menu_c.gif"></td>');
else
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/menu.html"><img src="images/btn_menu.gif"></td>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Crew")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/crew.html"><img src="images/btn_crew_c.gif"></td>');
else
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/crew.html"><img src="images/btn_crew.gif"></td>');

if (document.title == "Barrie Ontario's Down The Road Irish Pub Pictures")
	document.write('<td align=center><a href="http://www.downtheroadpub.ca/pics.html"><img src="images/btn_pics_c.gif"></td>');
else
document.write('<td align=center><a href="http://www.downtheroadpub.ca/pics.html"><img src="images/btn_pics.gif"></td>');

if (document.title != "Barrie Ontario's Down The Road Irish Pub")
	document.write('</tr><tr><td colspan="4" align=right><embed src="dtr2.mp3" width="50" height="30" autostart="TRUE"></td>');
	
document.write('</tr><tr><td colspan="4" align=center><img src="images/cel_frame_spacer.png" width=800 height=53></td>');

//document.write('<table WIDTH=750>');

//document.write('<tr><td colspan="5" align=right>');
//ShowDate();
document.write('</tr></table>');

}         

function changeImage(filename)
{
	document.mainimage.src = filename;
}


function random_quote() {

var quote = new Array(10);
quote[0] = "A man's errors are his portals of discovery.";
quote[1] = "The actions of men are the best interpreters of their thoughts.";
quote[2] = "When I die Dublin will be written in my heart.";
quote[3] = "Whatever else is unsure in this stinking dunghill of a world a mother's love is not.";
quote[4] = "I will not serve that in which I no longer believe whether it call itself my home, my fatherland or my church: and I will try to express myself in some mode of life or art as freely as I can and as wholly as I can, using for my defence the only arms I allow myself to use, silence, exile, and cunning.";
quote[5] = "May you have the hindsight to know where you've been, the foresight to know where you are going, and the insight to know when you have gone too far";
quote[6] = "May you live as long as you want, and never want as long as you live.";
quote[7] = "A good laugh and a long sleep are the best cures in the doctor's book.";
quote[8] = "Trouble hates nothing as much as a smile.";
quote[9] = "A cabin with plenty of food is better than a hungry castle.";
quote[10] = "There is risk and truth to yourselves and the world before you.";
quote[11] = "Even if the hopes you started out with are dashed, hope has to be maintained.";
quote[12] = "Came but for friendship, and took away love.";
quote[13] = "Humility, that low, sweet root, from which all heavenly virtues shoot.";
quote[14] = "No, there's nothing half so sweet in life as love's young dream.";
quote[15] = "Sleep is an excellent way of listening to an opera.";

var author = new Array(10);
author[0] = "- James Joyce";
author[1] = "- James Joyce";
author[2] = "- James Joyce";
author[3] = "- James Joyce";
author[4] = "- James Joyce";
author[5] = "- Irish Blessing";
author[6] = "- Irish Proverb";
author[7] = "- Irish Proverb";
author[8] = "- Irish Proverb";
author[9] = "- Irish Proverb";
author[10] = "- Seamus Heaney";
author[11] = "- Seamus Heaney";
author[12] = "- Thomas Moore";
author[13] = "- Thomas Moore";
author[14] = "- Thomas Moore";
author[15] = "- James Stephens";


now=new Date();
num=(now.getSeconds())%10;
document.write('<center><table  border=0 cellpadding=0 width=800 cols="1">');
document.write('<tr><td><img src="http://www.downtheroadpub.ca/images/cel_frame_spacer.png" width=800 height=53></td></tr>');
document.write('<tr><td width=700 align=center><h4>' + quote[num] + '</h4></td></tr>');
document.write('<tr><td align=center><h4>' + author[num] + '</h4');
document.write('</td></tr></table></center>');
}



/*****

Image Cross Fade Redux
Version 1.0
Last revision: 02.15.2006
steve@slayeroffice.com

Please leave this notice intact. 

Rewrite of old code found here: http://slayeroffice.com/code/imageCrossFade/index.html


*****/
//window.addEventListener?window.addEventListener("load",so_init,false):window.attachEvent("onload",so_init);

//var d=document, imgs = new Array(), zInterval = null, current=0, pause=false;


function so_init() {
	if(!d.getElementById || !d.createElement)return;

	// DON'T FORGET TO GRAB THIS FILE AND PLACE IT ON YOUR SERVER IN THE SAME DIRECTORY AS THE JAVASCRIPT!
	// http://slayeroffice.com/code/imageCrossFade/xfade2.css
	css = d.createElement("link");
	css.setAttribute("href","layout.css");
	css.setAttribute("rel","stylesheet");
	css.setAttribute("type","text/css");
	d.getElementsByTagName("head")[0].appendChild(css);

	imgs = d.getElementById("imageContainer").getElementsByTagName("img");
	// Remove the last img, which is our overlay.  We don't want to change any of it's attributes.
	//imgs.splice(1, imgs.length);
	//myOverlay = imgs.pop();
	//alert(imgs);
	//print(imgs.length);
	for(i=1;i<(imgs.length-1);i++) imgs[i].xOpacity = 0;
	imgs[0].style.display = "inline";
	imgs[0].xOpacity = .99;
	
	setTimeout(so_xfade,100);
}

function so_xfade() {
	cOpacity = imgs[current].xOpacity;
	nIndex = imgs[current+1]?current+1:0;
	if(nIndex >= (imgs.length-1))
		nIndex = 0;
		
	nOpacity = imgs[nIndex].xOpacity;

	cOpacity-=.05; 
	nOpacity+=.05;
	
	imgs[nIndex].style.display = "inline";
	imgs[current].xOpacity = cOpacity;
	imgs[nIndex].xOpacity = nOpacity;
	
	setOpacity(imgs[current]); 
	setOpacity(imgs[nIndex]);
	
	if(cOpacity<=0) {
		imgs[current].style.display = "none";
		current = nIndex;
		setTimeout(so_xfade,3000);
	} else {
		setTimeout(so_xfade,50);
	}
	
	function setOpacity(obj) {
		if(obj.xOpacity>.99) {
			obj.xOpacity = .99;
			return;
		}
		obj.style.opacity = obj.xOpacity;
		obj.style.MozOpacity = obj.xOpacity;
		obj.style.filter = "alpha(opacity=" + (obj.xOpacity*100) + ")";
	}
	
}

