function divswapVerify(checker,ID) {
verify = prompt('Enter password:','');
	if ( verify=='ok') {
	   check = divswap(checker,ID);
	} else {
	   alert('Wrong password. You might have to contact jay@icglink to retrieve it.');
	}
}

function divswap(checker,ID) {
	if (ID == '') {
	ID = 'nuthin';
	}
	var counter = (document.all) ? document.all.tags("DIV").length : (document.getElementById) ? document.getElementsByTagName("DIV").length : document.layers.length;	
	var tempname;	var i=0; var n=0; var a=0; var d=checker.length; var names = new Array();
	for (i = 0; i < counter; i++) {
    if (document.all) { var tempobj = document.all.tags("DIV"); tempname = tempobj[i].id; }
  	if (document.getElementById) { tempname = document.getElementsByTagName("DIV")[i].id; } 
  	else { tempname = document.layers[i].name; }
	var test = tempname.substring(0,d);	
	if (test == checker) { names[n] = tempname; n++;}
	for (a = 0; a < n; a++) {
	samplename = names[a];
	document.getElementById(samplename).style.visibility = "hidden"; document.getElementById(samplename).style.display = "none";
   	}
	document.getElementById(ID).style.visibility = "visible"; document.getElementById(ID).style.display = "block";
}
}

function divshow(thediv) { document.getElementById(thediv).style.visibility = "visible"; document.getElementById(thediv).style.display = "block";}
function divhide(thediv) {document.getElementById(thediv).style.visibility = "hidden"; document.getElementById(thediv).style.display = "none";}


function setVideo() {
	document.getElementById("videoIframe").style.height = '285px';
	divshow('videoFile');
}


		function printMe(type,item) {
			window.open( '/print.cfm?type=' + type + '&inventory=' + item, "printThisWindow", "" )
		}

		function popUp(strURL,strType,strHeight,strWidth) {
			var strOptions="";
			if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
			if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
			if (strType=="fixedScrolling") strOptions="status,scrollbars,height="+strHeight+",width="+strWidth;
			if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
			window.open(strURL, 'newWin', strOptions);
		}
		
		


		function correctPNG() {
			for (var i=0; i<document.images.length; i++) {
				var img = document.images[i]
				var imgName = img.src.toUpperCase()
				if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
					var imgID = (img.id) ? "id='" + img.id + "' " : "";
					var imgClass = (img.className) ? "class='" + img.className + "' " : "";
					var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
					var imgStyle = "display:inline-block;" + img.style.cssText;
					if (img.align == "left") imgStyle = "float:left;" + imgStyle;
					if (img.align == "right") imgStyle = "float:right;" + imgStyle;
					if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;	
					var strNewHTML = "<span " + imgID + imgClass + imgTitle
						+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
						+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
						+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
					img.outerHTML = strNewHTML;
					i = i-1;
				}
			}
		}		