// JavaScript Document


<!-- Idea by:  Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL:  http://fineline.xs.mw -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=675,height=600,left = 340,top = 212');");
}
// End -->

function swapPreview(img)
{
	id = 'preview';
	dir = '';
	
	MM_swapImage(id,'',img ,0); 
	
	pv = document.getElementById('preview');
	if (pv.className == '') pv.className='imgborder';	
}

function swapHighlight(id, on)
{
	if (on == false)
	{ $img = '/_images/_artists/img_green_box_off.jpg'; }
	else { $img = '/_images/_artists/img_green_box_on.jpg'; }

	pv = document.getElementById(id);

	//if (pv.src == $on)
	//{ $img = $off; } else { $img = $on; }

	MM_swapImage(id, '', $img,0);
}

function swapThumb(id, img)
{
	$t_id = 'thumb' + id;

	MM_swapImage($t_id, '', img, 0);
}

function swapTitle(artist)
{
	$img = '/_images/_artist_titles/' + artist + '.gif';

	MM_swapImage('title', '', $img, 0);
}

function swapDetail(id)
{	
	$size = document.getElementById('size' + id).value;
	$title = document.getElementById('title' + id).value;
	$media = document.getElementById('media' + id).value;
	
	$a_title = document.getElementById('art_title');
	$a_size = document.getElementById('art_size');
	$a_square = document.getElementById('art_detail_sq');
	
	if ($size != '" x "')
	{
		$h_size = $size + ', ' + $media;
	} else {
		$h_size = $media;
	}
	
	$a_title.innerHTML = $title;
	$a_size.innerHTML = $h_size;
	
	if (!document.getElementById('green_square'))
	{
		$a_square.innerHTML = '<img id="green_square" src="/_images/_general/sue_greenwood_fine_art_green_square.gif" width="12" height"12" border="0"/>';
	}
}