// -------- LAUNCHES INFINITE IN AS MANY FLAVORS AS YOU WANT --------

IE5=NN6=false
if(document.all)IE5=true
else if(document.getElementById)NN6=true

var prodTabIDs = new Array(2);
prodTabIDs[0] = "1114292246057";
prodTabIDs[1] = "1114292246272";

function showDiv(what,which,numdivs) {//	PATHS FOR ON AND OFF IMAGES
	var imagePathPrefix = "/3MContentRetrievalAPI/BlobServlet?locale=en_US&univid=";
	var imagePathPostfix = "&fallback=true&assetType=MMM_Image&blobAttribute=ImageFile&version=current";
	var imagePathPostfixOn = "&fallback=true&assetType=MMM_Image&blobAttribute=ThumbnailImage&version=current";
	var fullImage = document.getElementById("tab"+which);

//	TURN OF ALL LAYERS AND/OR TABS
	for(i=0;i<numdivs;i++) {
		if(IE5) eval("document.all."+what+i+".style.display='none'")
		if(NN6) eval("document.getElementById('"+what+i+"').style.display='none'")
		if (what == "table") {//	PRODUCT FAMILY PAGES
			fullImage = document.getElementById("tab"+i);
			fullImage.src = imagePathPrefix + prodTabIDs[i] + imagePathPostfix;
		}
	}
//	GO BACK THROUGH AND TURN ON THE DESIRED LAYER AND/OR TABS
	if(IE5) eval("document.all."+what+which+".style.display='block'")
	if(NN6) eval("document.getElementById('"+what+which+"').style.display='inline'")

	if (what == "table") {//	PRODUCT FAMILY PAGES
		fullImage = document.getElementById("tab"+which);
		fullImage.src = imagePathPrefix + prodTabIDs[which] + imagePathPostfixOn;
	}
}

// -------- FLASH ACTIVEX CONTROLLER FIX -------- 

// new way to write the flash tag to get around that damn patent suit in IE
// args are as follows
// file -- path to swf file
// id -- object name in the DOM
// w -- width
// h -- height
// bg -- hex for background color, or 'transparent'
// al -- align parameter
// alt -- alternate text for non-flash views
function flashTag(file, id, w, h, bg, al, scale, vars){
	var txt = "<object type=\"application/x-shockwave-flash\" width=\""+w+"\" ";
	txt += "height=\""+h+"\"";
	if (id != null){
		txt += " id=\""+id+"\" name=\""+id+"\"";
	}
	txt += " data=\""+file+"\"><param name=\"movie\" value=\""+file+"\" />";

	if (scale != null){
		txt += "<param name=\"scale\" value=\""+scale+"\" />";
	}else{
		txt += "<param name=\"scale\" value=\"noscale\" />";
	}
	if(al != null){
		txt += "<param name=\"salign\" value=\""+al+"\" />";
	}
	if (bg == null){
		txt += "<param name=\"bgcolor\" value=\"#000000\" />";
	}else if (bg.toLowerCase() == "transparent"){
		txt += "<param name=\"wmode\" value=\"transparent\" />";
	}else{
		txt += "<param name=\"bgcolor\" value=\"#"+bg+"\" />";
	}
	txt += "<param name=\"menu\" value=\"false\" />";
	if (vars != null){
		txt += "<param name=\"flashvars\" value=\""+vars+"\" />";
	}
	txt += "</object>";
	//alert(txt);
	document.write(txt);
}