function GetGg(){
		$.getJSON("get.aspx","act=GetGg&time="+new Date(),function(date){
			if (date.Error!=undefined) {
			alert(date.Error);
		}
		else
		{
		var Itemjson = eval(date.Gg);
		if(Itemjson.length < 1)
		{
				$('<tr></tr>')
				.html("<td height=\"30\" colspan=\"14\" align=\"center\" valign=\"top\">没有找到相关内容</td>")
				.appendTo("#Tbody1");
		}
		else
		{
			$(Itemjson).each(function(i){
					$('<li></li>')
					.html('<a href="Gg_Show.aspx?ID='+Itemjson[i].Id+'" style="color:'+Itemjson[i].TitleFontColor+'">'+Itemjson[i].title+'</a>  ['+Itemjson[i].Times+']')
					.appendTo("#Tbody1");
				
			});
		} 
		}
	});
}
function GetImg(){
		$.getJSON("get.aspx","act=GetTopImg&time="+new Date(),function(date){
			if (date.Error!=undefined) {
			alert(date.Error);
		}
		else
		{
		var Itemjson = eval(date.Gg);
		if(Itemjson.length < 1)
		{
				$('<a href="ImgList.aspx"></a>')
				.html('<img height="150" width="200" src="http://rxjh.xwwl.net/Image.aspx?Percent=0.5&amp;url=2010-06%5C20100603060600.jpg">')
				.appendTo("#scrollArea");
		}
		else
		{
			$(Itemjson).each(function(i){
				$('<a href="ImgList.aspx"></a>')
				.html('<img height="150" width="200" src="http://rxjh.xwwl.net/Image.aspx?Percent=0.5&amp;url='+Itemjson[i].Url+'">')
				.appendTo("#scrollArea");
				
			});
		} 
		}
	});
}
$(function(){
	GetGg();
	GetImg();
	if ($("#photoMain").length > 0){
		$("#photoMain").imageScroller({
		frame:"scrollArea",
		child:"a",
		time :1500,
		width:200,
		auto:true
		});
	};
});

