function goInit(){if(!document.getElementsByTagName){return}var c=document.getElementsByTagName("a");for(var b=0;b<c.length;b++){var a=c[b];if(a.getAttribute("href")&&a.getAttribute("rel")=="external"){a.target="_blank"}}content()}function content(){var a=document.getElementById("content_left");var f=document.getElementById("content_centre");var i=document.getElementById("content_right");var h=document.getElementById("counties_bottom").offsetHeight;var e=a.offsetHeight;var d=f.offsetHeight;var c=i.offsetHeight;maxh1=e>d?e:d;maxh2=maxh1>c?maxh1+"px":c+"px";a.style.height=maxh2;f.style.height=maxh2;i.style.height=maxh2;document.getElementById("content_wrapper").style.height=maxh2;for(var g=1;g<5;g++){document.getElementById("counties_"+g).style.height=(h-40)+"px"}var b=document.getElementById("content_header");phead2=b.innerHTML;b.innerHTML='<img src="images/header/'+phead2+'/" width="450" height="55" alt="'+phead2+'" title="'+phead2+'" />'}function numOnly(a){var b=a.value;a.value=b.replace(/[^0-9]+/g,"")}var win=null;function NewWindow(f,d,b,c,a,e){if(e=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-b)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-c)-75)):100}if(e=="center"){LeftPosition=(screen.width)?(screen.width-b)/2:100;TopPosition=(screen.height)?(screen.height-c)/2:100}else{if((e!="center"&&e!="random")||e==null){LeftPosition=0;TopPosition=20}}settings="width="+b+",height="+c+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+a+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(f,d,settings)}var tipwidth="150px";var tipbgcolor="lightyellow";var disappeardelay=250;var vertical_offset="0px";var horizontal_offset="-3px";var ie4=document.all;var ns6=document.getElementById&&!document.all;if(ie4||ns6){document.write('<div id="fixedtipdiv" style="visibility:hidden;width:'+tipwidth+";background-color:"+tipbgcolor+'" ></div>')}function getposOffset(d,c){var b=(c=="left")?d.offsetLeft:d.offsetTop;var a=d.offsetParent;while(a!=null){b=(c=="left")?b+a.offsetLeft:b+a.offsetTop;a=a.offsetParent}return b}function showhide(d,c,f,b,a){if(ie4||ns6){dropmenuobj.style.left=dropmenuobj.style.top="-500px"}if(a!=""){dropmenuobj.widthobj=dropmenuobj.style;dropmenuobj.widthobj.width=a}if(c.type=="click"&&d.visibility==b||c.type=="mouseover"){d.visibility=f}else{if(c.type=="click"){d.visibility=b}}}function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function clearbrowseredge(d,b){var a=(b=="rightedge")?parseInt(horizontal_offset)*-1:parseInt(vertical_offset)*-1;if(b=="rightedge"){var c=ie4&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(c-dropmenuobj.x<dropmenuobj.contentmeasure){a=dropmenuobj.contentmeasure-d.offsetWidth}}else{var c=ie4&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(c-dropmenuobj.y<dropmenuobj.contentmeasure){a=dropmenuobj.contentmeasure+d.offsetHeight}}return a}function fixedtooltip(d,c,b,a){if(window.event){event.cancelBubble=true}else{if(b.stopPropagation){b.stopPropagation()}}clearhidetip();dropmenuobj=document.getElementById?document.getElementById("fixedtipdiv"):fixedtipdiv;dropmenuobj.innerHTML=d;if(ie4||ns6){showhide(dropmenuobj.style,b,"visible","hidden",a);dropmenuobj.x=getposOffset(c,"left");dropmenuobj.y=getposOffset(c,"top");dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(c,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(c,"bottomedge")+c.offsetHeight+"px"}}function hidetip(a){if(typeof dropmenuobj!="undefined"){if(ie4||ns6){dropmenuobj.style.visibility="hidden"}}}function delayhidetip(){if(ie4||ns6){delayhide=setTimeout("hidetip()",disappeardelay)}}function clearhidetip(){if(typeof delayhide!="undefined"){clearTimeout(delayhide)}};
