loadImg("shoponline_off","/skin1/images/theboxgirls/shop-online.jpg");
loadImg("shoponline_on","/skin1/images/theboxgirls/shop-online1.jpg");
loadImg("press_off","/skin1/images/theboxgirls/press.jpg");
loadImg("press_on","/skin1/images/theboxgirls/press1.jpg");
loadImg("ourstory_off","/skin1/images/theboxgirls/our-story.jpg");
loadImg("ourstory_on","/skin1/images/theboxgirls/our-story1.jpg");
loadImg("stores_off","/skin1/images/theboxgirls/stores.jpg");
loadImg("stores_on","/skin1/images/theboxgirls/stores1.jpg");
loadImg("contactus_off","/skin1/images/theboxgirls/contact-us.jpg");
loadImg("contactus_on","/skin1/images/theboxgirls/contact-us1.jpg");
loadImg("privacy_off","/skin1/images/theboxgirls/privacy.jpg");
loadImg("privacy_on","/skin1/images/theboxgirls/privacy1.jpg");
loadImg("wholesale_off","/skin1/images/theboxgirls/wholesale.jpg");
loadImg("wholesale_on","/skin1/images/theboxgirls/wholesale1.jpg");
loadImg("terms_off","/skin1/images/theboxgirls/terms.jpg");
loadImg("terms_on","/skin1/images/theboxgirls/terms1.jpg");
loadImg("sitemap_off","/skin1/images/theboxgirls/site-map.jpg");
loadImg("sitemap_on","/skin1/images/theboxgirls/site-map1.jpg");
loadImg("customerservice_off","/skin1/images/theboxgirls/customer-service.jpg");
loadImg("customerservice_on","/skin1/images/theboxgirls/customer-service1.jpg");
loadImg("addtobag_off","/skin1/images/theboxgirls/cart_01.jpg");
loadImg("addtobag_on","/skin1/images/theboxgirls/cart_01-roll.jpg");
loadImg("viewbag_off","/skin1/images/theboxgirls/cart_02.jpg");
loadImg("viewbag_on","/skin1/images/theboxgirls/cart_02-roll.jpg");
loadImg("checkout_off","/skin1/images/theboxgirls/cart_03.jpg");
loadImg("checkout_on","/skin1/images/theboxgirls/cart_03-roll.jpg");

// img preload
function loadImg(imgObj,imgSrc) {
	if(document.images){
		eval(imgObj+"=new Image();");
		eval(imgObj+".src='"+imgSrc+"';");
		}
	}
	
// holds imgs in "locked" state (no rollover)
var locked=new Array();

// rollover function for "on" and "off" states
// goes only 1 level deep for NS4 layers
function roll(img,r){
	if(document.images){
		if(locked.length>0){
			for(var m=0;m<locked.length;m++){
				if(locked[m]==img){return false;}
			}
		}
		if(document.images[img]){
			if(r){ eval("document.images[img].src="+img+"_on.src;"); }
			else { eval("document.images[img].src="+img+"_off.src;"); }
			}
		else {
			if(document.layers){
				for(var i=0;i<document.layers.length;i++){
					// only goes 1 level deep (for now)
					if(document.layers[i].document.images[img]){
						if(r){ eval("document.layers[i].document.images[img].src="+img+"_on.src;"); }
						else { eval("document.layers[i].document.images[img].src="+img+"_off.src;"); }
						}
					}
				}
			else {
				return;
				}
			}
		}
	}

// locks img args
function lock(){
	if(locked.length>0) {
		for(var i=0;i<locked.length;i++) {
			for(var j=0;j <arguments.length; j++) {
				if(arguments[j]!=locked[i]) {
					locked[locked.length]=arguments[j];
					}
				}
			}
		}
	else {
		for(j=0; j<arguments.length; j++){
			locked[locked.length]=arguments[j];
			}
		}
	}