function DoNothing(){}function getApplicationName(){if((navigator.appName=='Microsoft Internet Explorer')&&(document.lastModified.substring(3,5)==', '))return'Opera';else
return navigator.appName;}function getObjectReference(name){var d;if(document.getElementById)d=document.getElementById(name);else if(document.all)d=document.all(name);return d;}function getCurrentPage(){thePage=window.document.location.pathname.toLowerCase();var pos=thePage.lastIndexOf('\\');if(pos!=-1)return thePage.slice(pos+1);else
{pos=thePage.lastIndexOf('\/');if(pos!=-1)return thePage.slice(pos+1);else
return thePage;}}function isTextOnlyPage(){var path=window.document.location.pathname.toLowerCase();var txtOnly=false;if((path.indexOf('\/text\/')>-1)||(path.indexOf('\\text\\')>-1))txtOnly=true;return txtOnly;}function positionControls(){var App=getApplicationName();var height=0;if(App=='Netscape')height=screen.avalHeight;else
height=screen.height;var e;e=getObjectReference('vlMenu');if(e!=null)e.style.height=(height-115)+'px';if(App!="Opera"){e=getObjectReference('dvFooter');if(e!=null)e.style.top=(height-220)+'px';e=getObjectReference('dvStats');}if(e!=null)e.style.top=(height-280)+'px';e=getObjectReference('dvBody');if(e!=null)e.style.height=(515-(864-height))+'px';if(App=='Netscape'){e=getObjectReference('hlHorizontal');if(e!=null)e.style.top='92px';e=getObjectReference('hlHeader');if(e!=null)e.style.top='94px';}}function addMenuItems(isText){var m=getObjectReference('dvmenu');if(m!=null){var newText='';newText='<div class="menuItem"> <a href="index.html" id="index" title="launch the home page" onmouseover="window.status=&#39;launch the home page&#39;; return true" onmouseout="window.status=&#39;&#39;;return true"> Home</a> </div>';newText+='<div class="menuItem"> <a href="mission.html" id="mission" title="Launch the mission statement page" onmouseover="window.status=&#39;launch the mission statement page&#39;; return true" onmouseout="window.status=&#39;&#39;;return true"> Mission Statement</a> </div>';newText+='<div class="menuItem"> <a href="officials.html" id="officials" title="Launch the Who&rsquo;s who page" onmouseover="window.status=&#39;launch the Who&rsquo;s who page&#39;; return true" onmouseout="window.status=&#39;&#39;;return true"> Who&rsquo;s who</a> </div>';newText+='<div class="menuItem"> <a href="activities.html" id="activities" title="Launch the church activities page" onmouseover="window.status=&#39;launch the church activities page&#39;; return true" onmouseout="window.status=&#39;&#39;;return true"> Church Activities</a> </div>';newText+='<div class="menuItem"> <a href="location.html" id="location" title="Launch the church location page" onmouseover="window.status=&#39;launch the church location page&#39;; return true" onmouseout="window.status=&#39;&#39;;return true"> Location</a> </div>';newText+='<div class="menuItem"> <a href="aboutus.html" id="aboutus" title="Launch the about our church page" onmouseover="window.status=&#39;launch the about our church page&#39;; return true" onmouseout="window.status=&#39;&#39;;return true"> About us</a> </div>';newText+='<div class="menuItem"> <a href="http://www.urcyorkshire.org.uk" target="_blank" id="synod" title="Visit the United Reformed Church Yorkshire Synod Site" onmouseover="window.status=&#39;link to the United Reformed Church Yorkshire Synod Site&#39;; return true" onmouseout="window.status=&#39;&#39;;return true"> Yorkshire Synod Site</a> </div>';newText+='<div class="menuItem"> <a href="links.html" id="links" title="Launch the page holding links to other sites" onmouseover="window.status=&#39;launch the other links page&#39;; return true" onmouseout="window.status=&#39;&#39;;return true"> Other links</a> </div>';if(!isTextOnlyPage())newText+='<div class="menuItem"> <a id="slideshow" onmouseover= "window.status=&#39;launch the Presentation Photos&#39;; return true" title="launch the Presentation Photos" onmouseout="window.status=&#39;&#39;;return true" href="slideshow.html" onClick="return show_hide_box(this,100,8,690,635,&#39;2px dotted&#39;);" name="slideshow">Presentation photos</a> </div>';newText+='<div class="menuItem"> <a href="contactus.html" id="contactus" title="Launch the page to get into contact with us" onmouseover="window.status=&#39;launch the contact form page&#39;; return true" onmouseout="window.status=&#39;&#39;;return true"> Contact us</a> </div>';newText+='<div class="menuItem"> <a href="sitemap.html" id="sitemap" title="Launch the site map page" onmouseover="window.status=&#39;launch the site map page&#39;; return true" onmouseout="window.status=&#39;&#39;;return true"> Site map</a> </div>';m.innerHTML=newText;newText=getCurrentPage();newText=newText.substring(0,newText.length-5);var n=getObjectReference(newText);if(n!=null){n.style.color='blue';n.title='You are already on this page';n.onclick=function(){return false;};}}}function lastModified(){var App=getApplicationName();var s=document.lastModified;var mn=new Array('January','Febrary','March','April','May','June','July','August','September','October','November','December');var d=0,m='',y=0;if(App=='Netscape'){if(s=='')return('[Not reported by Safari]');var pos=s.indexOf('/',0);if(pos==2){m=eval(s.substring(0,2));d=eval(s.substring(3,5));y=eval(s.substring(6,10));m=mn[m-1]}else
{pos=s.indexOf(',',0);s=s.slice(pos+1,s.length);pos=s.indexOf(' ',1);if(s.charCodeAt(1)>57)m=s.substring(0,pos);else
d=eval(s.substring(0,pos));s=s.slice(pos+1,s.length);if(m.length>0){pos=s.indexOf(',',1);d=eval(s.substring(0,pos));}else
{pos=s.indexOf(' ',1);m=s.substring(0,pos);}s=s.slice(pos+1,s.length);pos=s.indexOf(' ',1);y=eval(s.substring(0,pos));}}else
{mn=new Array('January','Febrary','March','April','May','June','July','August','September','October','November','December');if(App=='Opera'){d=eval(s.substring(5,7));m=0;while(s.substring(8,11)!=mn[m].substring(0,3)){m++;}m++;y=eval(s.substring(12,16));}else
{d=eval(s.substring(3,5));m=eval(s.substring(0,2));y=eval(s.substring(6,10));}}switch(d){case 1:case 21:case 31:d=d+'st';break;case 2:case 22:d=d+'nd';break;case 3:case 23:d=d+'rd';break;default:d=d+'th';break;}if(App=='Netscape')return(d+' '+m+' '+y);else
return(d+' '+mn[m-1]+' '+y);}function showevents(){var App=getApplicationName();if(App=='Microsoft Internet Explorer'||App=='Opera')window.open('specialevents.htm','SpecialEvents','status=0,width=600,height=500,left=150,top=100 border=0');else
window.open('specialevents.htm','SpecialEvents','status=0,width=600,height=500,screenX=150,screenY=100 border=0');}var pos=640;function movead(item,speed,pauseSeconds){pos-=5;if(pos<10){pause(pauseSeconds);pos=640;}var d=getObjectReference(item);if(d!=null){d.style.left=pos;window.setTimeout('movead("'+item+'",'+speed+','+pauseSeconds+');',speed);}}function showObject(obj){var o=getObjectReference(obj);if(o!=null)o.style.visibility='visible';}function hideObject(obj){var o=getObjectReference(obj);if(o!=null)o.style.visibility='hidden';}function correctCopyrightYear(creationYear){var d=new Date();if(d.getFullYear()>creationYear)return creationYear+' - '+d.getFullYear();else
return correctCopyrightYear=creationYear;}function move_box(an,box,fleft,ftop){var cleft=0;var ctop=0;var obj=an;if(fleft>=0&&ftop>=0){cleft=fleft;ctop=ftop;}else
{while(obj.offsetParent){cleft+=obj.offsetLeft;ctop+=obj.offsetTop;obj=obj.offsetParent;}ctop+=an.offsetHeight+8;}box.style.left=cleft+'px';if(document.body.currentStyle&&document.body.currentStyle['marginTop']){ctop+=parseInt(document.body.currentStyle['marginTop']);}box.style.top=ctop+'px';}function show_hide_box(an,left,top,width,height,borderStyle){var href=an.href;var boxdiv=document.getElementById(href);var App=getApplicationName();var aheight=height;if(App!='Microsoft Internet Explorer')aheight-=40;if(boxdiv!=null){if(boxdiv.style.display=='none'){move_box(an,boxdiv,left,top);boxdiv.style.display='block';}else
boxdiv.style.display='none';return false;}boxdiv=document.createElement('div');boxdiv.setAttribute('id',href);boxdiv.setAttribute('className','drag');boxdiv.style.display='block';boxdiv.style.position='absolute';boxdiv.style.width=width+'px';boxdiv.style.height=aheight+'px';boxdiv.style.border=borderStyle;boxdiv.style.backgroundColor='gray';boxdiv.style.zIndex=1001;var contents=document.createElement('iframe');contents.setAttribute('id','photoframe');contents.scrolling='no';contents.frameBorder='0';contents.style.top=top+'px';contents.style.width=width+'px';contents.style.height=(aheight-10)+'px';contents.src=href;boxdiv.appendChild(contents);document.body.appendChild(boxdiv);move_box(an,boxdiv,left,top);if(App=='Microsoft Internet Explorer')document.onmousedown=dragbyclass;document.ondblclick=function(){boxdiv.style.display='none';return false;};return false;}var ie=document.all;var ns=document.getElementById&&!ie;function dragbyclass(e){var fobj=ns?e.target:event.srcElement;if(fobj.tagName=='DIV'&&fobj.className=='drag'){var ev=e||event;var offsetx=ev.clientX-fobj.offsetLeft;var offsety=ev.clientY-fobj.offsetTop;document.onmousemove=function(){fobj.style.left=ev.clientX-offsetx;fobj.style.top=ev.clientY-offsety;return false;};fobj.onmouseup=function(){document.onmousemove=null;}}}function removeElement(divNum){var d=document.getElementById('myDiv');var olddiv=document.getElementById(divNum);d.removeChild(olddiv);}function pause(seconds){for(var c=0;c<(seconds*1000000);c++){;}}