function pulldownfunction(pulldowndirect)
	{
	var URL = document.pulldowndirect.pulldownselection.options[document.pulldowndirect.pulldownselection.selectedIndex].value;
	window.location.href = URL;
	}

function winPop(URL,winW,winH)
	{
	window.open(URL,'','toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,width='+winW+',height='+winH+',left=100,top=20').focus();
	}

function winPopScroll(URL,winW,winH)
	{
	window.open(URL,'','toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width='+winW+',height='+winH+',left=130,top=230').focus();
	}

// Main navigation roll overs
if (document.images) {
magneprinton = new Image(); // Active images
magneprinton.src = "http://www.magtek.com/imgs/logo_mp.on.gif";

magneprintoff = new Image(); // Inactive images
magneprintoff.src = "http://www.magtek.com/imgs/logo_mp.off.gif";
}

if (document.images) {
carton = new Image(); // Active images
carton.src = "http://www.magtek.com/imgs/btn_cart.on.gif";

cartoff = new Image(); // Inactive images
cartoff.src = "http://www.magtek.com/imgs/btn_cart.off.gif";
}



//Add to Cart

if (document.images) {
addtocarton = new Image(); // Active images
addtocarton.src = "/imgs/btn_addtocart.on.gif";

addtocartoff = new Image(); // Inactive images
addtocartoff.src = "/imgs/btn_addtocart.off.gif";
}

if (document.images) {
addtocart2on = new Image(); // Active images
addtocart2on.src = "/imgs/btn_addtocart.on.gif";

addtocart2off = new Image(); // Inactive images
addtocart2off.src = "/imgs/btn_addtocart.off.gif";
}

if (document.images) {
addtocart3on = new Image(); // Active images
addtocart3on.src = "/imgs/btn_addtocart.on.gif";

addtocart3off = new Image(); // Inactive images
addtocart3off.src = "/imgs/btn_addtocart.off.gif";
}

if (document.images) {
addtocart4on = new Image(); // Active images
addtocart4on.src = "/imgs/btn_addtocart.on.gif";

addtocart4off = new Image(); // Inactive images
addtocart4off.src = "/imgs/btn_addtocart.off.gif";
}

if (document.images) {
addtocart5on = new Image(); // Active images
addtocart5on.src = "/imgs/btn_addtocart.on.gif";

addtocart5off = new Image(); // Inactive images
addtocart5off.src = "/imgs/btn_addtocart.off.gif";
}

if (document.images) {
addtocart6on = new Image(); // Active images
addtocart6on.src = "/imgs/btn_addtocart.on.gif";

addtocart6off = new Image(); // Inactive images
addtocart6off.src = "/imgs/btn_addtocart.off.gif";
}

if (document.images) {
addtocart7on = new Image(); // Active images
addtocart7on.src = "/imgs/btn_addtocart.on.gif";

addtocart7off = new Image(); // Inactive images
addtocart7off.src = "/imgs/btn_addtocart.off.gif";
}

if (document.images) {
addtocart8on = new Image(); // Active images
addtocart8on.src = "/imgs/btn_addtocart.on.gif";

addtocart8off = new Image(); // Inactive images
addtocart8off.src = "/imgs/btn_addtocart.off.gif";
}

if (document.images) {
addtocart9on = new Image(); // Active images
addtocart9on.src = "/imgs/btn_addtocart.on.gif";

addtocart9off = new Image(); // Inactive images
addtocart9off.src = "/imgs/btn_addtocart.off.gif";
}



//Buy Now

if (document.images) {
buynowon = new Image(); // Active images
buynowon.src = "/imgs/btn_buynow.on.gif";

buynowoff = new Image(); // Inactive images
buynowoff.src = "/imgs/btn_buynow.off.gif";
}

if (document.images) {
buynow2on = new Image(); // Active images
buynow2on.src = "/imgs/btn_buynow.on.gif";

buynow2off = new Image(); // Inactive images
buynow2off.src = "/imgs/btn_buynow.off.gif";
}

if (document.images) {
buynow3on = new Image(); // Active images
buynow3on.src = "/imgs/btn_buynow.on.gif";

buynow3off = new Image(); // Inactive images
buynow3off.src = "/imgs/btn_buynow.off.gif";
}

if (document.images) {
buynow4on = new Image(); // Active images
buynow4on.src = "/imgs/btn_buynow.on.gif";

buynow4off = new Image(); // Inactive images
buynow4off.src = "/imgs/btn_buynow.off.gif";
}

if (document.images) {
buynow5on = new Image(); // Active images
buynow5on.src = "/imgs/btn_buynow.on.gif";

buynow5off = new Image(); // Inactive images
buynow5off.src = "/imgs/btn_buynow.off.gif";
}

if (document.images) {
buynow6on = new Image(); // Active images
buynow6on.src = "/imgs/btn_buynow.on.gif";

buynow6off = new Image(); // Inactive images
buynow6off.src = "/imgs/btn_buynow.off.gif";
}

if (document.images) {
buynow7on = new Image(); // Active images
buynow7on.src = "/imgs/btn_buynow.on.gif";

buynow7off = new Image(); // Inactive images
buynow7off.src = "/imgs/btn_buynow.off.gif";
}

if (document.images) {
buynow8on = new Image(); // Active images
buynow8on.src = "/imgs/btn_buynow.on.gif";

buynow8off = new Image(); // Inactive images
buynow8off.src = "/imgs/btn_buynow.off.gif";
}

if (document.images) {
buynow9on = new Image(); // Active images
buynow9on.src = "/imgs/btn_buynow.on.gif";

buynow9off = new Image(); // Inactive images
buynow9off.src = "/imgs/btn_buynow.off.gif";
}

function imgOn(imgName) {

if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}

function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}

//International Distributors
function internationalDistributors(int_dist)
	{
	var URL = document.int_dist.country.options[document.int_dist.country.selectedIndex].value;
	window.location.href = URL;
	}

//United States
function usSales(us_sales)
	{
	var URL = document.us_sales.state.options[document.us_sales.state.selectedIndex].value;
	window.location.href = URL;
	}

//Contact > Corporate Offices
function worldwide_go(worldwide)
	{
	var URL = document.worldwide.location.options[document.worldwide.location.selectedIndex].value;
	window.location.href = URL;
	}

//Contact > United States
function unitedstates_go(unitedstates)
	{
	var URL = document.unitedstates.state.options[document.unitedstates.state.selectedIndex].value;
	window.location.href = URL;
	}

//Contact > International Distributors
function intdist_go(intdist)
	{
	var URL = document.intdist.country.options[document.intdist.country.selectedIndex].value;
	window.location.href = URL;
	}

//Product page thumnail rollovers
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) {
		//con_map_copy_01_con_map_copy_02_over = newImage("/imgs/mini_swipe_left.mn.gif");
		//con_map_copy_01_con_map_copy_03_over = newImage("/imgs/con_uss.on.gif");
		//con_map_copy_01_con_map_copy_04_over = newImage("/imgs/con_int.on.gif");
		//con_map_copy_01_con_map_copy_05_over = newImage("/imgs/con_par.on.gif");
		preloadFlag = true;
	}
}