sitewin='';

function view(file) {
	file = file.replace(/thumbs\//,"");
	
	sitewin = open(file,'_blank');

	if (! sitewin) {
		top.location=file;
	} 
}

function noview() {
	if (sitewin) {
		sitewin.close();
	}
}