
// Flash detection
useFlash = navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;

// If Flash=true write Flash object to the page; else write a specified image
function placeFlashObj(){
	 if ( useFlash ) {
		// Temporarily disabled flash object until development
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=766 HEIGHT=61><PARAM NAME=movie VALUE="/SBImages/sasquatch.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="/SBImages/sasquatch.swf" quality=high bgcolor=#FFFFFF  WIDTH=766 HEIGHT=61 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>'); 	
	//document.write('<img src=\"images/tmp_eat-go-dig.gif\" width=\"766\" height=\"61\" border=\"0\" alt=\"Keywords\">');
 	}else {
		document.write('<img src=\"images/tmp_eat-go-dig.gif\" width=\"766\" height=\"61\" border=\"0\" alt=\"Keywords\">');
	}
	return true;
}

//randomizer
function timer(){
	how_many_ads = 7;
	now = new Date()
	sec = now.getDay()
	ad = sec % how_many_ads;
	ad +=1;
	return ad;
}

d = window.document;
isMacIE = (navigator.userAgent.indexOf("Mac")>-1 && navigator.appVersion.indexOf("MSIE 5")>-1 && document.getElementById)?1:0
arr = timer()
bg = new Array("","/SBImages/blue/","/SBImages/brown/","/SBImages/burgundy/","/SBImages/green/","/SBImages/blue/","/SBImages/brown/","/SBImages/burgundy/")
hex = new Array("","D29048","587FCE","8B985A","D64444","D29048","587FCE","8B985A")
style = "<style>\n";
style = style + ".variable{font-weight:bold;color:#" + hex[arr] + ";}\n";
style= style + "</style>\n";
d.write(style)	


//random background
function randomBkg(){
	tmp = "<style>\n"
	tmp = tmp + "body{background-image:url(\""+bg[arr]+"bkg.gif\");}\n";	 // cd 10/15/01
	tmp = tmp + "</style>\n"
	//tmp = '' +'<body onload="init()" onresize="if(document.layers){DHTMLfix()}else{history.go(0)}" background="'+bgNS[arr]+'bkg.gif" bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">'
	return document.write(tmp)
}



