function jumpSwap(mnum){ parent.parent.info.info.document.gould.site.selectedIndex = mnum; }

function menuSwap(id) {

	r = Math.floor(Math.random() * 5)+1;

	newImage = 'images/' + id + r + '.jpg';

	if(document.images) document.images[id].src = newImage;

	}	

function imageSwap(id, imgName) {if(document.images) document.images[id].src = imgName;}

function openWindow(loc, nam) {

	msgWindow=open(loc,nam,'toolbar=0,location=0,menubar=1,scrollbars=0,resizable=no,width=400,height=400,top=75,left=100,directories=no');

	}

function loadImages(img1, img2, img3, img4, img5) {

	var the_images = new Array(img1, img2, img3, img4, img5);

   	preloadImages(the_images);

	}

function preloadImages(the_images_array) {

   	for(var loop = 0; loop < the_images_array.length; loop++) {

 		var an_image = new Image();

		an_image.src = the_images_array[loop];

   		}

	}

function illWindow(url, name) {

	popWindow=open(url,name,'toolbar=0,location=0,menubar=1,scrollbars=0,resizable=no,width=600,height=500,top=50,left=50,directories=no');

	//window.alert('the url is ' + url);

		}

function popWindow(url, name, title, year, size, price) {

	//window.alert('the url is ' + title);
	popWindow=open(url,name,'channelmode=1');
	popWindow.document.write('<link rel=stylesheet href="mattgould.css" type="text/css" title="mattgould CSS">');
	popWindow.document.write('<html><body><table align="center"><tr>');
	popWindow.document.write('<td><span class="mattgouldnorm"><strong>' + title + '</strong>&nbsp &nbsp year=' +  year + '&nbsp &nbsp dimensions=' + size + '&nbsp &nbsp price=' + price + '</span></td>');
	popWindow.document.write('<td align=right><a href="javascript:self.close()">close window</a></td>');
	popWindow.document.write('</tr>');
	popWindow.document.write('<tr><td>');
	popWindow.document.write('<tr><td colspan=2><img src="' + url + '" border=1></td></tr>');
	popWindow.document.write('</table></body></html>');
	}

function artWindow(url, name) {

	
popWindow=open(url,name,'toolbar=0,location=0,menubar=1,scrollbars=0,resizable=no,width=700,height=400,top=50,left=50,directories=no');

	
//window.alert('the url is ' + url);

	
} 

function miscWindow(url, name, width, height) {

	
popWindow=open(url,name,'toolbar=0,location=0,menubar=1,scrollbars=0,resizable=no,width='+ width +',height='+ height+ ',top=50,left=50,directories=no');

	
//window.alert('the url is ' + url);

	
}
 
function wMsg(message) {

	window.status = message;

	}

function loadPop() {

	popWindow=open('loadmsg.html','loadmsg','toolbar=0,location=0,menubar=0,scrollbars=0,resizable=no,width=120,height=125,top=265,left=324,directories=no');

	}

function removePop() {

	popWindow.close();

	}

