function openFlash(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width='+imageWidth+' height='+imageHeight+'">'); 	
	newWindow.document.write('<param name=movie value="'+imageName+'">');
    newWindow.document.write('<param name=quality value=high>');
    newWindow.document.write('<param name=salign value=T>');
    newWindow.document.write('<param name=bgcolor value=#000000>');
    newWindow.document.write('<embed src="'+imageName+'" quality=high salign=T bgcolor=#000000 width="'+imageWidth+'" height="'+imageHeight+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	newWindow.document.write('</embed></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}

function openFullImage(imageType,imageName,windowWidth,windowHeight,imageWidth,imageHeight,alt,posLeft,posTop) {  
	newWindow = window.open("","newWindow","width="+windowWidth+",height="+windowHeight+",scrollbars=yes,resizable=yes,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
	
function openWindow(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=yes,width=350,height=600');");
}

function swap_image(name1,address1)
    {
	document[name1].src = address1
    }
	
	
function breadCrumbs(base, delStr, defp, cStyle, tStyle, dStyle, nl) {
	base = window.location.hostname;
    loc = window.location.toString();
// bjn added
// 	a kludge to hopefully fix the bug when going to a url ending in a / (without a filename)
   if (loc.charAt(loc.length - 1) == "/") { loc = loc + "index.php"; }
// end bjn
    subs = loc.substr(loc.indexOf(base) + base.length + 1).split("/");
    document.write("<a href=\"" + getLoc(subs.length - 1) + defp + "\" class=\"" + cStyle + "\">Home</a>  " + "<span class=\"" + dStyle + "\">" + delStr + "</span> ");
    a = (loc.indexOf(defp) == -1) ? 1 : 2;
    for (i = 0; i < (subs.length - a); i++) {
        subs[i] = makeCaps(unescape(subs[i]));
        document.write("<a href=\"" + getLoc(subs.length - i - 2) + defp + "\" class=\"" + cStyle + "\">" + subs[i] + "</a>  " + "<span class=\"" + dStyle + "\">" + delStr + "</span> ");
    }
    if (nl == 1) {
        document.write("<br>");
    }
    document.write("<span class=\"" + tStyle + "\">" + document.title + "</span>");
}

function makeCaps(a) {
    g = a.split(" ");
    for (l = 0; l < g.length; l++) {
        g[l] = g[l].toUpperCase().slice(0, 1) + g[l].slice(1);
    }
    return g.join(" ");
}
 
function getLoc(c) {
    var d = "";
    if (c > 0) {
        for (k = 0; k < c; k++) {
            d = d + "../";
        }
    }
    return d;
}
