﻿leftdisabled=true;rightdisabled=true;widthLength=640;function fp_ie4(){var a=navigator.appVersion.indexOf("MSIE");return a>0&&parseInt(navigator.appVersion.substring(a+5,a+6))>=4}function fp_ns6(){return navigator.appName=="Netscape"&&parseInt(navigator.appVersion.substring(0,1))>=5}function fp_ShowImg(g,k,j,d,b){var a=document.images["fpGalleryMainImg_"+d];if(a)if(fp_ie4()){a.style.visiblity="hidden";a.src=g.getAttribute?g.getAttribute("lowsrc"):g.lowsrc;a.width=k;a.height=j;var c=document.all["fpGalleryCaptions_"+d].all.tags("div"),f,e;if(c&&c[b]){f=c[b].innerText;e=c[b].innerHTML}else{f="";e=""}a.title=f;a.style.visiblity="visible";var a=document.all["fpGalleryCaptionCell_"+d];if(a)a.innerHTML=e;var a=document.all["fpGalleryDescCell_"+d];if(a){var h=document.all["fpGalleryDescriptions_"+d].all.tags("div");a.innerHTML=h&&h[b]?h[b].innerHTML:""}}else{a.src=g.getAttribute?g.getAttribute("lowsrc"):g.lowsrc;a.style.width=k;a.style.height=j;c=document.getElementById("fpGalleryCaptions_"+d).getElementsByTagName("div");if(c&&c[b]){f=c[b].innerText;e=c[b].innerHTML}else{f="";e=""}a.title=f;var i=document.getElementById("fpGalleryCaptionCell_"+d);if(i)i.innerHTML=e;var i=document.getElementById("fpGalleryDescCell_"+d);if(i){var h=document.getElementById("fpGalleryDescriptions_"+d).getElementsByTagName("div");i.innerHTML=h[b]?h[b].innerHTML:""}}}function fp_ScrollLeft(e){var c=document.all["fpGalleryListCell_"+e];if(c&&fp_ie4()){var b=c.children.tags("A"),d=20;if(b){for(i=1;i<b.length;i++)if(b(i).style.display!="none"){b(i-1).style.display="inline";break}for(i=0;i<b.length;i++)if(b(i).style.display!="none"){var f=b[i].children.tags("img");d=d+20+f[0].width;if(d>widthLength)b(i).style.display="none"}if(c.scrollWidth-5>=c.clientWidth){var a=document.all["fpGalleryRightBtn_"+e];if(a&&rightdisabled){rightdisabled=false;te=a.src;a.src=a.getAttribute?a.getAttribute("lowsrc"):a.lowsrc;a.lowsrc=te}}if(b(0).style.display!="none"){var a=document.all["fpGalleryLeftBtn_"+e];if(a&&!leftdisabled){leftdisabled=true;te=a.src;a.src=a.getAttribute?a.getAttribute("lowsrc"):a.lowsrc;a.lowsrc=te}}}}}function fp_ScrollRight(d){var f=document.all["fpGalleryListCell_"+d];if(f&&fp_ie4())if(!rightdisabled){var b=f.children.tags("A");if(b){var e=0,c=20;for(i=0;i<b.length;i++)if(e==0){if(b(i).style.display!="none"){b(i).style.display="none";e=1}}else{var g=b[i].children.tags("img");c=c+20+g[0].width;if(c<=widthLength)b(i).style.display="inline";else b(i).style.display="none"}}var a=document.all["fpGalleryRightBtn_"+d];if(a&&b(b.length-1).style.display!="none"){rightdisabled=true;te=a.src;a.src=a.getAttribute?a.getAttribute("lowsrc"):a.lowsrc;a.lowsrc=te}var a=document.all["fpGalleryLeftBtn_"+d];if(a&&leftdisabled){te=a.src;a.src=a.getAttribute?a.getAttribute("lowsrc"):a.lowsrc;a.lowsrc=te;leftdisabled=false}}}
