// This JavaScript script file is used to hold any alert message you wish.
// By; Mark A. Agius, (c) 20/10/2008.
// Updated on; 'edit the next line'
var jsUpdatedon = "22/10/2008 -  2:05pm";
var jsUpdatedon = "26/12/2008 -  7:00pm";
var jsUpdatedon = "26/12/2008 <SMALL>( 7:00pm)</SMALL>";
var jsUpdatedon = "19/01/2009 <SMALL>( 1:32pm)</SMALL>";
var jsUpdatedon = "&nbsp;1/05/2009 <SMALL>(12:30am)</SMALL>";
var jsUpdatedon = "16/07/2009 <SMALL>( 5:00pm)</SMALL>";
var jsUpdatedon = "20/10/2009 <SMALL>( 1:00pm)</SMALL>";
var jsUpdatedon = "13/12/2009 <SMALL>( 5:00pm)</SMALL>";
var jsUpdatedon = "&nbsp;2/01/2010 <SMALL>( 9:30pm)</SMALL>";

if(ImagesDir==undefined) {ImagesDir = "images/"}
// Ok  if   calling  from http://markagius.co.uk/index.htm
// Not ok if calling from http://markagius.co.uk/webpages/news.htm
// Set ImagesDir = "../images/" for news.htm page.


/* You can edit the following values here to change the message.
     mmmTitle    = The title text at the top of the message box.
     mmmBody     = The main text message. (With HTML tags)
     mmmColour   = The background colour of the main message area.
     mmmDelay    = This is the delay time to display the message. (0 = display now, -1 = dont display it)
     jsUpdatedon = The date this message was uploaded.
     mmmVisLevel = The level of visabilty;
(Before calling this code)
     ImagesDir   = Set this value before calling this code to set the path to the images directory.
The default values are;
  mmmTitle    = Undefined
  mmmBody     = Undefined
  mmmColour   = Undefined
  mmmDelay    = 2000 // (2000 = display after 2 seconds, -1 = don't display after a time)
  jsUpdatedon = The date of this file.
  mmmVisLevel = 90;
*/

  // var mmmTitle  = "Website news.";
  // var mmmColour = "#0F0F0F";
  // var mmmBody   = "<Big>There is no new website news to report on at this time.</Big><BR><R>As of; "+jsUpdatedon;
  // var mmmDelay  = 5000;
  // mmmVisLevel   = 90;

//var mmmTitle  = "Website news.";
//var mmmColour = "#3F3F3F";
//var mmmDelay  = -1;
//var mmmBody   = "<Big>There is no new website news to report on at this time.</Big><BR><R>As of; "+jsUpdatedon;

var mmmTitle    = "Website news.";
var mmmDelay    = -1;
var mmmVisLevel = 85;
var mmmBody = "<FONT FACE=\"Arial\" SIZE=\"4\">\n";
//
mmmBody = mmmBody+"<FONT FACE=\"Arial\" COLOR=\"#FFFF9F\" SIZE=\"2\">\n";
mmmBody = mmmBody+"<Big>There is no new website news to report on at this time.</Big><BR><R>As of; "+jsUpdatedon;
mmmBody = mmmBody+"<BR>\n";




mmmBody = mmmBody+"<BR>\n";
mmmBody = mmmBody+"<HR>\n";
mmmBody = mmmBody+"<BR>\n";
mmmBody = mmmBody+"<NOBR><FONT SIZE=\"3\" COLOR=\"#FFFF4F\"><B>No news is good news.</B></FONT></NOBR><BR>";
mmmBody = mmmBody+"<BR>\n";
mmmBody = mmmBody+"There's no new news to report on about this web site,<BR>\n";
mmmBody = mmmBody+"but please checkout my blog page for any old news.<BR>\n";
mmmBody = mmmBody+"I've moved my blog page and is now hosted by <A HREF=\"http://www.blogger.com\" TARGET=\"_blank\">http://www.blogger.com</A><BR>\n"
mmmBody = mmmBody+"This means I can spend more time updating my programs<BR>\n"
mmmBody = mmmBody+"and less time writing and editing the HTML code for my blog page.<BR>\n"
mmmBody = mmmBody+"My blog page is at; <A HREF=\"http://markagiusblog.blogspot.com\" TARGET=\"_blank\">http://markagiusblog.blogspot.com</A><BR>\n"
mmmBody = mmmBody+"You can still view the blog in a frame on this web site at;<BR>\n"
mmmBody = mmmBody+"<A HREF=\"http://markagius.co.uk/webpages/contents.htm?SubPage=http://markagiusblog.blogspot.com\" TARGET=\"_blank\"><NOBR><Big><B>http://markagius.co.uk/webpages/contents.htm</B></Big>?SubPage=</NOBR>http://markagiusblog.blogspot.com</A><BR>\n"
mmmBody = mmmBody+"<BR>\n"
mmmBody = mmmBody+"Also your messages will be added automatically by you when you click on <NOBR>' <B>Post Comment</B> ',</NOBR><BR>\n"
mmmBody = mmmBody+"and not in a few days after I have got round to reading my email and editing the HTML code for the blog page.<BR>\n"

mmmBody = mmmBody+"<BR>\n"
mmmBody = mmmBody+"<HR>\n"


//mmmBody = mmmBody+"</FONT>";


mmmBody = mmmBody+"<BR>\n"
mmmBody = mmmBody+"<B>\n";
mmmBody = mmmBody+"Please let me know what you think about this site and any suggestions of what I could put on it.<BR>"
mmmBody = mmmBody+"You can e-mail me at; <A HREF=\"MailTo:MarkAgius@markagius.co.uk?Subject=&#xF8; Your web site &#xF8; \" OnMouseOver=\"self.status='E-mail; MarkAgius@markagius.co.uk';return true\" OnMouseOut=\"self.status='-';return true\">MarkAgius@markagius.co.uk</A><BR>"
mmmBody = mmmBody+"</B>\n";



mmmBody = mmmBody+"<BR>\n";
mmmBody = mmmBody+"<P Align=\"right\"><SMALL>This message was uploaded on; "+jsUpdatedon+"</SMALL></P>\n";
mmmBody = mmmBody+"</FONT>\n";

//
function s(NumberValue, retString){
  if(NumberValue==undefined){NumberValue=0}
  if(retString  ==undefined){retString  ="s"}
  if(Math.abs(NumberValue)==1){return ""}
  return retString;
}
function DaysTo(TargetDate){
  // Workout and return the total number of days from today to TargetDate.
  if(TargetDate==undefined){
    // Not defined, so set to Christmas day for this year.
    var ThisYear = new Date();
    var ThisYear = ThisYear.getFullYear();
    var TargetDate = new Date(ThisYear,12-1,25, 0,0,0);
  }
  var tempVal = new Date(); // The Date and time now.
  var dateNow = new Date(tempVal.getFullYear(), tempVal.getMonth(), tempVal.getDate(), 0,0,0); // The start of today.
  return -dayDiff(dateNow,TargetDate);
}
function dayDiff(sDate, eDate){
  // Workout and return the total number of days from one date to the next.
  if(sDate  ==undefined){sDate  = new Date();}
  if(eDate  ==undefined){eDate  = new Date();}
  var daysApart = Math.round((eDate-sDate)/86400000);
  return daysApart;
}
// -- end of file -- //
  