if(typeof(HTMLElement)!="undefined"){var _emptyTags={IMG:true,BR:true,INPUT:true,META:true,LINK:true,PARAM:true,HR:true};HTMLElement.prototype.__defineGetter__("outerHTML",function(){var a=this.attributes;var c="<"+this.tagName;for(var b=0;b<a.length;b++){c+=" "+a[b].name+'="'+a[b].value+'"'}if(_emptyTags[this.tagName]){return c+">"}return c+">"+this.innerHTML+"</"+this.tagName+">"});HTMLElement.prototype.__defineSetter__("outerHTML",function(b){var a=this.ownerDocument.createRange();a.setStartBefore(this);var c=a.createContextualFragment(b);this.parentNode.replaceChild(c,this)})}function GetE(a){return document.getElementById(a)}function GetN(a){return document.getElementsByName(a)}function sImages(){var g=document.getElementsByTagName("img");var d=new Array();for(var b=0;b<g.length;b++){if(g[b].id){continue}g[b].setAttribute("id","SI"+b);g[b].setAttribute("style","cursor: pointer");g[b].setAttribute("onclick","return sImage('SI"+b+"', false)");g[b].setAttribute("title","скрыть изображение");var a=g[b].attributes;var f="<"+g[b].tagName;for(var c=0;c<a.length;c++){f+=" "+a[c].name+'="'+a[c].value+'"'}f+=">";d["SI"+b]=f}return d}function sImage(b,a){if(!a){GetE(b).setAttribute("src","images/collapse.gif");GetE(b).setAttribute("width",8);GetE(b).setAttribute("height",8);GetE(b).setAttribute("onclick","return sImage('"+b+"', true)");GetE(b).setAttribute("title","показать изображение")}else{GetE(b).outerHTML=SaveAttrs[b]}return false};
