/*Roll Over/Out Script*/

var loaded = false;

if (document.images) {

	/* PreCache all "normal" button images */
	var normal = new Array();
	normal['baby'] = new Image;
	normal['mens'] = new Image;
	
	/* set "normal" image path for each button */
	normal['baby'].src = "/images/store/thumb/babydoll.jpg";
	normal['mens'].src = "/images/store/thumb/menstee.jpg";
	
	/* PreCache all "hover" button images */
	var hover = new Array();
	hover['baby'] = new Image;
	hover['mens'] = new Image;
	
	/* set "hover" image path for each button */
	hover['baby'].src = "/images/store/thumb/babydoll_back.jpg";
	hover['mens'].src = "/images/store/thumb/menstee_back.jpg";
	
	loaded = true;
}// end if
	
function rollOver(id) {
	if (document.images) {
		document.images[id].src = hover[id].src;
	}
}

function rollOut(id) {
	if (document.images){
		document.images[id].src = normal[id].src;
	}
	//else {document.images[id].src = current[id].src;}
}

function openUp(what) {
	var url = null;
	var left = "50";
	var top = "50";
	var width = "930";
	var height = "570";
	if (what == "mens") {
		height = "410";
	} else if (what == "bumper1") {
		width = "510";
		height = "210";
	} else if (what == "bumper2") {
		width = "495";
		height = "210";
	} 
	url = "/images/store/" + what + ".jpg";
	params = "toolbar=no,status=no,menubar=no,location=no,alwaysRaised=yes," + 
			 "scrollbars=nos,width=" + width + ",height=" + height + ",resizable=yes," +
			 "left=" + left + ",top=" + top;
	something = window.open(url, "_store", params);
	something.focus();
	something.resizeTo(width, height);
}
