//  needs fixin:
//  --time rendering for IE4
//  --finish 000728.htm!
//  
//  
var ie4=(document.all)? true:false;
if (ie4) var docRoot = 'document.body'  
var ie5=false;

if (ie4) {
  if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6') > 0)) {
    if(document.compatMode && document.compatMode == 'CSS1Compat'){ 
	  docRoot = 'document.documentElement'
    ie5 = true;
    }
  } 
}
//*******************************************************************
// retrieves UA info
var  IE=(document.all)? true:false;
var  NS=(document.layers)? true:false;
var  UA = "IE5";
	if (navigator.userAgent.indexOf("AOL") >= 0) {
		UA = "AOL";}
	if ((navigator.userAgent.indexOf("MSIE 4") >= 0)||(navigator.userAgent.indexOf("AOL") >= 0)) {
		UA = "IE4";}
	if (navigator.userAgent.indexOf("MSIE 5.") >= 0) {
		UA = "IE5";}
	if (navigator.userAgent.indexOf("MSIE 5.5") >= 0) {
		UA5 = "IE55";}
	if (navigator.userAgent.indexOf("MSIE 6") >= 0) {
		UA = "IE6";}
//end

//*******************************************************************
//	date rendering and re-formatting script
var dayshort = new Array(8);
dayshort[1] = "Sun";
dayshort[2] = "Mon";
dayshort[3] = "Tue";
dayshort[4] = "Wed";
dayshort[5] = "Thu";
dayshort[6] = "Fri";
dayshort[7] = "Sat";
var days = new Array(8);
days[1]  = "Sunday";
days[2]  = "Monday";
days[3]  = "Tuesday";
days[4]  = "Wednesday";
days[5]  = "Thursday";
days[6]  = "Friday";
days[7]  = "Saturday";
var months = new Array(13);
months[1]  = "January";
months[2]  = "February";
months[3]  = "March";
months[4]  = "April";
months[5]  = "May";
months[6]  = "June";
months[7]  = "July";
months[8]  = "August";
months[9]  = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
if(!dateObj){
	var dateObj= new Date(document.lastModified);}
var dateNow  = new Date();
var modObj   = new Date(document.lastModified).getTime();
	if (UA=="IE4") {modObj = new Date(document.lastModified);}
var nowTime  = dateNow.getTime();
var ap       = "AM"
var sec      = dateObj.getSeconds();//dateObj is declrd at top ea journal pg
var minute   = dateObj.getMinutes();
var hour     = dateObj.getHours();
var wday     = days[dateObj.getDay()+1];
var smonth   = dateObj.getMonth()+1;
var lmonth   = months[dateObj.getMonth()+1];
var date     = dateObj.getDate();
var sdate     = dateObj.getDate();

var year     = dateObj.getYear();
var lyear     = "";
var syear     = "";
if (year >= 100 && year <= 1999)
{year=year + 1900}
else
{year=year}

if (sec <= 9) 
	sec = "0"+sec;
if (minute <= 9) 
	minute = "0"+minute;
if (hour >= 12) 
	ap = "PM";
 else ap = "AM"
if (hour >= 13) 
	hour = hour - 12;
if (hour <= 9) 
	hour = "0"+hour;
if (date <= 9) 
	date = "0"+date;
if (smonth <= 9) 
	smonth = "0"+smonth;
if (year <= 99) 
	lyear = year+1900;
 else lyear = year;
if (year <= 99) 
	syear = year;
 else syear = year - 2000;
if (syear <= 9) 
	syear = "0"+syear;
//END

var screenwidth = screen.availWidth;
var RfrWidth;
//*******************************************************************
// reloading mainframe fixes redframe misalignment (I hope)
function jFixMain(secs){
	myTimer=setTimeout("fixFrame()",secs*1000);
}
function fixFrame(){
	history.back(1);
}	

//*******************************************************************
// runs inside 'j()' from journaltext page - reloads jbtm and jday
function chkFrames(){
        setTimeout('giveHead(),1000');
	if (parent.frames[0]){
		if (parent.frames[3].location.href!="jbtm"+syear+smonth+".htm")
			{parent.frames[3].location.href="jbtm"+syear+smonth+".htm";}
  parent.frames[4].window.location.reload(true);
//		if (parent.frames[4].location.href!="jday.htm")
//			{parent.frames[4].location.href="jday.htm"};
	}
}
//END

//*******************************************************************
// runs from jbtm.htm page - reloads correct jbtmxxxx.htm 
function jbtmSelect(){
		if (self.location.href!="jbtm"+syear+smonth+".htm")
			{self.location.href="jbtm"+syear+smonth+".htm";}
}
//END

//*******************************************************************
//runs inside 'chkFrames()', tests for correct head, and hopefully reloads only if necessary

