Lines Matching refs:environment

21 el.firebugIcon=new lib.element("div").attribute.set('firebugIgnore',true).attribute.set("id","firebugIconDiv").attribute.set("title",iconTitle).attribute.set("alt",iconTitle).event.addListener("mousedown",win.iconClicked).insert(document.body);el.content={};el.mainiframe=new lib.element("IFRAME").attribute.set("id","FirebugIFrame").attribute.set('firebugIgnore',true).environment.addStyle({"display":"none","width":lib.util.GetViewport().width+"px"}).insert(document.body);el.main=new lib.element("DIV").attribute.set("id","Firebug").attribute.set('firebugIgnore',true).environment.addStyle({"display":"none","width":lib.util.GetViewport().width+"px"}).insert(document.body);if(!internal.isPopup){el.resizer=new lib.element("DIV").attribute.addClass("Resizer").event.addListener("mousedown",win.resizer.start).insert(el.main);}
23 if(lib.env.ie||lib.env.webkit){el.button.container.environment.addStyle({"paddingTop":"12px"});}
27 if(env.showIconWhenHidden){if(!internal.popupWin){el.firebugIcon.environment.addStyle({"display":env.debug&&'none'||'block'});}}
29 win.setHeight(env.height);if(env.openInPopup&&!internal.isPopup){win.newWindow();}else{el.main.environment.addStyle({"display":env.debug&&'block'||'none'});el.mainiframe.environment.addStyle({"display":env.debug&&'block'||'none'});}}},inspect:function(){return firebug.d.html.inspect.apply(window,arguments);},watchXHR:function(){with(firebug){d.xhr.addObject.apply(window,arguments);if(env.dIndex!="xhr"){d.navigate("xhr");}}},settings:{isVisible:false,show:function(){with(firebug){var posXY=lib.util.Element.getPosition(firebug.el.nav.options.element);settings.refreshForm();el.settings.container.environment.addStyle({"display":"block","left":(posXY.offsetLeft-107)+"px"});el.settings.progressDiv.environment.addStyle({"display":"none"});firebug.settings.isVisible=true;}},hide:function(){with(firebug){firebug.el.settings.container.environment.addStyle({"display":"none"});firebug.settings.isVisible=false;}},toggle:function(){with(firebug){settings[!settings.isVisible&&'show'||'hide']();}},saveClicked:function(){firebug.el.settings.progressDiv.environment.addStyle({"display":"block"});setTimeout(firebug.settings.formToSettings,0);},formToSettings:function(){var fe=firebug.env,ofe,elSet=firebug.el.settings,exdate;fe.debug=elSet.cbxDebug.element.checked;fe.detectFirebug=elSet.cbxDetectFirebug.element.checked;fe.hideDOMFunctions=elSet.cbxHideDOMFunctions.element.checked;fe.override=elSet.cbxOverride.element.checked;fe.showIconWhenHidden=elSet.cbxShowIcon.element.checked;fe.openInPopup=elSet.cbxOpenInPopup.element.checked;if(isFinite(elSet.textNodeChars.element.value)&&elSet.textNodeChars.element.value>0){fe.textNodeChars=elSet.textNodeChars.element.value;}else{fe.textNodeChars=0;}
33 values+='height:'+(parseInt(firebug.internal.targetWindow.firebug.el.main.element.style.height.replace(/px/,''),10)-38);exdate=new Date();exdate.setDate(exdate.getDate()+365);firebug.internal.targetWindow.document.cookie='FBLiteSettings='+values+';expires='+exdate.toGMTString();}},refreshForm:function(){var fe=firebug.env,elSet=firebug.el.settings;elSet.cbxDebug.element.checked=fe.debug;elSet.cbxDetectFirebug.element.checked=fe.detectFirebug;elSet.cbxHideDOMFunctions.element.checked=fe.hideDOMFunctions;elSet.cbxOverride.element.checked=fe.override;elSet.cbxShowIcon.element.checked=fe.showIconWhenHidden;elSet.cbxOpenInPopup.element.checked=fe.openInPopup;elSet.textNodeChars.element.value=fe.textNodeChars;}},win:{hide:function(){with(firebug){el.main.environment.addStyle({"display":"none"});el.mainiframe.environment.addStyle({"display":"none"});if(env.showIconWhenHidden){el.firebugIcon.environment.addStyle({"display":"block"});}}},show:function(){with(firebug){el.main.environment.addStyle({"display":"block"});el.mainiframe.environment.addStyle({"display":"block"});if(env.showIconWhenHidden){el.firebugIcon.environment.addStyle({"display":"none"});}}},iconClicked:function(_event){with(firebug){if(_event.ctrlKey==true||_event.metaKey==true){el.firebugIcon.environment.addStyle({"display":"none"});env.showIconWhenHidden=false;}else{win.show();}}},minimize:function(){with(firebug){internal.minimized=true;el.main.environment.addStyle({"height":"35px"});el.mainiframe.environment.addStyle({"height":"35px"});el.button.maximize.environment.addStyle({"display":"block"});el.button.minimize.environment.addStyle({"display":"none"});win.refreshSize();}},maximize:function(){with(firebug){internal.minimized=false;el.button.minimize.environment.addStyle({"display":"block"});el.button.maximize.environment.addStyle({"display":"none"});win.setHeight(env.height);}},newWindow:function(){var interval,scripts,script,scriptPath,fe=firebug.env,fi=firebug.internal;if(!fi.popupWin){scripts=document.getElementsByTagName('script');fi.popupWin=window.open("","_firebug","status=0,menubar=0,resizable=1,top="+fe.popupTop+",left="+fe.popupLeft+",width="+fe.popupWidth+",height="+fe.popupHeight+",scrollbars=0,addressbar=0,outerWidth="+fe.popupWidth+",outerHeight="+fe.popupHeight+"toolbar=0,location=0,directories=0,dialog=0");if(!fi.popupWin){alert("Firebug Lite could not open a pop-up window, most likely because of a popup blocker.\nPlease enable popups for this domain");}else{firebug.settings.hide();for(i=0,len=scripts.length;i<len;i++){if(scripts[i].src.indexOf(fi.liteFilename)>-1){scriptPath=scripts[i].src;break;}}
34 if(scriptPath){done=false;script=fi.popupWin.document.createElement('script');script.type='text/javascript';script.src=scriptPath;script[firebug.lib.env.ie?"onreadystatechange":"onload"]=function(){if(!done&&(!firebug.lib.env.ie||this.readyState=="complete"||this.readyState=="loaded")){done=true;if(fi.popupWin.firebug){with(fi.popupWin.firebug){internal.isPopup=true;env.css=fe.css;init();el.button.dock.environment.addStyle({"display":"block"});el.button.newWindow.environment.addStyle({"display":"none"});}}}};if(!done&&firebug.lib.env.webkit){interval=setInterval(function(){if(firebug.internal.popupWin.firebug){clearInterval(interval);done=true;with(firebug.internal.popupWin.firebug){internal.isPopup=true;env.css=fe.css;init();el.button.dock.environment.addStyle({"display":"block"});el.button.newWindow.environment.addStyle({"display":"none"});}}},10);};if(!firebug.lib.env.ie){firebug.internal.popupWin.document.write('<html><head><title>Firebug Lite - '+document.location.href+'</title></head><body></body></html>');}
35 if(!done){firebug.internal.popupWin.document.getElementsByTagName('head')[0].appendChild(script);firebug.el.main.environment.addStyle({"display":"none"});firebug.el.mainiframe.environment.addStyle({"display":"none"});}}else{alert("Unable to detect the following script \""+firebug.internal.liteFilename+"\" ... if the script has been renamed then please set the value of firebug.internal.liteFilename to reflect this change");firebug.internal.popupWin.close();firebug.internal.popupWin=null;}}}},dock:function(){with(opener.firebug){internal.popupWin=null;el.main.environment.addStyle({"display":"block"});el.mainiframe.environment.addStyle({"display":"block"});settings.readCookie();window.close();};},unload:function(){with(firebug){if(internal.isPopup){win.dock();}else if(internal.popupWin){internal.popupWin.close();}}},fitToPopup:function(){with(firebug){var viewport=lib.util.GetViewport(window);win.setHeight((window.innerHeight||viewport.height)-38);el.main.environment.addStyle({"width":(viewport.width)+"px"});el.mainiframe.environment.addStyle({"width":(viewport.width)+"px"});}},resizer:{y:[],enabled:false,start:function(_event){with(firebug){if(internal.minimized)return;win.resizer.y=[el.main.element.offsetHeight,_event.clientY];if(lib.env.ie6){win.resizer.y[3]=parseInt(el.main.environment.getPosition().top);}
36 win.resizer.enabled=true;}},resize:function(_event){with(firebug){if(!win.resizer.enabled)return;win.resizer.y[2]=(win.resizer.y[0]+(win.resizer.y[1]-_event.clientY));el.main.environment.addStyle({"height":win.resizer.y[2]+"px"});el.mainiframe.environment.addStyle({"height":win.resizer.y[2]+"px"});if(lib.env.ie6){el.main.environment.addStyle({"top":win.resizer.y[3]-(win.resizer.y[1]-_event.clientY)+"px"});el.mainiframe.environment.addStyle({"top":win.resizer.y[3]-(win.resizer.y[1]-_event.clientY)+"px"});}}},stop:function(_event){with(firebug){if(win.resizer.enabled){win.resizer.enabled=false;win.setHeight(win.resizer.y[2]-35);}}}},setHeight:function(_height){with(firebug){env.height=_height;el.left.container.environment.addStyle({"height":_height+"px"});el.right.container.environment.addStyle({"height":_height+"px"});el.main.environment.addStyle({"height":_height+38+"px"});el.mainiframe.environment.addStyle({"height":_height+38+"px"});win.refreshSize();el.left.console.monitor.element.parentNode.style.height=_height-47+"px";el.left.console.mlButton.environment.addStyle({"top":_height+19+"px"});el.right.console.mlButton.environment.addStyle({"top":_height+19+"px"});el.right.console.input.environment.addStyle({"height":_height-29+"px"});el.left.html.container.environment.addStyle({"height":_height-23+"px"});el.right.html.content.environment.addStyle({"height":_height-23+"px"});el.left.css.container.environment.addStyle({"height":_height-33+"px"});el.right.css.input.environment.addStyle({"height":_height-55+"px"});el.left.scripts.container.environment.addStyle({"height":_height-23+"px"});el.left.dom.container.environment.addStyle({"height":_height-31+"px"});el.left.xhr.container.environment.addStyle({"height":_height-32+"px"});el.left.str.container.environment.addStyle({"height":_height-32+"px"});}},refreshDOM:function(){with(firebug){d.dom.open(eval(el.button.dom.textbox.environment.getElement().value),el.left.dom.container);if(d.html.nIndex=="dom"){firebug.d.html.navigate("dom")}}},refreshSize:function(){with(firebug){if(!internal.init)
37 return;var dim=lib.util.GetViewport();el.main.environment.addStyle({"width":dim.width+"px"});el.mainiframe.environment.addStyle({"width":dim.width+"px"});if(lib.env.ie6)
38 win.setVerticalPosition(dim);}},setVerticalPosition:function(_dim,_event){with(firebug){var dim=_dim||lib.util.GetViewport();el.main.environment.addStyle({"top":dim.height-el.main.environment.getSize().offsetHeight+Math.max(document.documentElement.scrollTop,document.body.scrollTop)+"px"});el.mainiframe.environment.addStyle({"top":dim.height-el.main.environment.getSize().offsetHeight+Math.max(document.documentElement.scrollTop,document.body.scrollTop)+"px"});}}},d:{clean:function(_element){with(firebug){_element.update("");}},console:{addLine:function(){with(firebug){return new lib.element("DIV").attribute.addClass("Row").insert(el.left.console.monitor);}},cache:[],clear:function(){with(firebug){d.clean(el.left.console.monitor);d.console.cache=[];}},formatArgs:function(){with(firebug){var content=[];for(var i=0,len=arguments.length;i<len;i++){content.push(d.highlight(arguments[i],false,false,true));}
41 return;el.left.console.input.environment.getElement().value="";d.console.historyIndex=d.console.history.push(_cmd);try{if(_cmd==='console.firebug'){d.console.addLine().attribute.addClass("Arrow").update(firebug.version);}else{result=eval.call(window,_cmd);d.console.print(_cmd,result);}}catch(e){d.console.addLine().attribute.addClass("Arrow").update(">>> "+_cmd);d.console.printException(e);}
42 d.console.scroll();}},scroll:function(){with(firebug){el.left.console.monitor.environment.getElement().parentNode.scrollTop=Math.abs(el.left.console.monitor.environment.getSize().offsetHeight-(el.left.console.monitor.element.parentNode.offsetHeight-11));}},run:function(_command){with(firebug){if(!internal.init){d.console.cache.push({"command":_command,"arg":Array.prototype.slice.call(arguments,1)});}else{d.console.cmd[_command].apply(window,Array.prototype.slice.call(arguments,1));}}},toggleML:function(){with(firebug){var open=!env.ml;env.ml=!env.ml;d.navigateRightColumn("console",open);el[open?"left":"right"].console.mlButton.environment.addStyle({display:"none"});el[!open?"left":"right"].console.mlButton.environment.addStyle({display:"block"});el.left.console.mlButton.attribute[(open?"add":"remove")+"Class"]("CloseML");}},countMap:{},timeMap:{},cmd:{log:function(_value){with(firebug){var args=d.console.formatArgs.apply(window,arguments);d.console.addLine().attribute.addClass("Log").update(args);d.console.scroll();}},warn:function(_value){with(firebug){var args=d.console.formatArgs.apply(window,arguments);d.console.addLine().attribute.addClass("Warn").update(args);d.console.scroll();}},info:function(_value){with(firebug){var args=d.console.formatArgs.apply(window,arguments);d.console.addLine().attribute.addClass("Info").update(args);d.console.scroll();}},debug:function(_value){with(firebug){var args=d.console.formatArgs.apply(window,arguments);d.console.addLine().attribute.addClass("Debug").update(args);d.console.scroll();}},error:function(_value){with(firebug){var args=d.console.formatArgs.apply(window,arguments);d.console.addLine().attribute.addClass("Error").update(args);d.console.scroll();}},trace:function(_value){with(firebug){var stackAmt=3,f=arguments.caller,isArray=lib.util.IsArray(f);if((!isArray&&f)||(isArray&&f.length>0)){d.console.addLine().attribute.addClass("Arrow").update(">>> console.trace(stack)");for(var i=0;i<stackAmt;i++){var func=f.toString(),args=f.arguments;d.dom.open({"function":func,"arguments":args},d.console.addLine());f=f.caller;}}}},dir:function(_value){with(firebug){d.console.addLine().attribute.addClass("Arrow").update(">>> console.dir("+_value+")");d.dom.open(_value,d.console.addLine());}},dirxml:function(){with(firebug){d.console.cmd.log.apply(this,arguments);}},time:function(_name){with(firebug){d.console.timeMap[_name]=new Date().getTime();}},timeEnd:function(_name){with(firebug){if(_name in d.console.timeMap){var delta=new Date().getTime()-d.console.timeMap[_name],args=d.console.formatArgs.apply(window,[_name+":",delta+"ms"]);d.console.addLine().attribute.addClass("log").update(args);delete d.console.timeMap[_name];}}},count:function(_name){with(firebug){if(!d.console.countMap[_name])
45 str+="<div class='Selector'>}</div>";return str;}},refresh:function(){with(firebug){el.button.css.selectbox.update("");var collection=internal.targetWindow.document.styleSheets;for(var i=0,len=collection.length;i<len;i++){var uri=getFileName(collection[i].href);d.css.index=d.css.index<0?i:d.css.index;el.button.css.selectbox.child.add(new lib.element("OPTION").attribute.set("value",i).update(uri))};d.css.open(d.css.index);}}},dom:{open:function(_object,_layer){with(firebug){_layer.clean();var container=new lib.element("DIV").attribute.addClass("DOMContent").insert(_layer);d.dom.print(_object,container);}},print:function(_object,_parent,_inTree){with(firebug){var obj=_object||window,parentElement=_parent;parentElement.update("");if(parentElement.opened&&parentElement!=el.left.dom.container){parentElement.environment.getParent().lib.child.get()[0].lib.child.get()[0].lib.attribute.removeClass("Opened");parentElement.opened=false;parentElement.environment.addStyle({"display":"none"});return;}
47 parentElement.environment.getParent().lib.child.get()[0].lib.child.get()[0].lib.attribute.addClass("Opened");parentElement.opened=true;for(var key in obj){try{if(env.hideDOMFunctions&&typeof(obj[key])=="function")continue;var value=obj[key],property=key,container=new lib.element("DIV").attribute.addClass("DOMRow").insert(parentElement),left=new lib.element("DIV").attribute.addClass("DOMRowLeft").insert(container),right=new lib.element("DIV").attribute.addClass("DOMRowRight").insert(container);container.child.add(new lib.element("DIV").attribute.addClass('Clear'));var link=new lib.element("A").attribute.addClass(typeof value=="object"&&Boolean(value)?"Property Object":"Property").update(property).insert(left);right.update(d.highlight(value,false,true));var subContainer=new lib.element("DIV").attribute.addClass("DOMRowSubContainer").insert(container);if(typeof value!="object"||Boolean(value)==false)
49 parentElement.environment.addStyle({"display":"block"});}}},highlight:function(_value,_inObject,_inArray,_link){with(firebug){var isArray=false,isHash,isElement=false,vtype=typeof _value,result=[];if(vtype=="object"){if(Object.prototype.toString.call(_value)==="[object Date]"){vtype="date";}else if(Object.prototype.toString.call(_value)==="[object String]"){vtype="string";}else if(Object.prototype.toString.call(_value)==="[object Boolean]"){vtype="boolean";}else if(Object.prototype.toString.call(_value)==="[object RegExp]"){vtype="regexp";}}
63 if(_clear){internal.targetWindow.firebug.el.bgInspector.environment.addStyle({"display":"none"});return;}
68 for(t=0,len=map.length;map[t];t++){if(t==len-1){link=parentLayer.environment.getElement().previousSibling.lib;link.attribute.addClass("Selected");if(link.element.scrollIntoView){link.element.scrollIntoView(false);}
72 if(parent!=el.left.html.container){nodeLink=parent.environment.getParent().lib.child.get()[0].lib;if(d.html.current){d.html.current[1].attribute.removeClass("Selected");}
76 html.child.add(document.createTextNode("</"));html.child.add(new lib.element("span").attribute.addClass("Blue").update(item.nodeName.toLowerCase()).environment.getElement());html.child.add(document.createTextNode(">"));continue;}
78 el.right.html.content.update(str);break;case"dom":d.dom.open(node,el.right.html.content,lib.env.ie);break;}}}},inspector:{enabled:false,el:null,inspect:function(_element,_bgInspector){with(firebug){var pos=internal.targetWindow.firebug.lib.util.Element.getPosition(_element);internal.targetWindow.firebug.el[_bgInspector&&"bgInspector"||"borderInspector"].environment.addStyle({"width":_element.offsetWidth+"px","height":_element.offsetHeight+"px","top":pos.offsetTop-(_bgInspector?0:2)+"px","left":pos.offsetLeft-(_bgInspector?0:2)+"px","display":"block"});if(!_bgInspector){d.inspector.el=_element;}};},toggle:function(_absoluteValue,_event){with(firebug){if(_absoluteValue==d.inspector.enabled)
79 return;d.inspector.enabled=_absoluteValue!=undefined&&!_absoluteValue.clientX?_absoluteValue:!d.inspector.enabled;el.button.inspect.attribute[(d.inspector.enabled?"add":"remove")+"Class"]("Enabled");if(d.inspector.enabled==false){el.borderInspector.environment.addStyle({"display":"none"});d.inspector.el=null;}else if(lib.env.dIndex!="html"){if(internal.popupWin){internal.popupWin.firebug.d.navigate("html");}else{d.navigate("html");}}}}},scripts:{index:-1,lineNumbers:false,open:function(_index){with(firebug){d.scripts.index=_index;el.left.scripts.container.update("");var i=0,script=document.getElementsByTagName("script")[_index],uri=script.src||document.location.href,source;try{if(uri!=document.location.href){source=internal.cache[uri]||lib.xhr.get(uri).responseText;internal.cache[uri]=source;}else{source=script.innerHTML;}
82 d.scripts.open(d.scripts.index);}}},str:{open:function(_str){with(firebug){d.navigate("str");el.left.str.container.update(_str.replace(/\n/g,"<br />"))}}},xhr:{objects:[],addObject:function(){with(firebug){for(var i=0,len=arguments.length;i<len;i++){try{var item=arguments[i],val=internal.targetWindow.eval(item);d.xhr.objects.push([item,val]);}catch(e){continue;}}}},open:function(){with(firebug){el.left.xhr.container.update("");el.left.xhr.name=new lib.element("DIV").attribute.addClass("BlockContent").insert(new lib.element("DIV").attribute.addClass("Block").environment.addStyle({"width":"20%"}).insert(el.left.xhr.container));el.left.xhr.nameTitle=new lib.element("STRONG").update("Object Name:").insert(el.left.xhr.name);el.left.xhr.nameContent=new lib.element("DIV").insert(el.left.xhr.name);el.left.xhr.status=new lib.element("DIV").attribute.addClass("BlockContent").insert(new lib.element("DIV").attribute.addClass("Block").environment.addStyle({"width":"10%"}).insert(el.left.xhr.container));el.left.xhr.statusTitle=new lib.element("STRONG").update("Status:").insert(el.left.xhr.status);el.left.xhr.statusContent=new lib.element("DIV").insert(el.left.xhr.status);el.left.xhr.readystate=new lib.element("DIV").attribute.addClass("BlockContent").insert(new lib.element("DIV").environment.addStyle({"width":"15%"}).attribute.addClass("Block").insert(el.left.xhr.container));el.left.xhr.readystateTitle=el.left.xhr.nameTitle=new lib.element("STRONG").update("Ready State:").insert(el.left.xhr.readystate);el.left.xhr.readystateContent=new lib.element("DIV").insert(el.left.xhr.readystate);el.left.xhr.response=new lib.element("DIV").attribute.addClass("BlockContent").insert(new lib.element("DIV").environment.addStyle({"width":(lib.env.ie?"50":"55")+"%"}).attribute.addClass("Block").insert(el.left.xhr.container));el.left.xhr.responseTitle=new lib.element("STRONG").update("Response:").insert(el.left.xhr.response);el.left.xhr.responseContent=new lib.element("DIV").insert(el.left.xhr.response);setTimeout(d.xhr.refresh,500);}},refresh:function(){with(firebug){el.left.xhr.nameContent.update("");el.left.xhr.statusContent.update("");el.left.xhr.readystateContent.update("");el.left.xhr.responseContent.update("");for(var i=0,len=d.xhr.objects.length;i<len;i++){var item=d.xhr.objects[i],response=item[1].responseText;if(Boolean(item[1])==false)continue;el.left.xhr.nameContent.child.add(new lib.element("span").update(item[0]));try{el.left.xhr.statusContent.child.add(new lib.element("span").update(item[1].status));}catch(e){el.left.xhr.statusContent.child.add(new lib.element("span").update("&nbsp;"));}
84 setTimeout(d.xhr.refresh,500);}}},navigateRightColumn:function(_index,_open){with(firebug){el.left.container.environment.addStyle({"width":_open?"70%":"100%"});el.right.container.environment.addStyle({"display":_open?"block":"none"});}},navigate:function(_index){with(firebug){var open=_index,close=env.dIndex;env.dIndex=open;settings.hide();el.button[close].container.environment.addStyle({"display":"none"});el.left[close].container.environment.addStyle({"display":"none"});el.right[close].container.environment.addStyle({"display":"none"});el.button[open].container.environment.addStyle({"display":"inline"});el.left[open].container.environment.addStyle({"display":"block"});el.right[open].container.environment.addStyle({"display":"block"});if(el.nav[close])
87 break;case"css":d.navigateRightColumn(_index,true);d.css.refresh();break;case"scripts":d.navigateRightColumn(_index);d.scripts.refresh();break;case"dom":d.navigateRightColumn(_index);if(el.left.dom.container.environment.getElement().innerHTML==""){var t=Number(new Date);d.dom.open(eval(el.button.dom.textbox.environment.getElement().value),el.left.dom.container);}
93 setTimeout(_el.focus,100);};}},listen:{addXhrObject:function(){with(firebug){d.xhr.addObject.apply(internal.targetWindow,el.button.xhr.textbox.environment.getElement().value.split(","));}},consoleTextbox:function(_event){with(firebug){if(_event.keyCode==13&&(env.multilinemode==false||_event.shiftKey==false)){d.console.historyIndex=d.console.history.length;d.console.eval(el.left.console.input.environment.getElement().value);return false;}
96 break;}}},cssSelectbox:function(){with(firebug){d.css.open(el.button.css.selectbox.environment.getElement().selectedIndex);}},domTextbox:function(_event){with(firebug){if(_event.keyCode==13){d.dom.open(eval(el.button.dom.textbox.environment.getElement().value),el.left.dom.container);}}},inspector:function(){with(firebug){if(internal.popupWin){internal.popupWin.firebug.d.html.inspect(firebug.d.inspector.el);}else{firebug.d.html.inspect(firebug.d.inspector.el);}}},keyboard:function(_event){with(firebug){if(_event.keyCode==27&&d.inspector.enabled){d.inspector.toggle();}else if(_event.keyCode===123&&(_event.ctrlKey||_event.metaKey)){if(internal.isPopup){win.dock();}else{win.newWindow();}}else if((_event.keyCode===123&&(!_event.ctrlKey&&!_event.metaKey))||(_event.keyCode===76&&(_event.ctrlKey||_event.metaKey)&&_event.shiftKey)||(_event.keyCode===13&&_event.shiftKey)){if(internal.isPopup){win.dock();}else if(el.main.environment.getStyle("display")==='none'){win.show();}else{win.hide();}}}},mouse:function(_event){with(firebug){if(d.inspector.enabled){var target;var borderInspector=el.borderInspector.environment.getElement();var display=el.borderInspector.environment.getStyle("display");borderInspector.style.display="none";if(document.elementFromPoint){target=document.elementFromPoint(_event.clientX,_event.clientY);}else{if(lib.env.ie){target=_event.srcElement;}else{target=_event.explicitOriginalTarget||_event.target;}}
97 borderInspector.style.display=display;if(target!=document.body&&target!=document.firstChild&&target!=document.childNodes[1]&&target!=borderInspector&&target!=el.main.environment.getElement()&&target.offsetParent!=el.main.environment.getElement()){d.inspector.inspect(target);}}}},runMultiline:function(){with(firebug){d.console.eval.call(window,el.right.console.input.environment.getElement().value);}},runCSS:function(){with(firebug){var source=el.right.css.input.environment.getElement().value.replace(/\n|\t/g,"").split("}");for(var i=0,len=source.length;i<len;i++){var item=source[i]+"}",rule=!lib.env.ie?item:item.split(/{|}/),styleSheet=document.styleSheets[0];if(item.match(/.+\{.+\}/)){if(lib.env.ie)
99 styleSheet.insertRule(rule,styleSheet.cssRules.length);}}}},scriptsSelectbox:function(){with(firebug){d.scripts.open(parseInt(el.button.scripts.selectbox.environment.getElement().value));}},xhrTextbox:function(_event){with(firebug){if(_event.keyCode==13){d.xhr.addObject.apply(internal.targetWindow,el.button.xhr.textbox.environment.getElement().value.split(","));}}}}};(function(_scope){_scope.lib={};var pi=_scope.lib;pi.version=[1.1,2008091000];pi.env={ie:/MSIE/i.test(navigator.userAgent),ie6:/MSIE 6/i.test(navigator.userAgent),ie7:/MSIE 7/i.test(navigator.userAgent),ie8:/MSIE 8/i.test(navigator.userAgent),firefox:/Firefox/i.test(navigator.userAgent),opera:/Opera/i.test(navigator.userAgent),webkit:/Webkit/i.test(navigator.userAgent),camino:/Camino/i.test(navigator.userAgent)};pi.get=function(){return document.getElementById(arguments[0]);};pi.get.byTag=function(){return document.getElementsByTagName(arguments[0]);};pi.get.byClass=function(){return document.getElementsByClassName.apply(document,arguments);};pi.util={Array:{clone:function(_array,_undeep){var tmp=[];Array.prototype.push.apply(tmp,_array);pi.util.Array.forEach(tmp,function(_item,_index,_source){if(_item instanceof Array&&!_undeep)
127 if(pi.util.IsHash(_object[name])){_branch[name]={};this.movePrivateMembers(_object[name],_branch[name]);}};};};pi.element=new pi.base;pi.element.init=function(_val){this.environment.setElement(typeof _val=="string"||!_val?document.createElement(_val||"DIV"):_val);return this;};pi.element.body={"addStyle":function(){return this.environment.addStyle.apply(this.environment,arguments);},"clean":function(){var childs=this.child.get();while(childs.length){childs[0].parentNode.removeChild(childs[0]);}},"clone":function(_deep){return this.environment.getElement().cloneNode(_deep);},"insert":function(_element){_element=_element.environment?_element.environment.getElement():_element;_element.appendChild(this.environment.getElement());return this;},"insertAfter":function(_referenceElement){_referenceElement=_referenceElement.environment?_referenceElement.environment.getElement():_referenceElement;_referenceElement.nextSibling?this.insertBefore(_referenceElement.nextSibling):this.insert(_referenceElement.parentNode);return this;},"insertBefore":function(_referenceElement){_referenceElement=_referenceElement.environment?_referenceElement.environment.getElement():_referenceElement;_referenceElement.parentNode.insertBefore(this.environment.getElement(),_referenceElement);return this;},"query":function(_expression,_resultType,namespaceResolver,_result){return pi.xpath(_expression,_resultType||"ORDERED_NODE_SNAPSHOT_TYPE",this.environment.getElement(),_namespaceResolver,_result);},"remove":function(){if(this.environment.getParent()){this.environment.getParent().removeChild(this.environment.getElement());}},"update":function(_value){this.element[this.element.nodeName.toLowerCase()=="textarea"||this.element.nodeName.toLowerCase()=="input"?"value":"innerHTML"]=_value;return this;},"attribute":{"getAll":function(){return this._parent_.environment.getElement().attributes;},"clear":function(_name){this.set(_name,"");return this._parent_;},"get":function(_name){return this._parent_.environment.getElement().getAttribute(_name);},"has":function(_name){return pi.env.ie?(this.get(_name)!=null):this._parent_.environment.getElement().hasAttribute(_name);},"remove":function(_name){this._parent_.environment.getElement().removeAttribute(_name);return this._parent_;},"set":function(_name,_value){this._parent_.environment.getElement().setAttribute(_name,_value);return this._parent_;},"addClass":function(_classes){for(var i=0,len=arguments.length;i<len;i++){pi.util.Element.addClass(this._parent_.environment.getElement(),arguments[i]);};return this._parent_;},"clearClass":function(){this.setClass("");this._parent_;},"getClass":function(){return pi.util.Element.getClass(this._parent_.environment.getElement());},"hasClass":function(_class){return pi.util.Element.hasClass(this._parent_.environment.getElement(),_class);},"setClass":function(_value){return pi.util.Element.setClass(this._parent_.environment.getElement(),_value);},"removeClass":function(_class){pi.util.Element.removeClass(this._parent_.environment.getElement(),_class);return this._parent_;},"toggleClass":function(_class){pi.util.Element.toggleClass(this._parent_.environment.getElement(),_class);}},"child":{"get":function(){return this._parent_.environment.getElement().childNodes;},"add":function(_elements){for(var i=0;i<arguments.length;i++){var el=arguments[i];this._parent_.environment.getElement().appendChild(el.environment?el.environment.getElement():el);}
128 return this._parent_;},"addAfter":function(_element,_referenceElement){this.addBefore(_element.environment?_element.environment.getElement():_element,(_referenceElement.environment?_referenceElement.environment.getElement():_referenceElement).nextSibling);return this._parent_;},"addBefore":function(_element,_referenceElement){this._parent_.environment.getElement().insertBefore(_element.environment?_element.environment.getElement():_element,_referenceElement.environment?_referenceElement.environment.getElement():_referenceElement);return this._parent_;},"remove":function(_element){this._parent_.environment.getElement().removeChild(_element.environment?_element.environment.getElement():_element);}},"environment":{"_element":null,"setElement":function(_value){this._parent_.element=_value;this._parent_.element.lib=this._parent_;this._parent_.element.firebugElement=true;this._setElement(_value);},"getParent":function(){return this.getElement().parentNode;},"getPosition":function(){return pi.util.Element.getPosition(this.getElement());},"getSize":function(){return pi.util.Element.getSize(this.getElement());},"addStyle":function(_styleObject){pi.util.Element.addStyle(this.getElement(),_styleObject);return this._parent_;},"getStyle":function(_property){return pi.util.Element.getStyle(this.getElement(),_property);},"getName":function(){return this.getElement().nodeName;},"getType":function(){return this.getElement().nodeType;},"getValue":function(){return pi.util.Element.getValue(this.getElement());},"getView":function(_property){return pi.util.Element.getView(this.getElement(),_property);}},"event":{"addListener":function(_event,_fn,_useCapture){pi.util.AddEvent(this._parent_.environment.getElement(),_event,_fn,_useCapture);return this._parent_;},"removeListener":function(_event,_fn,_useCapture){pi.util.RemoveEvent(this._parent_.environment.getElement(),_event,_fn,_useCapture);return this._parent_;}}};pi.element=pi.element.build();pi.xhr=new pi.base;pi.xhr.init=function(_url){if(!window.XMLHttpRequest){var names=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"];for(var i=0;i<names.length;i++){try{this.environment.setApi(new ActiveXObject(names[i]));break;}catch(e){continue;}}}
129 else{this.environment.setApi(new XMLHttpRequest());}
130 this.environment.getApi().onreadystatechange=pi.util.Curry(this.event.readystatechange,this);this.environment.setUrl(_url);this.environment.setCallback([]);return this;};pi.xhr.body={"addCallback":function(){return this.environment.addCallback.apply(this.environment,arguments);},"addData":function(){return this.environment.addData.apply(this.environment,arguments);},"abort":function(){this.environment.getApi().abort();return this;},"send":function(){var url=this.environment.getUrl(),data=this.environment.getData(),dataUrl="";if(!this.environment.getCache())
132 dataUrl+=pi.util.String.format("{0}={1}&",key,data[key]);if(this.environment.getType()=="GET")
133 url+=(url.search("\\?")==-1?"?":"&")+pi.util.String.format("{0}",dataUrl);this.api.open(this.environment.getType(),url,this.environment.getAsync());if(this.environment.getType()=="POST"){this.api.setRequestHeader("Content-Type","application/x-www-form-urlencoded");};this.api.send(this.environment.getType()=="GET"?"":dataUrl);return this;}};pi.xhr.body.environment={"_async":true,"_api":null,"_cache":true,"_callback":null,"_data":{},"_type":"GET","_url":"","setApi":function(_value){this._parent_.api=_value;this._setApi(_value);},"addCallback":function(_readyState,_fn){this.getCallback().push({"fn":_fn,"readyState":_readyState});return this._parent_;},"addData":function(_key,_value){this.getData()[_key]=_value;return this._parent_;},"setType":function(_value){this._setType(_value);return this._parent_;}};pi.xhr.body.event={"readystatechange":function(){var readyState=this.environment.getApi().readyState,callback=this.environment.getCallback();for(var i=0,len=callback.length;i<len;i++){if(pi.util.Array.indexOf(callback[i].readyState,readyState)>-1){callback[i].fn.apply(this);}}}};pi.xhr=pi.xhr.build();pi.xhr.get=function(_url,_returnPiObject){var request=new pi.xhr();request.environment.setAsync(false);request.environment.setUrl(_url);request.send();return _returnPiObject?request:request.environment.getApi();};pi.util.AddEvent(pi.env.ie?window:document,pi.env.ie?"load":"DOMContentLoaded",function(){for(var i=0,len=pi.util.Init.length;i<len;i++){pi.util.Init[i]();}});})(firebug);(function(){with(firebug){var scriptsIncluded=document.getElementsByTagName('script');for(var i=scriptsIncluded.length-1;i>=0;i--){var script=scriptsIncluded[i],src=getFileName(script.src);if(src){internal.liteFilename=src;break;}}