

if(document.layers){
            thisbrowser="NN4";
        }
        if(document.all){
             thisbrowser="ie"
        }
        if(!document.all && document.getElementById){
             thisbrowser="NN6";
        }
//window.alert(thisbrowser);
function dirset(dir) {
bp1=dir+"/big01.jpg";
bp2=dir+"/big02.jpg";
bp3=dir+"/big03.jpg";
bp4=dir+"/big04.jpg";
bp5=dir+"/big05.jpg";
bp6=dir+"/big06.jpg";
bp7=dir+"/big07.jpg";
bp8=dir+"/big08.jpg";
bp9=dir+"/big09.jpg";
bp10=dir+"/big10.jpg";
bp11=dir+"/big11.jpg";
bp12=dir+"/big12.jpg";

sp1=dir+"/small01.jpg";
sp2=dir+"/small02.jpg";
sp3=dir+"/small03.jpg";
sp4=dir+"/small04.jpg";
sp5=dir+"/small05.jpg";
sp6=dir+"/small06.jpg";
sp7=dir+"/small07.jpg";
sp8=dir+"/small08.jpg";
sp9=dir+"/small09.jpg";
sp10=dir+"/small10.jpg";
sp11=dir+"/small11.jpg";
sp12=dir+"/small12.jpg";
btype();

// Now preload page images - standard first

 var stdImages = new Array;
 stdImages[0] = new Image(140,480);
 stdImages[0].src = ("./images/SBlogo.gif");
 stdImages[1] = new Image(10,8);
 stdImages[1].src = ("./images/ptr2.jpg");
 stdImages[2] = new Image(1,1);
 stdImages[2].src = ("./images/spacer.gif");
 //document.write('<img src="'+stdImages[0].src+'"');


var catPics = new Array (
         "small01.jpg",
         "small02.jpg",
		 "small03.jpg",
		 "small04.jpg",
		 "small05.jpg",
		 "small06.jpg",
		 "small07.jpg",
		 "small08.jpg",
		 "small09.jpg",
		 "small10.jpg",
		 "small11.jpg",
		 "small12.jpg" );
//window.alert(thisbrowser);
var mysPics = preload_images (dir,catPics,54,54);

var catbPics = new Array (
         "big01.jpg",
         "big02.jpg",
		 "big03.jpg",
		 "big04.jpg",
		 "big05.jpg",
		 "big06.jpg",
		 "big07.jpg",
		 "big08.jpg",
		 "big09.jpg",
		 "big10.jpg",
		 "big11.jpg",
		 "big12.jpg" );
//window.alert(thisbrowser);
var mybPics = preload_images (dir,catbPics,349,349);
//document.write('<img src="'+mysPics[1].src+'"');
   





}

 function preload_images(path,pics,width,height)
    {
        var images = new Array;

        for (var pic_num=0; pic_num<pics.length; pic_num++)
            {
            images[pic_num] = new Image(width,height);
            images[pic_num].src = (path +"/"+ pics[pic_num]);
            }

        return (images);
    }




function btype() {
if(document.layers){
            thisbrowser="NN4";
        }
        if(document.all){
             thisbrowser="ie"
        }
        if(!document.all && document.getElementById){
             thisbrowser="NN6";
        }
//window.alert(thisbrowser);
}


function fadein(fname,lpic) {

if (lpic.indexOf('blankimage.gif') >= 1) return;
if (document.all) bigpic.filters.blendTrans.apply();
document.images.bigpic.src=fname;
if (document.all) bigpic.filters.blendTrans.play();
}

function layshow(lname) {
if (thisbrowser=="ie") document.all[lname].style.visibility="visible";
if (thisbrowser=="NN4") document[lname].visibility="visible";
if (thisbrowser=="NN6") document.getElementById([lname]).style.visibility="visible";


}

function layhide(lname) {
if (thisbrowser=="ie") document.all[lname].style.visibility='hidden';
if (thisbrowser=="NN4") document[lname].visibility="hidden";
if (thisbrowser=="NN6") document.getElementById([lname]).style.visibility="hidden";
}

