function fbox_engine(){
if(typeof (fbox_conf)!="function"){
return;
}
var _1,_2;
var _3,_4,_5;
var _6,_7;
var _8;
var _9=0;
var _a;
var _b,_c;
var _d,_e,_f;
var _10,_11,_12;
var _13,_14;
var _15,_16,_17;
var _18,_19,_1a;
var _1b;
var _1c;
var _1d=0,_1e=0,_1f=0,_20=0;
var _21=false;
var _22=false;
var _23;
var _24=null;
var _25="";
var _26,_27;
var _28=false;
var _29=[];
function _2a(){
return false;
};
function _2b(t){
return;
};
function _2c(str){
if(!str){
return "";
}
str=str.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");
return (str);
};
function _2d(_2e){
return document.getElementById(_2e);
};
function _2f(_30){
return document.createElement(_30);
};
function _31(obj,_32,fn){
if(obj.addEventListener){
obj.addEventListener(_32,fn,false);
return true;
}
if(obj.attachEvent){
obj.detachEvent("on"+_32,fn);
return obj.attachEvent("on"+_32,fn);
}
return false;
};
function _33(obj,_34,fn){
if(obj.removeEventListener){
obj.removeEventListener(_34,fn,false);
return true;
}
if(obj.detachEvent){
return obj.detachEvent("on"+_34,fn);
}
return false;
};
function _35(_36){
var _37=false;
function _38(){
if(!_37){
_37=true;
_36();
}
};
if(window.ActiveXObject){
var _39;
var _3a=null;
var f;
_39=document.createElement("div");
f=function(){
var _3b;
_3b=false;
try{
_39.doScroll("left");
}
catch(e){
_3b=true;
}
if(!_3b||_37){
if(_3a){
window.clearInterval(_3a);
_3a=null;
}
_39=null;
_38();
}
};
_3a=window.setInterval(f,30);
}else{
if(document.addEventListener){
document.addEventListener("DOMContentLoaded",_38,false);
}
}
_31(window,"load",_38);
};
function _3c(){
var doc=document.documentElement;
this.left=window.pageXOffset||(doc&&doc.scrollLeft)||_b.scrollLeft;
this.top=window.pageYOffset||(doc&&doc.scrollTop)||_b.scrollTop;
};
function _3d(){
var doc=document.documentElement;
var _3e,_3f,_40;
var _41,_42,_43;
var w=0,h=0;
var tmp;
_3e=doc?doc.clientHeight:0;
_3f=_b.clientHeight?_b.clientHeight:0;
_40=window.innerHeight?window.innerHeight:0;
_41=doc?doc.clientWidth:0;
_42=_b.clientWidth?_b.clientWidth:0;
_43=window.innerWidth?window.innerWidth:0;
if(_3e&&_3f&&_40){
if(_3e==_3f){
w=_43;
h=_40;
}else{
if(_3f<_3e){
tmp=_3e;
_3e=_3f;
_3f=tmp;
}
if(_42<_41){
tmp=_41;
_41=_42;
_42=tmp;
}
h=_3f<=_40?_3f:_3e;
w=_42<=_43?_42:_41;
}
}else{
if(_3e){
w=_41;
h=_3e;
}else{
w=_42;
h=_3f;
}
}
this.width=w;
this.height=h;
};
function _44(_45){
var _46=null;
var _47=0;
var _48=0;
var _49=null;
function _4a(_4b){
if(_4b>=100){
_45.style.opacity="";
_45.style.filter="";
_45.style.display="";
}else{
if(_4b<=0){
_45.style.display="none";
_45.style.opacity=0;
_45.style.filter="alpha(opacity=0)";
}else{
_45.style.opacity=_4b*0.01;
_45.style.filter="alpha(opacity="+_4b+")";
_45.style.display="";
}
}
};
function _4c(val){
var _4d=_46?true:false;
if(_4d){
window.clearInterval(_46);
_46=null;
}
_48=0;
val=val-0;
if(!isNaN(val)){
_47=val;
_4a(val);
}
return _4d;
};
function _4e(){
if(_48===0){
_4c();
}else{
if((_48>0&&_47>=_49)||(_48<0&&_47<=_49)){
_4c();
_47=_49;
}
}
_4a(_47);
};
function _4f(){
if((_48>0&&_47<_49)||(_48<0&&_47>_49)){
_4a(_47);
_47+=_48;
return true;
}
_4e();
return false;
};
function _50(_51,_52,_53,_54){
if(_8){
_4c(_52);
return;
}
if(!_4c()){
_47=_51;
}
_49=_52;
_48=_53;
if(_4f()){
_46=window.setInterval(_4f,_54);
}
};
this.halt=_4c;
this.animate=_50;
this.redisplay=_4e;
};
function _55(str){
if(!str){
_11.innerHTML="";
_11.style.overflow="hidden";
return;
}
var _56=null;
if(_24.type===0){
var a=_2f("a");
a.href="#";
_56=_24.objImg;
_56.id="fbox_content_img";
_56.style.border="0px";
a.appendChild(_56);
_11.appendChild(a);
}else{
if(_24.type==3){
str="<iframe src=\""+_24.src+"\" id=\"fbox_content_iframe\" frameborder=\"0\" scrolling=\"no\"></iframe>";
}else{
if(typeof (str)!="string"){
str="";
}
}
_11.innerHTML=str;
if(_24.type==3){
_56=_2d("fbox_content_iframe");
}
}
_11.style.overflow="auto";
if(_56){
_56.style.width=(_24.width)+"px";
_56.style.height=(_24.height-15)+"px";
}
};
function _57(fix){
var i,j,_58,_59;
for(j=0;j<_29.length;j++){
_58=document.getElementsByTagName(_29[j]);
for(i=0;i<_58.length;i++){
_59=_58[i];
if(_59.fbox_doNotFixVisibility){
continue;
}
if(fix){
_59.fbox_visibilty_backup=_59.style.visibility;
_59.style.visibility="hidden";
}else{
_59.style.visibility=_59.fbox_visibilty_backup;
}
}
}
};
function _5a(){
var _5b=new _3d();
var _5c,top;
if(_28){
_d.style.position="fixed";
_5c=top=0;
}else{
var _5d=new _3c();
_d.style.position="absolute";
_5c=_5d.left;
top=_5d.top;
}
_d.style.left=_5c+"px";
_d.style.top=top+"px";
_d.style.width=_5b.width+"px";
_d.style.height=_5b.height+"px";
_26.redisplay();
};
function _5e(){
_26.halt(0);
_5a();
_57(true);
_26.animate(0,77,10,70);
_9=_9|2;
};
function _5f(){
_9=_9&(~2);
_26.halt(0);
_57(false);
};
function _60(){
var _61=new _3d();
var _62=(_61.width-_e.offsetWidth)>>1;
var top=(_61.height-_e.offsetHeight)>>1;
if(_28){
_e.style.position="fixed";
}else{
var _63=new _3c();
_e.style.position="absolute";
_62=_63.left+_62;
top=_63.top+top;
}
_e.style.left=_62+"px";
_e.style.top=top+"px";
};
function _64(){
var _65=false;
var _66=new _3c();
var _67=new _3d();
_10.style.display="";
var _68=(_67.width-_10.offsetWidth)>>1;
var top=(_67.height-_10.offsetHeight)>>1;
_27.redisplay();
if(_28){
if(_68<=0||top<=0){
_65=false;
_10.style.position="absolute";
}else{
_65=true;
_10.style.position="fixed";
}
}
if(_68<=0){
if(!_21){
_21=true;
_68=_66.left+_68;
if(_68<0){
_68=0;
}
_10.style.left=_68+"px";
}
}else{
_21=false;
if(!_65){
_68=_66.left+_68;
}
_10.style.left=_68+"px";
}
if(top<=0){
if(!_22){
_22=true;
top=_66.top+top;
if(top<0){
top=0;
}
_10.style.top=top+"px";
}
}else{
_22=false;
if(!_65){
top=_66.top+top;
}
_10.style.top=top+"px";
}
};
function _69(_6a){
var _6b=_24.width;
var _6c=_24.height;
var _6d=_2c(_24.title)?true:false;
var _6e=_24.next||_24.prev?true:false;
var _6f=false;
if(!_6a){
_6f=_6d||_6e;
}else{
if(_6a==1){
_6f=true;
}
}
if(_6f&&_6b<200){
_6b=200;
}
if(_6f){
_12.style.visibility="visible";
_12.style.display="";
_13.style.visibility="visible";
_13.style.display="";
if(_6d){
_14.style.styleFloat=_14.style.cssFloat="left";
_14.style.visibility="visible";
_14.style.height="auto";
_14.style.overflow="visible";
_18.style.marginTop=3+"px";
}else{
_14.style.styleFloat=_14.style.cssFloat="right";
_14.style.visibility="hidden";
_14.style.height=1+"px";
_14.style.overflow="hidden";
_18.style.marginTop=0+"px";
}
}else{
_12.style.visibility="hidden";
_12.style.display="none";
_13.style.visibility="hidden";
_13.style.display="none";
}
if(_6e){
if(_24.prev){
_19.style.visibility="visible";
}else{
_19.style.visibility="hidden";
}
if(_24.next){
_1a.style.visibility="visible";
}else{
_1a.style.visibility="hidden";
}
_18.style.visibility="visible";
_18.style.display="";
}else{
_18.style.visibility="hidden";
_18.style.display="none";
}
if(_23){
_10.style.width=(_6b+18)+"px";
_11.style.width=(_6b+6)+"px";
_11.style.height=(_6c+6)+"px";
}else{
_10.style.width=(_6b+6)+"px";
_11.style.width=_6b+"px";
_11.style.height=(_6c-15)+"px";
}
if(_6f){
_12.style.width=(_6b+6)+"px";
_13.style.width=(_6b+6)+"px";
_14.style.width="auto";
_10.style.height="auto";
_13.style.height="auto";
_10.style.display="";
var w1=_15.offsetWidth;
var w2=_14.offsetWidth;
_10.style.display="none";
w1=_6b-w1-25;
var w=w1<=190?_6b-10:w1>w2?w2:w1;
_14.style.width=w+"px";
_10.style.display="";
var h=_10.offsetHeight;
_10.style.display="none";
h=h-12;
_10.style.height=h+"px";
_13.style.height=h-_6c-15+"px";
}else{
if(_23){
_10.style.height=(_6c+18)+"px";
}else{
_10.style.height=(_6c+6)+"px";
}
}
_64();
};
function _70(){
var _71=_24.objImg;
var _72=0;
switch(_24.imgType){
case 0:
var _73=new _3d();
var x=Math.max(_73.width-125,200);
var y=Math.max(_73.height-125,200);
var _74=Math.max(1,Math.max(_24.exactImgWidth/x,_24.exactImgHeight/y));
if(_74>1){
_17.style.visibility="visible";
_17.style.display="";
_1c.style.visibility="visible";
_1c.style.display="";
_72=1;
}else{
_17.style.visibility="hidden";
_17.style.display="none";
_1c.style.visibility="hidden";
_1c.style.display="none";
}
if(_24.imgState===0){
_17.innerHTML=_4;
_24.width=_71.width=Math.round(_24.exactImgWidth/_74);
_24.height=_71.height=Math.round(_24.exactImgHeight/_74);
}else{
_17.innerHTML=_5;
_24.width=_71.width=_24.exactImgWidth;
_24.height=_71.height=_24.exactImgHeight;
}
break;
case 1:
_24.height=_71.height=Math.round(_24.exactImgHeight*_24.width/_24.exactImgWidth);
_71.width=_24.width;
break;
case 2:
_24.width=_71.width=Math.round(_24.exactImgWidth*_24.height/_24.exactImgHeight);
_71.height=_24.height;
break;
case 3:
_71.width=_24.width;
_71.height=_24.height;
}
_69(_72);
};
function _75(){
function _76(){
if((_9&1)==1){
_33(window,"scroll",_75);
return;
}
if((_9&8)==8){
_64();
}
if((_9&2)==2){
_5a();
}
if((_9&4)==4){
_60();
}
var now=new Date();
var _77=now.getTime();
_1e=_77;
_31(window,"scroll",_75);
var _78=new _3c();
_1f=_78.left;
_20=_78.top;
};
_33(window,"scroll",_75);
var now=new Date();
var _79=now.getTime()-_1e;
if(_79>=200){
_76();
}else{
window.setTimeout(_76,200-_79);
}
};
function _7a(){
var _7b=new _3c();
if(Math.abs(_7b.left-_1f)>50||Math.abs(_7b.top-_20>50)){
if((_9&8)==8){
_64();
}
if((_9&2)==2){
_5a();
}
if((_9&4)==4){
_60();
}
_1f=_7b.left;
_20=_7b.top;
var now=new Date();
var _7c=now.getTime();
_1e=_7c;
}
};
function _7d(){
function _7e(){
if((_9&1)==1){
_33(window,"resize",_7d);
return;
}
_d.style.display="none";
_10.style.display="none";
if((_9&8)==8){
if(_24.imgType===0){
_55(false);
_70();
_55(true);
}else{
_64();
}
}
if((_9&2)==2){
_5a();
}
if((_9&4)==4){
_60();
}
var now=new Date();
var _7f=now.getTime();
_1e=_1d=_7f;
_31(window,"resize",_7d);
var _80=new _3c();
_1f=_80.left;
_20=_80.top;
};
_33(window,"resize",_7d);
var now=new Date();
var _81=now.getTime()-_1d;
if(_81>=200){
_7e();
}else{
window.setTimeout(_7e,200-_81);
}
};
function _82(){
_9=_9&(~4);
_e.style.display="none";
_e.onclick=null;
};
function _83(){
_9=_9|1;
_27.halt(0);
if(_a){
_a.onreadystatechange=_2a;
}
if(_24.objImg){
_24.objImg.onload=null;
if(!_24.imgReadyTest){
_24.objImg.src=null;
_24.objImg=null;
}
}
if((_9&4)==4){
_82();
}
_9=_9&(~8);
if((_9&2)==2){
_5f();
}
_10.style.display="none";
_55(false);
_33(window,"resize",_7d);
_33(window,"scroll",_75);
_33(window,"scroll",_7a);
if(typeof (_b.style.cssText)!="undefined"){
_b.style.cssText=_25;
}else{
_b.setAttribute("style",_25);
}
return false;
};
function _84(){
_e.style.display="";
_60();
_e.onclick=_83;
_9=_9|4;
};
function _85(){
if(((_9&8)==8)&&(_24.imgType===0)){
_24.imgState=_24.imgState?0:1;
_55(false);
_70();
_55(true);
if((_9&2)==2){
_5a();
}
}
return false;
};
function _86(_87){
function _88(){
_86(_24.next);
return false;
};
function _89(){
_86(_24.prev);
return false;
};
if(!_87||(typeof (_87)!="object")){
return;
}
if(_24&&(typeof (_24)=="object")&&_24.objImg&&(typeof (_24.objImg)=="object")){
_24.objImg.id=null;
}
_24=_87;
var src=_24.src;
_b.style.width="auto";
_b.style.height="auto";
_21=_22=false;
_1f=0;
_20=0;
_17.style.visibility="hidden";
_17.style.display="none";
_1c.style.visibility="hidden";
_1c.style.display="none";
_55(false);
var _8a=_2c(_24.title);
if(!_8a||_8a=="."){
_8a="&nbsp;";
}
_14.innerHTML=_8a;
_8a=null;
_27.halt(0);
_9=_9&2;
if((_9&2)===0){
_5e();
}
_7d();
_75();
if(!_28){
_31(window,"scroll",_7a);
}
if(_24.type===0||_24.type==2){
_84();
}
if(_24.type===0){
_11.onclick=_83;
_17.onclick=_85;
}else{
_11.onclick=null;
_17.onclick=_2a;
}
_19.onclick=_24.prev?_89:_2a;
_1a.onclick=_24.next?_88:_2a;
switch(_24.type){
case 0:
var _8b=function(){
var _8c=_24.imgReadyTest;
_24.imgReadyTest=true;
if((_9&1)!=1){
_82();
if(!_8c){
_24.exactImgWidth=_24.objImg.width;
_24.exactImgHeight=_24.objImg.height;
}
_70();
_55(true);
if(_8c){
_27.animate(0,100,25,20);
}else{
_27.animate(0,100,10,35);
}
_9=_9|8;
}
};
if(_24.imgReadyTest){
_8b();
}else{
var _8d=new Image();
_24.objImg=_8d;
_8d.onload=function(){
this.onload=null;
this.onerror=null;
_8b();
};
_8d.onerror=function(){
this.onerror=null;
_83();
};
_8d.src=src;
}
break;
case 1:
_69(1);
var _8e=_24.tagContent.innerHTML;
_55(_8e);
_27.animate(0,100,10,30);
_9=_9|8;
break;
case 2:
try{
_a.open("GET",src,true);
}
catch(e){
_24.tagLink.onclick=_2a;
_83();
break;
}
_a.onreadystatechange=function(){
if((_9&1)==1){
_a.onreadystatechange=_2a;
_a.abort();
}else{
if(_a.readyState==4){
_a.onreadystatechange=_2a;
if(_a.status==200||!_a.status){
_82();
_69(1);
var _8f=_a.responseText;
_55(_8f);
_27.animate(0,100,10,30);
_9=_9|8;
}else{
_24.tagLink.onclick=_2a;
_83();
}
}
}
};
_a.send(null);
break;
case 3:
_69(1);
_55(true);
_27.animate(0,100,10,30);
_9=_9|8;
}
};
function _90(){
if(_2d("fbox_world")){
return;
}
_a=null;
try{
if(window.XMLHttpRequest){
_a=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
_a=new ActiveXObject("Microsoft.XMLHTTP");
}
}
}
catch(e){
}
var cst=new fbox_conf();
_8=cst.disable_fadin;
_1=cst.progress_src;
_3=cst.close_txt;
_6=cst.prev_txt;
_7=cst.next_txt;
_4=cst.max_txt;
_5=cst.min_txt;
_2="";
for(var i=0;i<cst.nbsp_count;i++){
_2+="&nbsp;";
}
var _91="<div id=\"fbox_bg\" style=\"display:none;\"></div>"+"<div id=\"fbox_progress\" style=\"display:none;\"></div>"+"<div id=\"fbox_fg\" style=\"display:none;\"><table width=\"100%\"><tr><td align=\"right\"><a id=\"fbox_close_a\" href=\"#\" ><img src=\"images/closebutton.gif\" alt=\"Close\" /></a></td></tr></table>"+"<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=\"#\" >"+_4+"</a>"+"<span id=\"fbox_resize_nbsp\" >"+_2+"</span>"+"</nobr>"+"</div>"+"<div id=\"fbox_title\">&nbsp;</div>"+"<div id=\"fbox_navig\">"+"<nobr>"+"<a id=\"fbox_prev_a\" href=\"#\" >"+_6+"</a>"+_2+"<a id=\"fbox_next_a\" href=\"#\" >"+_7+"</a>"+"</nobr>"+"</div>"+"</td></tr></table>"+"</div>"+"</div>";
_c=document.createElement("div");
_c.setAttribute("id","fbox_world");
_c.innerHTML=_91;
_b=document.getElementsByTagName("body")[0];
_b.appendChild(_c);
_25=typeof (_b.style.cssText)!="undefined"?_b.style.cssText:_b.getAttribute("style");
_d=_2d("fbox_bg");
_e=_2d("fbox_progress");
_10=_2d("fbox_fg");
_11=_2d("fbox_content");
_12=_2d("fbox_spacer");
_13=_2d("fbox_bar");
_14=_2d("fbox_title");
_15=_2d("fbox_sys");
_16=_2d("fbox_close_a");
_17=_2d("fbox_resize_a");
_18=_2d("fbox_navig");
_19=_2d("fbox_prev_a");
_1a=_2d("fbox_next_a");
_1b=_2d("fbox_fg_inner");
_1c=_2d("fbox_resize_nbsp");
_16.onclick=_83;
_27=new _44(_10);
_26=new _44(_d);
_11.style.visibility="hidden";
_10.style.width=100+"px";
_11.style.width="auto";
_10.style.left=-200+"px";
_10.style.top=-200+"px";
_10.style.display="";
_23=_11.offsetWidth<100;
_10.style.display="none";
_11.style.visibility="visible";
_10.style.left=0+"px";
_10.style.top=0+"px";
_28=!_23;
if(window.ActiveXObject&&!window.XMLHttpRequest){
_28=false;
}
_f=new Image();
var _92=false;
_f.onload=function(){
this.onload=null;
this.onerror=null;
this.style.width=this.width+"px";
this.style.height=this.height+"px";
this.style.border="0px";
if(!_92){
_92=true;
_e.appendChild(this);
}
};
_f.onerror=function(){
this.onerror=null;
if(!_92){
_92=true;
_e.appendChild(this);
}
};
_f.src=_1;
_29=["select","object","embed"];
var _93=[];
function _94(_95){
var _96=this;
this.tagLink=_95.parentNode;
this.title=_95.getAttribute("title");
var src=_2c(_95.getAttribute("src"));
if(!src){
src=_2c(this.tagLink.getAttribute("href"));
}
this.src=src;
this.type=3;
var _97=_2c(_95.getAttribute("type")).toLowerCase();
switch(_97){
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 _98=src.substr(src.indexOf("#")+1,1000);
this.tagContent=_2d(_98);
if(this.tagContent){
var i,j,_99;
for(j=0;j<_29.length;j++){
_99=this.tagContent.getElementsByTagName(_29[j]);
for(i=0;i<_99.length;i++){
_99[i].fbox_doNotFixVisibility=true;
}
}
}else{
this.type=-1;
}
}
if(this.type==2&&!_a){
this.type=-1;
}
this.objImg=null;
this.imgType=-1;
this.exactImgWidth=0;
this.exactImgHeight=0;
this.imgState=-1;
this.imgReadyTest=false;
this.width=_95.getAttribute("width")-0;
this.height=_95.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(!_2c(this.title)){
var _9a=this.tagLink.getElementsByTagName("img");
if(_9a[0]){
var _9b=_9a[0].getAttribute("title");
if(_2c(_9b)){
this.title=_9b;
}
}
}
}else{
if(!this.width){
this.width=400;
}
if(!this.height){
this.height=300;
}
}
this.next=null;
this.prev=null;
var _9c=_2c(_95.getAttribute("name")).toLowerCase();
if(_9c&&this.type!=-1){
if(_93[_9c]){
var n=_93[_9c].length;
this.prev=_93[_9c][n-1];
this.prev.next=this;
_93[_9c][n]=this;
}else{
_93[_9c]=[];
_93[_9c][0]=this;
}
}
function _9d(){
_86(_96);
return false;
};
this.tagLink.onclick=this.type==-1?_2a:_9d;
};
var _9e=document.getElementsByTagName("span");
for(i=0;i<_9e.length;i++){
var _9f=_9e[i];
if(_9f.className=="frontbox"&&_9f.parentNode.nodeName.toLowerCase()=="a"){
_2b(new _94(_9f));
}
}
};
_35(_90);
};
fbox_engine();

