

function PopImgWindow10(windowHeight, windowWidth, windowName, windowUri)
{
    var centerWidth = (window.screen.width - windowWidth) / 2;
    var centerHeight = (window.screen.height - windowHeight) / 2;

    newWindow = window.open(windowUri, windowName, 'resizable=0,width=' + windowWidth + 
        ',height=' + windowHeight + 
        ',left=' + centerWidth + 
        ',top=' + centerHeight);
	alert(newWindow.name);
    newWindow.focus();
    return newWindow.name;
}




<!-- Copyright 2006,2007 Bontrager Connection, LLC
// http://bontragerconnection.com/ and http://www.willmaster.com/
// Version: July 28, 2007
var cX = 0; var cY = 0; var rX = 0; var rY = 0;

function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}

function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;}
	if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
	else { document.onmousemove = UpdateCursorPosition; }

function AssignPosition(d) {
	if(self.pageYOffset) {
		rX = self.pageXOffset;
		rY = self.pageYOffset;
		}
	else if(document.documentElement && document.documentElement.scrollTop) {
		rX = document.documentElement.scrollLeft;
		rY = document.documentElement.scrollTop;
		}
	else if(document.body) {
		rX = document.body.scrollLeft;
		rY = document.body.scrollTop;
		}
	if(document.all) {
		cX += rX; 
		cY += rY;
		}
	d.style.left = (cX+10) + "px";
	d.style.top = (cY+10) + "px";
}

function HideContent(d) {
	if(d.length < 1) { return; }
	document.getElementById(d).style.display = "none";
}

function ShowContent(d) {
	if(d.length < 1) { return; }
	var dd = document.getElementById(d);
	AssignPosition(dd);
	dd.style.display = "block";
}

function ReverseContentDisplay(d) {
	if(d.length < 1) { return; }
		var dd = document.getElementById(d);
		AssignPosition(dd);
	if(dd.style.display == "none") { dd.style.display = "block"; }
	else { dd.style.display = "none"; }
}
//-->

function x()
{
	PopWin = window.open('PopPoemLittle.htm', 'PopImgWindow','toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=no, scrollbars=no, width=340, height=185');
	alert(height)
	alert(width)	
}


function DislayFeatue(feature){

	if (feature == "ClimbingStructures"){	
		document.FeatureImg.src="images/Features/ClimbStructure.jpg";
	}else if (feature == "Wheelchair"){
		document.FeatureImg.src="images/Features/wcSandTable.gif";
	}else if (feature == "RofSand"){
		document.FeatureImg.src="images/Features/RSand.gif";
	}else if (feature == "SScooper"){
		document.FeatureImg.src="images/Features/sandScooper.gif";
	}else if (feature == "WaterSources"){
		document.FeatureImg.src="images/Features/waterSource.gif";
	}else if (feature == "FencedPreschool"){
		document.FeatureImg.src="images/Features/fencedPreschool.gif";
	}else if (feature == "ChairSwing"){
		document.FeatureImg.src="images/Features/chairSwing.gif";
	}else if (feature == "ISwing"){
		document.FeatureImg.src="images/Features/ISwings.gif";
	}else if (feature == "PlayHouse"){
		document.FeatureImg.src="images/Features/PlayHouse.gif";
	}else if (feature == "KATAL"){
		document.FeatureImg.src="images/Features/KATAL.gif";
	}else if (feature == "PicnicArea"){
		document.FeatureImg.src="images/Features/picnic.gif";
	}else if (feature == "PicnicShelter"){
		document.FeatureImg.src="images/Features/PicnicShelter.gif";
	}else {
		return;
	}
}

function toggleBox(szDivID, iState, txHtml) // 1 visible, 0 hidden
{
	var obj = document.layers ? document.layers[szDivID] :
	document.getElementById ?  document.getElementById(szDivID).style :
   	document.all[szDivID].style;

	document.getElementById(szDivID).innerHTML = txHtml;
	document.getElementById(szDivID).style = "height:100px";
  
   	obj.visibility = document.layers ? (iState ? "show" : "hide") :
   		(iState ? "visible" : "hidden");
}

function getPosition(e) {
    e = e || window.event;
    var cursor = {x:0, y:0};
    if (e.pageX || e.pageY) {
        cursor.x = e.pageX;
        cursor.y = e.pageY;
    } 
    else {
        var de = document.documentElement;
        var b = document.body;
        cursor.x = e.clientX + 
            (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);
        cursor.y = e.clientY + 
            (de.scrollTop || b.scrollTop) - (de.clientTop || 0);
    }
    return cursor;
}

function WindowSize(orientation) {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  	
	if (orientation == 'H') {
	return myHeight;
	}else{
	return myWidth;
	}
}

function mouseX(evt) {
	if (evt.pageX) return evt.pageX;
	else if (evt.clientX)
	   return evt.clientX + (document.documentElement.scrollLeft ?
	   document.documentElement.scrollLeft :
	   document.body.scrollLeft);
	else return null;
	}
	
	
	
	function mouseY(evt) {
	if (evt.pageY) return evt.pageY;
	else if (evt.clientY)
	   return evt.clientY + (document.documentElement.scrollTop ?
	   document.documentElement.scrollTop :
	   document.body.scrollTop);
	else return null;
}