function giveHead(){
if (parent.journalhead){
   if(parent.journaltext.dateObj.getYear()!=parent.journalhead.dateObj.getYear()){
   parent.frames[0].location.href='jhead.htm'
   parent.frames[1].location.href='jpreicq.htm'
   }
//  the following replaced by scrap inserted at top of 'init()' - thus it is handled at 'onLoad' event
//  ...then it was removed from 'init()'
//   if(parent.journaltext.cw<=0 || parent.journaltext.cw==null){
//     parent.journaltext.window.location.reload(false);
//}
}
}

//*******************************************************************
// called from jhead.htm
// reloads jhead with jh2k or jh1k or jh99
function chkHead(){
	if (parent.journaltext){
                if (parent.journaltext.dateObj.getYear()>2000)
                        {parent.frames[0].location.href="jh2k.htm";}
                else if (parent.journaltext.dateObj.getYear()==2000)
                        {parent.frames[0].location.href="jh1k.htm";}
                else if (parent.journaltext.dateObj.getYear()==99)
                        {parent.frames[0].location.href="jh99.htm";}
                else {parent.frames[0].location.href="jh99.htm";}
	}
}
//END

//*******************************************************************
// some of the <head> stuff collected together
function j(){
//  	if (document.location.href.search("siegesoft") >= 1)
//		{top.location.href = "http://www.siegesoft.com/"}
	getJcss();
	document.write("<META NAME=description CONTENT='"+titName+": Joe's journal for "+smonth+"/"+date+"/"+syear+"'>");
	document.write("<TITLE>"+titName+": Joe: "+smonth+"/"+date+"/"+syear+"</TITLE>");
//	chkFrames();
}
//END

//*******************************************************************
// select appropriate GENERAL style sheet
function getJcss()
{
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))
  { 
	  document.write("<link rel='stylesheet' type='text/css' href='jIE.css'>");
	}else{ 
	  document.write("<link rel='stylesheet' type='text/css' href='jNS.css'>");
  }
  if (document.location.href.search("sieges") >= 1) 
  {  
    top.location.href = "http://www.siegesoft.com/";
  }
}//END

//*******************************************************************
// id selected style sheet
//var sURL = ;
function tellStyle()
   {
var CSS0 ="none";
var CSS1 ="none";
var CSS2 ="none";
var CSS3 ="none";
//    if(parent.frames[0].cw=="")
//      self.location.reload(false);
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
      if (!parent.frames[0]){
        document.write(" rfrw="+document.getElementById(jTxtRfr).style.width);
        document.write(" | cw="+document.body.clientWidth+" | ");
      }else{
        document.write(" rfrw="+document.getElementById(jTxtRfr).style.width);
        document.write("  | cw="+parent.frames[0].cw+" | ");
      }
      if (!this.document.styleSheets[0] || this.document.styleSheets[0]==""){
        document.write(" CSS="+window.location.href);
      }else{
        document.write(" CSS0="+document.styleSheets[0].href);
        document.write("<br> CSS1="+document.styleSheets[1].href);
//        document.write("<br>  CSS2="+document.styleSheets[2].href);
      }
    }else{
        document.write(" rfrw="+document.getElementById("jTxtRfr").style.width);
        document.write(" | cw="+window.innerWidth+" | ");
      if (!this.document.styleSheets[0] || this.document.styleSheets[0]==""){
        document.write(" CSS0=none ");
      }else{
        document.write(" CSS0="+document.styleSheets[0].href);
        if (!this.document.styleSheets[1] || this.document.styleSheets[1]==""){
          document.write(" <br> CSS1=none ");
        }else{
          document.write("<br> CSS1="+document.styleSheets[1].href);
          if (!this.document.styleSheets[2] || this.document.styleSheets[2]==""){
            document.write(" <br> CSS2=none ");
          }else{
            document.write("<br>  CSS2="+document.styleSheets[2].href);
          }
        }
      }
//	 document.write(" CSS="+document.styleSheets[3].href);
//		document.write(" CSS=No IE");
    }
  }//END

