function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		Directions_over = newImage("../images/Directions-over.jpg");
		PurePrice_over = newImage("../images/PurePrice-over.jpg");
		xd_over = newImage("../images/xd-over.jpg");
		tc_over = newImage("../images/tc-over.jpg");
		xb_over = newImage("../images/xb-over.jpg");
		preloadFlag = true;
	}
}



sfHover = function() {
	var sfEls = document.getElementById("mainnav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



function printWindow() {
browserVersion = parseInt(navigator.appVersion)
if (browserVersion >= 4) window.print()
}

function disp_alert()
{
alert("By purchasing from Hickory Arms, you confirm " + '\n' + 
"and affirm that you have read, understand, " + '\n' + 
"and agree to the Terms and Conditions detailed " + '\n' + 
"in the Sales Agreement." + '\n' +
" "+ '\n' +
"Shipping note: for orders over $130.00, please " + '\n' +
"contact us for a quote before ordering." + '\n' +
" " + '\n' +
"Please call for shipping outside the continental U.S.");
}
