/* Creation date: 5/23/2003 */
/* Modified 8-25-03 so that the guestbook popup will automatically appear only if the visitor hasn't signed the gb. */
function SingGuestBook() {
	gbWindow = window.open ('http://www.bengribaudo.com/signguestbook.php', "SignGuestBook",	"toolbar=no,location=no,directories=no,status=no,menubar=0,scrollbars=yes,	resizable=no,copyhistory=no,width=440,height=430,fullscreen=no,top=110,left=110");
	gbWindow.focus();
}

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}

function PageLoad() {
	//var Visited = GetCookie('SignedGB');
	//			if (Visited == null) {
	//				SingGuestBook();
	//			} 
}






function PopUp() {
	gbWindow = window.open ('http://www.bengribaudo.com/signguestbook.php', "SignGuestBook",	"toolbar=no,location=no,directories=no,status=no,menubar=0,scrollbars=no,	resizable=no,copyhistory=no,width=425,height=440,fullscreen=no,top=110,left=110")

}

function ViewPhotos(galleryname) {
	photoWindow = window.open (galleryname, "PhotoGallery",	"toolbar=no,location=no,directories=no,status=no,menubar=0,scrollbars=no,	resizable=no,copyhistory=no,width=610,height=550,fullscreen=no,top=110,left=110")

}