var tmp=navigator.appName=="Microsoft Internet Explorer"&&navigator.userAgent.indexOf("Opera")<1?1:0;if(tmp){var isIE=document.namespaces&&!window.opera?1:0}if(isIE){if(document.namespaces.v==null){var e=["shape","shapetype","group","background","path","formulas","handles","fill","stroke","shadow","textbox","textpath","imagedata","line","polyline","curve","roundrect","oval","rect","arc","image"],s=document.createStyleSheet();for(var i=0;i<e.length;i++){s.addRule("v\\:"+e[i],"behavior: url(#default#VML);")}document.namespaces.add("v","urn:schemas-microsoft-com:vml")}}function roundedCorners(f,g,c,b,a,d,h,j){f.beginPath();f.moveTo(0,b);if(h==1){f.lineTo(0,c-b);f.quadraticCurveTo(0,c,b,c)}else{f.lineTo(0,c)}if(j==1){f.lineTo(g-b,c);f.quadraticCurveTo(g,c,g,c-b)}else{f.lineTo(g,c)}if(d==1){f.lineTo(g,b);f.quadraticCurveTo(g,0,g-b,0)}else{f.lineTo(g,0)}if(a==1){f.lineTo(b,0);f.quadraticCurveTo(0,0,0,b)}else{f.lineTo(0,0)}f.closePath()}function addRoundedIECorners(){var n,E,c,z,D,x="";var B=0,l=0,m="",C="";var w=0,h=0,v,u,k,y="";var f=null,t="",r="",q="";var d=1,b=1,a=1,A=1;var g=document.getElementsByTagName("img");var p=new Array();for(v=0;v<g.length;v++){k=g[v];z=k.className.split(" ");for(u=0;u<z.length;u++){if(z[u]=="corners"){p.push(k);break}}}for(v=0;v<p.length;v++){n=p[v];B=16;q="0000ff";d=1;b=1;a=1;A=1;l=0;E=n.parentNode;x=n.className.split(" ");for(u=0;u<x.length;u++){if(x[u].indexOf("iradius")==0){B=x[u].substring(7)}else{if(x[u].indexOf("iborder")==0){l=x[u].substring(7)}else{if(x[u].indexOf("icolor")==0){m=x[u].substring(6)}else{if(x[u].indexOf("iradiae")==0){y=x[u].substring(7);d=(y.substr(0,1)!="1"?0:1);b=(y.substr(1,1)!="1"?0:1);a=(y.substr(2,1)!="1"?0:1);A=(y.substr(3,1)!="1"?0:1)}}}}}C="";for(u=0;u<x.length;u++){if(x[u]!="corners"){if(C){C+=" "}C+=x[u]}}w=Math.min(n.width,n.height)/2;h=(B==0?16:B);f=Math.min(w,h);l=Math.min(l,2);q=(m.match(/^[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]$/i)?m:q);t=(n.currentStyle.display.toLowerCase()=="block")?"block":"inline-block";c=document.createElement(['<var style="zoom:1;overflow:hidden;display:'+t+";width:"+n.width+"px;height:"+n.height+'px;padding:0;">'].join(""));r=n.currentStyle.styleFloat.toLowerCase();t=(r=="left"||r=="right")?"inline":t;var o="m 0,"+f;if(a==1){o+=" l 0,"+(n.height-f)+" qy "+f+","+n.height}else{o+=" l 0,"+n.height}if(A==1){o+=" l "+(n.width-f)+","+n.height+" qx "+n.width+","+(n.height-f)}else{o+=" l "+n.width+","+n.height}if(b==1){o+=" l "+n.width+","+f+" qy "+(n.width-f)+",0"}else{o+=" l "+n.width+",0"}if(d==1){o+=" l "+f+",0 qx 0,"+f}else{o+=" l 0,0"}o+=" x e";D='<v:shape strokeweight="'+l+'px" stroked="'+(l>0?"t":"f")+'" strokecolor="#'+q+'" filled="t" fillcolor="#ffffff" coordorigin="0,0" coordsize="'+n.width+","+n.height+'" path="'+o+'" style="zoom:1;margin:-1px 0 0 -1px;padding: 0;display:'+t+";width:"+n.width+"px;height:"+n.height+'px;"><v:fill src="'+n.src+'" type="frame" /></v:shape>';c.innerHTML=[D].join("");c.className=C;c.style.cssText=n.style.cssText;c.style.visibility="visible";c.src=n.src;c.alt=n.alt;if(n.id!=""){c.id=n.id}if(n.title!=""){c.title=n.title}if(n.getAttribute("onclick")!=""){c.setAttribute("onclick",n.getAttribute("onclick"))}n.insertAdjacentElement("BeforeBegin",c);if(n.getAttribute("usemap")){E.style.position="relative";E.style.height=n.height+"px";E.style.width=n.width+"px";n.left=0;n.top=0;n.style.position="absolute";n.style.height=n.height+"px";n.style.width=n.width+"px";n.style.left=0+"px";n.style.top=0+"px";n.style.filter="Alpha(opacity=0)"}else{n.style.display="none"}}}function addRoundedCorners(){var n,A,d,c,w,u="";var y=0,l=0,m="",z="";var t=0,h=0,r,q,k,v="";var f=1,b=1,a=1,x=1,p="";var g=document.getElementsByTagName("img");var o=new Array();for(r=0;r<g.length;r++){k=g[r];w=k.className.split(" ");for(q=0;q<w.length;q++){if(w[q]=="corners"){o.push(k);break}}}for(r=0;r<o.length;r++){n=o[r];y=16;p="0000ff";f=1;b=1;a=1;x=1;l=0;A=n.parentNode;d=document.createElement("canvas");if(d.getContext){u=n.className.split(" ");for(q=0;q<u.length;q++){if(u[q].indexOf("iradius")==0){y=u[q].substring(7)}else{if(u[q].indexOf("iborder")==0){l=u[q].substring(7)}else{if(u[q].indexOf("icolor")==0){m=u[q].substring(6)}else{if(u[q].indexOf("iradiae")==0){v=u[q].substring(7);f=(v.substr(0,1)!="1"?0:1);b=(v.substr(1,1)!="1"?0:1);a=(v.substr(2,1)!="1"?0:1);x=(v.substr(3,1)!="1"?0:1)}}}}}z="";for(q=0;q<u.length;q++){if(u[q]!="corners"){if(z){z+=" "}z+=u[q]}}d.className=z;d.style.cssText=n.style.cssText;d.style.height=n.height+"px";d.style.width=n.width+"px";d.height=n.height;d.width=n.width;d.src=n.src;d.alt=n.alt;if(n.id!=""){d.id=n.id}if(n.title!=""){d.title=n.title}if(n.getAttribute("onclick")!=""){d.setAttribute("onclick",n.getAttribute("onclick"))}t=Math.min(d.width,d.height)/2;h=(y==0?16:y);y=Math.min(t,h);l=Math.min(l*2,y);p=(m.match(/^[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]$/i)?m:p);c=d.getContext("2d");if(n.getAttribute("usemap")){A.style.position="relative";A.style.height=n.height+"px";A.style.width=n.width+"px";d.left=0;d.top=0;d.style.position="absolute";d.style.left=0+"px";d.style.top=0+"px";n.left=0;n.top=0;n.style.position="absolute";n.style.height=n.height+"px";n.style.width=n.width+"px";n.style.left=0+"px";n.style.top=0+"px";n.style.opacity=0;A.insertBefore(d,n)}else{A.replaceChild(d,n)}c.clearRect(0,0,d.width,d.height);globalCompositeOperation="source-in";roundedCorners(c,d.width,d.height,y,f,b,a,x);c.clip();c.fillStyle="rgba(0,0,0,0)";c.fillRect(0,0,d.width,d.height);c.drawImage(n,0,0,d.width,d.height);if(l>0){roundedCorners(c,d.width,d.height,y,f,b,a,x);c.strokeStyle="#"+p;c.lineWidth=l;c.stroke()}d.style.visibility="visible"}}}var cornersOnload=window.onload;window.onload=function(){if(cornersOnload){cornersOnload()}if(isIE){addRoundedIECorners()}else{addRoundedCorners()}};