// JavaScript Document
$(document).ready( function() {
	$("#loading").ajaxStart( function() {
		$(this).show();
	});
	$("#loading").ajaxStop( function() {
		$(this).hide();
	});
});
function setZk(id) {
	var img = '';
	for ( var i = 1; i < 7; i++) {
		if (i == id) {
			document.getElementById('Zk' + i).className = 'flmenu_yes';
			document.getElementById('ZkBox' + i).style.display = '';
			disPage(id,1);
		} else {
			document.getElementById('Zk' + i).className = '';
			document.getElementById('ZkBox' + i).style.display = 'none';
		}
	}
}
function disPage(id,nowpage) {
	var data = "adbelong=" + id + "&nowpage="+nowpage;
	$.ajax( {
		url : URL + "/AiscountShow/ajaxdisshow",
		type : 'GET',
		data : data,//对页面所有input元素进行序列化
		dataType : 'html',
		error : function() {
			//alert('Error loading XML document');
		},
		success : function(data) {
			$("#ZkBox" + id).html(data);
		}
	});
}
