var hostProtocol = "http://";
var hostName = document.domain;
var appPath  = "/techtree/jsp/";
function showMoreNews(opt)
{
        var scrFile  = "tt_homebox.jsp?opt="+opt;
	var path = hostProtocol+hostName+appPath+scrFile;
        $.ajax(
        {
                url: path+"&tm="+new Date().getTime(),
                error: function()
                {
                        //alert('Error : please try again  ');
                },
                success: function(data)
                {
			var content = $.trim(data);
			if (opt != null)
			{
				if (opt == 2)
				{
					for (x=opt; x>1; x--)
					{
						$("#m"+(x)).show();
						$("#more_news"+(x)).hide();
					}
					$("#m1").show();
					$('#more_news1').scrollTo();
				}
				else
				{
					$("#more_news"+(opt+1)).html(content).show();
					$("#m"+opt).hide();
				}
                        }
                }
        });
}
