<!--

//******************************************* Image Map ******************************************************

// Script for mouse over image map
// State = 0	Mouseout
// State = 1	Mouseover
// State = 2	Mousedown
 
	var divLatched = 0; //Initialise 

   function toggleDiv(e,divid,state)
   {
		var msgId=document.getElementById("msg");
   	var countyName=divid.title;
   	var countyId=document.getElementById("county");
   	var imageId=document.getElementById(countyName);
		var countyHead=document.getElementById("countyHeader");   
   	if (imageId)
   	{
   		if(state==1)
   		{
   //Display info message relative to cursor
   //Note that code for cursor position is browser dependent 
   					
         	var posx = 0;
            var posy = 0;
            if (e.pageX || e.pageY) 	
   			{
            	posx = e.pageX;
               posy = e.pageY;
            }
   			else if (e.clientX || e.clientY) 	
      		{
      			posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
      			posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
      		}
      		msgId.style.position='absolute';
   			msgId.style.top=posy-25+"px";
   	  		msgId.style.left=posx+"px";
   			msgId.style.display='block';
   		}
   		else
   		{
   			msgId.style.display = 'none';						// Turn off the "Click here .." message
   		}
   
   		if(state==2)
   		{
   		//Remove previous menu if there is one
   			if (divLatched!=0)
   			{
   				document.getElementById(divLatched).style.display = 'none'; 
   				divLatched=0;
      		}
   			countyHead.innerHTML=countyName;					// Display County Name
      	   imageId.style.display = 'block';					// Display the county data
   			divLatched=countyName;								// Remember the name so it's data element can be cleared next click
      	   countyId.style.display = 'block';				// Display County element
   		}
   	}
   	else 
   	{
   		if(state==2)
   		{
   			if (divLatched!=0)
   			{
   				document.getElementById(divLatched).style.display = 'none'; //clicking elsewhere clears menu
					divLatched=0;
   			}
            countyId.style.display = 'none';
   		}
   	}
	}
	
//******************************************* Map ******************************************************

		/*
			Usage: <script>_Map(Lat,Lon,Descr,Place,Zoom,Type,Option)</script>
			
   		GoogleMap Options
   		
   		Parameters documented at http://mapki.com/wiki/Google_Map_Parameters 
   		
   		ll=Latitude,Longitude
   		z=Zoom: 0 (whole world) to 19 (close). 15 is a good start
   		t=Type: m (Map), k (Satellite), h (Hybrid)
   		if Lat>360, uses near={placename} to locate place
   		
   		om=1 Display overview map 

			Multimap Options
			
   		Type = x to put an Icon at the point 
   		Scale = translated from Googlemap 18 step range of 0 to 17 to Multimap 13 step range 5,000 to 40,000,000
			
			MS Live Maps see:
			http://help.live.com/help.aspx?mkt=en-us&project=wl_local&querytype=keyword&query=qaf
			
		*/ 

/* Improvements 
 - add "Description" field that is passed to Google (&near) or Multimap (&Title)
 - figure out how to put an Icon at location with G2 option 
*/

 		function _Map(Lat,Lon,Descr,Place,Zoom,Type,Option)
		{
			if (Option=="G1"){Option="G2";} //temp  fix as geocode seems to have changed and locations are wrong
						
			document.write(Descr+"&#160;")
			
   		if (Option=="G1")
      		{
      			document.write("<a href='http://maps.google.com/?ie=UTF8&om=1&f=q&z="+Zoom+"&near="+Place+"&t="+Type+"' Target=_Map><img alt='click for Google map' src='../FT_Home/Images/map.gif' height='16' border='0' align='absmiddle'></a> ");
      		} 
   		else if (Option=="G2")
      		{
      			document.write("<a href='http://maps.google.com/?ie=UTF8&om=1&f=q&z="+Zoom+"&sll="+Lat+","+Lon+"&t="+Type+"' Target=_Map><img alt='click for Google map' src='../FT_Home/Images/map.gif' height='16' border='0' align='absmiddle'></a> ");
      		} 		 
			else if (Option=="MS1")
				{
					document.write("<a href='http://maps.live.com/default.aspx?v=2&lvl="+Zoom+"&cp="+Lat+"~"+Lon+"&style="+Type+"' Target=_Map><img alt='click for Microsoft map' src='../FT_Home/Images/map.gif' height='16' border='0' align='absmiddle'></a> ");
				}
			else if(Option=="M1")
      		{
      			switch (Zoom) 
      			{
                  case 0:
                     size=40000000
                     break
                  case 1:
                     size=40000000
                     break
                  case 2:
                     size=40000000
                     break
                  case 3:
                     size=40000000
                     break
                  case 4:
                     size=40000000
                     break
                  case 5:
                     size=40000000
                     break
                  case 6:
                     size=40000000
                     break
                  case 7:
                     size=40000000
                     break
                  case 8:
                     size=20000000
                     break
                  case 9:
                     size=10000000
                     break
                  case 10:
                     size=4000000
                     break
                  case 11:
                     size=2000000
                     break
                  case 12:
                     size=1000000
                     break
                  case 13:
                     size=500000
                     break
                  case 14:
                     size=200000
                     break
                  case 15:
                     size=100000
                     break
                  case 16:
                     size=50000
                     break
                  case 17:
                     size=25000
                     break
                  case 18:
                     size=10000
                     break
                  case 19:
                     size=5000
                     break
      			}
      			document.write("<a href='http://www.multimap.com/map/browse.cgi?lat="+Lat+"&lon="+Lon+"&scale="+size+"&mapsize=big&icon="+Type+"' Target=_Map><img alt='click for Multimap map' src='../FT_Home/Images/map.gif' height='16' border='0' align='absmiddle'></a> ");
      		}
		} 
		
		
			
