var newWin=null;
function popUp(strURL,strWidth,strHeight,src){
if(src.length>0){strURL=strURL+"&src="+src;}
strWidth=eval(strWidth)+240;strHeight=480;
strWidth = 910; // 480 + 340;  //  820    430;
strHeight = 560; // 450 + 80;  // 530    395;
var left=(screen.width-strWidth)/2;
var top=(screen.height-strHeight)/2;
if(newWin!=null&&!newWin.closed)newWin.close();
var strOptions="";
strOptions="resizable=no,menubar=no,height="+strHeight+",width="+strWidth+",screenx="+left+",screeny="+top+",left="+left+",top="+top;
newWin=window.open(strURL,'ImageDetail',strOptions);
newWin.focus();}

if(document.images){
var imgABL_Logo=new Image();imgABL_Logo.src="images/abl_Logo7b_194x163c8.gif";}
var imgTrans=new Image();imgTrans.src="images/t.gif";
var imgMenuBG_B=new Image();imgMenuBG_B.src="images/menu_bg_b.gif";
var imgMenuBG_L=new Image();imgMenuBG_L.src="images/menu_bg_l.gif";
var imgMenuBG_R=new Image();imgMenuBG_R.src="images/menu_bg_r.gif";
var imgMenuBG_T=new Image();imgMenuBG_T.src="images/menu_bg_t.gif";
var imgMenuC_LB=new Image();imgMenuC_LB.src="images/menu_c_lb.gif";
var imgMenuC_LT=new Image();imgMenuC_LT.src="images/menu_c_lt.gif";
var imgMenuC_RB=new Image();imgMenuC_RB.src="images/menu_c_rb.gif";
var imgMenuC_RT=new Image();imgMenuC_RT.src="images/menu_c_rt.gif";

var imgPauseUp=new Image();imgPauseUp.src="images/pauset.gif";
var imgPauseDown=new Image();imgPauseDown.src="images/pauseClickt.gif";
var imgPauseOn=new Image();imgPauseOn.src="images/pauseOnt.gif";
var imgPlayUp=new Image();imgPlayUp.src="images/playt.gif";
var imgPlayDown=new Image();imgPlayDown.src="images/playClickt.gif";
var imgPlayOn=new Image();imgPlayOn.src="images/playOnt.gif";
var highestImgLoadedIdx=-1;
var bPauseSlideShow=false;
var imgIdx=0;
function switchImg(){
if(document.images){
if(!imgPlayOn.complete){setTimeout("switchImg()",400);return}
if(imgIdx>highestImgLoadedIdx){
highestImgLoadedIdx=imgIdx;
images[imgIdx]=new Image();
images[imgIdx].src=sDir+slidesArr[imgIdx];}
if(images[imgIdx].complete&&(bPauseSlideShow==false)){
document.getElementById('loading').style.visibility = "hidden";
//document["imgABL"].src=images[imgIdx].src;
document.getElementById('imgABL').src=images[imgIdx].src;
var fname=images[imgIdx].src;
var idx=fname.indexOf("/");
while(idx!=-1){
fname=fname.substring(idx+1,fname.length);
idx=fname.indexOf("/");}
slideImgTitle=titlesArr[imgIdx];
objImgTitle.writeIt(slideImgTitle);
imgDetails="ABL_BigImage.php?photo=gallery/"+slidesArr[imgIdx]+"&title="+slideImgTitle;
imgIdx=(imgIdx+1)%(numImgs);}
if(bPauseSlideShow==false)
setTimeout("switchImg()",2100);}}
function switchHRef(){
if(imgDetails.length>0)
popUp(imgDetails,'375','300','s');}
function pauseSlideShow(){
setTimeout("",0);
bPauseSlideShow=true;}
function unpauseSlideShow(){
if(bPauseSlideShow==true){
bPauseSlideShow=false;
setTimeout("switchImg()",2100);}}
function restartSlideShow(){
imgIdx=0;
unpauseSlideShow();}
onUnload=function(){
bPauseSlideShow=true;
setTimeout("",0);}
function libinit(){
objImgTitle=new lib_obj('imgTitle');}
onload=function(){
libinit();
if(document.images)switchImg();}