/**




*<pre>



* ----------------------------------------------------------------------------



* Copyright Notice



* This file contains proprietary information of The Southron Presuppositionalist.



* Copying or reproduction is allowed provided The Southron Presuppositionalist



* is acknowledged with a link to The Southron Presuppositionalist homepage:



* http://www.geocities.com/presuppositionalist



* The software in this file is not guaranteed to perform as specified but 



* the SP has done his best to ensure that it does behave as specified.



* Copyright (c) 2001, 2002



* ----------------------------------------------------------------------------



*</pre>



*



* <b></p>



*



* stratiotes.romanhords.com (stratiotes@romanhords.com)



*



* @Mark Hord



* @version 1.1



* @date Mar 2002



*/ 



 



	//// 



	// variables for browser-specifics



	///



	var isDOM = (document.getElementById ? true : false); 



	var isIE4 = ((document.all && !isDOM) ? true : false);	



	var isNS4 = (document.layers ? true : false);







function mastHead(imgToUse) {



   if( !imgToUse ) imgToUse = "http://stratiotes.romanhords.com/Art/SouthPreBanner.gif";



	  



   if( isNS4 ) {



	   ///



	   // NS4 does not recognize some of the styles used in Style sheets so it 



	   // does not always format properly.  This formats specifically for NS4.



	   ///



	   document.write('<table summary="The Masthead" border="0">\n');



     document.write('<tr><td>&nbsp;</td><td>\n');



	   document.write('<a href="http://stratiotes.romanhords.com/" title="Stratiotes Place"><img src='
		 
	          + imgToUse + ' alt="Banner link"></a>\n');



	   document.write('</td></tr></table>\n');



	 } else {



	   document.write('<a href="http://stratiotes.romanhords.com" title="Stratiotes Place"><img src='



	          + imgToUse + ' alt="Banner link" class="banner"></a>\n');



	 }



}



	
function randNum(highval) {
  var curDate = new Date();
	var lpCt = curDate.getSeconds();
	if( lpCt < 2 )
	   lpCt = 60;
		 
	var rndNum = 0.1234;
	for(rr=0; rr<=lpCt; rr++)
	    rndNum = Math.random();
	return Math.floor(rndNum * highval);
}

function randomSpets()
{
   var arraySpets = new Array();
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/spetsnaz_soldier.jpg";
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/spets_building.jpg";
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/spetsnaz_water.gif";
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/spetsnaz_patrol.jpg";
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/spetsnaz_masked.jpg";
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/spetsnaz_winter.jpg";
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/IconGeorge.jpg";
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/IconResurctn.jpg";
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/IconCAscension.jpg";
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/IconCBaptism.jpg";
	 arraySpets[arraySpets.length] = "http://systema.romanhords.com/IconClifegiver.jpg";
	 
	 var Idx = randNum(arraySpets.length);
	 
	 document.write('<img style="float:right;" src="');
	 document.write(arraySpets[Idx]);
	 document.write('"/>');
}

function randomBanner()
{
   var arrayImgs = new Array();
	 arrayImgs[arrayImgs.length] = "http://stratiotes.romanhords.com/Art/SouthPreBanner.gif";
	 arrayImgs[arrayImgs.length] = "http://systema.romanhords.com/SystemaBanner.gif";
	 arrayImgs[arrayImgs.length] = "http://genealogy.romanhords.com/Art/GenBanner.gif";
	 arrayImgs[arrayImgs.length] = "http://www.geocities.com/presuppositionalist/lfdbanner.gif";
	 arrayImgs[arrayImgs.length] = "http://agape.romanhords.com/Art/maggiebanner.gif";
	 
	 var arrayURLs = new Array();
	 arrayURLs[arrayURLs.length] = "http://stratiotes.romanhords.com/";
	 arrayURLs[arrayURLs.length] = "http://systema.romanhords.com/";
	 arrayURLs[arrayURLs.length] = "http://genealogy.romanhords.com/";
	 arrayURLs[arrayURLs.length] = "http://www.geocities.com/presuppositionalist/lfdindex.html";
	 arrayURLs[arrayURLs.length] = "http://agape.romanhords.com/";
	 
	 
	 var Idx = randNum(arrayURLs.length);
	 
   document.write('<center><a href="');
	 document.write(arrayURLs[Idx]);
	 document.write('" title="Random banner ad" alt="Random banner ad"><img src="');
	 document.write(arrayImgs[Idx]);
	 document.write('" alt="Random banner"/></a></center>');
}


function antiSpamMail(n, u, s) {



	var mlStr = u + '@' + s;



	document.write('<a href="mailto:' + mlStr + '" title="' + mlStr + '">' + n + '</a>');



	}







