///////////////////////////////////////////////////////////////////////////
//                                                                       //
//  INTEXT Version 3.5.0 by Timmonet                                     //
//  http://www.timmonet.co.uk                                            //
//                                                                       //
//  New Opener, Copyright, Noclick,                                      //
//  and Last Modified routines                                           //
//  by Tim. Pickford-Jones. http://www.timmonet.co.uk                    //
//                                                                       //
///////////////////////////////////////////////////////////////////////////

// *** PRINT COPYRIGHT YEAR ***********************************************

function crite()
{  var NowDate     = new Date();
   var NowYear     = NowDate.getFullYear();
   document.write(NowYear+" ");
}

// *** PRINT DATE & TIME PAGE LAST LOADED TO SERVER ***********************

function LastUpdated()
{  var datUpdated  = new Date(document.lastModified) ;
   var dayarray    = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
   var montharray  = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
   var ordinalarray= new Array("st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st");
   var year        = datUpdated.getFullYear();
   var month       = datUpdated.getMonth();
   var dayno       = datUpdated.getDate() ;
   var dayname     = datUpdated.getDay();
   var timhrs      = datUpdated.getHours();
   var timmins     = datUpdated.getMinutes();
   var spacer      = "&nbsp;";
   if (timhrs <10) timhrs  = "0"+timhrs;
   if (timmins<10) timmins = "0"+timmins;
   document.write("Page last modified "+dayarray[dayname]+spacer+dayno+ordinalarray[dayno-1]+" "+montharray[month]+", "+year+".  "+timhrs+":"+timmins);
}

// *** OPEN PAGE IN NEW BLIND WINDOW OF SPECIFIED SIZE ********************

function NewWin(url,wd,hg)
{  var windowprops ="width="+wd+",height="+hg+",directories=no,titlebar=no,toolbar=no,scrollbars=no,status=no,resizable=no,menubar=no";
   var windowname  =(Math.round(Math.random()*1000)).toString();
   window.open(url,windowname,windowprops);
}

// *** PRESENT USER WITH MESSAGE IF THEY RIGHT CLICK **********************

var ClickMessage="Photographs and content © Northallerton Auto Club.\n\nHigh res copies of pictures may be available \nfor certain users. This page code is copyright\nkindly observe intellectual ownership.\n\nPlease see the 'Copyright' page for details.";
function noClickIE() {
   if (document.all) {
      window.alert(ClickMessage);
      return false;
   }
}
function noClickNS(e) {
   if (document.layers||(document.getElementById&&!document.all)) {
      if (e.which==2||e.which==3) {
         window.alert(ClickMessage);
         return false;
      }
   }
}
if (document.layers) {
   document.captureEvents(Event.MOUSEDOWN);
   document.onmousedown=noClickNS;
} else {
   document.onmouseup=noClickNS;
   document.oncontextmenu=noClickIE;
}

document.oncontextmenu=new Function("window.alert(ClickMessage); return false;");

// *** END OF INTEXT ******************************************************
