<!--


//opens a new popup window containing the page from parameter "url":
var newWin;
function OpenWin(url,title,w,h){
	w=parseInt(w);
	h=parseInt(h);
	if (!mac) if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open(url,title,"width="+w+",height="+h+",top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,z-lock=yes");
	//if (mac) win.resizeTo(w+25,h+50);
	newWin.focus();
}

//opens a new popup window containing the image from parameter:
var newWinImg;
function OpenImage(imgFile){
	if (new String(newWinImg)!="undefined" && newWinImg!=null) if (!newWinImg.closed) newWinImg.close();
	var newWinImg=window.open("","TheClevedonHouseImage","width=100,height=100,top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,z-lock=yes");
	newWinImg.document.write('<html><head><title>The Clevedon House</title></head><body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" bgcolor="#ffffff" onload="window.resizeTo(parseInt(document.images[\'img\'].width)+30,parseInt(document.images[\'img\'].height)+35)"><img src="' + imgFile + '" name="img" /></body></html>');
	newWinImg.document.close();
	newWinImg.focus();
}

var newWinImg2;
function PopupImage(imgFile,winTitle){
	if (new String(newWinImg2)!="undefined" && newWinImg2!=null) if (!newWinImg2.closed) newWinImg2.close();
	var newWinImg2=window.open("","TheClevedonHouseImage2","width=100,height=100,top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,z-lock=yes");
	newWinImg2.document.write('<html><head><title>The Clevedon House | '+winTitle+'</title></head><body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" bgcolor="#ffffff" onload="window.resizeTo(parseInt(document.images[\'img\'].width)+30,parseInt(document.images[\'img\'].height)+55)"><img src="' + imgFile + '" name="img" alt="'+winTitle+'" /></body></html>');
	newWinImg2.document.close();
	newWinImg2.focus();
}


//used for paging:
function GoToPageNo(page){
	document.frmPaging.page.value=page;
	document.frmPaging.submit();
}

//used for paging:
function GoToRecNo(start){
	document.frmMain.start.value=start;
	document.frmMain.submit();
}

function change_bg(id_col)
{
	
	for(i=1;i<=4;i++)
		if("img"+i==id_col)
			{
				document.getElementById(id_col).style.backgroundImage="url(images/pic_border.gif)";
				document.getElementById("img_big").style.backgroundImage="url(images/gall_pic_0"+i+".jpg)";
			}
		else
			document.getElementById("img"+i).style.backgroundImage="none";
}
//-->