/*  lastUpdateStr()



 *  This function prints out an update string with Copyright notice for the current year



 */



function lastUpdateStr() {



	//if( document.lastModified != null ) {



	   var dt = new Date();



		 //var theNumYear = dt.getYear();



		 //var theYear = '' + theNumYear;



		 //if( theNumYear < 100) 



		 //  theYear = 2000 + theNumYear;



		  



		 //dt.setTime( Date.parse(document.lastModified) );


                 document.open();
		 document.write('<div style="color:#443727; font-weight:bold; text-align:center"><SMALL><i>Webpage design Copyright &copy;' + dt.getFullYear()



		+ ' by <a href="http://stratiotes.romanhords.com/">'




		+ '<img src="http://stratiotes.romanhords.com/Art/SPBanner.gif" alt="Stratiotes Place"'



		+ 'title="Stratiotes Place" height="13" border="0" /></a>'



		+ '<span title="Not unto us, O Lord"> Non nobis Domine, non nobis;</span><br>'



		+ '<span title="but unto you be glory.">sed nomini tuo da gloriam.</span>'



		+ '</i></SMALL></div>');

           document.close();

	// }



}











function snailMail() {



    document.write('<span>');



		antiSpamMail('J&nbsp;Mark&nbsp;Hord', 'stratiotes', 'romanhords.com');



    document.write(' 307&nbsp;Ralph&nbsp;Street Richmond,&nbsp;Missouri&nbsp;64085</span>');



}







function confSnailMail() {



    document.write('<span>');



		antiSpamMail('The&nbsp;Southron&nbsp;Presuppositionalist', 'presuppositionalist', 'yahoo.com');



    document.write(' 307&nbsp;Ralph&nbsp;Street Richmond,&nbsp;Missouri&nbsp; Yankee&nbsp;Occupation&nbsp;Code:&nbsp;64085</span>');



}







function phoneNumber() {



    document.write('<span>(816)510-6245</span>');



}







////////



//  bookmarking tools



////////







function bookmarkPage() { 



    var isDOM = (document.getElementById ? true : false);



	var isIE4 = ((document.all && !isDOM) ? true : false);	



	var isNS4 = (document.layers ? true : false);







    if (window.sidebar && window.sidebar.addPanel)



        window.sidebar.addPanel(document.title, document.URL,"");



    else if (isIE4)



        window.external.AddFavorite(document.URL, document.title)



}



function popupPicture(pictPath, capt)

{

    var win = window.open("", "ShowMe", 

         "width=400,height=400,status,resizable,scrollbars,screenX=25,screenY=25,left=25,top=25");



    win.document.open();



    win.document.write('<div style="text-align:center"><img src="' + pictPath + '" alt="' + pictPath 

		      + '" title="' + capt + '"/><br/><p>' 

					+ capt + '</p></div>');



    win.status=capt;

		

    win.document.close();

}



function popupPage(filePath, capt)

{

    var win = window.open(filePath, "ShowMe", 

         "width=800,height=400,status,resizable,scrollbars,screenX=25,screenY=25,left=25,top=25");

    win.status=capt;

}

function timeHTML(tzStr)
{
  return '<img ALT="USNO Master Clock" TITLE="USNO Master Clock"'
		+ 'SRC="http://tycho.usno.navy.mil/cgi-bin/nph-usnoclock.gif?zone='  
		+ tzStr + ';ticks=1" />';
}



////
// Stuff for adding visit counter cookies
////

function hitVisitCounter(counterName) {
  var today = new Date();
  var expires = new Date();
  // valid for 1 year
  expires.setTime(today.getTime() + 24*365*3600000);
  if (document.cookie) {
     index = document.cookie.indexOf(counterName);
     } else { 
     index = -1;
     }

  if (index == -1) {
     document.cookie=counterName+"=1; " + 
           " expires=" + expires.toGMTString() ;
     } else {
     countbegin = (document.cookie.indexOf("=", index) + 1);
     countend = document.cookie.indexOf(";", index);
     if (countend == -1) {
        countend = document.cookie.length;
        }
     count = eval(document.cookie.substring(countbegin, countend)) + 1;
     document.cookie=counterName+"="+count+"; " +
           " expires=" + expires.toGMTString();
     }

  }

function getPreviousVisitCount(counterName) {
  count=0;
  if(document.cookie) {
    index = document.cookie.indexOf(counterName);
    if (index != -1) {
       countbegin = (document.cookie.indexOf("=", index) + 1);
       countend = document.cookie.indexOf(";", index);
       if (countend == -1) {
          countend = document.cookie.length;
          }
       count = document.cookie.substring(countbegin, countend);
       }
    }

  return(count);
  }






