			function createCookie(name,value,date) {	
				var expires = "; expires="+date.toGMTString();
				document.cookie = name+"="+value+expires+"; path=/";
			}
			
			function readCookie(name) {
				var nameEQ = name + "=";
				var ca = document.cookie.split(';');
				for(var i=0;i < ca.length;i++) {
					var c = ca[i];
					while (c.charAt(0)==' ') c = c.substring(1,c.length);
					if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
				}
				return null;
			}
			
			function eraseCookie(name) {
				createCookie(name,null,new Date());
			}
			
			
			var finish  = new Date("January 3, 2011 18:00:00");
			var cur = new Date();

			
			if(readCookie("holidays") == null && cur < finish){
				closingBox();
				
			}
			
			function NotificationBox(text){
				var box  = '<div id="notificationbox">';
					box += '<div id="notificationclose" onClick="javascript:selfRemove(\'notificationbox\');closingCookie()"></div>';
					box += text;
					box += "</div>"
					document.write(box);
					
			}

			
			function selfRemove(name){
				var r = document.getElementById(name);
					r.parentNode.removeChild(r); 
			}
			
			function closingCookie(){
				createCookie("holidays","1",finish);
			}
			
			function closingBox(){
				txt = 'Our offices will be closed for the Holidays starting <strong>Friday December 24th at<br>'+
					  'Noon EST</strong> and will reopen <strong>Tuesday December 28th</strong>. We will also be closed<br>'+
					  '<strong>Monday January 3rd</strong>.<br><br>'+
				      'We wish you a Happy Holiday Season and New Year!';
					  
				NotificationBox(txt);	
			}
	
