/* This file may be copyrighted. It has been obfuscated for brevity, not for secrecy. Check http://www.werkstatt-bibel.de/t4roundcorners.js?clear */function abs(b){if(b<0){return -b}else{return b}}function get_attribute(c,d){for(var b=0;b<c.attributes.length;b++){if(c.attributes[b].nodeName==d){return c.attributes[b].nodeValue}}return null}function t4roundcorners(c,b,d,a){this.class_name=c;this.generator_url=b;this.quadrant_width=d;this.quadrant_height=a;if(navigator.appVersion.indexOf("MSIE 6")!=-1){this._msie6=true}else{this._msie6=false}}t4roundcorners.prototype.create_divs_for_current_document=function(){var d=document.getElementsByTagName("div");var g=Array();for(var f=0;f<d.length;f++){var i=d[f];var e;if(typeof t4lib!="undefined"){e=t4lib.get_attribute(i,"class")}else{e=Element.readAttribute(i,"class")}if(e!=null){var h=e.split(" ");for(var c=0;c<h.length;c++){if(this.class_name==h[c]){g.push(i)}}}}return this.create_divs_for_elements(g)};t4roundcorners.prototype.create_divs_for_elements=function(c){var d=Array();for(var b=0;b<c.length;b++){var e=c[b];this.create_background_divs(e,d)}return d};t4roundcorners.prototype.run=function(){var d=this.create_divs_for_current_document();var b=document.getElementsByTagName("body")[0];for(var c=0;c<d.length;c++){b.appendChild(d[c])}};t4roundcorners.prototype.imgurl=function(a){return this.generator_url+"/"+a};t4roundcorners.prototype.msie6=function(){return this._msie6};t4roundcorners.prototype.bgcss=function(b,a){if(this.msie6()){b.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.imgurl(a)+"', sizingMethod='scale')"}else{b.style.backgroundImage="url("+this.imgurl(a)+")"}};t4roundcorners.prototype.create_background_divs=function(c,l){var h=c.parentNode;var e=c.offsetLeft;var g=c.offsetTop;var d=c.offsetWidth;var k=c.offsetHeight;var i=e+d;var b=g+k;var f;var j=0;if(window.getComputedStyle){j=window.getComputedStyle(c,"").getPropertyValue("z-index")}else{if(c.currentStyle){j=c.currentStyle.zIndex}}var a=parseInt(j)-1;if(a<1){a=1}f=document.createElement("div");f.style.position="absolute";f.style.left=(i-this.quadrant_width)+"px";f.style.top=g+"px";f.style.width=this.quadrant_width+"px";f.style.height=this.quadrant_height+"px";f.style.zIndex=a;this.bgcss(f,"i");l.push(f);f=document.createElement("div");f.style.position="absolute";f.style.left=e+"px";f.style.top=g+"px";f.style.width=this.quadrant_width+"px";f.style.height=this.quadrant_height+"px";f.style.zIndex=a;this.bgcss(f,"ii");l.push(f);f=document.createElement("div");f.style.position="absolute";f.style.left=e+"px";f.style.top=(b-this.quadrant_height)+"px";f.style.width=this.quadrant_width+"px";f.style.height=this.quadrant_height+"px";f.style.zIndex=a;this.bgcss(f,"iii");l.push(f);f=document.createElement("div");f.style.position="absolute";f.style.left=(i-this.quadrant_width)+"px";f.style.top=(b-this.quadrant_height)+"px";f.style.width=this.quadrant_width+"px";f.style.height=this.quadrant_height+"px";f.style.zIndex=a;this.bgcss(f,"iv");l.push(f);f=document.createElement("div");f.style.position="absolute";f.style.left=e+"px";f.style.top=(g+this.quadrant_height)+"px";f.style.width=this.quadrant_width+"px";f.style.height=abs(k-2*this.quadrant_height)+"px";f.style.zIndex=a;this.bgcss(f,"left");l.push(f);f=document.createElement("div");f.style.position="absolute";f.style.left=(e+this.quadrant_width)+"px";f.style.top=g+"px";f.style.width=(d-2*this.quadrant_width)+"px";f.style.height=this.quadrant_height+"px";f.style.zIndex=a;this.bgcss(f,"top");l.push(f);f=document.createElement("div");f.style.position="absolute";f.style.left=(i-this.quadrant_width-2)+"px";f.style.top=(g+this.quadrant_height)+"px";f.style.width=this.quadrant_width+"px";f.style.height=abs(k-2*this.quadrant_height)+"px";f.style.zIndex=a;this.bgcss(f,"right");l.push(f);f=document.createElement("div");f.style.position="absolute";f.style.left=(e+this.quadrant_width)+"px";f.style.top=(b-this.quadrant_height-2)+"px";f.style.width=(d-2*this.quadrant_width)+"px";f.style.height=this.quadrant_height+"px";f.style.zIndex=a;this.bgcss(f,"bottom");l.push(f);f=document.createElement("div");f.style.position="absolute";f.style.left=(e+this.quadrant_width)+"px";f.style.top=(g+this.quadrant_height)+"px";f.style.width=(d-2*this.quadrant_width-2)+"px";f.style.height=abs(k-2*this.quadrant_height-2)+"px";f.style.zIndex=a;this.bgcss(f,"middle");l.push(f)};
