function fbox_conf(){}fbox_conf.prototype={fbox_nbsp_count:4,fbox_close_txt:"<img src=\"/htdocs/images/closelabel.gif\" border=\"0\">",fbox_max_txt:"Maximize",fbox_min_txt:"Minimize",fbox_prev_txt:"&laquo; Previous",fbox_next_txt:"Next &raquo;"};function fbox_engine(){if(typeof (fbox_conf)!="function"){return;}var _1;var _2,fbox_max_txt,fbox_min_txt;var _3,fbox_next_txt;var _4=0;var _5;var _6,fbox_world;var _7,fbox_progress,fbox_progress_img;var _8,fbox_content,fbox_spacer;var _9,fbox_title;var _a,fbox_close_a,fbox_resize_a;var _b,fbox_prev_a,fbox_next_a;var _c;var _d;var _e=0;var _f=0;var _10=0;var _11=0;var _12=false;var _13=false;var _14;var _15=null;var _16="";addEvent(window,"load",init_fbox);function init_fbox(){_15=this;window.fbox_kind=fbox_kind;window.showFbox=showFbox;window.hideFbox=hideFbox;if(getElem("fbox_world")){return;}_5=null;try{if(window.XMLHttpRequest){_5=new XMLHttpRequest();}else{if(window.ActiveXObject){_5=new ActiveXObject("Microsoft.XMLHTTP");}}}catch(e){}var cst=new fbox_conf();_2=cst.fbox_close_txt;_3=cst.fbox_prev_txt;fbox_next_txt=cst.fbox_next_txt;fbox_max_txt=cst.fbox_max_txt;fbox_min_txt=cst.fbox_min_txt;_1="";for(var i=0;i<cst.fbox_nbsp_count;i++){_1+="&nbsp;";}var _19="<div id=\"fbox_bg\" style=\"display:none;\"></div>"+"<div id=\"fbox_progress\" style=\"display:none;\">"+"<img id=\"fbox_progress_img\" border=\"0\"  />"+"</div>"+"<div id=\"fbox_fg\" display=\"none\">"+"<div id=\"fbox_fg_inner\">"+"<div id=\"fbox_content\"></div>"+"<div id=\"fbox_spacer\"></div>"+"<table id=\"fbox_bar\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td>"+"<div id=\"fbox_sys\">"+"<nobr>"+"<a id=\"fbox_resize_a\" href=\"javascript:void(null);\" >"+fbox_max_txt+"</a>"+"<span id=\"fbox_resize_nbsp\" >"+_1+"</span>"+"<a id=\"fbox_close_a\" href=\"javascript:void(null);\" >"+_2+"</a>"+"</nobr>"+"</div>"+"<div id=\"fbox_title\">&nbsp;</div>"+"<div id=\"fbox_navig\">"+"<nobr>"+"<a id=\"fbox_prev_a\" href=\"javascript:void(null);\" >"+_3+"</a>"+_1+"<a id=\"fbox_next_a\" href=\"javascript:void(null);\" >"+fbox_next_txt+"</a>"+"</nobr>"+"</div>"+"</td></tr></table>"+"</div>"+"</div>";fbox_world=document.createElement("div");fbox_world.setAttribute("id","fbox_world");fbox_world.innerHTML=_19;_6=document.getElementsByTagName("body")[0];_6.appendChild(fbox_world);_16=typeof (_6.style.cssText)!="undefined"?_6.style.cssText:_6.getAttribute("style");_7=getElem("fbox_bg");fbox_progress=getElem("fbox_progress");fbox_progress_img=getElem("fbox_progress_img");_8=getElem("fbox_fg");fbox_content=getElem("fbox_content");fbox_spacer=getElem("fbox_spacer");_9=getElem("fbox_bar");fbox_title=getElem("fbox_title");_a=getElem("fbox_sys");fbox_close_a=getElem("fbox_close_a");fbox_resize_a=getElem("fbox_resize_a");_b=getElem("fbox_navig");fbox_prev_a=getElem("fbox_prev_a");fbox_next_a=getElem("fbox_next_a");_c=getElem("fbox_fg_inner");_d=getElem("fbox_resize_nbsp");fbox_close_a.onclick=hideFbox;blending_fg=new blendingTransition(_8);blending_bg=new blendingTransition(_7);fbox_content.style.visibility="hidden";_8.style.width=100+"px";fbox_content.style.width="auto";_8.style.left=-200+"px";_8.style.top=-200+"px";_8.style.display="";_14=fbox_content.offsetWidth<100;_8.style.display="none";fbox_content.style.visibility="visible";_8.style.left=0+"px";_8.style.top=0+"px";var _1a=new Array();function fbox_kind(_1b){var _1c=this;this.tagLink=_1b.parentNode;this.title=_1b.getAttribute("title");var src=trim(_1b.getAttribute("src"));if(!src){src=trim(this.tagLink.getAttribute("href"));}this.src=src;this.type=3;var _1e=trim(_1b.getAttribute("type")).toLowerCase();switch(_1e){case "image":this.type=0;break;case "inline":this.type=1;break;case "ajax":this.type=2;break;case "iframe":this.type=3;break;default:if(src.indexOf("#")>=0){this.type=1;break;}var dot=src.lastIndexOf(".");if(dot<1){break;}var ext=src.substr(dot+1,src.length).toLowerCase();if(ext=="jpg"||ext=="jpeg"||ext=="png"||ext=="gif"){this.type=0;}}this.tagContent=null;if(this.type==1){var _21=src.substr(src.indexOf("#")+1,1000);this.tagContent=getElem(_21);if(this.tagContent){var _22=this.tagContent.getElementsByTagName("select");for(var i=0;i<_22.length;i++){_22[i].setAttribute("fbox-marker","fbox-marker");}}else{this.type=-1;}}if(this.type==2&&!_5){this.type=-1;alert("!http");}this.objImg=null;this.imgType=-1;this.exactImgWidth=0;this.exactImgHeight=0;this.imgState=-1;this.width=_1b.getAttribute("width")-0;this.height=_1b.getAttribute("height")-0;if(this.type==0){this.imgType=0;if(this.width&&this.width>0){this.imgType+=1;}else{this.width=200;}if(this.height&&this.height>0){this.imgType+=2;}else{this.height=150;}this.imgState=this.imgType?1:0;if(!trim(this.title)){var _24=this.tagLink.getElementsByTagName("img");if(_24[0]){var _25=_24[0].getAttribute("title");if(trim(_25)){this.title=_25;}}}}else{if(!this.width){this.width=400;}if(!this.height){this.height=300;}}this.next=null;this.prev=null;var _26=trim(_1b.getAttribute("name")).toLowerCase();if(_26&&this.type!=-1){if(_1a[_26]){var n=_1a[_26].length;this.prev=_1a[_26][n-1];this.prev.next=this;_1a[_26][n]=this;}else{_1a[_26]=new Array();_1a[_26][0]=this;}}function ready(){_15=_1c;showFbox();return false;}this.tagLink.onclick=this.type==-1?nope:ready;}var _28=document.getElementsByTagName("span");for(var i=0;i<_28.length;i++){var _2a=_28[i];if(_2a.className=="frontbox"&&_2a.parentNode.nodeName.toLowerCase()=="a"){new fbox_kind(_2a);}}}function nope(){return false;}function trim(str){if(!str){return "";}str=str.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");return (str);}function blendingTransition(_2c){var _2d=null;var _2e=0;var _2f=0;var _30=null;this.halt=halt;this.animate=animate;this.redisplay=redisplay;function majorTask(){if((_2f>0&&_2e<_30)||(_2f<0&&_2e>_30)){setBlend(_2e);_2e+=_2f;return true;}redisplay();return false;}function setBlend(_31){if(_31>=100){_2c.style.opacity="";_2c.style.filter="";_2c.style.display="";}else{if(_31<=0){_2c.style.display="none";_2c.style.opacity=0;_2c.style.filter="alpha(opacity=0)";}else{_2c.style.opacity=_31/100;_2c.style.filter="alpha(opacity="+_31+")";_2c.style.display="";}}}function redisplay(){if(_2f==0){halt();}else{if((_2f>0&&_2e>=_30)||(_2f<0&&_2e<=_30)){halt();_2e=_30;}}setBlend(_2e);}function halt(val){var _33=_2d?true:false;if(_33){clearInterval(_2d);_2d=null;}_2f=0;val=val-0;if(!isNaN(val)){_2e=val;setBlend(val);}return _33;}function animate(_34,_35,_36,_37){if(!halt()){_2e=_34;}_30=_35;_2f=_36;if(majorTask()){_2d=window.setInterval(majorTask,_37);}}}function adjustBg(){var _38=new getPageSize();var _39=new getScrollPos();_7.style.width=_38.width+"px";_7.style.height=_38.height+"px";_7.style.left=_39.left+"px";_7.style.top=_39.top+"px";blending_bg.redisplay();}function showBg(){blending_bg.halt(0);adjustBg();setSelectVisibility("hidden");blending_bg.animate(0,77,10,70);_4=_4|2;}function setSelectVisibility(v){var _3b=document.getElementsByTagName("select");for(var i=0;i<_3b.length;i++){var _3d=_3b[i];if(_3d.getAttribute("fbox-marker")!="fbox-marker"){_3d.style.visibility=v;}}}function hideBg(){_4=_4&(~2);blending_bg.halt(0);setSelectVisibility("visible");}function showProgress(){fbox_progress.style.display="";centerProgress();fbox_progress.onclick=function(){_4=_4|1;hideFbox();};_4=_4|4;}function hideProgress(){_4=_4&(~4);fbox_progress.style.display="none";fbox_progress.onclick=null;}function adjustFg(_3e){var _3f=_15.width;var _40=_15.height;var _41=trim(_15.title)?true:false;var _42=_15.next||_15.prev?true:false;var _43=false;if(!_3e){_43=_41||_42;}else{if(_3e==1){_43=true;}}if(_43&&_3f<200){_3f=200;}if(_43){fbox_spacer.style.visibility="visible";fbox_spacer.style.display="";_9.style.visibility="visible";_9.style.display="";if(_41){fbox_title.style.styleFloat=fbox_title.style.cssFloat="left";fbox_title.style.visibility="visible";fbox_title.style.height="auto";fbox_title.style.overflow="visible";_b.style.marginTop=3+"px";}else{fbox_title.style.styleFloat=fbox_title.style.cssFloat="right";fbox_title.style.visibility="hidden";fbox_title.style.height=1+"px";fbox_title.style.overflow="hidden";_b.style.marginTop=0+"px";}}else{fbox_spacer.style.visibility="hidden";fbox_spacer.style.display="none";_9.style.visibility="hidden";_9.style.display="none";}if(_42){if(_15.prev){fbox_prev_a.style.visibility="visible";}else{fbox_prev_a.style.visibility="hidden";}if(_15.next){fbox_next_a.style.visibility="visible";}else{fbox_next_a.style.visibility="hidden";}_b.style.visibility="visible";_b.style.display="";}else{_b.style.visibility="hidden";_b.style.display="none";}if(_14){_8.style.width=(_3f+18)+"px";fbox_content.style.width=(_3f+6)+"px";fbox_content.style.height=(_40+6)+"px";}else{_8.style.width=(_3f+6)+"px";fbox_content.style.width=_3f+"px";fbox_content.style.height=_40+"px";}if(_43){fbox_spacer.style.width=(_3f+6)+"px";_9.style.width=(_3f+6)+"px";fbox_title.style.width="auto";_8.style.height="auto";_9.style.height="auto";_8.style.display="";var w1=_a.offsetWidth;var w2=fbox_title.offsetWidth;_8.style.display="none";w1=_3f-w1-25;var w=w1<=190?_3f-10:w1>w2?w2:w1;fbox_title.style.width=w+"px";_8.style.display="";var h=_8.offsetHeight;_8.style.display="none";h=h-12;_8.style.height=h+"px";_9.style.height=h-_40-15+"px";}else{if(_14){_8.style.height=(_40+18)+"px";}else{_8.style.height=(_40+6)+"px";}}centerFg();}function adjustImage(){var _48=_15.objImg;var _49=0;switch(_15.imgType){case 0:var _4a=new getPageSize();with(Math){var x=max(_4a.width-125,200);var y=max(_4a.height-125,200);var _4d=max(1,max(_15.exactImgWidth/x,_15.exactImgHeight/y));}if(_4d>1){fbox_resize_a.style.visibility="visible";fbox_resize_a.style.display="";_d.style.visibility="visible";_d.style.display="";_49=1;}else{fbox_resize_a.style.visibility="hidden";fbox_resize_a.style.display="none";_d.style.visibility="hidden";_d.style.display="none";}if(/*here*/false&&_15.imgState==0){fbox_resize_a.innerHTML=fbox_max_txt;_15.width=_48.width=Math.round(_15.exactImgWidth/_4d);_15.height=_48.height=Math.round(_15.exactImgHeight/_4d);}else{fbox_resize_a.innerHTML=fbox_min_txt;_15.width=_48.width=_15.exactImgWidth;_15.height=_48.height=_15.exactImgHeight;}break;case 1:_15.height=_48.height=Math.round(_15.exactImgHeight*_15.width/_15.exactImgWidth);_48.width=_15.width;break;case 2:_15.width=_48.width=Math.round(_15.exactImgWidth*_15.height/_15.exactImgHeight);_48.height=_15.height;break;case 3:_48.width=_15.width;_48.height=_15.height;}adjustFg(_49);}function toggleImgState(){if(((_4&8)==8)&&(_15.imgType==0)){_15.imgState=_15.imgState?0:1;setContent(false);adjustImage();setContent(true);}return false;}function showNext(){if(_15.next){_15=_15.next;showFbox();}return false;}function showPrev(){if(_15.prev){_15=_15.prev;showFbox();}return false;}function ShowfboxEx(obj){_15=obj;showFbox();}function showFbox(){var src=_15.src;_6.style.width="auto";_6.style.height="auto";_12=_13=false;_10=0;_11=0;fbox_resize_a.style.visibility="hidden";fbox_resize_a.style.display="none";_d.style.visibility="hidden";_d.style.display="none";setContent(false);fbox_title.innerHTML=trim(_15.title)?_15.title:"&nbsp;";blending_fg.halt(0);_4=_4&2;if((_4&2)==0){showBg();}adjustOnResizeTime();adjustOnScrollTime();addEvent(window,"scroll",adjustOnScrollPos);if(_15.type==0||_15.type==2){showProgress();}if(_15.type==0){fbox_content.onclick=hideFbox;fbox_resize_a.onclick=toggleImgState;}else{fbox_content.onclick=null;fbox_resize_a.onclick=nope;}fbox_prev_a.onclick=_15.prev?showPrev:nope;fbox_next_a.onclick=_15.next?showNext:nope;switch(_15.type){case 3:adjustFg(1);setContent(true);blending_fg.animate(0,100,10,30);_4=_4|8;break;case 0:var _50=new Image();_15.objImg=_50;_50.onload=function(){_15.objImg.onload=null;if((_4&1)!=1){hideProgress();_15.exactImgWidth=_15.objImg.width;_15.exactImgHeight=_15.objImg.height;adjustImage();setContent(true);blending_fg.animate(0,100,10,30);_4=_4|8;}};_50.src=src;break;case 1:adjustFg(1);var _51=_15.tagContent.innerHTML;setContent(_51);blending_fg.animate(0,100,10,30);_4=_4|8;break;}}function adjustOnScrollTime(){function majorTask(){if((_4&8)==8){centerFg();}if((_4&2)==2){adjustBg();}if((_4&4)==4){centerProgress();}if((_4&1)==1){hideFbox();}else{var now=new Date();var _53=now.getTime();_f=_53;addEvent(window,"scroll",adjustOnScrollTime);var _54=new getScrollPos();_10=_54.left;_11=_54.top;}}removeEvent(window,"scroll",adjustOnScrollTime);var now=new Date();var _56=now.getTime()-_f;if(_56>=200){majorTask();}else{window.setTimeout(majorTask,200-_56);}}function adjustOnScrollPos(){var _57=new getScrollPos();if(Math.abs(_57.left-_10)>50||Math.abs(_57.top-_11>50)){if((_4&8)==8){centerFg();}if((_4&2)==2){adjustBg();}if((_4&4)==4){centerProgress();}_10=_57.left;_11=_57.top;var now=new Date();var _59=now.getTime();_f=_59;}}function adjustOnResizeTime(){function majorTask(){_7.style.display="none";_8.style.display="none";if((_4&8)==8){if(_15.imgType==0){setContent(false);adjustImage();setContent(true);}else{centerFg();}}if((_4&2)==2){adjustBg();}if((_4&4)==4){centerProgress();}if((_4&1)==1){hideFbox();}else{var now=new Date();var _5b=now.getTime();_f=_e=_5b;addEvent(window,"resize",adjustOnResizeTime);var _5c=new getScrollPos();_10=_5c.left;_11=_5c.top;}}removeEvent(window,"resize",adjustOnResizeTime);var now=new Date();var _5e=now.getTime()-_e;if(_5e>=200){majorTask();}else{window.setTimeout(majorTask,200-_5e);}}function hideFbox(){_4=_4|1;blending_fg.halt(0);if(_5){_5.onreadystatechange=nope;}if(_15.objImg){_15.objImg.onload=null;}if((_4&4)==4){hideProgress();}_4=_4&(~8);if((_4&2)==2){hideBg();}_8.style.display="none";setContent(false);removeEvent(window,"resize",adjustOnResizeTime);removeEvent(window,"scroll",adjustOnScrollTime);removeEvent(window,"scroll",adjustOnScrollPos);if(typeof (_6.style.cssText)!="undefined"){_6.style.cssText=_16;}else{_6.setAttribute("style",_16);}}function centerProgress(){var _5f=new getScrollPos();var _60=new getPageSize();var _61=(_60.width-fbox_progress.offsetWidth)>>1;var top=(_60.height-fbox_progress.offsetHeight)>>1;fbox_progress.style.left=_5f.left+_61+"px";fbox_progress.style.top=_5f.top+top+"px";}function centerFg(){var _63=new getScrollPos();var _64=new getPageSize();_8.style.display="";var _65=(_64.width-_8.offsetWidth)>>1;var top=(_64.height-_8.offsetHeight)>>1;blending_fg.redisplay();if(_65<=0){if(!_12){_12=true;_65=_63.left+_65;if(_65<0){_65=0;}_8.style.left=_65+"px";}}else{_12=false;_8.style.left=_63.left+_65+"px";}if(top<=0){if(!_13){_13=true;top=_63.top+top;if(top<0){top=0;}_8.style.top=top+"px";}}else{_13=false;_8.style.top=_63.top+top+"px";}}function getScrollPos(){var _67=document.documentElement;this.left=window.pageXOffset||(_67&&_67.scrollLeft)||document.body.scrollLeft;this.top=window.pageYOffset||(_67&&_67.scrollTop)||document.body.scrollTop;}function getPageSize(){var _68=document.documentElement;var _69=document.body;var _6a,val2h,val3h;var _6b,val2w,val3w;var w=0,h=0;_6a=_68?_68.clientHeight:0;val2h=_69.clientHeight?_69.clientHeight:0;val3h=window.innerHeight?window.innerHeight:0;_6b=_68?_68.clientWidth:0;val2w=_69.clientWidth?_69.clientWidth:0;val3w=window.innerWidth?window.innerWidth:0;if(_6a&&val2h&&val3h){if(_6a==val2h){w=val3w;h=val3h;}else{if(val2h<_6a){var tmp=_6a;_6a=val2h;val2h=tmp;}if(val2w<_6b){var tmp=_6b;_6b=val2w;val2w=tmp;}h=val2h<=val3h?val2h:_6a;w=val2w<=val3w?val2w:_6b;}}else{if(_6a){w=_6b;h=_6a;}else{w=val2w;h=val2h;}}this.width=w;this.height=h;}function setContent(str){if(!str){fbox_content.innerHTML="";fbox_content.style.overflow="hidden";return;}if(_15.type==0){str="<a href=\"javascript:void(null);\" style=\"font-size:8px;\" >"+"<img id=\"fbox_content_img\" src=\""+_15.src+"\" border=\"0\" />"+"</a>";}else{if(_15.type==3){str="<iframe src=\""+_15.src+"\" id=\"fbox_content_iframe\" frameborder=\"0\" ></iframe>";}else{if(typeof (str)!="string"){str="";}}}fbox_content.innerHTML=str;fbox_content.style.overflow="auto";var _70=null;if(_15.type==0){_70=getElem("fbox_content_img");}else{if(_15.type==3){_70=getElem("fbox_content_iframe");}else{return;}}_70.style.width=_15.width+"px";_70.style.height=_15.height+"px";}function getElem(_71){return document.getElementById(_71);}function addEvent(obj,_73,fn){if(obj.addEventListener){obj.addEventListener(_73,fn,false);return true;}if(obj.attachEvent){obj.detachEvent("on"+_73,fn);return obj.attachEvent("on"+_73,fn);}return false;}function removeEvent(obj,_76,fn){if(obj.removeEventListener){obj.removeEventListener(_76,fn,false);return true;}if(obj.detachEvent){return obj.detachEvent("on"+_76,fn);}return false;}}fbox_engine();