
/*!
 * jQuery UI Widget-factory plugin boilerplate (for 1.8/9+)
 * Author: @addyosmani
 * Further changes: @peolanha
 * Licensed under the MIT license
 *http://jqueryui.com/demos/widget/
 TIMER
 http://bililite.com/blog/extending-jquery-ui-widgets/ GUTE ADDRESSE
 */
var hallo=function(text)
{
	alert('hi');
};

    
 //########### GLOBAL FUNCTION ################################

 	var count_debugg=0;
 	
 	var DEBUGMAXHEIGHT=500;
 	var DEBUGMINHEIGHT=20;
 	var DEBUGMAXWEIGHT=400;
 	var DEBUGMINWEIGHT=20;

    var debug=function (msg_string, showDebug, debugElement)	
    {
		if($('#debug').html()==null)
		{
			$('body').append('<div id="debug"></div><div id="RES_CHECKER_W1024" class="RES_CHECKER"></div><div id="RES_CHECKER_H748"  class="RES_CHECKER"></div>	');	
			

			
			$('#debug').animate({'max-height': DEBUGMINHEIGHT+'px','max-width': DEBUGMINWEIGHT+'px'}).css('overflowY', 'hidden').css('overflowX', 'hidden');
			$('.RES_CHECKER').fadeOut();
			
			$('#debug').click(function()
			{
				if($(this).height()<DEBUGMINHEIGHT+50)
				{
					$(this).animate({'max-height': DEBUGMAXHEIGHT+'px','max-width': DEBUGMAXWEIGHT+'px'}).css('overflowY', 'auto').css('overflowX', 'hidden');
					$('.RES_CHECKER').fadeIn();
				}else
				{
					$(this).animate({'max-height': DEBUGMINHEIGHT+'px','max-width': DEBUGMINWEIGHT+'px'}).css('overflowY', 'hidden').css('overflowX', 'hidden');
					$('.RES_CHECKER').fadeOut();
				}
				
			});
			
			
			
		}

		if(msg_string==undefined)
		{
			msg_string="Funktioniert";
		}
		
		
		
		if(showDebug!=0 &&(debugElement!=0 ||debugElement==undefined))
		{
			$('#debug').prepend('<br>'+count_debugg+' | '+msg_string);
			count_debugg++;
		}
	};
	
	
	
	
	
	var getActuallyTime= function()
         {
         	var CDate=new Date();
			var string_my=''+CDate.getFullYear()+'-'+(CDate.getMonth()+1)+'-'+CDate.getDate()+' '+CDate.getHours()+':'+CDate.getMinutes()+':'+CDate.getSeconds();
			return  string_my;      
         };	



