		<!--
		
		//BROWSER DETECTION
//Below is some "plug-&-play browser detection that compensates for  
//browsers such as IE 3.0 and Netscape 2.0 and less that do not support Javascript or the 
//image object. It also is ready for all future browser versions.
//All it does is detect the browser and then set a global variable called "roll"
//to either true or false for the image functions below or anything else.

browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion); 

if (browser_name == "Netscape" && browser_version < 2.0)
	{
	roll = 'false';
	}
else if (browser_name == "Netscape" && browser_version == 2.0)
	{
	roll = 'false';
	}
else if (browser_name == "Netscape" && browser_version >= 3.0)
	{
	roll = 'true';
	}
else if (browser_name == "Microsoft Internet Explorer" && browser_version <= 2.0)
	{
	roll = 'false';
	}
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0)
	{
	roll = 'true';
	}
else
	{
	roll = 'false';
	}

//*************************************************************************************

function msover(img,ref)
	{
		if (roll == 'true')
			{
			document.images[img].src = ref;
			}
	}

function msout(img,ref)
	{
		if (roll == 'true')
			{
			document.images[img].src = ref;
			}
	}
//************************************************************************************
		
		function MM_preloadImages() { //v3.0
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
			var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}

		function MM_swapImgRestore() { //v3.0
		var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
		}

		function MM_findObj(n, d) { //v4.01
		var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
			d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n); return x;
		}

		function MM_swapImage() { //v3.0
		var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
		}
		
		function handleEnter (field, event) {
				var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
				var cFocus;
				var parent;
				
				if (keyCode == 13) {
				//alert('document ==>' + document.activeElement);
					cFocus = document.activeElement;
					// alert('cFocus.type==>' + cFocus.type + ' cFocus.tagName==>' + cFocus.tagName);
					switch (cFocus.type.toUpperCase()){
						case 'TEXTAREA':
						case 'BUTTON':
						case 'SUBMIT':
							return true;  // allow above types to fire click on Enter key.
							break;		  // you may want to include <a> tags in this but you can't use type. you must use cFocus.tagName = 'A'
										// but this action is what I am trying to stop here.
						default :
							window.event.keyCode = 9;  // set to tab instead of enter
							break;
					}
				} 
				else
				return true;
			}    
			
				function windowOpener(gotoPage) {
									msgWindow=window.open(gotoPage,"displayWindow","menubar=yes,scrollbars=yes,height=600,width=800")
									}  
		//-->

//************************************************************************************

//*** The below was added to try and replace a missing javascript function that is called
//*** on in the CMS blocks for the ProjectDetails.aspx page. There are still some missing
//*** pieces to the puzzle... the caption number isn't used anywhere and the images are small
//*** (I'm not sure if they're supposed to be small or if there are larger versions of each
//*** image stored somewhere), but this will work in the meantime.
//*** AMT 1/4/2006

function ZoomImage(imgsrc, width, height, captionno) 
{

var img;

for (var i=0; i<document.images.length-1; i++) 
{
	if (document.images[i].src.indexOf(imgsrc) != -1) 
	{
		img = document.images[i]
	}
}

var new_window = open('','zoom'+width+height,'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width='+(width+40)+',height='+(height+50));

new_window.document.open();

new_window.document.write('<html><head><title>Enlarged Image</title></head>');
new_window.document.write('<body>');
//new_window.document.write('<img src=http://www.blackanddecker.com/SiteImages/51/'+imgsrc+' width='+width+' height='+height+'/>');
new_window.document.write('<img src='+img.src+' width='+width+' height='+height+'/>');
new_window.document.write('</body>');
new_window.document.write('</html>');

}
