// usage:	openMixNMatch(image name, slot number);
//			ex: openMixNMatch("images/mypants.jpg",3)

var ollyWin = null;
function openMixNMatch(img,slot) {
	var features = "left=0,top=0,width=250,height=500,location=0,menubar=0,resizable=1,scrollbars=1,status=1,toolbar=0";
	if (ollyWin && !ollyWin.closed) { // if window already exists execute code to insert image
		ollyWin.doMixNMatch(img,slot);
		}
	else { // if window doesn't exist, open a new one
		ollyWin = window.open("/mixnmatch.html?img="+img+"&slot="+slot, "childWin", features);
		}
	ollyWin.focus();
	}