//******************************************* Browser Version? ******************************************************

      function browserVersion()
      {
         if(window.XMLHttpRequest)
         {
         if(window.ActiveXObject)
         {
				// IE 7
				//document.write("IE7");
				Version="IE7"
         }
         else
         {
   	      // Opera, Safari, Firefox
				//document.write("The Others");
				Version="FF"
         }
         }
         else
         {
	         //IE 6 and below
				//document.write("IE6 or below");
				Version="IE"
         }   
			return Version	
		}
		

		
//******************************************* Contact ******************************************************

	function Contact(Subject)
	{
      var lhs = "&#109;"+"&#112;"+"&#108;"+"&#121;"+"&#110;"+"&#110;";
      var rhs = "gmail"+"&#46;"+"com";
      document.write("<A HREF='mailto:"+lhs+"@"+rhs+"?subject="+Subject+"'>Contact Me</a>");
	}
	
		
//******************************************* Find Position & Width of element ******************************************************

/* keep here just in case, but the otheres work just as well */
   function getElementPosition(elemID) 
	{
       var offsetTrail = document.getElementById(elemID);
       var offsetLeft = 0;
       var offsetTop = 0;
       while (offsetTrail) {
           offsetLeft += offsetTrail.offsetLeft;
           offsetTop += offsetTrail.offsetTop;
           offsetTrail = offsetTrail.offsetParent;
       }

       if (navigator.userAgent.indexOf("Mac") != -1 && 
           typeof document.body.leftMargin != "undefined") {
           offsetLeft += document.body.leftMargin;
           offsetTop += document.body.topMargin;
       }
		 elWidth=document.getElementById(elemID).offsetWidth;

    return {left:offsetLeft, top:offsetTop, width:elWidth};
   }

   function getElLeft(id) {
   return document.getElementById(id).offsetLeft;
   }
   
   function getElTop(id) {
   return document.getElementById(id).offsetTop;
   }
   
   function getElWidth(id) {
   return document.getElementById(id).offsetWidth;
   }
   
   function getElHeight(id) {
   return document.getElementById(id).offsetHeight;
   }

//******************************************* Document Create Date ******************************************************
	
/* Fetch the Doc Create Date

 */	
 	function fileModDate()
	{
   if (Date.parse(document.lastModified) != 0) 
		{
     		var modiDate = new Date(document.lastModified);
     		var monthName = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	     	var dateString = "Last modified: " + monthName[modiDate.getMonth()] + " " + modiDate.getDate() + ", " + modiDate.getFullYear();
			return dateString;
     	}	
	}

//******************************************* Header on all pages ******************************************************

	function textOff()
	{
   	document.getElementById("headerMessageArea").innerHTML="";		
   	document.getElementById("headerMessageArea").style.height=0;		
	}

	function textOn()
	{
   	document.getElementById("headerMessageArea").innerHTML=messageText;		
		setTimeout("textOff()",10000);
	}


	//
	// Display the header
	//		the 'docTitle' is position by the Style for pageTitle
	//		The 'message' is displayed at the bottom
	// 

	function buildPageHeader(docTitle, message, animate)
	{
		document.write ('<div class="pageTitle"> <a name="Top"></a>'+docTitle)

	//	If 'message' is blank, don't create the message div
		if (message!="")
		{
			document.write ('<div class="headerMessage" id="headerMessageArea">')
			document.write ('</div>')
		}
		document.write ('</div>')

	//	If 'message' is "stdMsg" the standard message, defined below, is used (to save editing every page)
      if (message=="stdMsg")
      {
      	message="Thanks for visiting the advertisers! Your regular visits to them, will help (and encourage) me to continue development of this site."; 
//      	message="If you find this site useful, visiting the advertisers will help me to support and expand it."; 
      }

	//
	//	Animation
	//
		if (message!="")
		{
	// 0 - Static text
         if (animate==0)
         {
         	document.getElementById("headerMessageArea").innerHTML=message;		
   		}

	// 1 - wait for a while, turn on text and then turn off text after a second delay
   		if (animate==1)
   		{
				messageText=message;
				setTimeout("textOn()",2000);
   		}
		}

	
	//
	//	Google advert code
	//		
		document.write ('<script type="text/javascript">'+
            'google_ad_client = "pub-6053522278480849";'+
            'google_ad_width = 728;'+
            'google_ad_height = 15;'+
            'google_ad_format = "728x15_0ads_al_s";'+
            'google_ad_channel = "";'+
            'google_color_border = "203e50";'+
            'google_color_bg = "203e50";'+
            'google_color_link = "0000FF";'+
            'google_color_text = "AECCEB";'+
            'google_color_url = "00800";'+
         '</script>'+
         '<script type="text/javascript"'+
   			'src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'+
         '</script>'
		);
	};

	