function ShowImage(idName)
	{
	var idName2 = idName;
	idName2 += '2';
	var myDiv = document.getElementById(idName);
	var myDiv2 = document.getElementById(idName2);
		if(window.event){	
		if(screen.width){
			var winT = window.event.offsetY;
			var winL = window.event.offsetX;
			var winH = getPosition();
			
			//Add 70 px for the page off set then just use the image width for myDiv.style.left 
			var winW = (WindowSize('W'))/2;
		}
		}else{
			alert('Please view pop up image and picture information in IE.');
			}
		
	myDiv.style.display = "Block";
			
	if (idName == 'idBruce')
	{
	myDiv.style.left = winW - (273 * .22);
	myDiv.style.top = winH.y - 512;
	myDiv.style.width = 273;
	myDiv.style.height = 412;
	myDiv2.style.left = winW - (273 * .22);
	myDiv2.style.top = winH.y - 90;
	myDiv2.style.width = 265;
	myDiv2.style.height = 97;
	myDiv2.style.display = "Block";
		
	}else if (idName == 'idHNK'){
	myDiv.style.left = winW - (367 * .30);
	myDiv.style.top = winH.y - 238;
	myDiv.style.width = 367;
	myDiv.style.height = 238;
	myDiv2.style.left = winW - (367 * .30);
	myDiv2.style.top = winH.y ;
	myDiv2.style.width = 358;
	myDiv2.style.height = 65;
	myDiv2.style.display = "Block";
	
	}else if (idName == 'idMarla'){
	myDiv.style.left = winW - (400 * .33);
	myDiv.style.top = winH.y - 375;
	myDiv.style.width = 449;
	myDiv.style.height = 350;
	myDiv2.style.left = winW - (400 * .33);
	myDiv2.style.top = winH.y - 20;
	myDiv2.style.width = 440;
	myDiv2.style.height = 50;
	myDiv2.style.display = "Block";

	}else if (idName == 'idHerb'){
	myDiv.style.left = winW - (414 * .32);
	myDiv.style.top = winH.y - 270;
	myDiv.style.width = 414;
	myDiv.style.height = 270;
	myDiv2.style.left = winW - (414 * .32);
	myDiv2.style.top = winH.y;
	myDiv2.style.width = 405;
	myDiv2.style.height = 80;
	myDiv2.style.display = "Block";
	
	}else if (idName == 'idMNA'){
	myDiv.style.left = winW - (419 * .33);
	myDiv.style.top = winH.y - 263;
	myDiv.style.width = 419;
	myDiv.style.height = 263;
	myDiv2.style.left = winW - (419 * .33);
	myDiv2.style.top = winH.y;
	myDiv2.style.width = 410;
	myDiv2.style.height = 35;
	myDiv2.style.display = "Block";

	}else if (idName == 'idLL2'){
	myDiv.style.left = winW - (422 * .35);
	myDiv.style.top = winH.y;
	myDiv.style.width = 413;
	myDiv.style.height = 82;
	myDiv.style.display = "Block";

	}else if (idName == 'idSusan'){
	myDiv.style.left = winW - (422 * .35);
	myDiv.style.top = winH.y - 248;
	myDiv.style.width = 299;
	myDiv.style.height = 239;
	myDiv2.style.left = winW - (422 * .35);
	myDiv2.style.top = winH.y;
	myDiv2.style.width = 291;
	myDiv2.style.height = 30;
	myDiv2.style.display = "Block";

	}else if (idName == 'idRobb'){
	myDiv.style.left = winW - (422 * .35);
	myDiv.style.top = winH.y - 260;
	myDiv.style.width = 422;
	myDiv.style.height = 260;
	myDiv2.style.left = winW - (422 * .35);
	myDiv2.style.top = winH.y;
	myDiv2.style.width = 413;
	myDiv2.style.height = 82;
	myDiv2.style.display = "Block";

	}else if (idName == 'idRobin'){
	myDiv.style.left = winW - (266 * .22);
	myDiv.style.top = winH.y - 500;
	myDiv.style.width = 266;
	myDiv.style.height = 407;
	myDiv2.style.left = winW - (266 * .22);
	myDiv2.style.top = winH.y - 85;
	myDiv2.style.width = 258;
	myDiv2.style.height = 144;
	myDiv2.style.display = "Block";
	
	}else if (idName == 'idShelterSgn' ){
	myDiv.style.left = winW - (400 * .73);
	myDiv.style.top = winH.y - 175;
	myDiv.style.width = 449;
	myDiv.style.height = 350;
	
	}else if (idName == 'idClimbing'){
	myDiv.style.left = winW - (400 * .63);
	myDiv.style.top = winH.y - 250;
	myDiv.style.width = 600;
	myDiv.style.height = 450;
	
	}else if (idName == 'idHomeKatal'){
	myDiv.style.left = winW - (400 * .85);
	myDiv.style.top = winH.y - 420;
	myDiv.style.width = 600;
	myDiv.style.height = 450;
	}
}

