/* --------------------------------------- /*
	image swapping functions. this swaps the 
	image in the large preview spot. user
	clicks on thumbnail, and function is called
/* --------------------------------------- */
function swap_preview(new_src,dir)
{	
	document.getElementById('large_preview').src = 'images/'+dir+'/'+new_src;
}



/* --------------------------------------- /*
	image swapping functions. swap_misc
	swaps the image for it's _over brother
	and reset_misc resets it back.
/* --------------------------------------- */
function swap_misc(image)
{
	var orig_image = eval('window.document.'+image);
	var img_string = eval('window.document.'+image+'.src');
	img_base = img_string.substr(0,img_string.length-4);
	img_type = img_string.substr(img_string.length-4,4);
	orig_image.src = img_base+'_over'+img_type;
}

function reset_misc(image)
{
	var orig_image = eval('window.document.'+image);
	var img_string = eval('window.document.'+image+'.src');
	img_base = img_string.substr(0,img_string.length-9);
	img_type = img_string.substr(img_string.length-4,4);
	orig_image.src = img_base+img_type;
}
