function TJPinit(){TJPadjustx=0;TJPadjusty=0;if(navigator.userAgent.indexOf("MSIE")>-1){TJPadjustx=2;TJPadjusty=2}if(navigator.userAgent.indexOf("Opera")>-1){TJPadjustx=0;TJPadjusty=0}if(navigator.userAgent.indexOf("Safari")>-1){TJPadjustx=1;TJPadjusty=2}}function TJPsetwin(a,b,c){a.parentNode.getElementsByTagName("div")[0].style.display="block";if(TJPzoomoffset=="smart"){TJPzoomoffsetx=.1+.8*b/parseFloat(a.style.width);TJPzoomoffsety=.1+.8*c/parseFloat(a.style.height)}stage=a.parentNode.getElementsByTagName("div")[0];if(TJPmouse==1){if(Math.abs(c-TJPmousey)>=1){TJPzoomamount*=c>TJPmousey?.909:1.1;TJPmousey=c;if(TJPzoomamount<TJPzoomamountmin){TJPzoomamount=TJPzoomamountmin}if(TJPzoomamount>TJPzoomamountmax){TJPzoomamount=TJPzoomamountmax}stage.getElementsByTagName("div")[1].getElementsByTagName("img")[0].style.width=parseInt(a.style.width)*TJPzoomamount+"px";stage.getElementsByTagName("div")[1].getElementsByTagName("img")[0].style.height=parseInt(a.style.height)*TJPzoomamount+"px";if(stage.getElementsByTagName("div")[1].getElementsByTagName("img")[1]){stage.getElementsByTagName("div")[1].getElementsByTagName("img")[1].style.width=stage.getElementsByTagName("div")[1].getElementsByTagName("img")[0].style.width;stage.getElementsByTagName("div")[1].getElementsByTagName("img")[1].style.height=stage.getElementsByTagName("div")[1].getElementsByTagName("img")[0].style.height}}if(Math.abs(b-TJPmousex)>=12&&TJPzoomwindowlock==0){TJPzoomwidth*=b>TJPmousex?1.1:.909;TJPzoomheight=TJPzoomwidth*TJPzoomratio;TJPresize(a);TJPmousex=b}}stage.style.marginLeft=b-(TJPzoomwidth-2*TJPborderthick-2*TJPshadowthick)*TJPzoomoffsetx-TJPborderthick-TJPshadowthick+"px";stage.style.marginTop=c-(TJPzoomheight-2*TJPborderthick-2*TJPshadowthick)*TJPzoomoffsety-TJPborderthick-TJPshadowthick+"px";clip1=0;clip2=TJPzoomwidth;clip3=TJPzoomheight;clip4=0;nwidth=TJPzoomwidth;nheight=TJPzoomheight;tmp=(1-2*TJPzoomoffsetx)*(TJPborderthick+TJPshadowthick);if(b-TJPzoomwidth*TJPzoomoffsetx<tmp){clip4=TJPzoomwidth*TJPzoomoffsetx-b+tmp}else if(parseFloat(b-TJPzoomwidth*TJPzoomoffsetx+TJPzoomwidth)>parseFloat(a.style.width)+tmp){clip2=TJPzoomwidth*TJPzoomoffsetx-b+parseFloat(a.style.width)+tmp;nwidth=TJPzoomwidth*TJPzoomoffsetx-b+parseInt(a.style.width)+TJPborderthick+TJPshadowthick}tmp=(1-2*TJPzoomoffsety)*(TJPborderthick+TJPshadowthick);if(c-TJPzoomheight*TJPzoomoffsety<tmp){clip1=TJPzoomheight*TJPzoomoffsety-c+tmp}else if(parseFloat(c-TJPzoomheight*TJPzoomoffsety+TJPzoomheight)>parseFloat(a.style.height)+tmp){clip3=TJPzoomheight*TJPzoomoffsety-c+parseFloat(a.style.height)+tmp;nheight=TJPzoomheight*TJPzoomoffsety-c+parseFloat(a.style.height)+TJPborderthick+TJPshadowthick}stage.style.width=nwidth+"px";stage.style.height=nheight+"px";stage.style.clip="rect("+clip1+"px,"+clip2+"px,"+clip3+"px,"+clip4+"px)";if(c-TJPzoomoffsety*(TJPzoomheight-2*TJPborderthick-2*TJPshadowthick)<0){t=-(c-TJPzoomoffsety*(TJPzoomheight-2*TJPborderthick-2*TJPshadowthick))}else if(c-TJPzoomoffsety*(TJPzoomheight-2*TJPborderthick-2*TJPshadowthick)>parseFloat(a.style.height)-TJPzoomheight+TJPborderthick*2+TJPshadowthick*2){t=-TJPzoomamount*parseFloat(a.style.height)+TJPzoomheight-TJPborderthick*2-TJPshadowthick*2-(c-TJPzoomoffsety*(TJPzoomheight-2*TJPborderthick-2*TJPshadowthick)-(parseFloat(a.style.height)-TJPzoomheight+TJPborderthick*2+TJPshadowthick*2))}else{t=(-TJPzoomamount*parseFloat(a.style.height)+TJPzoomheight-TJPborderthick*2-TJPshadowthick*2)/(parseFloat(a.style.height)-TJPzoomheight+TJPborderthick*2+TJPshadowthick*2)*(c-TJPzoomoffsety*(TJPzoomheight-2*TJPborderthick-2*TJPshadowthick))}stage.getElementsByTagName("div")[1].getElementsByTagName("img")[0].style.marginTop=t+"px";if(stage.getElementsByTagName("div")[1].getElementsByTagName("img")[1]){stage.getElementsByTagName("div")[1].getElementsByTagName("img")[1].style.marginTop=t+"px"}if(b-TJPzoomoffsetx*(TJPzoomwidth-2*TJPborderthick-2*TJPshadowthick)<0){t=-(b-TJPzoomoffsetx*(TJPzoomwidth-2*TJPborderthick-2*TJPshadowthick))}else if(b-TJPzoomoffsetx*(TJPzoomwidth-2*TJPborderthick-2*TJPshadowthick)>parseFloat(a.style.width)-TJPzoomwidth+TJPborderthick*2+TJPshadowthick*2){t=-TJPzoomamount*parseFloat(a.style.width)+TJPzoomwidth-TJPborderthick*2-TJPshadowthick*2-(b-TJPzoomoffsetx*(TJPzoomwidth-2*TJPborderthick-2*TJPshadowthick)-(parseFloat(a.style.width)-TJPzoomwidth+TJPborderthick*2+TJPshadowthick*2))}else{t=(-TJPzoomamount*parseFloat(a.style.width)+TJPzoomwidth-TJPborderthick*2-TJPshadowthick*2)/(parseFloat(a.style.width)-TJPzoomwidth+TJPborderthick*2+TJPshadowthick*2)*(b-TJPzoomoffsetx*(TJPzoomwidth-2*TJPborderthick-2*TJPshadowthick))}stage.getElementsByTagName("div")[1].getElementsByTagName("img")[0].style.marginLeft=t+"px";if(stage.getElementsByTagName("div")[1].getElementsByTagName("img")[1]){stage.getElementsByTagName("div")[1].getElementsByTagName("img")[1].style.marginLeft=t+"px"}}function TJPhandlemouse(a,b){var a=a?a:window.event?window.event:null;if(!a){return false}if(a.pageX){nowx=a.pageX-TJPfindposx(b)-TJPadjustx;nowy=a.pageY-TJPfindposy(b)-TJPadjusty}else{if(document.documentElement&&document.documentElement.scrollTop){nowx=a.clientX+document.documentElement.scrollLeft-TJPfindposx(b)-TJPadjustx;nowy=a.clientY+document.documentElement.scrollTop-TJPfindposy(b)-TJPadjusty}else{nowx=a.x+document.body.scrollLeft-TJPfindposx(b)-TJPadjustx;nowy=a.y+document.body.scrollTop-TJPfindposy(b)-TJPadjusty}}if(a.type=="mousemove"){TJPsetwin(b,nowx,nowy)}else if(a.type=="mousedown"){TJPmouse=1;TJPmousey=nowy;TJPmousex=nowx}else if(a.type=="mouseup"){TJPmouse=0}else if(a.type=="mouseout"){TJPmouse=0;if(navigator.appVersion.indexOf("Mac")==-1||navigator.appVersion.indexOf("MSIE")==-1){x=b.parentNode;x.removeChild(x.getElementsByTagName("div")[0]);x.removeChild(x.getElementsByTagName("div")[0])}}}function TJPfindposx(a){var b=0;if(!a){return 0}if(a&&a.offsetParent){while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent}}else if(a.x){b+=a.x}return b}function TJPfindposy(a){var b=0;if(!a){return 0}if(a.offsetParent){while(a.offsetParent){b+=a.offsetTop;a=a.offsetParent}}else if(a.y){b+=a.y}return b}function TJPresize(a){sbr=0;sbl=0;if(TJPzoomwidth-2*TJPborderthick-3*TJPshadowthick<22){sbr=1}if(TJPzoomheight-2*TJPborderthick-3*TJPshadowthick<22){sbr=1}if(TJPzoomwidth>parseFloat(a.style.width)){sbl=1}if(TJPzoomheight>parseFloat(a.style.height)){sbl=1}if(sbr==1&&sbl==1){TJPzoomwidth=parseFloat(a.style.width)/2;TJPzoomheight=parseFloat(a.style.height)/2;TJPzoomratio=TJPzoomheight/TJPzoomwidth}if(sbr==1){if(TJPzoomwidth<TJPzoomheight){TJPzoomheight=TJPzoomheight/TJPzoomwidth*(22+2*TJPborderthick+3*TJPshadowthick);TJPzoomwidth=22+2*TJPborderthick+3*TJPshadowthick}else{TJPzoomwidth=TJPzoomwidth/TJPzoomheight*(22+2*TJPborderthick+3*TJPshadowthick);TJPzoomheight=22+2*TJPborderthick+3*TJPshadowthick}}if(sbl==1){if(parseFloat(a.style.width)/parseFloat(a.style.height)>TJPzoomwidth/TJPzoomheight){TJPzoomheight=parseFloat(a.style.height);TJPzoomwidth=TJPzoomheight/TJPzoomratio}else{TJPzoomwidth=parseFloat(a.style.width);TJPzoomheight=TJPzoomratio*TJPzoomwidth}}TJPzoomwidth=Math.floor(TJPzoomwidth/2)*2;TJPzoomheight=Math.floor(TJPzoomheight/2)*2;ww=a.parentNode.getElementsByTagName("div")[0];ww.style.width=TJPzoomwidth+"px";ww.style.height=TJPzoomheight+"px";w=ww.getElementsByTagName("div")[0];w.style.width=TJPzoomwidth-TJPshadowthick*2+"px";w.style.height=TJPzoomheight-TJPshadowthick*2+"px";w=ww.getElementsByTagName("div")[1];w.style.width=TJPzoomwidth-TJPshadowthick*2-TJPborderthick*2+"px";w.style.height=TJPzoomheight-TJPshadowthick*2-TJPborderthick*2+"px";if(TJPshadowthick>0){w=ww.getElementsByTagName("span")[1];w.style.margin="0 0 0 "+(TJPzoomwidth-TJPshadowthick*2)+"px";w=ww.getElementsByTagName("span")[2];w.style.margin=TJPzoomheight-TJPshadowthick*2+"px 0 0 0px";w=ww.getElementsByTagName("span")[3];w.style.margin=TJPzoomheight-TJPshadowthick*2+"px 0 0 "+(TJPzoomwidth-TJPshadowthick*2)+"px";w=ww.getElementsByTagName("span")[6];w.style.margin=TJPshadowthick*2+"px 0 0 "+(TJPzoomwidth-TJPshadowthick*2)+"px";w=ww.getElementsByTagName("span")[7];w.style.margin=TJPzoomheight-TJPshadowthick*2+"px 0 0 "+TJPshadowthick*2+"px";www=TJPzoomwidth-TJPshadowthick*4+"px";w=ww.getElementsByTagName("span")[4];w.style.width=www;w=w.getElementsByTagName("img")[0];w.style.width=www;w=ww.getElementsByTagName("span")[7];w.style.width=www;w=w.getElementsByTagName("img")[0];w.style.width=www;www=TJPzoomheight-TJPshadowthick*4+"px";w=ww.getElementsByTagName("span")[5];w.style.height=www;w=w.getElementsByTagName("img")[0];w.style.height=www;w=ww.getElementsByTagName("span")[6];w.style.height=www;w=w.getElementsByTagName("img")[0];w.style.height=www}}function TJPzoom(a,b){TJPzoomratio=TJPzoomheight/TJPzoomwidth;if(TJPzoomoffsetx>1){TJPzoomoffset="dumb";TJPzoomoffsetx=TJPzoomoffsetx/TJPzoomwidth;TJPzoomoffsety=TJPzoomoffsety/TJPzoomheight}if(!a.style.width){if(a.width>0){a.style.width=a.width+"px";a.style.height=a.height+"px"}}if(typeof b!=typeof ""){b=a.src}var c=document.createElement("div");c.style.width=a.style.width;c.style.height=a.style.height;c.style.overflow="hidden";c.style.position="absolute";if(typeof c.style.filter!=typeof nosuchthing){if((navigator.appVersion+"").indexOf("Mac")==-1&&navigator.appName=="Microsoft Internet Explorer"){c.style.filter="alpha(opacity=0)";c.style.backgroundColor="#ffffff"}}else{c.style.backgroundImage="transparent"}c.setAttribute("onmousemove","TJPhandlemouse(event,this);");c.setAttribute("onmousedown","TJPhandlemouse(event,this);");c.setAttribute("onmouseup","TJPhandlemouse(event,this);");c.setAttribute("onmouseout","TJPhandlemouse(event,this);");if(navigator.userAgent.indexOf("MSIE")>-1){c.onmousemove=function(){TJPhandlemouse(event,this)};c.onmousedown=function(){TJPhandlemouse(event,this)};c.onmouseup=function(){TJPhandlemouse(event,this)};c.onmouseout=function(){TJPhandlemouse(event,this)}}a.parentNode.insertBefore(c,a);TJPwin=document.createElement("div");TJPwin.style.width="0px";TJPwin.style.height="0px";TJPwin.style.overflow="hidden";TJPwin.style.position="absolute";TJPwin.style.display="none";tw1='<div style="position:absolute;overflow:hidden;margin:';TJPwin.innerHTML=tw1+TJPshadowthick+"px 0 0 "+TJPshadowthick+"px; background-color:"+TJPbordercolor+"; width:"+(TJPzoomwidth-TJPshadowthick*2)+"px;height:"+(TJPzoomheight-TJPshadowthick*2)+'px"></div>'+tw1+(TJPshadowthick+TJPborderthick)+"px 0 0 "+(TJPshadowthick+TJPborderthick)+"px; width:"+(TJPzoomwidth-TJPshadowthick*2-TJPborderthick*2)+"px;height:"+(TJPzoomheight-TJPshadowthick*2-TJPborderthick*2)+'px;"><img src="'+a.src+'" style="position:absolute;margin:0;padding:0;border:0; width:'+TJPzoomamount*parseInt(a.style.width)+"px;height:"+TJPzoomamount*parseInt(a.style.height)+'px;" />'+(a.src!=b?'<img src="'+b+'" style="position:absolute;margin:0;padding:0;border:0; width:'+TJPzoomamount*parseInt(a.style.width)+"px;height:"+TJPzoomamount*parseInt(a.style.height)+"px;\" onload=\"if(this.parentNode) {this.parentNode.parentNode.getElementsByTagName('div')[2].style.display='none';}\" />":"")+"</div>";if(b!=a.src){TJPwin.innerHTML+='<div style="position:absolute; margin:'+(TJPshadowthick+TJPborderthick)+"px 0 0 "+(TJPshadowthick+TJPborderthick)+'px;">'+TJPloading+"</div>"}if(TJPshadowthick>0){st1='<span style="position:absolute; display:inline-block; margin: ';st2="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale',src=";st3='filter:alpha(opacity=0);margin:0;padding:0;border:0;"/></span>';TJPwin.innerHTML+=st1+"0 0 0 0    ; width:"+TJPshadowthick*2+"px; height:"+TJPshadowthick*2+"px;"+st2+"'"+TJPshadow+'nw.png\')"><img src="'+TJPshadow+'nw.png" style="width:'+TJPshadowthick*2+"px; height:"+TJPshadowthick*2+"px;"+st3+st1+"0 0 0 "+(TJPzoomwidth-TJPshadowthick*2)+"px; width:"+TJPshadowthick*2+"px; height:"+TJPshadowthick*2+"px;"+st2+"'"+TJPshadow+'ne.png\')"><img src="'+TJPshadow+'ne.png" style="width:'+TJPshadowthick*2+"px; height:"+TJPshadowthick*2+"px;"+st3+st1+""+(TJPzoomheight-TJPshadowthick*2)+"px 0 0 0px; width:"+TJPshadowthick*2+"px; height:"+TJPshadowthick*2+"px;"+st2+"'"+TJPshadow+"sw.png',sizingMethod='scale')\"><img src=\""+TJPshadow+'sw.png" style="width:'+TJPshadowthick*2+"px; height:"+TJPshadowthick*2+"px;"+st3+st1+""+(TJPzoomheight-TJPshadowthick*2)+"px 0 0 "+(TJPzoomwidth-TJPshadowthick*2)+"px; width:"+TJPshadowthick*2+"px; height:"+TJPshadowthick*2+"px;"+st2+"'"+TJPshadow+"se.png',sizingMethod='scale')\"><img src=\""+TJPshadow+'se.png" style="width:'+TJPshadowthick*2+"px; height:"+TJPshadowthick*2+"px;"+st3+st1+"0 0 0 "+TJPshadowthick*2+"px; width:"+(TJPzoomwidth-TJPshadowthick*4)+"px; height:"+TJPshadowthick*2+"px;"+st2+"'"+TJPshadow+"n.png',sizingMethod='scale')\"><img src=\""+TJPshadow+'n.png" style="width:'+(TJPzoomwidth-TJPshadowthick*4)+"px; height:"+TJPshadowthick*2+"px;"+st3+st1+""+TJPshadowthick*2+"px 0 0 0; width:"+TJPshadowthick*2+"px; height:"+(TJPzoomheight-TJPshadowthick*4)+"px;"+st2+"'"+TJPshadow+"w.png',sizingMethod='scale')\"><img src=\""+TJPshadow+'w.png" style="width:'+TJPshadowthick*2+"px; height:"+(TJPzoomheight-TJPshadowthick*4)+"px;"+st3+st1+""+TJPshadowthick*2+"px 0 0 "+(TJPzoomwidth-TJPshadowthick*2)+"px; width:"+TJPshadowthick*2+"px; height:"+(TJPzoomheight-TJPshadowthick*4)+"px;"+st2+"'"+TJPshadow+"e.png',sizingMethod='scale')\"><img src=\""+TJPshadow+'e.png" style="width:'+TJPshadowthick*2+"px; height:"+(TJPzoomheight-TJPshadowthick*4)+"px;"+st3+st1+""+(TJPzoomheight-TJPshadowthick*2)+"px 0 0 "+TJPshadowthick*2+"px; width:"+(TJPzoomwidth-TJPshadowthick*4)+"px; height:"+TJPshadowthick*2+"px;"+st2+"'"+TJPshadow+"s.png',sizingMethod='scale')\"><img src=\""+TJPshadow+'s.png" style="width:'+(TJPzoomwidth-TJPshadowthick*4)+"px; height:"+TJPshadowthick*2+"px;"+st3}a.parentNode.insertBefore(TJPwin,c);TJPresize(a)}function TJPzoomif(a,b){if(TJPon[a]){TJPzoom(a,b)}}function TJPzoomswitch(a){TJPon[a]=TJPon[a]?0:1;return TJPon[a]}var TJPon=new Array;var TJPadjustx,TJPadjusty;var TJPmouse=0;var TJPmousey;var TJPmousex;var TJPloading='<div style="background-color: #ffeb77; color: #333333; padding:2px; font-family: verdana,arial,helvetica; font-size: 10px;">Loading...</div>';var TJPzoomwidth=160;var TJPzoomheight=120;var TJPzoomratio;var TJPzoomwindowlock=0;var TJPzoomoffsetx=.5;var TJPzoomoffsety=.5;var TJPzoomoffset;var TJPzoomamount=4;var TJPzoomamountmax=12;var TJPzoomamountmin=1;var TJPborderthick=2;var TJPbordercolor="#888888";var TJPshadowthick=8;var TJPshadow="dropshadow/";TJPinit();var TJPzoomwidth=320;var TJPzoomheight=200;var TJPzoomwindowlock=1;var TJPzoomoffset="";var TJPzoomoffsetx=1/2;var TJPzoomoffsety=1/2;var TJPzoomamount=1.5;var TJPzoomamountmax=4;var TJPzoomamountmin=2;var TJPborderthick=2;var TJPbordercolor="#67747A";var TJPshadowthick=0;var TJPshadow=""
