/*<!--[CDATA[*/
/*
--------------------------------------------------------------
Thang Nguyen 2005 (c) All right reserved.
Contact: thang_toronto@yahoo.com
--------------------------------------------------------------
*/

var days = new Array("Sunday", "Monday", "Tuesday","Wednesday", "Thursday", "Friday", "Saturday");
var months = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", 							"October", "Novemder", "December");
	
	
	function showDateTime()
	{

		
		var now = new Date();
		var di = now.getDay();
		var mi = now.getMonth();
		var year = now.getYear();
		var date = now.getDate();
		var hours = now.getHours();
		var minutes = now.getMinutes();
		var seconds = now.getSeconds();

		
		var time = days[di]  + ' ' + months[mi] + ' ' + date + ', ' + year;
			time += ' ' + hours + ':' +  minutes + ':' + seconds;

		oDateTime.innerHTML = time;
		setTimeout("showDateTime()", 1000);
	}	

	function showTime()
	{
		
		var now = new Date();
		var hours = now.getHours();
		var minutes = now.getMinutes();
		var seconds = now.getSeconds();
		
		if(hours < 10) hours = "0" + hours;
		if(minutes < 10) minutes = "0" + minutes;
		if(seconds < 10) seconds = "0" + seconds;

		var time = hours + ':' +  minutes + ':' + seconds;

		oTime.innerHTML = time;
		setTimeout("showTime()", 1);
	}	

    // simplest
	function showDateTimeLong()
	{
		var d = new Date(); 
		var timer = document.getElementById('Timer');
		if(timer) {
			timer.innerHTML = days[d.getDay()] + " " + d.toLocaleString();
		}

		setTimeout("showDateTimeLong()", 1000);
		
	}

function BookMark(sBookMarkText, sCssClass)
{
	// If no book mark text passed in, use the document title and its URL
	// or otherwise.
				
	sBookMarkText = (sBookMarkText == "") 
					? window.document.title + " at " + window.location.href
					: sBookMarkText;

	return "" +
		 "<a class='" + sCssClass + "' " +
		 " id='idPopUpItemBookMark'" +
		 " onMouseOver=\"window.status='Bookmark this site'\" " +
		 " onMouseOut=\"window.status='' \" " +
		 " onclick='ClosePopUp();' " +
		 " href=\"javascript:window.external.AddFavorite" +
		 " ('"+  window.location.href + "', '" + sBookMarkText + "')\" >" +				 
		 "Book Mark </a>";		
}

//-----------------------------------------------------------
// Display Page Footer
//-----------------------------------------------------------
document.write (
"<table class='FooterTable' cellpadding=0 cellspacing=5 >"
+"  <tr> "
+"    <td class='Footer' colspan='2'>&copy;"+ (new Date()).getFullYear() +" North Toronto Karate School - All rights reserved.</td>"
+"  </tr>"
+"  <tr> "
+"    <td  class='Footer' colspan='2'>"
+"    &nbsp; &nbsp;Designed and maintained by <a href='http://www.nationalmartialartscircuit.com/Thang_Nguyen.php'>Thang Nguyen</a> <br><br> "
+	"</td>"
+"  </tr>"
+"  <tr> "
+"    <td class='Footer' width='5%'><b>Contact:</b><br><br></td>"
+"    <td class='Footer' width='95%'>"
+"		<a href='mailto:mikepalitti@rogers.com'>School Director</a> | <a href='http://www.nationalmartialartscircuit.com/Thang_Nguyen.php'>Web Administrator</a>"
+"		or call (416) 875-9820<br><br>"
+"	</td>"
+"  </tr>"

+"</table>"
+ "<br>" 
+ "<br>"
);

//showDateTimeLong();
window.status = "(c) North Toronto Karate School";


/*// ]]-->*/
