if(!window.CID){
	window.CID = {

		init: function(){
			Consulte.setBackOptions({
				parameters:{back:true},
				hadBanner:true
			});
		},

		main: function(num){
			new Ajax.Request(contextPath + "/cid/main.action", {
				parameters:{back:true},
				onComplete:function(response){
					if(Consulte.hasError(response) == false){
						$("content").innerHTML = response.responseText;
					}
				}
			});
		},

		showChapter: function(num){
			new Ajax.Request(contextPath + "/cid/showChapter.action", {
				parameters:{chapter:num},
				onComplete:function(response){
					if(Consulte.hasError(response) == false){
						$("content").innerHTML = response.responseText;
					}
				}
			});
		},

		chapter: function(num){
			new Ajax.Request(contextPath + "/cid/chapter.action", {
				parameters:{chapter:num},
				onComplete:function(response){
					if(Consulte.hasError(response) == false){
						$("chapterContent").innerHTML = response.responseText;
					}
				}
			});
		}
	};
}
