function nowtrending_sectionpages(str)
{
	if(str != '')
	{
		$.post("/ibnhome/api/nowtrending_sectionpage.php", {'t': str}, function(data)
		{
		$("#nowtrending").html(data);
		});
	}
}

function stickypost_(section_id)
{
	if(section_id > 0)
	{
		$.post("/api/web18/stickypost.php", {'section_id': section_id}, function(data)
		{
			$("#nowtrending").html(data);
		});
	}
}

function nowtrending_home()
{
	
		$.post("/ibnhome/api/nowtrending_home.php", {'t': '1'}, function(data)
		{
			//alert(data)
		$("#nowtrendinghome").html(data);
		});
	
}

function nowtrending_homepage()
{
	
		$.post("/ibnhome/api/nowtrending_homepage.php", {'t': '1'}, function(data)
		{
			//alert(data)
		$("#nowtrendinghome").html(data);
		});
	
}
function nowtrending_sectionhome(str)
{
	
		$.post("/ibnhome/api/nowtrending_sectionhome.php", {'t': str}, function(data)
		{
			//alert(data)
		$("#nowtrendinghome").html(data);
		});
	
}
function sleep(milliseconds) {
  var start = new Date().getTime();
  for (var i = 0; i < 1e7; i++) {
    if ((new Date().getTime() - start) > milliseconds){
      break;
    }
  }
}


