getMilliseconds = function(){
	return new Date().getTime();
}// JavaScript Document

// Функция получения объекта DOM
getObject = function(obj){
	//alert('Параметр:' + obj);
	eval('Obj = ' + obj);
	//alert(Obj);
	return Obj;
}


//jQuery.noConflict();

main = {
	init: function(){
		
		// Подгружаем расширения
		
		this.resize_body();
		
	},
	
	
	// Подгоняем тело
	resize_body: function(){
		 
		var bodyH = jQuery(document).height();
		
		var content = jQuery('div.content');
		var contentH = content.height();
		
		// Левый блок
		var leftBlockH = jQuery('div.left_block').height();
		
		// Если высота центрального блока слишком маленькая
		if( bodyH > ( jQuery('div.header').height() +  jQuery('div.footer').height() +  contentH )) {
			
			
			//alert(  jQuery('div.header').height() +  jQuery('div.footer').height() +  contentH   );
			//alert(  bodyH  );
			//alert(contentH);
			
			//content.height(300);
			//content.height(( bodyH - jQuery('div.header').height() - jQuery('div.footer').height()  ));
			content.css({
				'min-height': ( bodyH - jQuery('div.header').height() - jQuery('div.footer').height()  )			
			});
			/*contentH.css({
				'min-height': ( bodyH - jQuery('div.header').height() - jQuery('div.footer').height()  )	;		 
			})	*/
		}
		
		// Если высота центрального блока меньше чем левого блока
		else if(contentH <  leftBlockH){
			content.css({
				'min-height': ( leftBlockH  )			
			});	
		}  
	},
	
	loadExtends: function(){
		// Подгружаем SWFobject
		google.load('swfobject', '2.2');		// Дока http://designformasters.info/posts/flash-embed-with-swfobject-2/
		google.load('jquery', '1.3.2', {'uncompressed': false});
		//jQuery.noConflict();	
	}
}

main.loadExtends();