//******************************************* Footer on all pages ******************************************************

	function buildFooter(docTitle)
	{
      var lhs = "&#109;"+"&#112;"+"&#108;"+"&#121;"+"&#110;"+"&#110;";
      var rhs = "gmail"+"&#46;"+"com";

	
		document.write
		(
			'<table>'+
				'<tr>'+
      			'<td width=66% colspan=2 >'+	
            		'<form method="get" action="http://www.google.co.uk/custom" target="_top" style="margin: 0 0 0 0">'+
				      	'<table>'+
   	      				'<tr>'+

      							'<td>'+
                    	      	'<a href="http://www.google.com/"><img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google"></img></a>'+
             					'</td>'+

				            	'<td>'+
                 		         '<input type="hidden" name="domains" value="family.kiwicelts.com"></input>'+
              	      	      '<label for="sbi" style="display: none">Enter your search terms</label>'+
              	          	   '<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"  style="vertical-align: middle;"></input>'+
         
                              '<label for="sbb" style="display: none;">Submit search form</label>'+
                              '<input type="submit" name="sa" value="Google Search" id="sbb" style="color: #ffffff; background: #8098b0; border: 2.5px outset lightblue; vertical-align: middle;" >'+
										'</input>'+
                              '<input type="hidden" name="client" value="pub-6053522278480849"></input>'+
                              '<input type="hidden" name="forid" value="1"></input>'+
                              '<input type="hidden" name="ie" value="ISO-8859-1"></input>'+
                              '<input type="hidden" name="oe" value="ISO-8859-1"></input>'+
                					'<input type="hidden" name="cof"'+
										'value="GALT:#ffff99;GL:1;DIV:#666666;VLC:bbbbbb;AH:left;BGC:203e50;LBGC:44677b;ALC:ffff00;LC:ff00ff;T:ffffff;GFNT:ff00FF;GIMP:ffff00;'+
										'LH:50;LW:179;L:http://kiwicelts.com/javascripts_styles/Images/kiwicelts.gif;S:http://kiwicelts.com;FORID:1">'+
										'</input>'+
                              '<input type="hidden" name="hl" value="en"></input>'+
             					'</td>'+

				            	'<td>'+
            				   	'<table>'+
                  					'<tr>'+
                             	   	'<td>'+
                                			'<input type="radio" name="sitesearch" value=""  id="ss0"></input>'+
                                      	'<label for="ss0" title="Search the Web">Web</font></label>'+
                             			'</td>'+
                  
                                   	'<td>'+
                                      	'<input type="radio" name="sitesearch" value="family.kiwicelts.com" checked id="ss1"></input>'+
                          	            '<label for="ss1" title="Search family.kiwicelts.com">This Site</font></label>'+
                       					'</td>'+
											'</tr>'+
										'</table>'+
									'</td>'+

								'</tr>'+
							'</table>'+
                 	'</form>'+
            	'</td>'+
						
      			'<td width=34%>'+
            		'<b>'+'<A HREF=mailto:'+lhs+'@'+rhs+
						'?subject=Family&#32;Tree&#32;Enquiry>Contact Me</a>'+
						'</b>'+
         		'</td>'+

				'<tr>'+
      			'<td>'+
            		'© Copyright Murray Lynn: 2004 to 2007'+
      			'<td>'+
            		'&#160;'+docTitle+
      			'<td>'+
      	   		fileModDate()+
         		'</td>'+
				'</tr>'+
			'</table>'+


			
			'<script type="text/javascript">'+
				'google_alternate_color = "203e50";'+
            'google_ad_client = "pub-6053522278480849";'+
            'google_ad_width = 728;'+
            'google_ad_height = 90;'+
            'google_ad_format = "728x90_as";'+
            'google_ad_type = "text_image";'+
            'google_ad_channel = "";'+
            'google_color_border = "203e50";'+
            'google_color_bg = "203e50";'+
            'google_color_link = "FFFFFF";'+
            'google_color_text = "AECCEB";'+
            'google_color_url = "AECCEB";'+
            'google_ui_features = "rc:6";'+
         '</script>'+
         '<script type="text/javascript"'+
   			'src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'+
         '</script>'			
		);
	}
	
			
-->
