var tmp=navigator.appName=="Microsoft Internet Explorer"&&navigator.userAgent.indexOf("Opera")<1?1:0;if(tmp){var isIE=document.namespaces?1:0;}if(isIE){var stl=document.createStyleSheet();stl.addRule("v\\:*","behavior: url(#default#VML);");document.namespaces.add("v","urn:schemas-microsoft-com:vml");}function getImages(_1){var _2=document.getElementsByTagName("img");var _3=new Array();var i=0;var _5;var _6;var j=0;for(i=0;i<_2.length;i++){_5=_2[i];_6=_5.className.split(" ");for(var j=0;j<_6.length;j++){if(_6[j]==_1){_3.push(_5);break;}}}return _3;}function getClasses(_9,_a){var _b="";for(var j=0;j<_9.length;j++){if(_9[j]!=_a){if(_b){_b+=" ";}_b+=_9[j];}}return _b;}function getClassValue(_d,_e){var _f=0;var pos=_e.length;for(var j=0;j<_d.length;j++){if(_d[j].indexOf(_e)==0){_f=Math.min(_d[j].substring(pos),100);break;}}return Math.max(0,_f);}function getClassColor(_12,_13){var _14=0;var str="";var pos=_13.length;for(var j=0;j<_12.length;j++){if(_12[j].indexOf(_13)==0){_14=_12[j].substring(pos);str="#"+_14.toLowerCase();break;}}if(str.match(/^#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]$/i)){return str;}else{return 0;}}function getClassAttribute(_18,_19){var _1a=0;var pos=_19.length;for(var j=0;j<_18.length;j++){if(_18[j].indexOf(_19)==0){_1a=1;break;}}return _1a;}function addShading(ctx,x,y,_20,_21,_22){var _23=ctx.createLinearGradient(0,y,0,y+_21);_23.addColorStop(0,"rgba(0,0,0,"+(_22/2)+")");_23.addColorStop(0.3,"rgba(0,0,0,0)");_23.addColorStop(0.7,"rgba(254,254,254,0)");_23.addColorStop(1,"rgba(254,254,254,"+(_22)+")");ctx.beginPath();ctx.rect(x,y,_20,_21);ctx.closePath();ctx.fillStyle=_23;ctx.fill();}function addLining(ctx,x,y,_27,_28,_29,_2a,_2b,_2c){var _2d=ctx.createLinearGradient(x,y,_27,_28);if(_2b==true){_2d.addColorStop(0,"rgba(192,192,192,"+_29+")");_2d.addColorStop(0.7,"rgba(254,254,254,0.8)");_2d.addColorStop(1,"rgba(254,254,254,0.9)");}else{if(_2c=="#f0f4ff"){_2d.addColorStop(0,"rgba(254,254,254,0.9)");_2d.addColorStop(0.3,"rgba(254,254,254,0.8)");_2d.addColorStop(1,"rgba(192,192,192,0)");}else{_2d.addColorStop(0,"rgba(254,254,254,0)");_2d.addColorStop(1,"rgba(192,192,192,0)");}}ctx.strokeStyle=_2d;ctx.lineWidth=_2a;ctx.rect(x,y,_27,_28);ctx.stroke();}function addRadialStyle(ctx,x1,y1,r1,x2,y2,r2,_35){var tmp=ctx.createRadialGradient(x1,y1,r1,x2,y2,r2);var opt=Math.min(parseFloat(_35+0.1),1);tmp.addColorStop(0,"rgba(0,0,0,"+opt+")");tmp.addColorStop(0.25,"rgba(0,0,0,"+_35+")");tmp.addColorStop(1,"rgba(0,0,0,0)");return tmp;}function addLinearStyle(ctx,x,y,w,h,_3d){var tmp=ctx.createLinearGradient(x,y,w,h);var opt=Math.min(parseFloat(_3d+0.1),1);tmp.addColorStop(0,"rgba(0,0,0,"+opt+")");tmp.addColorStop(0.25,"rgba(0,0,0,"+_3d+")");tmp.addColorStop(1,"rgba(0,0,0,0)");return tmp;}function tiltShadow(ctx,x,y,_43,_44,_45,_46){var _47;ctx.beginPath();ctx.rect(x,y+_44-_45,_45,_45);ctx.closePath();_47=addRadialStyle(ctx,x+_45,y+_44-_45,_45-x,x+_45,y+_44-_45,_45,_46);ctx.fillStyle=_47;ctx.fill();ctx.beginPath();ctx.rect(x+_45,y+_44-y,_43-(_45*2.25),y);ctx.closePath();_47=addLinearStyle(ctx,x+_45,y+_44-y,x+_45,y+_44,_46);ctx.fillStyle=_47;ctx.fill();ctx.beginPath();ctx.rect(x+_43-(_45*1.25),y+_44-(_45*1.25),_45*1.25,_45*1.25);ctx.closePath();_47=addRadialStyle(ctx,x+_43-(_45*1.25),y+_44-(_45*1.25),(_45*1.25)-1.5-x,x+_43-(_45*1.25),y+_44-(_45*1.25),_45*1.25,_46);ctx.fillStyle=_47;ctx.fill();ctx.beginPath();ctx.moveTo(x+_43-x,y+_45);ctx.lineTo(x+_43,y+_45);ctx.quadraticCurveTo(x+_43-x,y+(_44/2),x+_43,y+_44-(_45*1.25));ctx.lineTo(x+_43-x,y+_44-(_45*1.25));ctx.quadraticCurveTo(x+_43-(x*2),y+(_44/2),x+_43-x,y+_45);ctx.closePath();_47=addLinearStyle(ctx,x+_43-x,y+_45,x+_43,y+_45,_46);ctx.fillStyle=_47;ctx.fill();ctx.beginPath();ctx.rect(x+_43-_45,y,_45,_45);ctx.closePath();_47=addRadialStyle(ctx,x+_43-_45,y+_45,_45-x,x+_43-_45,y+_45,_45,_46);ctx.fillStyle=_47;ctx.fill();}function addIEInstant(){var _48=getImages("instant");var _49;var _4a;var vml;var _4c;var _4d=16;var _4e=8;var _4f=1;var _50="";var _51=0;var i;var flt;var _54;var _55;var _56;var _57="";var _58="r";var _59=0;var _5a="";var _5b="";for(i=0;i<_48.length;i++){_49=_48[i];_4a=_49.parentNode;_59=0.33;_57="#f0f4ff";content="";_54=0;_55=0;_56=0;if(_49.width>=64&&_49.height>=64){_5a=_49.className.split(" ");_51=getClassValue(_5a,"ishadow");if(_51>0){_59=_51/100;}_59=Math.max(_59*0.75,0);_50=getClassColor(_5a,"icolor");if(_50!=0){_57=_50;}_56=getClassAttribute(_5a,"itiltleft");_54=getClassAttribute(_5a,"itiltright");_55=getClassAttribute(_5a,"itiltnone");if(_54==true){_58="r";}if(_55==true){_58="n";}if(_56==true){_58="l";}_5b=getClasses(_5a,"instant");width=_49.width;height=_49.height;_4d=Math.round(Math.max(width,height)*0.05);_4e=_4d/2;if(_58=="r"){rotation=2.8;_4f=0.95;_58="n";}else{if(_58=="n"){rotation=0;_4f=1;_58="l";}else{if(_58=="l"){rotation=-2.8;_4f=0.95;_58="r";}}}_4c=(_49.currentStyle.display.toLowerCase()=="block")?"block":"inline-block";vml=document.createElement(["<var style=\"zoom:1;overflow:hidden;display:"+_4c+";width:"+width+"px;height:"+height+"px;padding:0;\">"].join(""));flt=_49.currentStyle.styleFloat.toLowerCase();_4c=(flt=="left"||flt=="right")?"inline":_4c;vml.innerHTML="<v:group style=\"rotation:"+rotation+"; zoom:"+_4f+"; display:"+_4c+"; margin:-1px 0 0 -1px; padding:0; position:relative; width:"+width+"px;height:"+height+"px;\" coordsize=\""+width+","+height+"\"><v:rect strokeweight=\"0\" filled=\"t\" stroked=\"f\" fillcolor=\""+_57+"\" style=\"zoom:1;margin: 0;padding: 0;display:block;position:absolute;top:0px;left:0px;width:"+(width-_4e)+"px;height:"+(height-_4e)+";\"><v:shadow on=\"t\" type=\"single\" opacity=\""+_59+"\" color=\"#000000\" offset=\""+_4e+"px,"+_4e+"px\" /></v:rect><v:rect strokeweight=\"0\" filled=\"t\" stroked=\"f\" fillcolor=\""+_57+"\" style=\"zoom:1;margin: 0;padding: 0;display:block;position:absolute;top:"+_4d+"px;left:"+_4d+"px;width:"+(width-_4e-(2*_4d))+"px;height:"+(height-_4e-(2*_4d))+";\"><v:fill color=\"#000000\" opacity=\""+_59+"\" /></v:rect><v:image src=\""+_49.src+"\" style=\"zoom:1;margin: 0;padding: 0;display:block;position:absolute;top:"+_4d+"px;left:"+_4d+"px;width:"+(width-_4e-(2*_4d))+"px;height:"+(height-_4e-(2*_4d))+";\"></v:image><v:rect strokeweight=\"3\" filled=\"t\" stroked=\"t\" strokecolor=\""+_57+"\" fillcolor=\"transparent\" style=\"zoom:1;margin: 0;padding: 0;display:block;position:absolute;top:"+_4d+"px;left:"+_4d+"px;width:"+(width-_4e-(2*_4d))+"px;height:"+(height-_4e-(2*_4d))+";\"><v:fill method=\"sigma\" type=\"gradient\" angle=\"0\" color=\"#ffffff\" opacity=\""+_59+"\" color2=\"#000000\" o:opacity2=\""+(_59/2)+"\" /></v:rect></v:group>";vml.className=_5b;vml.style.cssText=_49.style.cssText;vml.title=_49.getAttribute("alt")||_49.getAttribute("title")||"";_4a.replaceChild(vml,_49);}}}function addInstant(){var _5c=navigator.userAgent.indexOf("Opera")>-1?1:0;var _5d=getImages("instant");var _5e;var _5f;var _60;var _61;var _62=16;var _63=8;var _64=2;var _65="";var _66=0;var i;var _68;var _69;var _6a;var _6b="";var _6c="r";var _6d=0;var _6e="";var _6f="";var _70="";var _71=0;var _72=1;var _73=1;for(i=0;i<_5d.length;i++){_5e=_5d[i];_5f=_5e.parentNode;_60=document.createElement("canvas");_6d=0.33;_6b="#f0f4ff";_68=0;_69=0;_6a=0;if(_60.getContext&&_5e.width>=64&&_5e.height>=64){_6e=_5e.className.split(" ");_66=getClassValue(_6e,"ishadow");if(_66>0){_6d=_66/100;}_65=getClassColor(_6e,"icolor");if(_65!=0){_6b=_65;}_6a=getClassAttribute(_6e,"itiltleft");_68=getClassAttribute(_6e,"itiltright");_69=getClassAttribute(_6e,"itiltnone");if(_68==true){_6c="r";}if(_69==true){_6c="n";}if(_6a==true){_6c="l";}_6f=getClasses(_6e,"instant");_60.className=_6f;_60.style.cssText=_5e.style.cssText;_60.style.height=_5e.height+"px";_60.style.width=_5e.width+"px";_60.height=_5e.height;_60.width=_5e.width;_62=Math.round(Math.max(_60.width,_60.height)*0.05);_63=_62/2;_64=Math.floor(Math.min(Math.max(_62/8,1),2));if(_60.width>_60.height){_72=0.05;_73=_72*(_60.width/_60.height);}else{if(_60.width<_60.height){_73=0.05;_72=_73*(_60.height/_60.width);}else{_72=0.05;_73=0.05;}}_61=_60.getContext("2d");_5f.replaceChild(_60,_5e);_61.clearRect(0,0,_60.width,_60.height);_61.save();_71=1.333333;if(_6c=="r"){_61.translate(_62,0);_61.scale(1-(_71*_72),1-(_71*_73));_61.rotate(0.05);_6c="n";}else{if(_6c=="n"){_71=1.5;_6c="l";_61.scale(1-(_72/_71),1-(_73/_71));}else{if(_6c=="l"){_61.translate(0,_62);_61.scale(1-(_71*_72),1-(_71*_73));_61.rotate(-0.05);_6c="r";}}}tiltShadow(_61,_63,_63,_60.width,_60.height,_63,_6d);_61.fillStyle=_6b;_61.fillRect(0,0,_60.width,_60.height);_61.fillStyle="rgba(0,0,0,"+_6d+")";_61.fillRect(_62,_62,_60.width-(_62*2),_60.height-(_62*2));if(!_5c){addLining(_61,1.5,1.5,_60.width-3,_60.height-3,_6d,_64,false,_6b);}_61.drawImage(_5e,_62,_62,_60.width-(_62*2),_60.height-(_62*2));if(!_5c){addShading(_61,_62,_62,_60.width-(_62*2),_60.height-(_62*2),_6d);}if(!_5c){addLining(_61,_62,_62,_60.width-(_62*2),_60.height-(_62*2),_6d,_64,true);}_61.restore();}}}var instantOnload=window.onload;window.onload=function(){if(instantOnload){instantOnload();}if(isIE){addIEInstant();}else{addInstant();}};