<!--

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) {
		topnav_products_over = newImage("images/topnav_products_over.gif");
		topnav_howItWorks_over = newImage("images/topnav_howItWorks_over.gif");
		topnav_press_over = newImage("images/topnav_press_over.gif");
		topnav_earth_over = newImage("images/topnav_earth_over.gif");
		topnav_dealers_over = newImage("images/topnav_dealers_over.gif");
		topnav_us_over = newImage("images/topnav_us_over.gif");
		preloadFlag = true;
	}
}


function sendToFriend(account,imref,itemname){
var newwindow = "http://hosting.solidcactus.com/sendtofriend/new/solidcactus-sendtofriend.asp?showpoweredby=no&url=http://www.naturemill.com/&store=" + escape(account) + "&imageref=" + escape(imref) + "&itemname=" + escape(itemname);
var window_properties = "top=0,left=0,scrollbars=yes,width=650,height=575";
var Window = window.open(newwindow,"sendtofriend",window_properties);
};

var thisNewWindow;
function popupWindow (url) {
	thisNewWindow=window.open (url, 'popup', 'width=590,height=450,status=1,scrollbars=1,resizable=1');
	if (window.focus) {thisNewWindow.focus()}
	 return false;
}
function popupWindowPic (url) {
	thisNewWindow=window.open (url, 'popup', 'width=550,height=560,resizable=1');
	if (window.focus) {thisNewWindow.focus()}
	 return false;
}
function popupWindowAltPic (url) {
	thisNewWindow=window.open (url, 'popup', 'width=500,height=450,resizable=1');
	if (window.focus) {thisNewWindow.focus()}
	 return false;
}
function popupWindowAltPic2 (url) {
	thisNewWindow=window.open (url, 'popup', 'width=750,height=500,resizable=1');
	if (window.focus) {thisNewWindow.focus()}
	 return false;
}

function popupWindowHistChanVideo (url) {
	thisNewWindow=window.open (url, 'popup', 'width=590,height=590,status=1,scrollbars=1,resizable=1');
	if (window.focus) {thisNewWindow.focus()}
	 return false;
}

function changePage(obj) {
//	alert("go()");
    i = obj.url.selectedIndex;
	location = obj.url.options[i].value;
}
