
// * åbner popup
function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
	win = window.open(mypage, '', winprops);
	if (win != null && parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// * variable til fisk
var fisk_src;
var fisk_width;
var fisk_height;

// * set 
function fisk_set(src, w, h){
	fisk_src = src;
	fisk_width = w;
	fisk_height = h;
}

// * vis lille billede til venstre
function fisk_show(id, src, w, h){
	if(src == '') return false;
	fisk_set(src, w, h);
	document.getElementById('big-pic-'+id).style.display='block';
	document.getElementById('big-pic-'+(1-id)).style.display='none';
	return false;
}
// * vis stort billede i popup
function fisk_popup(name, src, w, h){
	if(src == '') return false;
	if (fisk_src==null) fisk_set(src, w, h);
	NewWindow(fisk_src, name, fisk_width, fisk_height, 'no'); 
	return false;
}