
var dMsg = false;
var cStts = false;
var dfltStts = 'Real Estate School of New England';
window.defaultStatus = 'Real Estate School of New England';
/* Tool Tip Setup */
var ttImage = '<img src="favicon.png" width="16" height="16" style="border:#999999 1px solid;">&nbsp;&nbsp;';
var ttImage10 = '<img src="images/promissor_icon_016x016.png" width="16" height="16" style="border:#999999 1px solid;">&nbsp;&nbsp;';
var ttMsg00 = 'Real Estate School of New England&#8217;s Home Page, Bridgeport CT Location.';
var ttMsg01 = 'CENTURY 21 Scala Group invites you to attend a Complimentary Career Information Session.';
var ttMsg02 = 'The &#8220;Principles &amp; Practices of Real Estate&#8221; course is presented several times weekly over 15 sessions.';
var ttMsg03 = 'Course location information, including address, direction, and map.';
var ttMsg04 = 'Course dates and times, including current, printable schedules.';
var ttMsg05 = 'Course Instructor information including a brief biography.';
var ttMsg06 = 'Course Application, apply on-line securely, or print a copy and mail or Fax your application.';
var ttMsg07 = 'Real Estate School of New England&#8217;s affiliations.';
var ttMsg08 = 'Education Policies and Procedures.';
var ttMsg09 = 'Information about the Connecticut State Real Estate Examinations, links to information about Connecticut Real Estate Law and Regulations, Real Estate Code of Ethics and Standards of Practice, and a Real Estate Glossary.';
var ttMsg10 = ttImage10+'Information available from the promissor.com website about the Connecticut State Real Estate Examinations.';
var ttMsg11 = 'Questions that are frequently asked about real estate education in the State of Connecticut.';
var ttMsg12 = 'Real Estate School of New England&#8217;s Web Site Map.';
var ttAdMsg01 = '<img src="images/etmo_icon_16x16.png" width="16" height="16">&nbsp;&nbsp;Sponsored in part by Transaction Management Online.&nbsp; This link opens a new browser window for the e-TMO.com website.';
var ttAdMsg02 = '<img src="images/nlo_icon_16x16.png" width="16" height="16">&nbsp;&nbsp;Sponsored in part by Nancy Laggis Orlando.&nbsp; This link opens a new browser window for the nancyorlando.com website.';
var ttAdMsg03 = '<img src="images/aarelo_icon_16x16.png" width="16" height="16">&nbsp;&nbsp;Sponsored in part by Access America Relocation.&nbsp; This link opens a new browser window for the accessamericarelocation.com website.';
var ttAdMsg04 = '<img src="images/nsm_icon_16x16.png" width="16" height="16">&nbsp;&nbsp;Sponsored in part by Northern States Mortgage.&nbsp; This link opens a new browser window for the northernstatesmortgage.com website.';
var ttAdMsg05 = '<img src="images/scm_icon_16x16.png" width="16" height="16">&nbsp;&nbsp;Sponsored in part by SCM Insurance.&nbsp; This link opens a new browser window for the scmins.com website.';
var ttAdMsg06 = '<img src="images/nlo_icon_16x16.png" width="16" height="16">&nbsp;&nbsp;Sponsored in part by Nancy Laggis Orlando.&nbsp; This link opens a new browser window for the nancyorlando.com website.';
var ttMsg000 = ttImage+'You are here.&nbsp; This is the Real Estate School of New England&#8217;s Home Page, Bridgeport CT Location.';
var ttMsg001 = ttImage+'You are here.&nbsp; This is the Complimentary Career Information Session Page.';
var ttMsg002 = ttImage+'You are here.&nbsp; This is the &#8220;Principles &amp; Practices of Real Estate&#8221; Course Information Page.';
var ttMsg003 = ttImage+'You are here.&nbsp; This is the Course Location Information Page.';
var ttMsg004 = ttImage+'You are here.&nbsp; This is the Course Dates And Times Page.';
var ttMsg005 = ttImage+'You are here.&nbsp; This is the Course Instructor Page.';
var ttMsg006 = ttImage+'You are here.&nbsp; This is the Course Application Page.';
var ttMsg007 = ttImage+'You are here.&nbsp; This is the Real Estate School of New England&#8217;s Affiliations Page.';
var ttMsg011 = ttImage+'You are here.&nbsp; This is the Frequently Asked Questions Page.';
var ttMsg012 = ttImage+'You are here.&nbsp; This is the Web Site Map.';
var ttMsg101 = 'Real Estate School of New England complimentary career information session flyer.';
var ttMsg102 = 'More details to the directions.';
var ttMsg103 = 'This link opens a small window where you will be able to construct and send an electronic message to the school office.';
var ttMsg104 = 'This link opens another window where you will be able to view and print the course registration form.';
var ttMsg105 = 'Use our convenient and secure on-line course registration form.';
var ttMsg106 = 'This link opens a PDF form that displays the course schedule, which may also be printed.';
/* BEGIN Sponsored Ads Setup */
var adCount = 2;
var adNow = new Date();
var adSeconds = adNow.getSeconds();
var adSelect = adSeconds % adCount;
var adDiv3 = new Array();
var adDiv4 = new Array();
var adDiv5 = new Array();
adDiv3[0] = '<a class="ads" href="http://www.northernstatesmortgage.com/" title="Northern States Mortgage">Northern States Mortgage</a>';
adDiv4[0] = '';
adDiv5[0] = 'Northern States Mortgage uses the most advanced technology available to close loans quickly, at a low cost. Simple and worry-free process for new home and second mortgages, refinance, and home equity loans.';
adDiv3[1] = '<a class="ads" href="http://www.scmins.com/" title="SCM Insurance">SCM Insurance</a>';
adDiv4[1] = '<a class="ads" href="http://www.scmins.com/" title="SCM Insurance">www.scmins.com</a>';
adDiv5[1] = 'SCM Insurance specializes in the most competitive auto insurance and fast service for homeowners insurance needed for closings. Providing personal service at prices lower than nationally advertised insurance companies.';
/* Removed */
// adDiv3[0] = '<a class="ads" href="http://www.e-tmo.com/" target="etmo" onmouseover="return escape(ttAdMsg01);">Transaction Management Online</a>';
// adDiv4[0] = '<a class="ads" href="http://www.e-tmo.com/" target="etmo" onmouseover="return escape(ttAdMsg01);">e-TMO.com</a>';
// adDiv5[0] = 'Your single point of contact for real estate transactions.<br><a class="ads" href="http://www.e-tmo.com/" target="etmo" onmouseover="return escape(ttAdMsg01);">e-TMO.com</a> is ready 24x7, coordinating the interactions required to complete your buy or sell transaction &#8230;';
// adDiv3[1] = '<a class="ads" href="http://www.nancyorlando.com/" target="nlo" onmouseover="return escape(ttAdMsg02);">Real Estate Solutions</a>';
// adDiv4[1] = '<a class="ads" href="http://www.nancyorlando.com/" target="nlo" onmouseover="return escape(ttAdMsg02);">nancyorlando.com</a>';
// adDiv5[1] = 'Nancy Laggis Orlando presents Real Estate Solutions for the 21st Century.&nbsp; See the latest Real Estate Newsletter, check out the Moving Tips, sample the current Mortgage Rates &#8230;';
// adDiv3[4] = '<a class="ads" href="http://www.nancyorlando.com/" target="scm" onmouseover="return escape(ttAdMsg05);">Nancy Laggis Orlando</a>';
// adDiv4[4] = '<a class="ads" href="http://www.nancyorlando.com/" target="scm" onmouseover="return escape(ttAdMsg05);">www.nancyorlando.com</a>';
// adDiv5[4] = 'The highest priority of my office staff is to help clients buy or sell their property as quickly as possible by leveraging every marketing tool available. Check out the monthly newsletter, moving tips, sample mortgage rates &#8230;';
// adDiv3[0] = '<a class="ads" href="http://www.accessamericarelocation.com/" target="aar" onmouseover="return escape(ttAdMsg03);">Access America Relocation</a>';
// adDiv4[0] = '';
// adDiv5[0] = 'Access America Relocation is committed to taking the stress and strain out of the relocation process &#8230; all areas of Real Estate Relocation Services, Corporate Personnel, Family, Government and Military Services.';
/* Removed */
/* END Sponsored Ads Setup */

