//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
//	Global Time functions
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::://

		var USER_HOURS; 
		var USER_MINS;
		var USER_SECS;
		
		function Clock_Counter(){
		// Stores  global time values relative to user's system clock
				return function(){
						var date = new Date();
						USER_HOURS = date.getHours();
						USER_MINS = date.getMinutes();
						USER_SECS = date.getSeconds();
						//recursive call. updates clock every 1000 ms
						setTimeout(Clock_Counter(), 1000);
				}
		}
		
		function Delay_Function_Call(this_function, delay, arg_array, counter){
				return function(){
						
						//update counter. time is measured in seconds
						if (!counter) 	{counter = 0;}
						window.status = counter;
						
						//recurse function next second if counter is less than desired delay
						if (delay > counter)	{setTimeout(Delay_Function_Call(this_function, delay, arg_array, ++counter), 1000);}
						
						//else we want to call the function
						else	{
								if (arg_array)	{this_function(arg_array.shift());}
								else			{this_function();}
						}
				}
		}
