var CalendarControl = { 
								Version: '1.0', 
								require: function(libraryName, callback) { 
									var h = $A(document.getElementsByTagName("head")).first();
									var s = document.createElement("script");
									s.type = "text/javascript";
									s.src = libraryName;
									h.appendChild(s);
									if (callback != null) {
										s.onreadystatechange = function() {			// IE
											if (this.readyState == 'loaded' ||		
												this.readyState == 'complete')		// Cached
												callback();
										}
										s.onload = callback;  // Other
									}					
								}, 
								load: function() { 
									if ((typeof Prototype == 'undefined') || (typeof Element == 'undefined') || (typeof Element.Methods == 'undefined') || 
										parseFloat(Prototype.Version.split(".")[0] + "." + Prototype.Version.split(".")[1]) < 1.5)
										throw("[REQ] Prototype JavaScript Framework >= 1.5.0");
									$A(document.getElementsByTagName("script")).findAll( function(s) {
										return (s.src && s.src.match(/Module\.aspx(\?.*)?$/))
									} ).each( function(s) {
										var path = s.src.replace(/Module\.aspx(\?.*)?$/,'');
										CalendarControl.require(
											path + 'Module/Embedded/JavaScript/Cookie.js',
											function() {
												CalendarControl.require(
													path + 'Module/Embedded/JavaScript/Default.js',
													function() {
														CalendarControl.require('http://icalendar.nbcc.ca:80/Module.aspx?PMID=b22a6f16-81f6-4d98-bd64-25c189fb49d6&Parent=1&TimeStamp=634012508017727500');
													}
												);
											}
										);
									} );
								},
								loadDate: function(date) {
									CalendarControl.require('http://icalendar.nbcc.ca:80/Module.aspx?PMID=b22a6f16-81f6-4d98-bd64-25c189fb49d6' + '&Date=' + (date.getMonth() + 1) + '/' + date.getDate() + '/' + date.getFullYear());
								}
							}
							CalendarControl.load();CalendarControl.dayShort = [ 'S','M','T','W','T','F','S']; CalendarControl.monthNames = [ 'January','February','March','April','May','June','July','August','September','October','November','December']; 