//**********************************************************
//  FUNCTION: makeCopyright
//    creates a copyright statement
//
function makeCopyright() {
  var thisDate = new Date();
  var thisYear = thisDate.getFullYear();
  var thisCopyright = '<p class="copyright">Copyright(&copy;) 2007-'+thisYear+' Real Estate School of New England.<br />All rights reserved.</p>';
  document.write(thisCopyright);
}

// function that displays status bar message
function dm(msgStr) {
dMsg = false;
document.returnValue = false;
if(document.images) {
  window.status = msgStr;
  dMsg = true;
  document.returnValue = true; }
}

// dStts: Display Status
function dStts(oStatus) {
cStts = false;
if(document.images) {
  window.status = oStatus;
  cStts = true; }
}

// displayAd: Display Advertisement
function displayAd() {
	document.write('<div class="ad001">');
	document.write('<div class="ad002">Sponsored Ad</div>');
	if(adDiv3[adSelect]) { document.write('<div class="ad003">' + adDiv3[adSelect] + '</div>'); }
	if(adDiv4[adSelect]) { document.write('<div class="ad004">' + adDiv4[adSelect] + '</div>'); }
	if(adDiv5[adSelect]) { document.write('<div class="ad005">' + adDiv5[adSelect] + '</div>'); }
	document.write('</div>');
	document.writeln();
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

/*
Open Centered Popup Window Script-
© DHTML Shock (www.dhtmlshock.com)
To add more shock to your site, visit www.DHTML Shock.com
*/
function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"){
  var myLeft = (screen.width-myWidth)/2;
  var myTop = (screen.height-myHeight)/2;
  features+=(features!='')?',':'';
  features+=',left='+myLeft+',top='+myTop;
  }