//*******************************************************************
function jTxtRfr(){
	if ((navigator.userAgent.indexOf("MSIE") >= 0) || (navigator.appName == "Microsoft Internet Explorer")){
		if (parent.frames[0] && navigator.userAgent.indexOf("MSIE 6") >= 0){
			var RfrWidth = (parent.frames[0].cw - 38);
		}
		if (parent.frames[0] && navigator.userAgent.indexOf("MSIE 5") >= 0){
			var RfrWidth = (parent.frames[0].cw - 38);
		}
		if (parent.frames[0] && navigator.userAgent.indexOf("MSIE 4") >= 0){
			var RfrWidth = (parent.frames[0].cw - 58);
		}
		if (!parent.frames[0] && navigator.userAgent.indexOf("MSIE 6") >= 0){
			var RfrWidth = (eval(docRoot+'.clientWidth') - 72);
		}
		if (!parent.frames[0] && navigator.userAgent.indexOf("MSIE 5") >= 0){
			var RfrWidth = (eval(docRoot+'.clientWidth') - 72);
		}
		if (!parent.frames[0] && navigator.userAgent.indexOf("MSIE 4") >= 0){
			var RfrWidth = (eval(docRoot+'.clientWidth') - 80);
		}

		document.write("<DIV class='jTxtRfr' id='jTxtRfr' style='width:"+RfrWidth+";'>");
		var width = RfrWidth;
	}
	if (navigator.userAgent.indexOf("Firefox") >= 0){
		var RfrWidth = (window.innerWidth - 82);
		var RfrHeight = (window.innerHeight + 500);
		document.write("<DIV class='jTxtRfr' id='jTxtRfr' style='width:"+RfrWidth+"; '>");
	}
    if ((navigator.appName != "Microsoft Internet Explorer") && (navigator.userAgent.indexOf("MSIE") <= -1)){
      //document.write("<DIV class='nojTxtRfr' id='nojTxtRfr'>");
      //document.write("<DIV class='jTxtRfr' id='jTxtRfr' style='margin-right:31;'>");
    }
}


//*******************************************************************
//-- JavaScript code written by Alan Simpson - www.coolnerds.com
//--This is the function that pauses, then calls your custom function. 
function pause(howManySeconds) {
	if (nowTime-600000<=modObj) 
//do it if the file was modified within last 10 mins
	myTimer=setTimeout("whatToDo()",howManySeconds*1000)
}//-- This is the function that's executed after the delay time is up.

//*******************************************************************
//-- JavaScript code written by Alan Simpson - www.coolnerds.com
//--This is the function that pauses, then calls your custom function. 
function refreshpage(howManySeconds) {
	myTimer=setTimeout("whatToDo()",howManySeconds*1000)
}//-- This is the function that's executed after the delay time is up.
function whatToDo() {
	self.location.reload(true);
}//

//*******************************************************
function pauseImg(seconds){
  var camURL=document.images[0].src;
  newImage = document.camImg.src;
  pauseTimer = setTimeout("doRefresh("+seconds+")",seconds*1000);
 }
function doRefresh(time){
  timeTag();
  var camURL = document.camImg.src;
  document.images[0].src = camURL;
  pauseImg(time);
}
      
//END


//*******************************************************************
//-- JavaScript code written by Alan Simpson - www.coolnerds.com
//--This is the function that pauses, then calls your custom function. 
function refreshImg(howManySeconds) {
	myTimer=setTimeout("whatToDo()",howManySeconds*1000)
}

//*******************************************************************
//-- 
//--  reloads image 
function refreshImage(howManySeconds) {
	myTimer=setTimeout("imgRefresh()",howManySeconds*1000)
}

//-- This is the function that's executed after the delay time is up.
function imgRefresh(){
  var imgURL=document.images[0].src;
  document.images[0].src=imgURL;
}
//

//*******************************************************************
// file changes increase page refresh rate from 0 to [120:270]sec
//  1000=1sec, 60000=1min  
function dynRefresh()
	{
//	if (nowTime-300000<=modObj) //5 mins
//	document.write("<META http-equiv='REFRESH' content='600'>"); 
//	else
//		{
//		if (nowTime-5400000<=modObj) //90 mins
//		document.write("<META http-equiv='REFRESH' content='"+((nowTime-modObj)*0.0005)+"'>");// renders 50% of file age in secs
//		else document.write(""); 
//		}
	}//END

//*******************************************************************
// Fullscreen 
function fullwin(theURL,winName,features){
window.open(theURL,winName,features);
}
//

//*******************************************************************
// Pop-up window opener
function opWin(theURL,winName,features) //v2.0
{ 	if (window.archiveWin&&window.archiveWin.closed==false) 
	{
		if (navigator.userAgent.indexOf("MSIE 3")==-1) 
		{ window.archiveWin.focus(); }
	}else{ archiveWin=window.open(theURL,winName,features);
	}
}//END

//*******************************************************************
// JournalDates Pop-up window opener for the JournalDates navigator
function jdpopWin(theURL,winName,features) //v2.0
{ 	var sh = screen.availHeight;
	var winheight = sh-30;
if (!theURL){theURL = "jdPOP.htm";}
if (!winName){winName = "archiveWin";}
if (!features){features = "toolbars=no, status=no, width=150, height="+winheight+", left=0, top=0, scrollbars=yes, resizable=no";}
if (window.archiveWin&&window.archiveWin.closed==false) {window.archiveWin.focus();}else{	archiveWin=window.open(theURL,winName,features);}
}//END