//displays image and text above name link in poem
function ShowImagePoem(idName)
	{
	var idName2 = idName;
	idName2 += '2';
	var myDiv = document.getElementById(idName);
	var myDiv2 = document.getElementById(idName2);
	
		if(screen.width){
			var winT = window.event.offsetY;
			var winL = window.event.offsetX;
			var winH = getPosition();
			
			//Add 70 px for the page off set then just use the image width for myDiv.style.left 
			var winW = (WindowSize('W'))/2;
		}
		
	myDiv.style.display = "Block";
			
	if (idName == 'idBruce')
	{
	myDiv.style.left = winW - (273 * .22);
	myDiv.style.top = winH.y - 560;
	myDiv.style.width = 273;
	myDiv.style.height = 412;
	myDiv2.style.left = winW - (273 * .22);
	myDiv2.style.top = winH.y - 140;
	myDiv2.style.width = 265;
	myDiv2.style.height = 97;
	myDiv2.style.display = "Block";
	
	
	}else if (idName == 'idHNK'){
	myDiv.style.left = winW - (367 * .30);
	myDiv.style.top = winH.y - 350;
	myDiv.style.width = 367;
	myDiv.style.height = 238;
	myDiv2.style.left = winW - (367 * .30);
	myDiv2.style.top = winH.y - 110;
	myDiv2.style.width = 358;
	myDiv2.style.height = 65;
	myDiv2.style.display = "Block";
	
	}else if (idName == 'idMarla'){
	myDiv.style.left = winW - (400 * .40);
	myDiv.style.top = winH.y - 450;
	myDiv.style.width = 449;
	myDiv.style.height = 350;
	myDiv2.style.left = winW - (400 * .40);
	myDiv2.style.top = winH.y - 90;
	myDiv2.style.width = 440;
	myDiv2.style.height = 50;
	myDiv2.style.display = "Block";

	}else if (idName == 'idHerb'){
	myDiv.style.left = winW - (414 * .32);
	myDiv.style.top = winH.y - 400;
	myDiv.style.width = 414;
	myDiv.style.height = 270;
	myDiv2.style.left = winW - (414 * .32);
	myDiv2.style.top = winH.y - 125;
	myDiv2.style.width = 405;
	myDiv2.style.height = 80;
	myDiv2.style.display = "Block";
	
	}else if (idName == 'idMNA'){
	myDiv.style.left = winW - (419 * .33);
	myDiv.style.top = winH.y - 350;
	myDiv.style.width = 419;
	myDiv.style.height = 263;
	myDiv2.style.left = winW - (419 * .33);
	myDiv2.style.top = winH.y - 80;
	myDiv2.style.width = 410;
	myDiv2.style.height = 35;
	myDiv2.style.display = "Block";

	}else if (idName == 'idLL2'){
	myDiv.style.left = winW - (422 * .35);
	myDiv.style.top = winH.y - 125;
	myDiv.style.width = 413;
	myDiv.style.height = 82;
	myDiv.style.display = "Block";
	
	}else if (idName == 'idSusan'){
	myDiv.style.left = winW - (422 * .35);
	myDiv.style.top = winH.y - 248;
	myDiv.style.width = 299;
	myDiv.style.height = 239;
	myDiv2.style.left = winW - (422 * .35);
	myDiv2.style.top = winH.y;
	myDiv2.style.width = 291;
	myDiv2.style.height = 30;
	myDiv2.style.display = "Block";
	
	}else if (idName == 'idRobb'){
	myDiv.style.left = winW - (422 * .35);
	myDiv.style.top = winH.y - 390;
	myDiv.style.width = 422;
	myDiv.style.height = 260;
	myDiv2.style.left = winW - (422 * .35);
	myDiv2.style.top = winH.y - 125;
	myDiv2.style.width = 413;
	myDiv2.style.height = 82;
	myDiv2.style.display = "Block";

	}else if (idName == 'idRobin'){
	myDiv.style.left = winW - (266 * .22);
	myDiv.style.top = winH.y - 600;
	myDiv.style.width = 266;
	myDiv.style.height = 407;
	myDiv2.style.left = winW - (266 * .22);
	myDiv2.style.top = winH.y - 187;
	myDiv2.style.width = 258;
	myDiv2.style.height = 144;
	myDiv2.style.display = "Block";
	}
}

function HideImage(idName){

	var idName2 = idName;
	idName2 += '2';
	var myDiv2 = document.getElementById(idName2);
	var myDiv = document.getElementById(idName);
	
	myDiv.style.display = "None";
	myDiv2.style.display = "None";
}

function HideImageLL(idName){

	var myDiv = document.getElementById(idName);
	myDiv.style.display = "None";
}

function ShowContent2(d) {
	if(d.length < 1) { return; }
	var dd = document.getElementById(d);
	AssignPosition(dd);
	dd.style.display = "block";
}