window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

/**********************************************************/
/* FUNCTION: dSession - Display Session Date / Time       */
/* PARAMETERS:                                            */
/*  pDate format: January 13, 2008 12:00:00               */
/*  pClass: CSS class to be used                          */
/**********************************************************/
function dSession(pDate,pClass) {
  var todaysDate = new Date();
  var todaysTime = todaysDate.getTime();
  var sessionTime = Date.parse(pDate);
  var sessionDate = new Date(sessionTime);
  var sessionDisplay = sessionDate.toLocaleString();
  sessionDisplay = sessionDisplay.replace(" 0", " ");
  sessionDisplay = sessionDisplay.replace(/:00 AM/, "am");
  sessionDisplay = sessionDisplay.replace(/:00 PM/, "pm");
  if(sessionTime>todaysTime) {
    var Announcement = '<p class="'+pClass+'">NOTE: On '+sessionDisplay+', CENTURY 21 Scala Group will be hosting a career information session at the Bridgeport Location (<img src="http://us.i1.yimg.com/us.yimg.com/i/us/mp/gr/mplogo.gif" style="width:99px;height:13px;border-style:none;margin-right:5px;" alt="[ Yahoo! Maps ]" title="[ Yahoo! Maps ]"> <a class="pagenav" href="http://maps.yahoo.com/map?q1=3860%20Main%20Street%2C+Bridgeport%2C+CT+06606" title="Map and Directions">Map / Directions</a>.)&nbsp; <a class="pagenav" href="sessionreg.html" title="Free Career Information Registration">Sign up here</a>.</p>';
    document.write(Announcement);
  }
}

/**********************************************************/
/* FUNCTION: dNotice - Display Notice                     */
/* PARAMETERS:                                            */
/*  pDateStart format: January 13, 2008 12:00:00          */
/*  pDateExpire format: January 14, 2008 23:59:59         */
/*  pMessage: message to be displayed during window       */
/*  pMessageAlt: message to be displayed outside window   */
/**********************************************************/
function dNotice(pDateStart,pDateExpire,pMessage,pMessageAlt) {
  var todaysDate = new Date();
  var todaysTime = todaysDate.getTime();
  var messageTimeFrom = Date.parse(pDateStart);
  var messageTimeTo = Date.parse(pDateExpire);
  /********************************************************/
  /*  If today's date falls within the display dates,     */
  /*  display the message                                 */
  /********************************************************/
  if(todaysTime>messageTimeFrom && todaysTime<messageTimeTo) {
    document.write(pMessage);
  }
  /********************************************************/
  /*  If today's date falls outside the display dates,    */
  /*  display the alternate message if available          */
  /********************************************************/
  else {
    if(pMessageAlt != '') {
      document.write(pMessageAlt);
    }
  }
}

/**********************************************************/
/* FUNCTION: dSession - Display Next Session Start Date   */
/* PARAMETERS:                                            */
/*  pDate format: January 13, 2008 12:00:00               */
/**********************************************************/
//function dSession(pDate) {
//  var expireDate = new Date();
//  expireDate.setDate(myDate.getDate()+3);
//  var expireTime = expireDate.getTime();
//  var todaysDate = new Date();
//  var todaysTime = todaysDate.getTime();
//  var sessionTime = Date.parse(pDate);
//  var sessionDate = new Date(sessionTime);
//  var sessionDisplay = sessionDate.toLocaleString();
//  if(expireTime>todaysTime) {
//    var nextSession = '<h2 class="pagesubhead"><span class="yellowhighlight">Next Session Start Date: '+pDate+'</span></h2>';
//    document.write(nextSession);
//  }
//  else {
//    var nextSession = '<h2 class="pagesubhead"><span class="yellowhighlight">Next Session Start Date: Please call school voice mail 203-483-7710 or Nancy Orlando direct at 203-433-1460.</span></h2>';
//    document.write(nextSession);
//  }
//}