//*******************************************************************
// inserts temporary flag
function tempFlag(beginDate,durDy,txtString){
	var beginTime = new Date(beginDate).getTime();
	if (nowTime-(durDy*86400000) <= beginTime)//86.4M=1day
		document.write(txtString);
		else document.write("");
}//END

//*******************************************************************
// INSERTS NOW WRITING FLAG DURING FILE CHANGES
var nxEntry;
function curWri(durMins,altTxt){
  if (!nxEntry){ nxEntry = "";
}
  if (nxEntry == "" || nxEntry >= syear+smonth+(date-3)) {
    if (nowTime-(durMins*60000) <= modObj) {
    document.write("<div style='font: 600 11\;'>writing.&nbsp\; .&nbsp\; .</div>");
    }else{ document.write(altTxt); 
}
  }else{ //document.write(altTxt); 
}
}
// END

//*******************************************************************
//  something for the [-frames] tag to do
function stripFrame() 
	{
	if (window != top) top.location.href = location.href;
//	top.location.href = location.href;
//	window.top.location.href = document.location.href;
//	window.top.location.href = window.location.href;
//	top.location.href = self.location.href;
//	top.location.href = document.referer.href;
//	top.location.href = document.href;
	}
//  End

//*******************************************************************
function donFrame()
{
//-- Created by Alan Simpson, http://www/coolnerds.com.
//-- Customized by joe@burgwinkel.com
// Takes URL of frameless page, writes it as arg to journal.htm, 
// where fillMain() func uses it as src for journaltext frame
	if (!parent.frames[2]) {
		rightHalf=location.pathname
		leftHalf="complex.htm"
		top.location.href = leftHalf+"?"+rightHalf;
  }
}//END

//*******************************************************************
function updateJday() {}
//if (self==parent.frames[2]){
//	if (document.location.href != top.location.href){
//	parent.frames[4].location.href="jday"+date+".htm";
//		if (parent.frames[3].location.href!="jbtm"+syear+smonth+".htm"){
//		parent.frames[3].location.href="jbtm"+syear+smonth+".htm";
//}}	}	}//END


//*******************************************************
// 
// titles page from titName value
function titPg(){

	if (titName==null)
	document.write("");

	if (titName=="")
	titName = "[<span style='font:900 15;'>&nbsp;&nbsp;untitled&nbsp;&nbsp;</span>]";

	document.write("<div class='titpg'>.&nbsp;&nbsp;&nbsp;.&nbsp;&nbsp;.&nbsp;.."+titName+"</div>");
}//END

//*******************************************************************
// dynamic image resizer by burgwinkel.com : consume freely
	var imgW = null;
	var imgH = null;
function imgResize(w,h,pct){
	if (!document.body)	
	{
		var cw = (screen.availWidth * 0.66);
		var ch = (screen.availHeight * 0.66);
	}else{
		var cw = document.body.clientWidth;
		var ch = document.body.clientHeight; 
	}
	if (pct==0) 
	{
	imgW = w;
	imgH = h;
	}else{
	imgW = parseInt(cw*(pct/100));
	imgH = parseInt(imgW*(h/w));
	}
}// END 

//*******************************************************************
// NEW dynamic image resizer by burgwinkel.com : consume freely
	var imgW = null;
	var imgH = null;
function imgRsz(w,h,pct,imgFile,imgRL,altTxt)
{
	if (parent.frames[0] && navigator.userAgent.indexOf("MSIE 6") >= 0)
var cw = (parent.frames[0].cw - 38);
	if (parent.frames[0] && navigator.userAgent.indexOf("MSIE 5") >= 0)
var cw = (parent.frames[0].cw - 38);
	if (parent.frames[0] && navigator.userAgent.indexOf("MSIE 4") >= 0)
var cw = (parent.frames[0].cw - 58);
	if (!parent.frames[0] && navigator.userAgent.indexOf("MSIE 6") >= 0)
var cw = (document.body.clientWidth - 79);
	if (!parent.frames[0] && navigator.userAgent.indexOf("MSIE 5") >= 0)
var cw = (document.body.clientWidth - 79);
	if (!parent.frames[0] && navigator.userAgent.indexOf("MSIE 4") >= 0)
var cw = (document.body.clientWidth - 80);
  if (navigator.userAgent.indexOf("MSIE ") == -1)
var cw = (screen.availWidth * 0.66);
var ch = (screen.availHeight * 0.66);
  if (!document.body)
var cw = (screen.availWidth * 0.66);
var ch = (screen.availHeight * 0.66);
	if (pct==0){
imgW = w;
imgH = h;
  }else{
imgW = parseInt(cw*(pct/100));
imgH = parseInt(imgW*(h/w));
	}
document.write("<img class='"+imgRL+"' src='"+imgFile+"' border='0' width='"+imgW+"' height='"+imgH+"' alt='"+altTxt+"'>")
}// END


