/* --------------- STUDIO CONNECTIONS EXTERNAL JAVASCRIPT FILE -------------- */
/*                                                                            */
/*    Description: Customised greeting to visitor for Home Page               */
/*         Client: Studio Connections                                         */
/*         Author: Colin Abrahams                                             */
/*      Copyright: 2007 Colin Abrahams, Studio Connections                    */
/*       Location: Woy Woy Bay, NSW, Australia                                */
/*        Version: SC-5.6                                                     */
/*   Last Updated: 2007-06-05                                                 */


// Last major site update
MajorUpdt = "Tue, 05 June 2007 11:30:00 GMT+1000";

// Message for new visitors or visitors without cookies enabled
MsgNew = "<h2>Welcome to the new Studio Connections website!</h2>"

// Message for returned visitors
MsgRet = "<h2>Welcome back to the new Studio Connections website!</h2>"

// Message to notify site updates for returned visitors
MsgUpdt = "<p><b>This site has been updated since your last visit.&nbsp; " +
  "</b></p>"

if (!isNaN(Date.parse(MajorUpdt))) {top.VisitUpdt = new top.Date();
top.VisitUpdt.setTime(Date.parse(MajorUpdt));}
else {top.VisitUpdt = "Error in MajorUpdt string";} top.VisitStat = "New";
if (top.VisitLast && typeof top.VisitLast == "object" && top.VisitUpdt
&& typeof top.VisitUpdt == "object") {
if (top.VisitLast.getTime() < top.VisitUpdt.getTime())
{top.VisitStat = "Updated";} else {top.VisitStat = "Returned";}}
if (top.VisitStat && top.VisitStat == "Updated") {document.writeln(MsgRet);
document.writeln(MsgUpdt);}
else if (top.VisitStat && top.VisitStat == "Returned")
{document.writeln(MsgRet);} else {document.writeln(MsgNew);}
