// YaBB Javascript //

	// Meta tag generator for YaBB //
	if ((navigator.appVersion.substring(0,1) == "5" && navigator.userAgent.indexOf('Gecko') != -1) || navigator.userAgent.search(/Opera/) != -1) {
   		document.write('<meta http-equiv="pragma" content="no-cache">');
	}

	// Preloader to make header background appear a schoonch faster //
	var foo = new Image();
	var bar = new Image();
	foo.src = 'images/forum/wood_background.jpg';
	bar.src = 'images/forum/filler.gif';

	// Flash detection and tag writer //
	var width = 519;
	var height = 90;
	var flashFile = 'images/forum/farm.swf';
	var imgFile = 'images/forum/header_left.jpg';
	var alt = 'the REAL Canadian Bacon Co. | Enjoy Canada\'s Favorite Bacon';

	var headerGraphic = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" standby="' + alt + '">';
	headerGraphic = headerGraphic + '<param name="movie" value="' + flashFile + '"><param name="quality" value="best"><param name="menu" value="false">';
	if ((navigator.appName.toLowerCase().indexOf('netscape') != -1) && navigator.mimeTypes["application/x-shockwave-flash"]) {
		headerGraphic = headerGraphic + '<embed src="' + flashFile + '" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" quality="best" menu="false"></embed>';
	}
	else {
		headerGraphic = headerGraphic + '<img src="' + imgFile + '" width="' + width + '" height="' + height + '" alt="' + alt + '" title="' + alt + '">';
	}
	headerGraphic = headerGraphic + '</object>';
