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 stl=document.createStyleSheet();stl.addRule("v\\:*","behavior: url(#default#VML);");document.namespaces.add("v","urn:schemas-microsoft-com:vml")}}function getImages(d){var c=document.getElementsByTagName("img");var e=new Array();var b=0;var g;var f;var a=0;for(b=0;b<c.length;b++){g=c[b];f=g.className.split(" ");for(var a=0;a<f.length;a++){if(f[a]==d){e.push(g);break}}}return e}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 e=c.length;for(var b=0;b<d.length;b++){if(d[b].indexOf(c)==0){a=Math.min(d[b].substring(e),100);break}}return Math.max(0,a)}function getClassColor(d,c){var a=0;var e="";var f=c.length;for(var b=0;b<d.length;b++){if(d[b].indexOf(c)==0){a=d[b].substring(f);e="#"+a.toLowerCase();break}}if(e.match(/^#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]$/i)){return e}else{return 0}}function getClassAttribute(d,c){var a=0;var e=c.length;for(var b=0;b<d.length;b++){if(d[b].indexOf(c)==0){a=1;break}}return a}function addShading(c,b,g,f,a,d){var e=c.createLinearGradient(0,g,0,g+a);e.addColorStop(0,"rgba(0,0,0,"+(d/2)+")");e.addColorStop(0.3,"rgba(0,0,0,0)");e.addColorStop(0.7,"rgba(254,254,254,0)");e.addColorStop(1,"rgba(254,254,254,"+(d)+")");c.beginPath();c.rect(b,g,f,a);c.closePath();c.fillStyle=e;c.fill()}function addLining(h,f,e,b,g,d,i,j,c){var a=h.createLinearGradient(f,e,b,g);if(j==true){a.addColorStop(0,"rgba(192,192,192,"+d+")");a.addColorStop(0.7,"rgba(254,254,254,0.8)");a.addColorStop(1,"rgba(254,254,254,0.9)")}else{if(c=="#f0f4ff"){a.addColorStop(0,"rgba(254,254,254,0.9)");a.addColorStop(0.3,"rgba(254,254,254,0.8)");a.addColorStop(1,"rgba(192,192,192,0)")}else{a.addColorStop(0,"rgba(254,254,254,0)");a.addColorStop(1,"rgba(192,192,192,0)")}}h.strokeStyle=a;h.lineWidth=i;h.beginPath();h.rect(f,e,b,g);h.closePath();h.stroke()}function addRadialStyle(j,c,i,e,a,h,d,g){var f=j.createRadialGradient(c,i,e,a,h,d);var b=Math.min(parseFloat(g+0.1),1);f.addColorStop(0,"rgba(0,0,0,"+b+")");f.addColorStop(0.25,"rgba(0,0,0,"+g+")");f.addColorStop(1,"rgba(0,0,0,0)");return f}function addLinearStyle(c,a,i,b,g,d){var f=c.createLinearGradient(a,i,b,g);var e=Math.min(parseFloat(d+0.1),1);f.addColorStop(0,"rgba(0,0,0,"+e+")");f.addColorStop(0.25,"rgba(0,0,0,"+d+")");f.addColorStop(1,"rgba(0,0,0,0)");return f}function tiltShadow(l,h,g,b,i,e,d,k){var a,c=k?2.5:1.25,j=k?3.5:2.25;l.fillStyle="rgba(0,0,0,"+(d*1.2)+")";l.beginPath();l.rect(h+e,g+i-g-g,b-(e*j),g);l.closePath();l.fill();l.beginPath();l.rect(h+b-h-h,g,e,e);l.closePath();a=addLinearStyle(l,h+b-h-h,g+e,h+b-h-h,g,d);l.fillStyle=a;l.fill();l.beginPath();l.rect(h,g+i-g-g,e,e);l.closePath();a=addLinearStyle(l,h+e,g+i-g-g,h,g+i-g-g,d);l.fillStyle=a;l.fill();l.beginPath();l.moveTo(h+b-h-h,g+e);l.lineTo(h+b-h,g+e);l.quadraticCurveTo(h+b-h-h,g+(i/2),h+b-h,g+i-(e*c));l.lineTo(h+b-h-h,g+i-(e*c));l.quadraticCurveTo(h+b-(h*3),g+(i/2),h+b-h-h,g+e);l.closePath();l.fill();l.beginPath();l.rect(h,g+i-e,e,e);l.closePath();a=addRadialStyle(l,h+e,g+i-e,e-h,h+e,g+i-e,e,d);l.fillStyle=a;l.fill();l.beginPath();l.rect(h+e,g+i-g,b-(e*j),g);l.closePath();a=addLinearStyle(l,h+e,g+i-g,h+e,g+i,d);l.fillStyle=a;l.fill();l.beginPath();l.rect(h+b-(e*c),g+i-(e*c),e*c,e*c);l.closePath();a=addRadialStyle(l,h+b-(e*c),g+i-(e*c),Math.max(0,(e*c)-1.5-h),h+b-(e*c),g+i-(e*c),e*c,d);l.fillStyle=a;l.fill();l.beginPath();l.moveTo(h+b-h,g+e);l.lineTo(h+b,g+e);l.quadraticCurveTo(h+b-h,g+(i/2),h+b,g+i-(e*c));l.lineTo(h+b-h,g+i-(e*c));l.quadraticCurveTo(h+b-(h*2),g+(i/2),h+b-h,g+e);l.closePath();a=addLinearStyle(l,h+b-h,g+e,h+b,g+e,d);l.fillStyle=a;l.fill();l.beginPath();l.rect(h+b-e,g,e,e);l.closePath();a=addRadialStyle(l,h+b-e,g+e,e-h,h+b-e,g+e,e,d);l.fillStyle=a;l.fill()}function getRadius(b,d,a){var c=(Math.min(d,a)/100);b=Math.max(Math.min(100,b/c),0);return b+"%"}function wavedRect(u,k,g,m,z,q,s){function e(c,h){return Math.random()*(h-c)+c}var v,p,B,b,a,d,o,l=m/16,C=m/32,f=z/16,A=z/32,D=q*0.1,j=q*0.25;if(!s){u.beginPath()}u.moveTo(k,g);b=k;a=g;o=z;while(o>0){p=e(f,Math.min(o,A));B=e(1,p);u.quadraticCurveTo(b+e(D,j),a+B,b,a+p);a+=p;o-=p}b=k;a=g+z;d=m;while(d>0){p=e(l,Math.min(d,C));B=e(1,p);u.quadraticCurveTo(b+B,a-e(D,j),b+p,a);b+=p;d-=p}b=k+m;a=g+z;o=z;while(o>0){p=e(f,Math.min(o,A));B=e(1,p);u.quadraticCurveTo(b-e(D,j),a-B,b,a-p);a-=p;o-=p}b=k+m;a=g;d=m;while(d>0){p=e(l,Math.min(d,C));B=e(1,p);u.quadraticCurveTo(b-B,a+e(D,j),b-p,a);b-=p;d-=p}if(!s){u.closePath()}}function wavedPath(m,j,o,B,u){function f(h,c){return parseInt(Math.floor(Math.random()*(c-h+1))+h)}function a(t,r,h,c,k,i){var p=new Array(6);p[0]=t+2/3*(h-t);p[1]=r+2/3*(c-r);p[2]=p[0]+(k-t)/3;p[3]=p[1]+(i-r)/3;p[4]=k;p[5]=i;return p}var v="",A,z,s,D,d,b,e,q,n=o/16,E=o/32,g=B/16,C=B/32,F=u*0.1,l=u*0.25;v+="m "+m+","+j;d=m;b=j;q=B;while(q>0){s=f(g,Math.min(q,C));D=f(1,s);z=a(d,b,d+f(F,l),b+D,d,b+s);v+=" c "+parseInt(z[0])+","+Math.min(B,parseInt(z[1]))+","+parseInt(z[2])+","+Math.min(B,parseInt(z[3]))+","+parseInt(z[4])+","+Math.min(B,parseInt(z[5]));b+=s;q-=s}d=m;b=j+B;e=o;while(e>0){s=f(n,Math.min(e,E));D=f(1,s);z=a(d,b,d+D,b-f(F,l),d+s,b);v+=" c "+Math.min(o,parseInt(z[0]))+","+parseInt(z[1])+","+Math.min(o,parseInt(z[2]))+","+parseInt(z[3])+","+Math.min(o,parseInt(z[4]))+","+parseInt(z[5]);d+=s;e-=s}d=m+o;b=j+B;q=B;while(q>0){s=f(g,Math.min(q,C));D=f(1,s);z=a(d,b,d-f(F,l),b-D,d,b-s);v+=" c "+parseInt(z[0])+","+Math.max(0,parseInt(z[1]))+","+parseInt(z[2])+","+Math.max(0,parseInt(z[3]))+","+parseInt(z[4])+","+Math.max(0,parseInt(z[5]));b-=s;q-=s}d=m+o;b=j;e=o;while(e>0){s=f(n,Math.min(e,E));D=f(1,s);z=a(d,b,d-D,b+f(F,l),d-s,b);v+=" c "+Math.max(0,parseInt(z[0]))+","+parseInt(z[1])+","+Math.max(0,parseInt(z[2]))+","+parseInt(z[3])+","+Math.max(0,parseInt(z[4]))+","+parseInt(z[5]);d-=s;e-=s}return v+" x e"}function roundedRect(d,c,g,f,b,a,e){if(!e){d.beginPath()}d.moveTo(c,g+a);d.lineTo(c,g+b-a);d.quadraticCurveTo(c,g+b,c+a,g+b);d.lineTo(c+f-a,g+b);d.quadraticCurveTo(c+f,g+b,c+f,g+b-a);d.lineTo(c+f,g+a);d.quadraticCurveTo(c+f,g,c+f-a,g);d.lineTo(c+a,g);d.quadraticCurveTo(c,g,c,g+a);if(!e){d.closePath()}}function addIEInstant(){var R=getImages("instant");var d;var M;var E;var x;var l=16;var L=8;var D=1;var J="";var V=0;var Q;var v;var u;var h;var C;var j;var b;var A="";var z="";var aa="r";var U=0;var T;var s,t,n,B,a,p,G,m,g,K,c;var e="";var k="";var P,y,w;var Y=6;var S,X,O,o,N,I,W,Z,F,q,H;for(S=0;S<R.length;S++){d=R[S];M=d.parentNode;y=0;j=0;C=0;A="";t="#000000";w=0;U=0.33;z="#f0f4ff";s=0;P="";K="";g="";v=0;u=0;h=0;Q=0;if(d.width>=64&&d.height>=64){e=d.className.split(" ");V=getClassValue(e,"ishadow");if(V>0){U=V/100}J=getClassColor(e,"icolor");if(J!=0){z=J}b=getClassColor(e,"itxtcol");if(b!=0){t=b}C=getClassAttribute(e,"itxttitle");j=getClassAttribute(e,"itxtalt");h=getClassAttribute(e,"itiltleft");v=getClassAttribute(e,"itiltright");u=getClassAttribute(e,"itiltnone");y=getClassAttribute(e,"historical");Q=getClassAttribute(e,"noshading");w=getClassAttribute(e,"nocorner");s=getClassAttribute(e,"preserve");if(y==true){w=false}if(v==true){aa="r"}if(u==true){aa="n"}if(h==true){aa="l"}k=getClasses(e,"instant");width=d.width;height=d.height;l=Math.round(((width+height)/2)*0.05);o=l;L=l/2;Y=parseInt(L*0.75);W=width-(l*2);Z=height-(l*2);N=Math.round(Z/3);X=(Q==0?"t":"f");O=w?getRadius(l,width,height):0;if(aa=="r"){rotation=2.8;D=0.95;aa="n"}else{if(aa=="n"){rotation=0;D=1;aa="l"}else{if(aa=="l"){rotation=-2.8;D=0.95;aa="r"}}}x=(d.currentStyle.display.toLowerCase()=="block")?"block":"inline-block";E=document.createElement(['<var style="zoom:1;overflow:hidden;display:'+x+";width:"+width+"px;height:"+height+'px;padding:0;">'].join(""));I=d.currentStyle.styleFloat.toLowerCase();x=(I=="left"||I=="right")?"inline":x;A=d.alt!=""&&j!=0?d.alt:d.title!=""&&C!=0?d.title:"";n='<v:group style="rotation:'+rotation+"; zoom:"+D+"; display:"+x+"; margin:-1px 0 0 -1px; padding:0; position:relative; width:"+width+"px;height:"+height+'px;" coordsize="'+width+","+height+'"><v:rect strokeweight="0" filled="f" stroked="f" fillcolor="transparent" style="zoom:1;margin: 0;padding: 0;display:block;position:absolute;top:0px;left:0px;width:'+width+"px;height:"+height+';"><v:fill opacity="0" color="#000000" /></v:rect>';G='<v:roundrect arcsize="'+O+'" strokeweight="0" filled="t" stroked="f" fillcolor="#000000" style="filter:Alpha(opacity='+(U*100)+"), progid:dxImageTransform.Microsoft.Blur(PixelRadius="+Y+", MakeShadow=false); zoom:1;margin:0;padding:0;display:block;position:absolute;top:"+L+"px;left:"+L+"px;width:"+(width-(2*L))+"px;height:"+(height-(2*L))+';"><v:fill color="#000000" opacity="1" /></v:roundrect>';if(y==0){a='<v:roundrect arcsize="'+O+'" strokeweight="0" filled="t" stroked="f" fillcolor="'+z+'" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+(width-L)+"px;height:"+(height-L)+';"></v:roundrect>'}else{P=wavedPath(0,0,(width-L)*10,(height-L)*10,l*10);a='<v:shape strokeweight="0" stroked="f" filled="t" fillcolor="'+z+'" coordorigin="0,0" coordsize="'+((width-L)*10)+","+((height-L)*10)+'" path="'+P+'" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+(width-L)+"px;height:"+(height-L)+';"></v:shape>'}c='<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="'+z+'" style="zoom:1;margin: 0;padding: 0;display:block;position:absolute;top:'+o+"px;left:"+o+"px;width:"+(width-L-(2*l))+"px;height:"+(height-L-(2*l))+';"><v:fill color="#000000" opacity="'+U+'" /></v:rect>';if(typeof check_strokeTextCapability=="function"&&check_strokeTextCapability()&&A!=""){K='<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="'+z+'" style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(l-1)+"px;top:"+(height-1-L-(l*3))+"px;width:"+(width-L+2-(l*2))+"px;height:"+(l*3)+'px;"></v:rect>';A=get_widthText(A,W,l*1.5,100,100);T=get_textWidth(A,l*1.5,100,100);g=get_strokeText(A,((width-L)-T)/2,height-L-(l*2.4),l*1.5,100,100,100,"sans-serif",t,1,0);m='<v:rect strokeweight="0" filled="'+X+'" stroked="f" fillcolor="transparent" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+o+"px;left:"+o+"px;width:"+(width-L-(2*l))+"px;height:"+N+'px;"><v:fill method="sigma" type="gradient" angle="0" color="#000000" opacity="0" color2="#000000" o:opacity2="'+(U/2)+'" /></v:rect><v:rect strokeweight="0" filled="'+X+'" stroked="f" fillcolor="transparent" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+(height-L-(l*3)-N)+"px;left:"+l+"px;width:"+(width-L-(2*l))+"px;height:"+N+'px;"><v:fill method="sigma" type="gradient" angle="0" color="#ffffff" opacity="'+(U*0.75)+'" color2="#ffffff" o:opacity2="0" /></v:rect><v:rect strokeweight="2" filled="f" stroked="t" strokecolor="'+z+'" fillcolor="transparent" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+l+"px;left:"+l+"px;width:"+(width-L-(2*l))+"px;height:"+(height-L-(4*l))+'px;"><v:fill color="#ffffff" opacity="0" /></v:rect>'}else{m='<v:rect strokeweight="0" filled="'+X+'" stroked="f" fillcolor="transparent" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+o+"px;left:"+o+"px;width:"+(width-L-(2*l))+"px;height:"+N+'px;"><v:fill method="sigma" type="gradient" angle="0" color="#000000" opacity="0" color2="#000000" o:opacity2="'+(U/2)+'" /></v:rect><v:rect strokeweight="0" filled="'+X+'" stroked="f" fillcolor="transparent" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+(height-L-l-N)+"px;left:"+l+"px;width:"+(width-L-(2*l))+"px;height:"+N+'px;"><v:fill method="sigma" type="gradient" angle="0" color="#ffffff" opacity="'+(U*0.75)+'" color2="#ffffff" o:opacity2="0" /></v:rect><v:rect strokeweight="2" filled="f" stroked="t" strokecolor="'+z+'" fillcolor="transparent" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+l+"px;left:"+l+"px;width:"+(width-L-(2*l))+"px;height:"+(height-L-(2*l))+'px;"><v:fill color="#ffffff" opacity="0" /></v:rect>'}if(s==0){p='<v:image src="'+d.src+'" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+o+"px;left:"+o+"px;width:"+(width-L-(2*l))+"px;height:"+(height-L-(2*l))+';"></v:image>'}else{if(width>height){F=(height/width);H=0;q=((W*F)-Z)/2;Z=(W*F);q=(q/(Z/100))}else{if(width<height){F=(width/height);q=0;H=((Z*F)-W)/2;W=(Z*F);H=(H/(W/100))}else{F=1;H=0;q=0}}p='<v:image croptop="'+q+'%" cropbottom="'+q+'%" cropleft="'+H+'%" cropright="'+H+'%" src="'+d.src+'" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+o+"px;left:"+o+"px;width:"+(width-L-(2*l))+"px;height:"+(height-L-(2*l))+';"></v:image>'}B="</v:group>";E.innerHTML=n+G+a+c+p+m+K+g+B;E.className=k;E.style.cssText=d.style.cssText;E.style.visibility="visible";E.src=d.src;E.alt=d.alt;E.width=d.width;E.height=d.height;if(d.id!=""){E.id=d.id}if(d.title!=""){E.title=d.title}if(d.getAttribute("onclick")!=""){E.setAttribute("onclick",d.getAttribute("onclick"))}M.replaceChild(E,d)}}}function addInstant(){var E=getImages("instant");var c;var B;var e;var M;var j=16;var A=8;var K=2;var z="";var I=0;var D;var p;var o;var f;var v;var g;var b;var t="";var F;var s="";var N="r";var H=0;var k;var d="";var h="";var C="";var w=0;var u=1;var a=1;var G,J,L,x,l,y,n,q,r,m;for(G=0;G<E.length;G++){c=E[G];B=c.parentNode;e=document.createElement("canvas");r=0;g=0;v=0;t="";n="#000000";H=0.33;s="#f0f4ff";m=0;q=0;p=0;o=0;f=0;D=0;if(e.getContext&&c.width>=64&&c.height>=64){d=c.className.split(" ");I=getClassValue(d,"ishadow");if(I>0){H=I/100}z=getClassColor(d,"icolor");if(z!=0){s=z}f=getClassAttribute(d,"itiltleft");p=getClassAttribute(d,"itiltright");o=getClassAttribute(d,"itiltnone");b=getClassColor(d,"itxtcol");if(b!=0){n=b}v=getClassAttribute(d,"itxttitle");g=getClassAttribute(d,"itxtalt");r=getClassAttribute(d,"historical");D=getClassAttribute(d,"noshading");q=getClassAttribute(d,"nocorner");m=getClassAttribute(d,"preserve");if(r==true){q=false}if(p==true){N="r"}if(o==true){N="n"}if(f==true){N="l"}h=getClasses(d,"instant");e.className=h;e.style.cssText=c.style.cssText;e.style.height=c.height+"px";e.style.width=c.width+"px";e.height=c.height;e.width=c.width;e.src=c.src;e.alt=c.alt;if(c.id!=""){e.id=c.id}if(c.title!=""){e.title=c.title}if(c.getAttribute("onclick")!=""){e.setAttribute("onclick",c.getAttribute("onclick"))}t=e.alt!=""&&g!=0?e.alt:e.title!=""&&v!=0?e.title:"";j=Math.round(((e.width+e.height)/2)*0.05);k=Math.round(Math.max(e.width,e.height)*0.05);A=j/2;J=e.width-(j*2);L=e.height-(j*2);K=Math.floor(Math.min(Math.max(j/8,1),2));if(e.width>e.height){u=0.05;a=u*(e.width/e.height)}else{if(e.width<e.height){a=0.05;u=a*(e.height/e.width)}else{u=0.05;a=0.05}}M=e.getContext("2d");B.replaceChild(e,c);M.clearRect(0,0,e.width,e.height);M.save();w=1.333333;if(N=="r"){M.translate(k,0);M.scale(1-(w*u),1-(w*a));M.rotate(0.05);N="n"}else{if(N=="n"){w=1.5;N="l";M.scale(1-(u/w),1-(a/w))}else{if(N=="l"){M.translate(0,k);M.scale(1-(w*u),1-(w*a));M.rotate(-0.05);N="r"}}}tiltShadow(M,A,A,e.width,e.height,A,H,q);if(r==1){wavedRect(M,0,0,e.width,e.height,j);M.clip()}else{if(q==1){roundedRect(M,0,0,e.width,e.height,j);M.clip()}}M.fillStyle=s;M.fillRect(0,0,e.width,e.height);M.fillStyle="rgba(0,0,0,"+H+")";M.fillRect(j,j,e.width-(j*2),e.height-(j*2));if(!window.opera){addLining(M,1.5,1.5,e.width-3,e.height-3,H,K,false,s)}if(m==0){M.drawImage(c,j,j,e.width-(j*2),e.height-(j*2))}else{if(e.width>e.height){x=(e.height/e.width);y=0;l=((J*x)-L)/2;L=(J*x)}else{if(e.width<e.height){x=(e.width/e.height);l=0;y=((L*x)-J)/2;J=(L*x)}else{x=1;y=0;l=0}}M.save();M.beginPath();M.rect(j,j,J-(2*y),L-(2*l));M.closePath();M.clip();M.drawImage(c,j-y,j-l,J,L);M.restore()}if(typeof set_textRenderContext=="function"&&t!=""){set_textRenderContext(M);if(check_textRenderContext(M)){M.save();M.beginPath();M.rect(1,e.height-(j*3),e.width-2,(j*3));M.closePath();M.fillStyle=s;M.fill();M.restore();if(D==0){addShading(M,j,j,e.width-(j*2),e.height-(j*4),H)}if(!window.opera){addLining(M,j,j,e.width-(j*2),e.height-(j*4),H,K,true)}M.strokeStyle=n;t=get_widthText(t,J,j*1.5,100,100);F=get_textWidth(t,j*1.5,100,100);M.strokeText(t,j+((J-F)/2),e.height-(j*2.4),j*1.5,100,100,100)}}else{if(D==0){addShading(M,j,j,e.width-(j*2),e.height-(j*2),H)}if(!window.opera){addLining(M,j,j,e.width-(j*2),e.height-(j*2),H,K,true)}}M.restore();e.style.visibility="visible"}}}var instantOnload=window.onload;window.onload=function(){if(instantOnload){instantOnload()}if(isIE){addIEInstant()}else{addInstant()}};