﻿var paramter="menuId="+menuId+"&subId="+subId+"&classId="+classId;


//调用TOP
new gajson.gaAjax("top.ashx",
				new gajson.tool.parameter('style',paramter,'',''),
				gajson.client.StyleText,
				"GET",
				"gajson_top"
				);
			
//页头广告调用
new gajson.gaAjax("lm_image2.ashx",
				new gajson.tool.parameter("style","ad_class=1000000000003&width=960&height=92","",""),
				gajson.client.StyleText,
				"GET",
				"gajson_image"
				);  
				
//调用公共FOOT
new gajson.gaAjax("foot.txt",
				 new gajson.tool.parameter("style","","",""),
				gajson.client.StyleText,
				"GET",
				"gajson_footer"
				);
	
//页面左边交易提示AJAX调用
new gajson.gaAjax("jyts.txt",
				  new gajson.tool.parameter("style","","",""),
				gajson.client.StyleText,
				"GET",
				"gajson_jyts"
				);

				//页面左边快速导航AJAX调用
new gajson.gaAjax("ksdh.ashx",
				new gajson.tool.parameter("style",paramter,"",""),
				gajson.client.StyleText,
				"GET",
				"gajson_ksdh"
				);

new gajson.gaAjax("SiteMapHandler.ashx",
				new gajson.tool.parameter("style",paramter,"",""),
				gajson.client.StyleText,
				"GET",
				"gajson_dqwz"
				);
	
gajson.client.getData = function(){
	new gajson.gaAjax("list.ashx",
			new gajson.tool.parameter("json_4","classid="+classId+"&pageIndex="+pageIndex+"&infoFlag=finfo&type=1&keywords="+keywords,"/ctzq/zxzx/zx03.html?"+paramter,"1=1"),
			gajson.client.InfoListMoreText,
			"POST",
			"gajson_info_20"
			);
}

//这个方法名称不能变化,因为在其它fenye.jsp页面里面有调用这个方法.
gotoPage = function (page){
	page = parseInt(page);
	if(isNaN(page) || page < 1 || page > totalPages){
		pageIndex = pageIndex;
	}else{
		pageIndex = page;
	}
	gajson.client.getData();
	gajson.client.FenYe(pageIndex,totalPages);
}

/***
	获取对应栏目下的信息列表;保证是第一次进来执行。  
**/
if(totalCounts == -1){
	gajson.client.getData();
}

//显示翻页信息
gajson.client.FenYe = function (pageIndex,totalPages){
	new gajson.gaAjax("fenye.ashx",
			new gajson.tool.parameter("style","pageIndex="+pageIndex+"&totalPages="+totalPages,"","1=1"),
			gajson.client.StyleText,
			"GET",
			"gajson_fenye"
			);
}
