rem: function createHtml(o){ var b=""; b+="<"+o.tag; for(var _c in o){ if(_c=="tag"||_c=="children"||_c=="html"||typeof o[_c]=="function"){ 
add: eidogo.Player.prototype={infoLabels:{GN:t["game"],PW:t["white"],WR:t["white rank"],WT:t["white team"],PB:t["black"],BR:t["black rank"],BT:t["black team"],HA:t["handicap"],KM:t["komi"],RE:t["result"],DT:t["date"],GC:t["info"],PC:t["place"],EV:t["event"],RO:t["round"],OT:t["overtime"],ON:t["opening"],RU:t["ruleset"],AN:t["annotator"],CP:t["copyright"],SO:t["source"],TM:t["time limit"],US:t["transcriber"],AP:t["created with"]},months:[t["january"],t["february"],t["march"],t["april"],t["may"],t["june"],t["july"],t["august"],t["september"],t["october"],t["november"],t["december"]],init:function(_d){ _d=_d||{}; this.mode=_d.mode?_d.mode:"play"; this.dom={}; this.dom.container=_2(_d.domId); if(!this.dom.container){ alert(t["dom error"]); return; } this.uniq=(new Date()).getTime(); this.gameTree=new eidogo.GameTree(); this.cursor=new eidogo.GameCursor(); this.progressiveLoad=_d.progressiveLoad?true:false; this.progressiveLoads=null; this.progressiveUrl=null; this.searchUrl=_d.searchUrl; this.board=null; this.rules=null; this.currentColor=null; this.moveNumber=null; this.totalMoves=null; this.variations=null; this.timeB=""; this.timeW=""; this.regionTop=null; this.regionLeft=null; this.regionWidth=null; this.regionHeight=null; this.regionBegun=null; this.regionClickSelect=null; this.mouseDown=null; this.mouseDownX=null; this.mouseDownY=null; this.labelLastLetter=null; this.labelLastNumber=null; this.resetLastLabels(); this.prefs={}; this.prefs.markCurrent=typeof _d.markCurrent!="undefined"?_d.markCurrent:true; this.prefs.markNext=typeof _d.markNext!="undefined"?_d.markNext:false; this.prefs.markVariations=typeof _d.markVariations!="undefined"?_d.markVariations:true; this.prefs.showGameInfo=typeof _d.showGameInfo!="undefined"?_d.showGameInfo:true; this.prefs.showPlayerInfo=typeof _d.showPlayerInfo!="undefined"?_d.showPlayerInfo:true; this.propertyHandlers={W:this.playMove,B:this.playMove,KO:this.playMove,MN:this.setMoveNumber,AW:this.addStone,AB:this.addStone,AE:this.addStone,CR:this.addMarker,LB:this.addMarker,TR:this.addMarker,MA:this.addMarker,SQ:this.addMarker,TW:this.addMarker,TB:this.addMarker,PL:this.setColor,C:this.showComments,N:this.showAnnotation,GB:this.showAnnotation,GW:this.showAnnotation,DM:this.showAnnotation,HO:this.showAnnotation,UC:this.showAnnotation,V:this.showAnnotation,BM:this.showAnnotation,DO:this.showAnnotation,IT:this.showAnnotation,TE:this.showAnnotation,BL:this.showTime,OB:this.showTime,WL:this.showTime,OW:this.showTime}; this.constructDom(); this.nowLoading(); this.loadPath=_d.loadPath&&_d.loadPath.length>1?_d.loadPath:[0,0]; this.sgfPath=_d.sgfPath; this.gameName=_d.gameName; if(typeof _d.sgf=="string"){ var _e=new eidogo.SgfParser(_d.sgf); this.load(_e.tree); }else{ if(typeof _d.sgf=="object"){ this.load(_d.sgf); }else{ if(typeof _d.sgfUrl=="string"||this.gameName){ if(!_d.sgfUrl){ _d.sgfUrl=this.sgfPath+this.gameName+".sgf"; } this.remoteLoad(_d.sgfUrl,null,false); if(_d.progressiveLoad){ this.progressiveLoads=0; this.progressiveUrl=_d.progressiveUrl||_d.sgfUrl.replace(/\?.+$/,""); } }else{ var _f=_d.boardSize||"19"; var _10={nodes:[],trees:[{nodes:[{SZ:_f}],trees:[]}]}; if(_d.opponentUrl){ this.opponentUrl=_d.opponentUrl; this.opponentColor=_d.opponentColor=="B"?_d.opponentColor:"W"; var _11=_10.trees.first().nodes.first(); _11.PW=t["you"]; _11.PB="GNU Go"; } this.load(_10); } } } },initGame:function(_12){ var _13=_12.trees.first().nodes.first().SZ; if(!this.board){ this.createBoard(_13||19); } this.reset(true); this.totalMoves=0; var _14=new eidogo.GameCursor(this.cursor.node); while(_14.next()){ this.totalMoves++; } this.totalMoves--; this.showInfo(); if(this.prefs.showPlayerInfo){ this.dom.infoPlayers.style.display="block"; } this.enableNavSlider(); this.selectTool("play"); },createBoard:function(_15){ _15=_15||19; try{ var _16=new eidogo.BoardRendererHtml(this.dom.boardContainer,_15); this.board=new eidogo.Board(_16,_15); } catch(e){ if(e=="No DOM container"){ this.croak(t["error board"]); return; } } if(_15!=19){ _9(this.dom.boardContainer,"with-coords"); } this.board.renderer.domNode.appendChild(this.dom.searchRegion); this.rules=new eidogo.Rules(this.board); var _17=this.board.renderer.domNode; _4(_17,"mousemove",this.handleBoardHover,this,true); _4(_17,"mousedown",this.handleBoardMouseDown,this,true); _4(_17,"mouseup",this.handleBoardMouseUp,this,true); _4(document,"keydown",this.handleKeypress,this,true); },load:function(_18,_19){ if(!_19){ _19=new eidogo.GameTree(); this.gameTree=_19; } _19.loadJson(_18); _19.cached=true; this.doneLoading(); if(!_19.parent){ this.initGame(_19); }else{ this.progressiveLoads--; } if(this.loadPath.length){ this.goTo(this.loadPath,false); if(!this.progressiveLoad){ this.loadPath=[0,0]; } }else{ this.refresh(); } },remoteLoad:function(url,_1b,_1c,_1d){ _1c=_1c=="undefined"?true:_1c; if(_1c){ url=this.sgfPath+url+".sgf"; } var _1e=function(req){ var _20=req.responseText; var _21=_20.charAt(0); var i=1; while(i<_20.length&&(_21==" "||_21=="\r"||_21=="\n")){ _21=_20.charAt(i++); } if(_21=="("){ var sgf=new eidogo.SgfParser(_20); this.load(sgf.tree,_1b); }else{ if(_21=="{"){ _20=eval("("+_20+")"); this.load(_20,_1b); }else{ this.croak(t["invalid data"]); } } }; var _24=function(req){ this.croak(t["error retrieving"]+req.statusText); }; _3("get",url,null,_1e,_24,this,10000); },fetchOpponentMove:function(){ this.nowLoading(t["gnugo thinking"]); var _26=function(req){ this.doneLoading(); this.createMove(req.responseText); }; var _28=function(req){ this.croak(t["error retrieving"]+o.statusText); }; var _2a={sgf:this.gameTree.trees[0].toSgf(),move:this.currentColor,size:this.gameTree.trees.first().nodes.first().SZ}; _3("post",this.opponentUrl,_2a,_26,_28,this,45000); },goTo:function(_2b,_2c){ _2c=typeof _2c!="undefined"?_2c:true; if(_2b instanceof Array){ if(!_2b.length){ return; } if(_2c){ this.reset(true); } while(_2b.length){ var _2d=parseInt(_2b.shift(),10); if(_2b.length==0){ for(var i=0;i<_2d;i++){ this.variation(null,true); } }else{ if(_2b.length){ this.variation(_2d,true); if(_2b.length!=1){ while(this.cursor.nextNode()){ this.execNode(true); } } if(_2b.length>1&&this.progressiveLoads){ return; } } } } this.refresh(); }else{ if(!isNaN(parseInt(_2b,10))){ var _2f=parseInt(_2b,10); if(_2c){ this.reset(true); _2f++; } for(var i=0;i<_2f;i++){ this.variation(null,true); } this.refresh(); }else{ alert("Don't know how to get to '"+_2b+"'!"); } } },reset:function(_30,_31){ this.board.reset(); this.currentColor="B"; this.moveNumber=0; if(_31){ this.cursor.node=this.gameTree.trees.first().nodes.first(); }else{ this.cursor.node=this.gameTree.nodes.first(); } this.refresh(_30); },refresh:function(_32){ if(this.progressiveLoads){ var me=this; setTimeout(function(){ me.refresh.call(me); },10); return; } this.moveNumber--; if(this.moveNumber<0){ this.moveNumber=0; } this.board.revert(1); this.execNode(_32); },variation:function(_34,_35){ if(this.cursor.next(_34)){ this.execNode(_35); this.resetLastLabels(); if(this.progressiveLoads){ return false; } return true; } return false; },execNode:function(_36){ if(this.progressiveLoads){ var me=this; setTimeout(function(){ me.execNode.call(me,_36); },10); return; } if(!_36){ this.dom.comments.innerHTML=""; this.timeB=""; this.timeW=""; this.board.clearMarkers(); } if(this.moveNumber<1){ this.currentColor="B"; } var _38=this.cursor.node.getProperties(); for(var _39 in _38){ if(this.propertyHandlers[_39]){ (this.propertyHandlers[_39]).apply(this,[this.cursor.node[_39],_39,_36]); } } if(_36){ this.board.commit(); }else{ if(this.opponentUrl&&this.opponentColor==this.currentColor&&this.moveNumber==this.totalMoves){ this.fetchOpponentMove(); } this.findVariations(); this.updateControls(); this.board.commit(); this.board.render(); } if(this.progressiveUrl&&!this.cursor.node.parent.cached){ this.nowLoading(); this.progressiveLoads++; this.remoteLoad(this.progressiveUrl+"?id="+this.cursor.node.parent.id,this.cursor.node.parent); } },findVariations:function(){ this.variations=[]; if(!this.cursor.node){ return; } if(this.prefs.markNext&&this.cursor.node.nextSibling!=null){ this.variations.push({move:this.cursor.node.nextSibling.getMove(),treeNum:null}); } if(this.cursor.node.nextSibling==null&&this.cursor.node.parent&&this.cursor.node.parent.trees.length){ var _3a=this.cursor.node.parent.trees; for(var i=0;i<_3a.length;i++){ this.variations.push({move:_3a[i].nodes.first().getMove(),treeNum:i}); } } },back:function(e,obj,_3e){ if(this.cursor.previous()){ this.moveNumber--; if(this.moveNumber<0){ this.moveNumber=0; } this.board.revert(1); this.refresh(_3e); this.resetLastLabels(); } },forward:function(e,obj,_41){ this.variation(null,_41); },first:function(){ if(!this.cursor.hasPrevious()){ return; } this.reset(false,true); },last:function(){ if(!this.cursor.hasNext()){ return; } while(this.variation(null,true)){ } this.refresh(); },pass:function(){ if(!this.variations){ return; } for(var i=0;i<this.variations.length;i++){ if(!this.variations[i].move||this.variations[i].move=="tt"){ this.variation(this.variations[i].treeNum); return; } } this.createMove("tt"); },getXY:function(e){ var _44=_6(e,this.board.renderer.domNode); var m=this.board.renderer.margin; var pw=this.board.renderer.pointWidth; var ph=this.board.renderer.pointHeight; var x=Math.round((_44[0]-m-(pw/2))/pw); var y=Math.round((_44[1]-m-(ph/2))/ph); return [x,y]; },handleBoardMouseDown:function(e){ if(this.domLoading){ return; } var xy=this.getXY(e); var x=xy[0]; var y=xy[1]; if(!this.boundsCheck(x,y,[0,this.board.boardSize-1])){ return; } this.mouseDown=true; this.mouseDownX=x; this.mouseDownY=y; if(this.mode=="region"&&x>=0&&y>=0&&!this.regionBegun){ this.regionTop=y; this.regionLeft=x; this.regionBegun=true; } },handleBoardHover:function(e){ if(this.domLoading){ return; } if(this.mouseDown||this.regionBegun){ var xy=this.getXY(e); var x=xy[0]; var y=xy[1]; if(!this.boundsCheck(x,y,[0,this.board.boardSize-1])){ return; } if(!this.regionBegun&&(x!=this.mouseDownX||y!=this.mouseDownY)){ this.selectTool("region"); this.regionBegun=true; this.regionTop=this.mouseDownY; this.regionLeft=this.mouseDownX; } if(this.regionBegun){ this.regionRight=x+(x>=this.regionLeft?1:0); this.regionBottom=y+(y>=this.regionTop?1:0); this.showRegion(); } } },handleBoardMouseUp:function(e){ if(this.domLoading){ return; } this.mouseDown=false; var xy=this.getXY(e); var x=xy[0]; var y=xy[1]; var _56=this.pointToSgfCoord({x:x,y:y}); if(this.mode=="play"){ for(var i=0;i<this.variations.length;i++){ var _58=this.sgfCoordToPoint(this.variations[i].move); if(_58.x==x&&_58.y==y){ this.variation(this.variations[i].treeNum); _7(e); return; } } if(!this.rules.check({x:x,y:y},this.currentColor)){ return; } if(_56){ this.createMove(_56); } }else{ if(this.mode=="region"&&x>=-1&&y>=-1&&this.regionBegun){ if(this.regionTop==y&&this.regionLeft==x&&!this.regionClickSelect){ this.regionClickSelect=true; }else{ this.regionBegun=false; this.regionClickSelect=false; this.regionBottom=(y<0?0:(y>=this.board.boardSize)?y:y+(y>this.regionTop?1:0)); this.regionRight=(x<0?0:(x>=this.board.boardSize)?x:x+(x>this.regionLeft?1:0)); this.showRegion(); this.dom.searchAlgo.style.display="inline"; this.dom.searchButton.style.display="inline"; } }else{ var _59; var _5a=this.board.getStone({x:x,y:y}); if(this.mode=="add_b"||this.mode=="add_w"){ this.cursor.node.emptyPoint(this.pointToSgfCoord({x:x,y:y})); if(_5a!=this.board.BLACK&&this.mode=="add_b"){ _59="AB"; }else{ if(_5a!=this.board.WHITE&&this.mode=="add_w"){ _59="AW"; }else{ _59="AE"; } } }else{ switch(this.mode){ case "tr": _59="TR"; break; case "sq": _59="SQ"; break; case "cr": _59="CR"; break; case "x": _59="MA"; break; case "number": _59="LB"; _56=_56+":"+this.labelLastNumber; this.labelLastNumber++; break; case "letter": _59="LB"; _56=_56+":"+this.labelLastLetter; this.labelLastLetter=String.fromCharCode(this.labelLastLetter.charCodeAt(0)+1); } } this.cursor.node.pushProperty(_59,_56); this.refresh(); } } },boundsCheck:function(x,y,_5d){ if(_5d.length==2){ _5d[3]=_5d[2]=_5d[1]; _5d[1]=_5d[0]; } return (x>=_5d[0]&&y>=_5d[1]&&x<=_5d[2]&&y<=_5d[3]); },getRegionBounds:function(){ var l=this.regionLeft; var w=this.regionRight-this.regionLeft; if(w<0){ l=this.regionRight; w=-w+1; } var t=this.regionTop; var h=this.regionBottom-this.regionTop; if(h<0){ t=this.regionBottom; h=-h+1; } return [t,l,w,h]; },showRegion:function(){ var _62=this.getRegionBounds(); this.dom.searchRegion.style.top=(this.board.renderer.margin+this.board.renderer.pointHeight*_62[0])+"px"; this.dom.searchRegion.style.left=(this.board.renderer.margin+this.board.renderer.pointWidth*_62[1])+"px"; this.dom.searchRegion.style.width=this.board.renderer.pointWidth*_62[2]+"px"; this.dom.searchRegion.style.height=this.board.renderer.pointHeight*_62[3]+"px"; this.dom.searchRegion.style.display="block"; },searchRegion:function(){ var _63=this.getRegionBounds(); var _64=this.board.getRegion(_63[0],_63[1],_63[2],_63[3]); var _65=_64.join("").replace(new RegExp(this.board.EMPTY,"g"),".").replace(new RegExp(this.board.BLACK,"g"),"X").replace(new RegExp(this.board.WHITE,"g"),"O"); var _66=(_63[0]<this.board.boardSize/2)?"n":"s"; _66+=(_63[1]<this.board.boardSize/2)?"w":"e"; var _67=this.dom.searchAlgo.value; this.showComments(""); this.nowLoading(); var _68=function(req){ this.doneLoading(); this.dom.comments.style.display="none"; this.dom.searchContainer.style.display="block"; this.dom.searchContainer.innerHTML=req.responseText; this.progressiveLoad=false; this.progressiveUrl=null; this.prefs.markNext=false; }; var _6a=function(req){ this.croak(t["error retrieving"]+req.statusText); }; var _6c={q:_66,w:_63[2],h:_63[3],p:_65,a:_67,t:(new Date()).getTime()}; _3("get",this.searchUrl,_6c,_68,_6a,this,45000); },compressPattern:function(_6d){ var c=null; var pc=""; var n=1; var ret=""; for(var i=0;i<_6d.length;i++){ c=_6d.charAt(i); if(c==pc){ n++; }else{ ret=ret+pc+(n>1?n:""); n=1; pc=c; } } ret=ret+pc+(n>1?n:""); return ret; },uncompressPattern:function(_73){ var c=null; var s=null; var n=""; var ret=""; for(var i=0;i<_73.length;i++){ c=_73.charAt(i); if(c=="."||c=="X"||c=="O"){ if(s!=null){ n=parseInt(n,10); n=isNaN(n)?1:n; for(var j=0;j<n;j++){ ret+=s; } n=""; } s=c; }else{ n+=c; } } n=parseInt(n,10); n=isNaN(n)?1:n; for(var j=0;j<n;j++){ ret+=s; } return ret; },createMove:function(_7a){ var _7b={}; _7b[this.currentColor]=_7a; _7b["MN"]=(++this.moveNumber).toString(); var _7c=new eidogo.GameNode(_7b); this.totalMoves++; if(this.cursor.hasNext()){ if(this.cursor.node.nextSibling){ this.cursor.node.parent.createVariationTree(this.cursor.node.getPosition()); } this.cursor.node.parent.appendTree(new eidogo.GameTree({nodes:[_7c],trees:[]})); this.variation(this.cursor.node.parent.trees.length-1); }else{ this.cursor.node.parent.appendNode(_7c); this.variation(); } },handleKeypress:function(e){ var _7e=e.keyCode||e.charCode; if(!_7e||e.ctrlKey||e.altKey||e.metaKey){ return true; } var _7f=String.fromCharCode(_7e).toLowerCase(); for(var i=0;i<this.variations.length;i++){ var _81=this.sgfCoordToPoint(this.variations[i].move); var _82=""+(i+1); if(_81.x!=null&&this.board.getMarker(_81)!=this.board.EMPTY&&typeof this.board.getMarker(_81)=="string"){ _82=this.board.getMarker(_81).toLowerCase(); } _82=_82.replace(/^var:/,""); if(_7f==_82.charAt(0)){ this.variation(this.variations[i].treeNum); _7(e); return; } } if(_7e==112||_7e==27){ this.selectTool("play"); } var _83=true; switch(_7e){ case 32: if(e.shiftKey){ this.back(); }else{ this.forward(); } break; case 39: if(e.shiftKey){ var _84=this.totalMoves-this.moveNumber; var _85=(_84>9?9:_84-1); for(var i=0;i<_85;i++){ this.forward(null,null,true); } } this.forward(); break; case 37: if(e.shiftKey){ var _85=(this.moveNumber>9?9:this.moveNumber-1); for(var i=0;i<_85;i++){ this.back(null,null,true); } } this.back(); break; case 40: this.last(); break; case 38: this.first(); break; case 192: this.pass(); break; default: _83=false; break; } if(_83){ _7(e); } },showInfo:function(){ this.dom.infoGame.innerHTML=""; var _86=this.gameTree.trees.first().nodes.first(); var dl=document.createElement("dl"); for(var _88 in this.infoLabels){ if(_86[_88]){ if(_88=="PW"){ this.dom.whiteName.innerHTML=_86[_88]+(_86["WR"]?", "+_86["WR"]:""); 
context: YAHOO.ext.DomHelper=new function(){var d=document;var _2=null;this.useDom=false;var _3=/^(?:base|basefont|br|frame|hr|img|input|isindex|link|meta|nextid|range|spacer|wbr|audioscope|area|param|keygen|col|limittext|spot|tab|over|right|left|choose|atop|of)$/i;this.applyStyles=function(el,_5){if(_5){var D=YAHOO.util.Dom;if(typeof _5=="string"){var re=/\s?([a-z\-]*)\:([^;]*);?/gi;var _8;while((_8=re.exec(_5))!=null){D.setStyle(el,_8[1],_8[2]);}}else{if(typeof _5=="object"){for(var _9 in _5){D.setStyle(el,_9,_5[_9]);}}else{if(typeof _5=="function"){YAHOO.ext.DomHelper.applyStyles(el,_5.call());}}}}};function createHtml(o){var b="";b+="<"+o.tag;for(var _c in o){if(_c=="tag"||_c=="children"||_c=="html"||typeof o[_c]=="function"){continue;}if(_c=="style"){var s=o["style"];if(typeof s=="function"){s=s.call();}if(typeof s=="string"){b+=" style=\""+s+"\"";}else{if(typeof s=="object"){b+=" style=\"";for(var _e in s){if(typeof s[_e]!="function"){b+=_e+":"+s[_e]+";";}}b+="\"";}}}else{if(_c=="cls"){b+=" class=\""+o["cls"]+"\"";}else{if(_c=="htmlFor"){b+=" for=\""+o["htmlFor"]+"\"";}else{b+=" "+_c+"=\""+o[_c]+"\"";}}}}if(_3.test(o.tag)){b+=" />";}else{b+=">";if(o.children){for(var i=0,len=o.children.length;i<len;i++){b+=createHtml(o.children[i],b);}}if(o.html){b+=o.html;}b+="</"+o.tag+">";}return b;}function createDom(o,_12){var el=d.createElement(o.tag);var _14=el.setAttribute?true:false;for(var _15 in o){if(_15=="tag"||_15=="children"||_15=="html"||_15=="style"||typeof o[_15]=="function"){continue;}if(_15=="cls"){el.className=o["cls"];}else{if(_14){el.setAttribute(_15,o[_15]);}else{el[_15]=o[_15];}}}this.applyStyles(el,o.style);if(o.children){for(var i=0,len=o.children.length;i<len;i++){createDom(o.children[i],el);}}if(o.html){el.innerHTML=o.html;}if(_12){_12.appendChild(el);}return el;}function insertIntoTable(tag,_19,el,_1b){if(!_2){_2=document.createElement("div");}var _1c;if(tag=="table"||tag=="tbody"){_2.innerHTML="<table><tbody>"+_1b+"</tbody></table>";_1c=_2.firstChild.firstChild.firstChild;}else{_2.innerHTML="<table><tbody><tr>"+_1b+"</tr></tbody></table>";_1c=_2.firstChild.firstChild.firstChild.firstChild;}if(_19=="beforebegin"){el.parentNode.insertBefore(_1c,el);return _1c;}else{if(_19=="afterbegin"){el.insertBefore(_1c,el.firstChild);return _1c;}else{if(_19=="beforeend"){el.appendChild(_1c);return _1c;}else{if(_19=="afterend"){el.parentNode.insertBefore(_1c,el.nextSibling);return _1c;}}}}}this.insertHtml=function(_1d,el,_1f){_1d=_1d.toLowerCase();if(el.insertAdjacentHTML){var tag=el.tagName.toLowerCase();if(tag=="table"||tag=="tbody"||tag=="tr"){return insertIntoTable(tag,_1d,el,_1f);}if(_1d=="beforebegin"){el.insertAdjacentHTML(_1d,_1f);return el.previousSibling;}else{if(_1d=="afterbegin"){el.insertAdjacentHTML(_1d,_1f);return el.firstChild;}else{if(_1d=="beforeend"){el.insertAdjacentHTML(_1d,_1f);return el.lastChild;}else{if(_1d=="afterend"){el.insertAdjacentHTML(_1d,_1f);return el.nextSibling;}}}}throw "Illegal insertion point -> \""+_1d+"\"";}var _21=el.ownerDocument.createRange();var _22;if(_1d=="beforebegin"){_21.setStartBefore(el);_22=_21.createContextualFragment(_1f);el.parentNode.insertBefore(_22,el);return el.previousSibling;}else{if(_1d=="afterbegin"){_21.selectNodeContents(el);_21.collapse(true);_22=_21.createContextualFragment(_1f);el.insertBefore(_22,el.firstChild);return el.firstChild;}else{if(_1d=="beforeend"){_21.selectNodeContents(el);_21.collapse(false);_22=_21.createContextualFragment(_1f);el.appendChild(_22);return el.lastChild;}else{if(_1d=="afterend"){_21.setStartAfter(el);_22=_21.createContextualFragment(_1f);el.parentNode.insertBefore(_22,el.nextSibling);return el.nextSibling;}else{throw "Illegal insertion point -> \""+_1d+"\"";}}}}};this.insertBefore=function(el,o,_25){el=YAHOO.util.Dom.get(el);var _26;if(this.useDom){_26=createDom(o,null);el.parentNode.insertBefore(_26,el);}else{var _27=createHtml(o);_26=this.insertHtml("beforeBegin",el,_27);}return _25?YAHOO.ext.Element.get(_26,true):_26;};this.insertAfter=function(el,o,_2a){el=YAHOO.util.Dom.get(el);var _2b;if(this.useDom){_2b=createDom(o,null);el.parentNode.insertBefore(_2b,el.nextSibling);}else{var _2c=createHtml(o);_2b=this.insertHtml("afterEnd",el,_2c);}return _2a?YAHOO.ext.Element.get(_2b,true):_2b;};this.append=function(el,o,_2f){el=YAHOO.util.Dom.get(el);var _30;if(this.useDom){_30=createDom(o,null);el.appendChild(_30);}else{var _31=createHtml(o);_30=this.insertHtml("beforeEnd",el,_31);}return _2f?YAHOO.ext.Element.get(_30,true):_30;};this.overwrite=function(el,o,_34){el=YAHOO.util.Dom.get(el);el.innerHTML=createHtml(o);return _34?YAHOO.ext.Element.get(el.firstChild,true):el.firstChild;};this.createTemplate=function(o){var _36=createHtml(o);return new YAHOO.ext.DomHelper.Template(_36);};}();
meta: 1170	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1170/648d3b6b2b575f3c5d6ce38654285b225529df77/player.compressed.js/buggy/player/player.compressed.js