var clockID = 0;

function UpdateClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }

   var tDate = new Date();

//   var thistime = tDate.getHours() + ":" + tDate.getMinutes() + ":" + tDate.getSeconds()
//  ShowTime(thistime)

	var nHour = tDate.getHours()
	if (nHour > 11) {
		var aop = " Pm";
	}
	else {
		var aop = " Am";
	}

	if (nHour > 12) {
		tHour = nHour - 12;
	}
	else {
		tHour = nHour;
	}

	var tMin = new String(tDate.getMinutes());
	if (tMin.length < 2) {
		tMin = '0' + tMin ;
	}

	var tSec = new String(tDate.getSeconds());
	if (tSec.length < 2) {
		tSec = '0' + tSec ;
	}
		
	document.theClock.theTime.value = "" + tHour + ":" + tMin + ":" + tSec + aop;
   
   clockID = setTimeout("UpdateClock()", 1000);
}


function StartClock() {
   clockID = setTimeout("UpdateClock()", 500);
}

function ShowTime(thistime){
	// document.write(thistime);
	 document.theClock.theTime.value = thistime
}

function KillClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }
}

	var msg ="  FREE SERVICE   *   RvFolks.com is designed, developed and maintained by our RV Folk members like YOU!   *   FREE SERVICE for RV Folks   *   Your Virtual Office while on the road   *   Create and maintian your own Personal Travel Photo Galleries   *   Secure Address Book and Rv Buddy Lists   *   Travel Itineraries with Expense and Journal Logs   *   Favorite Links Manager   *   Calendar with auto date remider   *   Access your files and messages while on the road from any computer with Internet access   *   Find RV and Camper Van Parks, Repair Facilities, Camping Suppliers worldwide.  See their Slide Shows before you visit   *   Keep in touch with friends and relatives with our RvFolks Message Center   *   Create or Join Interest Groups   *   Review Classified Ads and Personals many with Slide Shows!   *  This is YOUR SITE   *   ";
	var id,pause=0,position=0;
	var ScrollTime = 150;
	var CharThing =  msg.length		// 300;
	var DividerGoodie = 150;

	function imascroller() {
        // variables declaration
        var i,k
		var msg ="  FREE SERVICE   *   RvFolks.com is designed, developed and maintained by our RV Folk members like YOU!   *   FREE SERVICE for RV Folks   *   Your Virtual Office while on the road   *   Create and maintian your own Personal Travel Photo Galleries   *   Secure Address Book and Rv Buddy Lists   *   Travel Itineraries with Expense and Journal Logs   *   Favorite Links Manager   *   Calendar with auto date remider   *   Access your files and messages while on the road from any computer with Internet access   *   Find RV and Camper Van Parks, Repair Facilities, Camping Suppliers worldwide.  See their Slide Shows before you visit   *   Keep in touch with friends and relatives with our RvFolks Message Center   *   Create or Join Interest Groups   *   Review Classified Ads and Personals many with Slide Shows!   *  This is YOUR SITE   *   ";

        // increase msg
        k=(DividerGoodie/msg.length)+1;
        for(i=0;i<=k;i++) msg+=" "+msg;
        // show it to the window

	document.theClock.imascroller.value=msg.substring(position,position+CharThing);
        // set new position
        if(position++==CharThing) position=0;
        // repeat at entered speed
        id=setTimeout("imascroller()",ScrollTime); }

function StartStuff() {
	StartClock();
	imascroller();

}