//*******************************************************************



//*******************************************************************
// dynamic margin resizer by burgwinkel.com : consume freely
function chgMargin(){
	if (self != parent.frames[2])	
	{
		var cw = (screen.availWidth * 0.66);
		var ch = (screen.availHeight * 0.66);
	}else{
		var cw = parent.frames[0].document.body.clientWidth;
		var ch = (parent.frames[0].document.body.clientHeight*7.1428); 
	}
	var mw = (cw/66);
document.write("<STYLE type='text/css'>");
document.write("P { margin:20 "+mw+"% 10 "+mw+"%; }");
document.write(".titpg { position: relative; width: 100%; margin:10 "+mw+"% 10 "+mw+"%; }");
document.write(".date { margin: 50 "+mw+"% 0 "+mw+"%; } ");
document.write(".dateline { margin: 0 "+mw+"% 0 "+mw+"%; } ");
document.write("</STYLE>");
}// END 

		//	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {

//*******************************************************************
//function ssmResources(){
/*
Copyright � MaXimuS 1999-2000, All Rights Reserved.
Site: http://www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
*/

IE=document.all;
NS=document.layers;

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/
var  hdrBGColor="";
var  emptBGColor="";
var  linkBGColor="";
var  linkOverBGColor="";
var  menuBGColor="";
var  hdrStyleStr="";
var  barBorder="";
var  menuTrim="";
var  tableWidth="";
if (dateObj.getYear()>2000)
{hdrBGColor="#FFFFEE";
 hdrStyleStr="font:900 18 'letter gothic', Tahoma, Verdana, Arial; color:#993300;";
 emptBGColor="#999999";
 linkBGColor="#999999";
 linkOverBGColor="#331100";
 barBorder=1;
 menuTrim=1;
 tableWidth=176;
}else{
 hdrBGColor="#221111";
 emptBGColor="#333333";
 linkBGColor="#333333";
 linkOverBGColor="#331100";
 menuBGColor="#333333";
 hdrStyleStr="font:900 18 'letter gothic', Tahoma, Verdana, Arial; color:#993300;";
 barBorder=2;
 menuTrim=2;
 tableWidth=177;
}
//hdrFontFamily="Verdana";
//hdrFontSize="2";
//hdrFontColor="#CC9966";
//hdrFontStr="900 14 Tahoma, Verdana, Arial;";
//linkFontFamily="Verdana";
//linkFontSize="1";
//linkFontStr="700 12 Tahoma, Verdana, Arial;";
var linkTarget="_top";
var linkTit="i didn't enter any descriptive text--oops";
var linkStyleStr="style=\"font:900 16;cursor:hand;color:#CC9966;margin-right:0;\"";
var YOffset=0;
var staticYOffset=0;
var menuBGColor="#999999";
var menuIsStatic="yes";
var menuHeader="<<&nbsp;";
var menuWidth=140; // Must be a multiple of 20!
var staticMode="advanced";
var barBGColor="#FF0000";
var barFontFamily="Verdana";
var barFontSize="0";
var barFontColor="#CC9966";
var barFontStr="900 12 Tahoma, Verdana, Arial;";
var barText="";
var nm1="";var ur1="";var tg1="";var tx1="";
var nm2="";var ur2="";var tg2="";var tx2="";
var nm3="";var ur3="";var tg3="";var tx3="";
var nm4="";var ur4="";var tg4="";var tx4="";
var nm5="";var ur5="";var tg5="";var tx5="";
var specLnk = new Array(6);
specLnk[1]  = (nm1, ur1, tg1, tx1);
specLnk[2]  = (nm2, ur2, tg2, tx2);
specLnk[3]  = (nm3, ur3, tg3, tx3);
specLnk[4]  = (nm4, ur4, tg4, tx4);
specLnk[5]  = (nm5, ur5, tg5, tx5);

function moveOut() {
if (window.cancel) {cancel="";}
if (window.moving2) {clearTimeout(moving2); moving2="";}
if ((IE && ssm2.style.pixelLeft<0)||(NS && document.ssm2.left<0)) {
if (IE) {ssm2.style.pixelLeft += (0.2*menuWidth);}
if (NS) {document.ssm2.left += (0.2*menuWidth);}
moving1 = setTimeout('moveOut()', 5)}
else {clearTimeout(moving1)}};
function moveBack() {
cancel = moveBack1()}
function moveBack1() {
 if (window.moving1) {clearTimeout(moving1)}
 if ((IE && ssm2.style.pixelLeft>(-menuWidth))||(NS && document.ssm2.left>(-140))) {
  if (IE) {ssm2.style.pixelLeft -= (0.2*menuWidth);}
  if (NS) {document.ssm2.left -= (0.2*menuWidth);}
  moving2 = setTimeout('moveBack1()', 5)}
 else {clearTimeout(moving2)}};

