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];
		}
	}
}

function mute(){
	if (navigator.appName.indexOf ("Microsoft") !=-1)
	parent.opener.document["movie"].SetVariable("/minijuke:playing", "false");
	else
	parent.opener.document.embeds[0].SetVariable("/minijuke:playing", "false");
}

function resetStore(){
	parent.frames[1].location.href="cart.php";
	parent.resizeTo(570,470);
	parent.moveTo((screen.availWidth-570)/2,(screen.availHeight-470)/2);
}

function setTitle(){
	parent.document.title = document.title;
}

function new_win(url, width, height, name, resizable, scrollable) {
	var options = "status=no,menubar=no,resizable="+resizable+",scrollbars="+scrollable+",location=no,width="+width+",height="+height+",top=" + Math.floor( (screen.height - height) / 2) + ",left=" + Math.floor( (screen.width - width) / 2);
	myWin = window.open(url, name, options);
	myWin.focus();
}

function store(item){
	if(item=="default"){ item="mewzik"; }
	new_win("frames.php?i="+item,555,450,"store_win","yes","no");
}

function press(which){
	if(which=="limbz1"){ new_win("images/homegrown.html",620,500,"press_win","no","yes"); }
	else if(which=="limbz2"){ new_win("images/outtalimbz.html",400,550,"press_win","no","yes"); }
	else if(which=="limbz3"){ new_win("images/indy.html",304,354,"press_win","no","yes"); }
}