// JavaScript Document
          var startPosition=0;

          function CFFcountdown()
          {
	          var CFFDay = "July 9,"
	          var today = new Date()
	          var thisYear = today.getFullYear()
	          var CFFDate = new Date(CFFDay + thisYear)
	          var diff = CFFDate.getTime() - today.getTime();
	          var days = Math.floor(diff / (1000 * 60 * 60 * 24));

	       if ((days < 0) && (days >= -1)) {
		        var mainMessage =" Rocklahoma is Here! ";
		        var speed=175;
		        var scrollingRegion=100;
		        //var mainMessage=myMainMessage;
		        var tempLoc=(scrollingRegion*3/mainMessage.length)+1;
		    if (tempLoc<1) {tempLoc=1}
		    var counter;
//		  for(counter=0;counter<=tempLoc;counter++);
			  mainMessage+=mainMessage;
		    document.getElementById('countdownClock').innerHTML =mainMessage.substring(startPosition,startPosition+scrollingRegion);
		    startPosition++;
		    if(startPosition>scrollingRegion) startPosition=0;
		    setTimeout("CFFcountdown()",speed); 
	        }

	else {
		if (days >= 0) {
			var theDay = CFFDate;
		} else {
			var theDay = new Date(CFFDate.getYear()+1,CFFDate.getMonth(),CFFDate.getDate());
		}
		var second = Math.floor((theDay.getTime() - today.getTime())/1000);
		var minute = Math.floor(second/60);
		var hour = Math.floor(minute/60);
		var day = Math.floor(hour/24);
		CDay= day;
		CHour= hour % 24;
		CMinute= minute % 60;
		CSecond= second % 60;
		var DayTill =  CDay + " days, " + CHour + " hours, " + CMinute + " minutes & " + CSecond + " seconds ";
		document.getElementById('countdownClock').innerHTML = DayTill;
		var counter = setTimeout("CFFcountdown()", 1000);
	}
}
//setTimeout("CFFcountdown()", 1000);
