/*  Use with OverLib 2.22
function picture(name,file,photo,source,w,h){
	var fl = (file.length) - 4
	var thumb = ""
	thumb += "tn_" + file.substring(0,fl) + "_jpg.jpg"
	var text = ""
	text += "<b>Subject: </b>"+name+"<br><b>Photo: </b>"+photo+"<br><b>Source: </b>"+source;
	document.write("<td align=center width=20%><a href=picts/"+file+" target=_blank onmouseout=");
	document.write('"nd(); return true;" onmouseover="dcs(');
	document.write("'"+text+"'); window.status='"+file+"'; return true;");
	document.write('"><img src='+thumb+' border=0></a></td>');
}*/

function picture(name,file,photo,source,w,h){
	var fl = (file.length) - 4
	var file2 = ""
	file2 += file.substring(0,fl)
	var thumb = ""
	thumb += "tn_" + file.substring(0,fl) + "_jpg.jpg"
	var text = ""
	text += "<b>Subject: </b>"+name+"<br><b>Photo: </b>"+photo+"<br><b>Source: </b>"+source;
	document.write("<td align=center><a href=pic.html?"+file+" onmouseout=");
	document.write('"nd(); return true;" onmouseover="overlib(');
	document.write("'"+text+"',FGCOLOR, '#000033', WIDTH, 185, HEIGHT, 40, BGCOLOR, '#000080', TEXTCOLOR,");
	document.write("'#C0C0C0', BORDER, 1, OFFSETY, 15, HAUTO, VAUTO, STATUS, '"+file+"'); return true;");
	document.write('"><img src=thumb/'+thumb+' border=0></a></td>');
}

function picture2(name,file,photo,source,w,h){
	var fl = (file.length) - 4
	var file1 = ""
	file1 += file.substring(0,fl) + ".zip"
	var thumb = ""
	thumb += "tn_" + file.substring(0,fl) + "_jpg.jpg"
	var text = ""
	text += "<b>Subject: </b>"+name+"<br><b>Photo: </b>"+photo+"<br><b>Source: </b>"+source+"<br>*will download an .zip file";
	document.write("<td align=center><a href=pic2.html?"+file1+" onmouseout=");
	document.write('"nd(); return true;" onmouseover="overlib(');
	document.write("'"+text+"',FGCOLOR, '#000033', WIDTH, 185, HEIGHT, 40, BGCOLOR, '#000080', TEXTCOLOR,");
	document.write("'#c0c0c0', BORDER, 1, OFFSETY, 15, HAUTO, VAUTO, STATUS, '"+file+"'); return true;");
	document.write('"><img src=thumb/'+thumb+' border=0></a></td>');
}

function cap(name,file,movie,d,w,h){
	var fl = (file.length) - 4
	var thumb = ""
	thumb += "tn_" + file.substring(0,fl) + "_jpg.jpg"
	var text = ""
	text += "<b>Subject: </b>"+name+"<br><b>Movie/Show: </b>"+movie+"<br><b>Date: </b>"+d;
	document.write("<td align=center><a href=pic.html?"+file+" onmouseout=");
	document.write('"nd(); return true;" onmouseover="overlib(');
	document.write("'"+text+"',FGCOLOR, '#000033', WIDTH, 185, HEIGHT, 40, BGCOLOR, '#000080', TEXTCOLOR,");
	document.write("'#c0c0c0', BORDER, 1, OFFSETY, 15, HAUTO, VAUTO, STATUS, '"+file+"'); return true;");
	document.write('"><img src=thumb/'+thumb+' border=0></a></td>');
}
function openIT(page,wtitle) {
	window.open(page,"page","height=500,width=500,resizable,scrollbars")
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function preloadImages() {
	var preloadFlag = false;
	if (document.images) {
		home_img_over = newImage("home2.gif");
		caps_img_over = newImage("caps2.gif");
		scans_img_over = newImage("scans2.gif");
		contact_img_over = newImage("contact2.gif");
		scroller_up_over = newImage("arrow_up_on.gif");
		scroller_down_over = newImage("arrow_down_on.gif");
		preloadFlag = true;
	}
}

function WM_imageSwap(daImage, daSrc){
  var objStr,obj;
  // Check to make sure that images are supported in the DOM.
  if(document.images){
    // Check to see whether you are using a name, number, or object
    if (typeof(daImage) == 'string') {
      // This whole objStr nonesense is here solely to gain compatability
      // with ie3 for the mac.
      objStr = 'document.' + daImage;
      obj = eval(objStr);
      obj.src = daSrc;
    } else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
      daImage.src = daSrc;
    }
  }
}