function ddsliderplayers(elementid,handleid, pausetime, currentclassname) { try { if (typeof ddsliderplayer == 'undefined') ddsliderplayer = {}; } catch (e) { ddsliderplayer = {}; } var elementobj = document.getelementbyid(elementid); var handler = document.getelementbyid(handleid); ddsliderplayer[elementid] = new ddsliderplayer(elementobj, handler, pausetime, currentclassname); elementobj.onmouseover = function() { ddsliderplayer[elementid].pause(); } elementobj.onmouseout = function() { ddsliderplayer[elementid].play(); }; return ddsliderplayer; } function ddsliderplayer(elementobj, handler, pausetime, currentclassname) { this.id = elementobj.id; this.timer; this.curscreen = 0; this.elementobj = elementobj; this.pausetime = (undefined == pausetime) ? 3000 : pausetime * 1000; this.currentclassname = (currentclassname == undefined) ? 'sel' : currentclassname; this.pics = getelementsbyclassname('switchitem',elementobj); this.handlers = getelementsbyclassname('switchnavitem',handler); this.maxscreen = this.pics.length; for (i=0;i