var lastY = 0;
function makeStatic(mode) {
 if (IE) {winY = document.body.scrollTop;var NM=ssm2.style}
 if (NS) {winY = window.pageYOffset;var NM=document.ssm2}
 if (mode=="smooth") {
  if ((IE||NS) && winY!=lastY) {
  smooth = .2 * (winY - lastY);
  if(smooth > 0) smooth = Math.ceil(smooth);
  else smooth = Math.floor(smooth);
  if (IE) NM.pixelTop+=smooth;
  if (NS) NM.top+=smooth;
  lastY = lastY+smooth;}
 setTimeout('makeStatic("smooth")', 1)}
 else if (mode=="advanced") {
  if ((IE||NS) && winY>YOffset-staticYOffset) {
  if (IE) {NM.pixelTop=winY+staticYOffset}
  if (NS) {NM.top=winY+staticYOffset}}
  else {
  if (IE) {NM.pixelTop=YOffset}
 if (NS) {NM.top=YOffset-7}}
setTimeout('makeStatic("advanced")', 1)}}

function init() { 
//if(!self.cw){self.reload(false)};  // fixes redframe formatting, was part of 'chkFrames()'
if (jsOK=='yes'){
if (IE) {
ssm2.style.pixelLeft = -menuWidth;
ssm2.style.visibility = "visible"}
else if (NS) {
document.ssm2.left = -menuWidth;
document.ssm2.visibility = "show"}
else {alert('Choose either the "smooth" or "advanced" static modes!')}}
}//end


function staticSlidingMenu()
{
	if (lsEntry == "") lsEntry = syear+""+smonth+""+date;
	if (nextEnt == "") nxEntry = syear+""+smonth+""+date;
	if (nextEnt == "") {nxTxt = "this is it"}else{nxTxt = nxEntry};
	if (nextEnt == "") {nxTip = "this is the latest"}else{nxTip = "next ramble"};

if (IE) {document.write('<DIV ID="ssm2" style="visibility:hidden; Position:Absolute; Left:0px; Top:'+YOffset+'px; Z-Index:20; width:1px;" onmouseover="moveOut()" onmouseout="moveBack()">')}

if (NS) {document.write('<LAYER visibility="hide" top="'+YOffset+'" name="ssm2" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
tempBar=""
for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)}//+"<BR>"}

if(UA=="IE6"){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(tableWidth)+'px" bgcolor="'+menuBGColor+'"><tr><td align="right" border="0" bgcolor="'+emptBGColor+'" WIDTH="'+(menuWidth-menuTrim)+'px">&nbsp;<span style="'+hdrStyleStr+'">&nbsp;</span></td><td align="right" border="0" bgcolor="'+emptBGColor+'" WIDTH="36">&nbsp;<span style="'+hdrStyleStr+'">'+menuHeader+'</span></td><td align="center" rowspan="100" width="'+barBorder+'" bgcolor="'+barBGColor+'"><p align="center"><span style="font:'+barFontStr+' COLOR:'+barFontColor+'">'+tempBar+'</span></p></TD></tr>')}

if(UA=="IE55"){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(tableWidth)+'px" bgcolor="'+menuBGColor+'"><tr><td align="right" border="0" bgcolor="'+emptBGColor+'" WIDTH="'+(menuWidth-menuTrim)+'px">&nbsp;<span style="'+hdrStyleStr+'">&nbsp;</span></td><td align="right" border="0" bgcolor="'+emptBGColor+'" WIDTH="36">&nbsp;<span style="'+hdrStyleStr+'">'+menuHeader+'</span></td><td align="center" rowspan="100" width="'+barBorder+'" bgcolor="'+barBGColor+'"><p align="center"><span style="font:'+barFontStr+' COLOR:'+barFontColor+'">'+tempBar+'</span></p></TD></tr>')}

if(UA=="IE5"){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(tableWidth)+'" bgcolor="'+menuBGColor+'"><tr><td align="right" border="0" bgcolor="'+emptBGColor+'" WIDTH="'+(menuWidth-menuTrim)+'">&nbsp;<span style="'+hdrStyleStr+'">&nbsp;</span></td><td align="right" border="0" bgcolor="'+emptBGColor+'" WIDTH="36">&nbsp;<span style="'+hdrStyleStr+'">'+menuHeader+'</span></td><td align="center" rowspan="100" width="'+barBorder+'" bgcolor="'+barBGColor+'"><p align="center"><span style="font:'+barFontStr+' COLOR:'+barFontColor+'">'+tempBar+'</span></p></TD></tr>')}

