var tmp=navigator.appName=="Microsoft Internet Explorer"&&navigator.userAgent.indexOf("Opera")<1?1:0;if(tmp){var isIE=document.namespaces?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 getRadius(b,d,a){var c=(Math.min(d,a)/100);b=Math.max(Math.min(100,b/c),0);return b+"%"}function getImages(d){var c=document.getElementsByTagName("img");var f=new Array();var b=0;var h;var g;var a=0;for(b=0;b<c.length;b++){h=c[b];g=h.className.split(" ");for(var a=0;a<g.length;a++){if(g[a]==d){f.push(h);break}}}return f}function getClasses(d,c){var a="";for(var b=0;b<d.length;b++){if(d[b]!=c){if(a){a+=" "}a+=d[b]}}return a}function getClassValue(d,c){var a=0;var f=c.length;for(var b=0;b<d.length;b++){if(d[b].indexOf(c)==0){a=Math.min(d[b].substring(f),100);break}}return Math.max(0,a)}function getClassAttribute(d,c){var a=0;var f=c.length;for(var b=0;b<d.length;b++){if(d[b].indexOf(c)==0){a=1;break}}return a}function roundedRect(d,c,h,g,b,a,f){if(!f){d.beginPath()}d.moveTo(c,h+a);d.lineTo(c,h+b-a);d.quadraticCurveTo(c,h+b,c+a,h+b);d.lineTo(c+g-a,h+b);d.quadraticCurveTo(c+g,h+b,c+g,h+b-a);d.lineTo(c+g,h+a);d.quadraticCurveTo(c+g,h,c+g-a,h);d.lineTo(c+a,h);d.quadraticCurveTo(c,h,c,h+a);if(!f){d.closePath()}}function addGradient(l,j,g,k,d,b,f){var c=l.createLinearGradient(j,g,k,d);var a=(b>0?0.25:0.2);c.addColorStop(0,"rgba("+b+","+b+","+b+",0.9)");c.addColorStop(a,"rgba("+b+","+b+","+b+","+f+")");c.addColorStop(0.75,"rgba("+b+","+b+","+b+",0)");c.addColorStop(1,"rgba("+b+","+b+","+b+",0)");return c}function addRadialStyle(l,c,k,f,a,j,d,h){var g=l.createRadialGradient(c,k,f,a,j,d);var b=Math.min(parseFloat(h+0.1),1);g.addColorStop(0,"rgba(0,0,0,"+b+")");g.addColorStop(0.25,"rgba(0,0,0,"+h+")");g.addColorStop(1,"rgba(0,0,0,0)");return g}function addLinearStyle(c,a,k,b,j,d){var g=c.createLinearGradient(a,k,b,j);var f=Math.min(parseFloat(d+0.1),1);g.addColorStop(0,"rgba(0,0,0,"+f+")");g.addColorStop(0.25,"rgba(0,0,0,"+d+")");g.addColorStop(1,"rgba(0,0,0,0)");return g}function addShine(d,j,c,b,g,a){var h;var f=(a!=1?254:0);h=addGradient(d,0,b,b,b,f,g);d.beginPath();d.moveTo(0,0);d.lineTo(0,c);d.lineTo(b,c);d.lineTo(b,b);d.closePath();d.fillStyle=h;d.fill();h=addGradient(d,b,0,b,b,f,g);d.beginPath();d.moveTo(0,0);d.lineTo(j,0);d.lineTo(j,b);d.lineTo(b,b);d.closePath();d.fillStyle=h;d.fill()}function addShade(c,g,b,a,d){var f;f=addGradient(c,g,a,g-a,a,0,d);c.beginPath();c.moveTo(g,0);c.lineTo(g,b);c.lineTo(g-a,b-a);c.lineTo(g-a,0);c.closePath();c.fillStyle=f;c.fill();f=addGradient(c,a,b,a,b-a,0,d);c.beginPath();c.moveTo(g,b);c.lineTo(0,b);c.lineTo(0,b-a);c.lineTo(g-a,b-a);c.closePath();c.fillStyle=f;c.fill()}function roundedShadow(d,c,j,h,b,a,f){var g;d.beginPath();d.rect(c,j+b-a,a,a);d.closePath();g=addRadialStyle(d,c+a,j+b-a,a-c,c+a,j+b-a,a,f);d.fillStyle=g;d.fill();d.beginPath();d.rect(c+a,j+b-j,h-(a*2.25),j);d.closePath();g=addLinearStyle(d,c+a,j+b-j,c+a,j+b,f);d.fillStyle=g;d.fill();d.beginPath();d.rect(c+h-(a*1.25),j+b-(a*1.25),a*1.25,a*1.25);d.closePath();g=addRadialStyle(d,c+h-(a*1.25),j+b-(a*1.25),(a*1.25)-1.5-c,c+h-(a*1.25),j+b-(a*1.25),a*1.25,f);d.fillStyle=g;d.fill();d.beginPath();d.rect(c+h-c,j+a,c,b-(a*2.25));d.closePath();g=addLinearStyle(d,c+h-c,j+a,c+h,j+a,f);d.fillStyle=g;d.fill();d.beginPath();d.rect(c+h-a,j,a,a);d.closePath();g=addRadialStyle(d,c+h-a,j+a,a-c,c+h-a,j+a,a,f);d.fillStyle=g;d.fill()}function addIECorners(){var w=getImages("corner");var t;var L;var b;var p;var m;var A;var F="";var J=null;var a=null;var D=null;var c=null;var K="";var C=null;var k=null;var g=null;var z="";var x=null;var u=null;var r=null;var h,j,B,n,y,H,d;var f,q,o,G,l,I,E,v;for(A=0;A<w.length;A++){t=w[A];L=t.parentNode;F=t.className.split(" ");J=getClassValue(F,"iradius");a=getClassValue(F,"ishadow");D=getClassValue(F,"ishade");c=getClassAttribute(F,"inverse");K=getClasses(F,"corner");u=t.width;r=t.height;C=Math.min(u,r)/2;J=Math.min(C,J);k=4;k=(a>0?(c>0?0:Math.min(Math.max(k,J/2),16)):0);g=getRadius(J,u,r);z=(t.currentStyle.display.toLowerCase()=="block")?"block":"inline-block";b=document.createElement(['<var style="overflow:hidden;display:'+z+";width:"+u+"px;height:"+r+'px;padding:0;">'].join(""));x=t.currentStyle.styleFloat.toLowerCase();z=(x=="left"||x=="right")?"inline":z;h='<v:group style="zoom:1; display:'+z+"; margin:-1px 0 0 -1px; padding:0; position:relative; width:"+u+"px;height:"+r+'px;" coordsize="'+u+","+r+'">';y='<v:fill src="'+t.src+'" type="frame" />';H=(J>0?"</v:roundrect>":"</v:rect>");d="</v:group>";B="";n="";l="";f="";q="";o="";G="";if(J<=0){if(a>0){if(c<=0){a=a/50;k=8;v=4;B='<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0 ;width:'+u+"px;height:"+r+'px;"><v:fill color="#ffffff" opacity="0.0" /></v:rect><v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#000000" style="filter:Alpha(opacity='+(a*64)+"), progid:dxImageTransform.Microsoft.Blur(PixelRadius="+v+", MakeShadow=false); zoom:1;margin:-1px 0 0 -1px;padding: 0;display:block;position:absolute;top:"+v+"px;left:"+v+"px;width:"+(u-(3*v))+"px;height:"+(r-(3*v))+'px;"><v:fill color="#000000" opacity="1" /></v:rect>';j='<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0 ;width:'+(u-k)+"px;height:"+(r-k)+'px;">'}else{if(c>0){a=a/50;J=12;E="linear";j='<v:rect filled="t" stroked="t" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0; width:'+u+"px;height:"+r+'px;">';n='<v:stroke weight="0.5" opacity="'+(a/2)+'" color="#000000" />';q='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="'+u+","+J+'" path="m 0,0 l '+u+",0,"+u+","+J+","+J+","+J+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:'+u+"px; height:"+J+'px;"><v:fill method="'+E+'" type="gradient" angle="0" color="#000000" opacity="0" color2="#000000" o:opacity2="'+a+'" /></v:shape>';f='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="'+J+","+r+'" path="m 0,0 l 0,'+r+","+J+","+r+","+J+","+J+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:'+J+"px; height:"+r+'px;"><v:fill method="'+E+'" type="gradient" angle="90" color="#000000" opacity="0" color2="#000000" o:opacity2="'+a+'" /></v:shape>'}}}else{j='<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="margin:-1px 0 0 -1px;padding:0;display:'+z+";width:"+u+"px;height:"+r+'px;">'}if(D>0){D=D/50;J=12;q='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" coordorigin="0,0" coordsize="'+(u-k)+","+J+'" path="m 0,0 l '+(u-k)+",0,"+(u-k)+","+J+","+J+","+J+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:'+(u-k)+"px; height:"+J+'px;"><v:fill method="linear" type="gradient" angle="0" color="#ffffff" opacity="0" color2="#ffffff" o:opacity2="'+D+'" /></v:shape>';f='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" coordorigin="0,0" coordsize="'+J+","+(r-k)+'" path="m 0,0 l 0,'+(r-k)+","+J+","+(r-k)+","+J+","+J+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:'+J+"px; height:"+(r-k)+'px;"><v:fill method="linear" type="gradient" angle="90" color="#ffffff" opacity="0" color2="#ffffff" o:opacity2="'+D+'" /></v:shape>';o='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="'+(u-k)+","+J+'" path="m 0,'+J+" l "+(u-k)+","+J+","+(u-k-J)+",0,"+J+',0 x e" style="position:absolute; margin: 0; top:'+(r-k-J)+"px; left: 0px; width:"+(u-k)+"px; height:"+J+'px;"><v:fill method="linear" type="gradient" angle="180" color="#000000" opacity="0" color2="#000000" o:opacity2="'+D+'" /></v:shape>';G='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="'+J+","+(r-k)+'" path="m '+J+",0 l "+J+","+(r-k)+",0,"+(r-k-J)+",0,"+J+' x e" style="position:absolute; margin: 0; top: 0px; left:'+(u-k-J)+"px; width:"+J+"px; height:"+(r-k)+'px;"><v:fill method="linear" type="gradient" angle="270" color="#000000" opacity="0" color2="#000000" o:opacity2="'+D+'" /></v:shape>'}}else{if(a>0){E="linear sigma";m=2;if(c<=0){a=a/50;v=Math.round(k*0.5);B='<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0 ;width:'+u+"px;height:"+r+'px;"><v:fill color="#ffffff" opacity="0.0" /></v:rect><v:roundrect arcsize="'+(g+v)+'" strokeweight="0" filled="t" stroked="f" fillcolor="#000000" style="filter:Alpha(opacity='+(a*64)+"), progid:dxImageTransform.Microsoft.Blur(PixelRadius="+v+", MakeShadow=false); zoom:1;margin:-1px 0 0 -1px;padding: 0;display:block;position:absolute;top:"+v+"px;left:"+v+"px;width:"+(u-(3*v))+"px;height:"+(r-(3*v))+'px;"><v:fill color="#000000" opacity="1" /></v:roundrect>';j='<v:roundrect arcsize="'+g+'" strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0; width:'+(u-k)+"px;height:"+(r-k)+'px;">'}else{if(c>0){a=a/50;j='<v:roundrect arcsize="'+g+'" filled="t" stroked="t" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0; width:'+u+"px;height:"+r+'px;">';n='<v:stroke weight="0.5" opacity="'+(a/2)+'" color="#000000" />';q='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="'+u+","+J+'" path="m '+J+","+J+" l "+u+","+J+" qy "+(u-J)+",0 l "+J+',0 x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: -1px; width:'+(u+1)+"px; height:"+J+'px;"><v:fill method="'+E+'" type="gradient" angle="0" color="#000000" opacity="0" color2="#000000" o:opacity2="'+a+'" /></v:shape>';f='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="'+J+","+r+'" path="m 0,'+J+" l 0,"+(r-J)+" qy "+J+","+r+" l "+J+","+J+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: -1px; left: 0px; width:'+J+"px; height:"+(r+1)+'px;"><v:fill method="'+E+'" type="gradient" angle="90" color="#000000" opacity="0" color2="#000000" o:opacity2="'+a+'" /></v:shape>';l='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="'+J+","+J+'" path="m '+J+","+J+" l 0,"+J+" qy "+J+",0 l "+J+","+J+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:'+J+"px; height:"+J+'px;"><v:fill method="'+E+'" focus="1" focusposition="1,1" focussize="0.5,0.5" type="gradientradial" color="#000000" opacity="0" color2="#000000" o:opacity2="'+a+'" /></v:shape>'}}}else{m=1;k=0;j='<v:roundrect arcsize="'+g+'" strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0; width:'+u+"px;height:"+r+'px;">'}if(D>0){D=D/50;E="linear";q='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" coordorigin="0,0" coordsize="'+(u-k)+","+J+'" path="m '+J+","+J+" l "+(u-k)+","+J+" qy "+(u-k-J)+",0 l "+J+',0 x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: -1px; width:'+(u-k+m)+"px; height:"+J+'px;"><v:fill method="'+E+'" type="gradient" angle="0" color="#ffffff" opacity="0" color2="#ffffff" o:opacity2="'+D+'" /></v:shape>';f='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" coordorigin="0,0" coordsize="'+J+","+(r-k)+'" path="m 0,'+J+" l 0,"+(r-J-k)+" qy "+J+","+(r-k)+" l "+J+","+J+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: -1px; left: 0px; width:'+J+"px; height:"+(r-k+m)+'px;"><v:fill method="'+E+'" type="gradient" angle="90" color="#ffffff" opacity="0" color2="#ffffff" o:opacity2="'+D+'" /></v:shape>';l='<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" coordorigin="0,0" coordsize="'+J+","+J+'" path="m '+J+","+J+" l 0,"+J+" qy "+J+",0 l "+J+","+J+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:'+J+"px; height:"+J+'px;"><v:fill method="'+E+'" focus="1" focusposition="1,1" focussize="0.5,0.5" type="gradientradial" color="#ffffff" opacity="0" color2="#ffffff" o:opacity2="'+D+'" /></v:shape>'}}b.innerHTML=h+B+j+y+n+H+G+o+q+f+l+d;b.className=K;b.style.cssText=t.style.cssText;b.style.height=t.height+"px";b.style.width=t.width+"px";b.height=t.height;b.width=t.width;b.src=t.src;b.alt=t.alt;if(t.id!=""){b.id=t.id}if(t.title!=""){b.title=t.title}if(t.alt!=""){b.alt=t.alt}if(t.getAttribute("onclick")!=""){b.setAttribute("onclick",t.getAttribute("onclick"))}if(t.getAttribute("usemap")){if(J>0){m=k}else{m=0}L.style.position="relative";L.style.height=r+"px";L.style.width=u+"px";t.left=0;t.top=0;t.style.position="absolute";t.style.height=r+"px";t.style.width=u+"px";t.style.left=0+"px";t.style.top=0+"px";t.style.filter="Alpha(opacity=0)";L.insertBefore(b,t)}else{L.replaceChild(b,t)}}}function addCorners(){var p=getImages("corner");var g;var h;var d;var b;var n;var m=null;var q=null;var o=null;var l=null;var f="";var k="";var c=null;var a=null;var j=null;for(n=0;n<p.length;n++){g=p[n];h=g.parentNode;d=document.createElement("canvas");if(d.getContext){f=g.className.split(" ");m=getClassValue(f,"iradius");o=getClassValue(f,"ishadow");q=getClassValue(f,"ishade");l=getClassAttribute(f,"inverse");k=getClasses(f,"corner");d.className=k;d.style.cssText=g.style.cssText;d.style.height=g.height+"px";d.style.width=g.width+"px";d.height=g.height;d.width=g.width;d.src=g.src;d.alt=g.alt;if(g.id!=""){d.id=g.id}if(g.title!=""){d.title=g.title}if(g.getAttribute("alt")){d.setAttribute("title",g.getAttribute("alt"))}if(g.getAttribute("onclick")){d.setAttribute("onclick",g.getAttribute("onclick"))}c=Math.min(d.width,d.height)/2;m=Math.min(c,m);j=4;j=(o>0?(l>0?0:Math.min(Math.max(j,m/2),16)):0);b=d.getContext("2d");if(g.getAttribute("usemap")){h.style.position="relative";h.style.height=g.height+"px";h.style.width=g.width+"px";d.left=0;d.top=0;d.style.position="absolute";d.style.left=0+"px";d.style.top=0+"px";g.left=0;g.top=0;g.style.position="absolute";g.style.height=g.height+"px";g.style.width=g.width+"px";g.style.left=0+"px";g.style.top=0+"px";g.style.opacity=0;h.insertBefore(d,g)}else{h.replaceChild(d,g)}b.clearRect(0,0,d.width,d.height);b.save();if(o>0&&l<=0){o=o/100;if(m>0){roundedShadow(b,j,j,d.width-j,d.height-j,m,o)}else{j=8;roundedShadow(b,j,j,d.width-j,d.height-j,j,o)}}if(m<=0){b.beginPath();b.rect(0,0,d.width-j,d.height-j);b.closePath()}else{roundedRect(b,0,0,d.width-j,d.height-j,m)}b.clip();b.fillStyle="rgba(0,0,0,0)";b.fillRect(0,0,d.width,d.height);b.drawImage(g,0,0,d.width-j,d.height-j);if(o>0&&l>0){o=o/100;if(m>0){addShine(b,d.width,d.height,m,o,1);roundedRect(b,0,0,d.width,d.height,m)}else{m=16;addShine(b,d.width,d.height,m,o,1);b.beginPath();b.rect(0,0,d.width,d.height);b.closePath()}b.strokeStyle="rgba(0,0,0,"+o+")";b.lineWidth=2;b.stroke()}if(q>0){q=q/100;if(m<=0){m=16}addShade(b,d.width-j,d.height-j,m,q);addShine(b,d.width-j,d.height-j,m,q)}d.style.visibility="visible"}}}var cornerOnload=window.onload;window.onload=function(){if(cornerOnload){cornerOnload()}if(isIE){addIECorners()}else{addCorners()}};
