function switchpic(_container) { this.container=(typeof(_container)=='string')?document.getelementbyid(_container):_container; this.width=390; this.height=258; this.textheight=36; this.flashpath='/application/switchpic.swf'; this.pics=new array(); this.links=new array(); this.texts=new array(); this.picfolder="/demo/testimg/"; this.addpic=function(_name,_link,_text) { this.pics.push(this.picfolder+_name); this.links.push(_link); _text=_text || ""; this.texts.push(_text); } this.show=function() { var _ostring=''; _ostring+=''; _ostring+=''; _ostring+=''; _ostring+=''; _ostring+=''; this.container.innerhtml=_ostring; } }