//  browser sniffer
var IE4 = (document.all && !document.getElementById) ? true : false;
var NS4 = (document.layers) ? true : false;
var IE5 = (document.all && document.getElementById) ? true : false;
var N6 = (document.getElementById && !document.all) ? true : false;


// Get rid of rectangle selects
function blurry(obj) {if (IE4 || IE5) obj.blur();}

// window launcher.
function thmLaunch(ur,w,h,sc) {	
	wn = window.open(ur,'dir','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars='+sc+',resizable=yes,copyhistory=no,width='+w+',height='+h);
	wn.focus();
}

var tan = '#957023';
// toggle image borders on and off. Use for thumbnails.
function changeBorder(nom,state) {
	clr = "black";
	if (state==0) clr = tan;
	img = eval('document.images.'+nom)
	img.style.border = 'solid '+clr+' 1px';
}

// Radio rollovers
function rollo(pos,sta){
	eval('document.images.rad'+pos+'.src = Radio['+sta+']')
	if (pos == j) eval('document.images.rad'+pos+'.src = Radio[2]')
	}


// Image swap
function swap(pos){
	eval('document.images.SlideShow.src = Pic['+pos+']')
	eval('document.images.rad'+j+'.src = Radio[0]')
	eval('document.images.rad'+pos+'.src = Radio[2]')
	if (!NS4) document.getElementById('shotText').innerHTML = PicDesc[pos]
	j = pos
	// put something here to reset the setTimeout timer
	clearTimeout(t);
    t = setTimeout('runSlideShow()', slideShowSpeed1);
	}
      
function nextSlide(){
	var nx = j + 1;
	if (nx >= Pic.length) nx = 0
	swap(nx);
}