if(UA=="IE4"){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+35+12)+'" bgcolor="'+menuBGColor+'"><tr><td align="right" border="0" bgcolor="'+emptBGColor+'" WIDTH="'+(menuWidth-2)+'">&nbsp;<span style="'+hdrStyleStr+'">&nbsp;</span></td><td align="right" border="0" bgcolor="'+emptBGColor+'" WIDTH="36">&nbsp;<span style="'+hdrStyleStr+'">'+menuHeader+'</span></td><td align="center" rowspan="100" width="'+barBorder+'" bgcolor="'+barBGColor+'"><p align="center"><span style="font:'+barFontStr+' COLOR:'+barFontColor+'">'+tempBar+'</span></p></TD></tr>')}

function addItem(text, link, target, titxt) {
 if (!target||!parent.frames[0]) {target=linkTarget}
 targetStr=' target="'+target+'" ';
 if (target == 'none'){targetStr=''};
 if (!titxt) {titxt=linkTit};
 if (nextEnt==''&& text==nxEntry){titxt='no more yet'};
 document.write('<TR><TD '+linkStyleStr+' align="right" BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'"><ILAYER><LAYER '+linkStyleStr+' onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%"><A HREF="'+link+'" '+targetStr+' title="'+titxt+'" CLASS="ssm2Items">'+text+'</a></LAYER></ILAYER></TD><TD align="right" BGCOLOR="'+emptBGColor+'"><ILAYER><LAYER WIDTH="100%">&nbsp;</LAYER></ILAYER></TD></TR>')}

function addHdr(text) {
document.write('<tr><td align="left" bgcolor="'+hdrBGColor+'" WIDTH="'+(menuWidth-2)+'">&nbsp;<span style="'+hdrStyleStr+'">'+text+'</span></td><td bgcolor="'+emptBGColor+'" WIDTH="36">&nbsp;<span style="'+hdrStyleStr+'"></span></td></tr>')}

//Only edit the script between HERE
//addItem('text', 'URL (rltv OK)', 'target', 'titxt');
addHdr('nav...&nbsp;');
addItem(lsEntry+'&nbsp;', lsEntry+'.htm', 'journaltext', 'last babble');
addItem(nxTxt+'&nbsp;', nxEntry+'.htm', 'journaltext', nxTip);
addItem('rejournal&nbsp;', 'journal.htm', '_top', 'go back to today');

if (!parent.frames[0]){
 addItem('+frames&nbsp;', 'javascript:donFrame();', 'none', 'go ahead, risk it!');}else{
 addItem('<span style="text-decoration:line-through;">frames</span>&nbsp;', parent.frames[2].location.href, '_top', 'be afraid, play it safe.');}

if (nm1!="") {addHdr(titName+'...');}

if (nm1!="") {addItem(nm1+'&nbsp;',ur1,tg1,tx1)}

if (nm2!="") {addItem(nm2+'&nbsp;',ur2,tg2,tx2)}

if (nm3!="") {addItem(nm3+'&nbsp;',ur3,tg3,tx3)}

if (nm4!="") {addItem(nm4+'&nbsp;',ur4,tg4,tx4)}

if (nm5!="") {addItem(nm5+'&nbsp;',ur5,tg5,tx5)}

addHdr('else...&nbsp;');
addItem('archives&nbsp;', 'javascript:jdpopWin(\'\', \'\', \'\');', 'none', 'OD on me');
addItem('blog&nbsp;', '../blog.htm', '_top', 'blog');
// and HERE! No more!

document.write('<tr><td bgcolor="'+emptBGColor+'"><font size="0" face="Arial">&nbsp;</font></td><td bgcolor="'+emptBGColor+'"><font size="0" face="Arial">&nbsp;</font></td></TR></table>')

if (IE) {document.write('</DIV>')}

if (NS) {document.write('</LAYER>')}

if ((IE||NS) && (menuIsStatic=="yes"&&staticMode)) {makeStatic(staticMode);}
}//end


//*******************************************************************
//displays tooltip-like message on hover
function hovMsg(sMsg,sWidth){
		size = sMsg.length * 5;
		popMsg.style.left = event.offsetX + 15;
		popMsg.style.top  = event.offsetY + 10;
		popMsg.innerHTML = sMsg;
		popMsg.style.width = sWidth;
		popMsg.style.height = "10pt";
		popMsg.style.display = "inline";
}
//END

//*******************************************************************

function dw(n) {document.write(n,'\n');}
function timeTag(){
dateNow   = new Date()
var wday     = dayshort[dateNow.getDay() + 1]
var minute   = dateNow.getMinutes()
var hour     = dateNow.getHours()
if (minute <= 9) 
	minute = "0"+minute;
dw('<div class="lowerleft">');
dw('');
dw(wday+'&nbsp\; &nbsp\; ');
dw(hour+':'+minute);
dw('');
dw('</div>');
dw('<div class="lowerleftfront">');
dw('');
dw(wday+'&nbsp\; &nbsp\; ');
dw(hour+':'+minute);
dw('');
dw('</div>');
}
//END

//*******************************************************************


function sw(n) {snd_win.document.write(n,'\n');}
function soundStart(sndSrc,delay)
{
  soundTimer=setTimeout("launchSndWin()",delay*1000)
}
function launchSndWin()
{
  snd_win=window.open('', 'soundWin', 'copyhistory=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,width=150,height=100,top='+(screen.availHeight-130)+',left='+(screen.availWidth-160));
  sw('<html><head><title>');
  sw('soundPage');
  sw('</title>');
  sw('<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">');
  sw('var dateObj = new Date("Thursday, May 24, 2001 3:29:50 PM")\;');
  sw('</SCRIPT>');
  sw('<SCRIPT src="datetime.js" LANGUAGE="JavaScript" TYPE="text/javascript"></SCRIPT>');
  sw('<style>');
  sw('</style>');
  sw('</head>');
  sw('<body bgcolor=#000000 onClick="window.close();">');
  sw('<div style="text-align:center;">');
  sw('<img src="../img/sound.gif" name="soundImg" onMouseOver="soundImg.src=\'../img/soundOff.gif\'" onMouseout="soundImg.src=\'../img/sound.gif\'" width=64 height=64>');
  sw('<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">');
  sw('if (navigator.appName == "Microsoft Internet Explorer")');
  sw('      document.writeln (\'<bgsound loop="1" src="../img/venom.wav">\')\;');
  sw('else if (navigator.appName == "Netscape")');
  sw('      document.writeln (\'<EMBED src="../img/venom.wav" AUTOSTART=TRUE hidden=true loop="1">\')\;');
  sw('');
  sw('</SCRIPT>');
  sw('');
  sw('</div>');
  sw('</body>');
  sw('</html>');
  snd_win.document.close();
}


function switchSoundOff(){soundImg.src="../img/soundOff.gif"}

function switchSoundOn(){soundImg.src="../img/sound.gif"}


//END

//*******************************************************************

function jbtmFormat(){
  var sw    = screen.availWidth; 
  var cw    = screen.availWidth; 
if (parent.frames[0].cw){ 
  cw    = parent.frames[0].cw; }
if (cw > 960){lsIE = 5;}
if (cw < 960){lsIE = 4;}
if (cw < 850){lsIE = 3;}
if (cw < 727){lsIE = 2;}
if (cw < 620){lsIE = 1;}
if (cw < 510){lsIE = 0;}
if(document.links.length < 16){lsIE = lsIE+1;}
if(document.links.length < 12){lsIE = lsIE+1;}
if(document.links.length < 7){lsIE = lsIE+2;}
if(document.links.length > 12){lsIE = lsIE-1;}
if(document.links.length > 17){lsIE = lsIE-1;}
if(document.links.length > 20){lsIE = lsIE-1;}
document.getElementById(jbtm).style.letterSpacing=lsIE;
}


//END

//*******************************************************************

function srcVue(){
function svw(n) {srcVueWin.document.write(n,'\n');}
srcVueWin=window.open("", "SrcVue", "copyhistory=1,menubar=0,toolbar=0,location=0,directories=0,status=1,scrollbars=0,resizable=1,width=200,height=200,top="+(screen.availHeight/40)+",left="+(screen.availWidth/40));
svw('<html><head><title>');
svw('SrcVuePage');
svw('</title>');
svw('<style>');
svw('body{margin:35; background-color:#000033; color:#9999cc;}');
svw('A{color:#cccc00; font:900 14 verdana, tahoma, arial;}');
svw('A:hover{color:#ccccff; text-decoration:underline;}');
svw('');
svw('</style>');
svw('</head>');
svw('<body onLoad="stFocus=\'\'" onFocus="clearTimeout(stFocus);" onBlur="stFocus=setTimeout(\'self.focus()\',1000);">');
svw('<div style="text-align:center;">');
svw('');
svw('<DIV style="font:700 20; background-color:transparent;">');
svw(srcVueWin.opener.document.body.clientWidth+' cw ');
svw('<br>'+srcVueWin.opener.lsIE+' lsIE ');
svw('<br>'+srcVueWin.opener.document.links.length+' links');
svw('</DIV>');
svw('');
svw('</div>');
svw('</body>');
svw('</html>');
srcVueWin.document.close();
srcVueWin.focus();
}
      
//END


//*******************************************************
