<!--

var caption = "2009 Dickey Reunion";
var notices = "<h1>Coming June 27-28, 2009</h1>" +
	"<h2 style='color:green;'>The Dickey Family Reunion</h2>" +
	"<p><a href='images/DickeyReunionFlyer2009.jpg'>Click for the 2009 Flyer</a></p>" +
	"<p><span onClick=\'window.close();\' style=\'color:blue;cursor:pointer;\'>click to close</span>";

function getNotice() {
	
	var x = window.open('','Notice','width=600,height=600,resizable=1,scrollbars=1');
	if(!x) {
		return true;
	}
	var str = 
		'<html>\r\n' +
		'<head>\r\n' +
		'	<title>' + caption + '<\/title>\r\n' +
		'	<style type=\'text/css\'\>body{text-align:center;}<\/style>\r\n' +
		'<\/head>\r\n' +
		'<body>\r\n' +
		'	<br /><b>' + notices + '<\/b>\r\n' +
		'<\/body>\r\n' +
		'<\/html>';
	x.document.open();
	x.document.write(str);
	x.document.close();
	x.focus();
	return false;
}

/*********************  Left Links Functions ***********************/
var TimeOut = 2500;
function showLev2(val) { 	document.getElementById('menu' + val).style.visibility='visible'; }
function hideLev2(val) { 	closeTimer = window.setTimeout("hideLev2Exe(" + val +")", TimeOut); }
function hideLev2Exe(val) { 	document.getElementById('menu' + val).style.visibility='hidden'; }
/**************  End  Left Links Functions **************************/

	
	function blogPop(mylink) {
		if(!mylink) return false;
		if(!window.focus) return true;
		var newWin = window.open('blogImage.php?id=' + mylink, 'Blog_Image','width=500,height=600,location=no,resizable=yes,scrollbars=yes,toolbar=no');
		newWin.focus();
		return true;
	}

/* opens popup window and resizes to pic size. */
/* if pic size larger than screen area, it resizes the pic to fit in the window. */
/* this script also adds text to the title and a caption*/
/* Written by: CM Oliver Design, www.theOliver.org, 2-2008 */
function imagePop(imgName, caption) {
	var x = window.open('','windowName','width=50,height=50,resizable=1,scrollbars=1');
	if(!x) {
		return true;
	}
	x.document.open();
	var str = 
		'<html>\r\n' +
		'<head>\r\n' +
		'	<title>' + caption + '<\/title>\r\n' +
		'	<style type=\'text/css\'\>body{text-align:center;}<\/style>\r\n' +
		'	<script>\r\n' +
		'		function sizeIt() {\r\n' +
		'			var yIsGreater=false; var xIsGreater=false;\r\n' +
		'			var i = document.getElementsByTagName("img");\r\n' +
		'			var xx = i[0].width; var yy = i[0].height;\r\n' +
		'			if(screen.availHeight<yy+120) { yy=screen.availHeight-120; yIsGreater=true; }\r\n' +
		'			if(screen.availWidth<xx+40) { xx=screen.availWidth-40; xIsGreater=true; }\r\n' +
		' 			if(yIsGreater||xIsGreater){\r\n' +
		'				if((i[0].width-screen.availWidth)>(i[0].height-screen.availHeight)){\r\n' +
		'					picW=xx;\r\n' +
		'					var rat=(i[0].height*100)/i[0].width;\r\n' +
		'					picH=(picW*rat)/100;\r\n' +
		'				}else{\r\n' +
		'					picH=yy;\r\n' +
		'					var rat=(i[0].width*100)/i[0].height;\r\n' +
		'					picW=(picH*rat)/100;\r\n' +
		'				}\r\n' +
		'				if(picH>yy) {\r\n' +
		'					picH=yy;\r\n' +
		'					var rat=(i[0].width*100)/i[0].height;\r\n' +
		'					picW=(picH*rat)/100;\r\n' +
		'				}\r\n' +
		'				document.getElementById(\"picPop\").width=picW;\r\n' +
		'				document.getElementById(\"picPop\").height=picH;\r\n' +
		'			}\r\n' +
		'			window.resizeTo(xx + 40, yy + 120);\r\n' +
		'			window.moveTo(0,0);\r\n' +
		'		}\r\n' +
		'	</script>\r\n' +
		'<\/head>\r\n' +
		'<body onClick=\'window.close();\' onLoad=\'sizeIt();\'>\r\n' +
		'	<img id=\'picPop\' src=\'' + imgName + '\' \/>\r\n' +
		'	<br /><b>' + caption + '<\/b>\r\n' + 
		'	<p style=\'font-size:70%;\'>Click Anywhere to Close Window<\/p>\r\n' +
		'<\/body>\r\n' +
		'<\/html>';
	x.document.write(str);
	x.document.close();
	x.focus();
	return false;
}


-->
