var isIE=navigator.userAgent.toLowerCase().indexOf("msie 6")>-1;var isMoz=document.implementation&&document.implementation.createDocument;var isSafari=((navigator.userAgent.toLowerCase().indexOf("safari")!=-1)&&(navigator.userAgent.toLowerCase().indexOf("mac")!=-1))?true:false;function getElementsByClass(G,E,A){var D=new Array();if(E==null){E=document.body}if(A==null){A="*"}var C=E.getElementsByTagName(A);var B=C.length;var F=new RegExp(G);for(i=0,j=0;i<B;i++){if(F.test(C[i].className)){D[j]=C[i];j++}}return D}function get_style(A,B){var C="";if(document.defaultView&&document.defaultView.getComputedStyle){C=document.defaultView.getComputedStyle(A,"").getPropertyValue(B)}else{if(A.currentStyle){B=B.replace(/\-(\w)/g,function(D,E){return E.toUpperCase()});C=A.currentStyle[B]}}if(C.indexOf("px")!=-1){C=parseInt(C.slice(0,C.indexOf("px")))}return C}function getBgColor(B){if(get_style(B,"background-color")=="transparent"){while(get_style(B,"background-color")=="transparent"&&B.nodeName!="BODY"){B=B.parentNode;if(get_style(B,"background-color")!="transparent"){return get_style(B,"background-color")}}if(B.nodeName=="BODY"){var A="#ffffff"}}else{var A=get_style(B,"background-color")}return A}function setOpacity(B,A){if(typeof (B.style.opacity)!="undefined"){B.style.opacity=A/100}else{if(typeof (B.style.MozOpacity)!="undefined"){B.style.MozOpacity=A/100}else{if(typeof (B.style.filter)!="undefined"){B.style.filter="alpha(opacity:"+A+")"}else{if(typeof (B.style.KHTMLOpacity)!="undefined"){B.style.KHTMLOpacity=A/100}}}}}function drawPixel(B,A,D){if(D==null){var D="99.999"}var C=document.createElement("DIV");C.style.fontSize="1px";C.style.overflow="hidden";C.style.width="1px";C.style.height="1px";C.style.backgroundColor=B;C.style.position="absolute";setOpacity(C,D);A.appendChild(C)}function minVal(A,B){if(B<A){return A}return B}function drawCorners(E,B){E.style.position="relative";for(var C=0;C<4;C++){for(var A=1;A<=B;A++){var D=minVal(1,Math.round(B-Math.sqrt(Math.pow(B,"2")-Math.pow(A,"2"))));for(var F=0;F<D;F++){if(A==1){drawPixel(getBgColor(E.parentNode),E,20)}else{if(A==2){drawPixel(getBgColor(E.parentNode),E,40)}else{if(A==3){drawPixel(getBgColor(E.parentNode),E,70)}else{if(A==B){if(F==(D-1)){drawPixel(getBgColor(E.parentNode),E,20)}else{if(F==(D-2)){drawPixel(getBgColor(E.parentNode),E,40)}else{drawPixel(getBgColor(E.parentNode),E)}}}else{if(A==(B-1)&&F==(D-1)){drawPixel(getBgColor(E.parentNode),E,70)}else{drawPixel(getBgColor(E.parentNode),E)}}}}}if(C==0){E.lastChild.style.top=(B-A)+"px";E.lastChild.style.left=F+"px"}else{if(C==1){E.lastChild.style.top=(B-A)+"px";E.lastChild.style.right=(isIE)?(F-1)+"px":F+"px"}else{if(C==2){E.lastChild.style.bottom=(isIE)?((B-A)-1)+"px":(B-A)+"px";E.lastChild.style.right=(isIE)?(F-1)+"px":F+"px"}else{if(C==3){E.lastChild.style.bottom=(isIE)?((B-A)-1)+"px":(B-A)+"px";E.lastChild.style.left=F+"px"}}}}}}}}function applyCorners(C,B){var D=getElementsByClass(C);for(var A=0;A<D.length;A++){drawCorners(D[A],B)}}