function ajax_get_recent_blog()
{
	
	//var loading = document.getElementById("loading_bl");
	//loading.style.display = 'block';
	//div.innerHTML = "<span id='loading_bl'></span>";
	
	jQuery.noConflict();
	(function($) {
	
  		$(function() {

			if(location.hash =='#rblog'){
				$("#loading_bl").fadeIn(500,0);
			}else{
				$("#loading_bl").hide();
			}
			$.getScript('blog/view/recent_blogs_feed-JAVASCRIPT_output-true.html', function() {
					var div = document.getElementById("blogfeed");
					div.innerHTML = textblog; 
					if(location.hash =='#rblog'){
						$("#loading_bl").fadeOut(2000);
					}					
				}
			); 
		
		});
	})(jQuery);
}


function ajax_get_recent_comment()
{
	
	jQuery.noConflict();
	(function($) {
	
  		$(function() {

			if(location.hash =='#rcomm'){
				$("#loading_comm").fadeIn(500,0);
			}else{
				$("#loading_comm").hide();
			}
			$('#recent_comm').load('ajax.php?mode=recent_comm', function() {
					if(location.hash =='#rcomm'){
						$("#loading_comm").fadeOut(2000);
					}					
				}
			); 
		
		});
	})(jQuery);
}


function ajax_get_latest_topics()
{
	
	jQuery.noConflict();
	(function($) {
	
  		$(function() {

			if(location.hash =='#rpost'){
				$("#loading_latest_topics").fadeIn(500,0);
			}else{
				$("#loading_latest_topics").hide();
			}
			$('#latest_topics').load('ajax.php?mode=latest_topics', function() {
					if(location.hash =='#rpost'){
						$("#loading_latest_topics").fadeOut(2000);
					}					
				}
			); 
		
		});
	})(jQuery);
}


function ajax_get_latest_hot_topics()
{
	
	jQuery.noConflict();
	(function($) {
	
  		$(function() {

			if(location.hash =='#rtopic' || location.hash =='' ){
				$("#loading_latest_hot_topics").fadeIn(500,0);
			}else{
				$("#loading_latest_hot_topics").hide();
			}
			$('#latest_hot_topics').load('ajax.php?mode=latest_hot_topics', function() {
					if(location.hash =='#rtopic' || location.hash ==''){
						$("#loading_latest_hot_topics").fadeOut(2000);
					}					
				}
			); 
		
		});
	})(jQuery);
}


function ajax_get_recent_garage()
{
	
	jQuery.noConflict();
	(function($) {
	
  		$(function() {
			$("#loading_recent_garage").fadeIn(500,0);
			$('#recent_garage').load('ajax.php?mode=recent_garage', function() {
					$("#loading_recent_garage").fadeOut(2000);
				
				}
			); 
		
		});
	})(jQuery);
}

function ajax_get_gallery_recent()
{
	
	jQuery.noConflict();
	(function($) {
	
  		$(function() {

			//if(location.hash =='#rtopic' || location.hash =='' ){
				$("#loading_gallery_recent").fadeIn(500,0);
			//}else{
			//	$("#loading_latest_hot_topics").hide();
			//}
			$('#gallery_recent').load('ajax.php?mode=gallery_recent', function() {
					//if(location.hash =='#rtopic' || location.hash ==''){
						$("#loading_gallery_recent").fadeOut(2000);
					//}					
				}
			); 
		
		});
	})(jQuery);
}

function ajax_get_gallery_random()
{
	
	jQuery.noConflict();
	(function($) {
	
  		$(function() {

			$("#loading_gallery_random").fadeIn(500,0);
			$('#gallery_random').load('ajax.php?mode=gallery_random', function() {
					$("#loading_gallery_random").fadeOut(2000);
			
				}
			); 
		
		});
	})(jQuery);
}

function ajax_get_video_recent()
{
	
	jQuery.noConflict();
	(function($) {
	
  		$(function() {
			$("#loading_video_recent").fadeIn(500,0);
			$('#video_recent').load('ajax.php?mode=video_recent', function() {
					$("#loading_video_recent").fadeOut(2000);
				
				}
			); 
		
		});
	})(jQuery);
}
