var showbtn={divBtnContainer:null,spanBtnContainer:null,addItem:function(oItem,iNum){var aItem=document.createElement("A");aItem.className="button1";aItem.href=oItem.href;if(typeof oItem.click=='function')aItem.onclick=oItem.click;aItem.appendChild(document.createTextNode(oItem.title));this.divBtnContainer.appendChild(aItem);},addTitleItem:function(oItem,iNum){var aItem=document.createElement("A");aItem.className="btn";aItem.href=oItem.href;if(typeof oItem.click=='function')aItem.onclick=oItem.click;aItem.appendChild(document.createTextNode(oItem.title));this.spanBtnContainer.appendChild(aItem);}};showbtn.loadData=function(sUrl,fpCallBack,oCallBackScope){var oReq=zXmlHttp.createRequest();oReq.onreadystatechange=function(){if(oReq.readyState==4){if(oReq.status==200||oReq.status==304){var sJSON=oReq.responseText;var oobtn=null;if(sJSON!=''){oobtn=sJSON.parseJSON(function(key,value){return value;});this.callBack=(typeof fpCallBack=="function")?fpCallBack:function(){};this.callBackScope=(typeof oCallBackScop=="object")?oCallBackScope:this;this.callBack.apply(oCallBackScope,[oobtn])}}}};oReq.open("GET",sUrl,true);oReq.send(null);};


