<!-- Begin

var isDOM = (document.getElementById ? true : false); 

var isIE4 = ((document.all && !isDOM) ? true : false);

var isNS4 = (document.layers ? true : false);

function getRef(id) {

if (isDOM) return document.getElementById(id);

if (isIE4) return document.all[id];

if (isNS4) return document.layers[id];

}

function getSty(id) {

return (isNS4 ? getRef(id) : getRef(id).style);

} 

// Hide timeout.

var popTimer = 0;

// Array showing highlighted menu items.

var litNow = new Array();

function popOver(menuNum, itemNum) {

clearTimeout(popTimer);

hideAllBut(menuNum);

litNow = getTree(menuNum, itemNum);

changeCol(litNow, true);

targetNum = menu[menuNum][itemNum].target;

if (targetNum > 0) {

thisX = parseInt(menu[menuNum][0].ref.left) + parseInt(menu[menuNum][itemNum].ref.left);

thisY = parseInt(menu[menuNum][0].ref.top) + parseInt(menu[menuNum][itemNum].ref.top);

with (menu[targetNum][0].ref) {

left = parseInt(thisX + menu[targetNum][0].x);

top = parseInt(thisY + menu[targetNum][0].y);

visibility = 'visible';

      }

   }

}

function popOut(menuNum, itemNum) {

if ((menuNum == 0) && !menu[menuNum][itemNum].target)

hideAllBut(0)

else

popTimer = setTimeout('hideAllBut(0)', 500);

}

function getTree(menuNum, itemNum) {



// Array index is the menu number. The contents are null (if that menu is not a parent)

// or the item number in that menu that is an ancestor (to light it up).

itemArray = new Array(menu.length);



while(1) {

itemArray[menuNum] = itemNum;

// If we've reached the top of the hierarchy, return.

if (menuNum == 0) return itemArray;

itemNum = menu[menuNum][0].parentItem;

menuNum = menu[menuNum][0].parentMenu;

   }

}



// Pass an array and a boolean to specify colour change, true = over colour.

function changeCol(changeArray, isOver) {

for (menuCount = 0; menuCount < changeArray.length; menuCount++) {

if (changeArray[menuCount]) {

newCol = isOver ? menu[menuCount][0].overCol : menu[menuCount][0].backCol;

// Change the colours of the div/layer background.

with (menu[menuCount][changeArray[menuCount]].ref) {

if (isNS4) bgColor = newCol;

else backgroundColor = newCol;

         }

      }

   }

}

function hideAllBut(menuNum) {

var keepMenus = getTree(menuNum, 1);

for (count = 0; count < menu.length; count++)

if (!keepMenus[count])

menu[count][0].ref.visibility = 'hidden';

changeCol(litNow, false);

}



// *** MENU CONSTRUCTION FUNCTIONS ***



function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) {

// True or false - a vertical menu?

this.isVert = isVert;

// The popout indicator used (if any) for this menu.

this.popInd = popInd

// Position and size settings.

this.x = x;

this.y = y;

this.width = width;

// Colours of menu and items.

this.overCol = overCol;

this.backCol = backCol;

// The stylesheet class used for item borders and the text within items.

this.borderClass = borderClass;

this.textClass = textClass;

// Parent menu and item numbers, indexed later.

this.parentMenu = null;

this.parentItem = null;

// Reference to the object's style properties (set later).

this.ref = null;

}



function Item(text, href, frame, length, spacing, target) {

this.text = text;

this.href = href;

this.frame = frame;

this.length = length;

this.spacing = spacing;

this.target = target;

// Reference to the object's style properties (set later).

this.ref = null;

}



function writeMenus() {

if (!isDOM && !isIE4 && !isNS4) return;



for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) {

// Variable for holding HTML for items and positions of next item.

var str = '', itemX = 0, itemY = 0;



// Remember, items start from 1 in the array (0 is menu object itself, above).

// Also use properties of each item nested in the other with() for construction.

for (currItem = 1; currItem < menu[currMenu].length; currItem++) with (menu[currMenu][currItem]) {

var itemID = 'menu' + currMenu + 'item' + currItem;



// The width and height of the menu item - dependent on orientation!

var w = (isVert ? width : length);

var h = (isVert ? length : width);



// Create a div or layer text string with appropriate styles/properties.

// Thanks to Paul Maden (www.paulmaden.com) for helping debug this in IE4, apparently

// the width must be a miniumum of 3 for it to work in that browser.

if (isDOM || isIE4) {

str += '<div id="' + itemID + '" style="position: absolute; left: ' + itemX + '; top: ' + itemY + '; width: ' + w + '; height: ' + h + '; visibility: inherit; ';

if (backCol) str += 'background: ' + backCol + '; ';

str += '" ';

}

if (isNS4) {

str += '<layer id="' + itemID + '" left="' + itemX + '" top="' + itemY + '" width="' +  w + '" height="' + h + '" visibility="inherit" ';

if (backCol) str += 'bgcolor="' + backCol + '" ';

}

if (borderClass) str += 'class="' + borderClass + '" ';



// Add mouseover handlers and finish div/layer.

str += 'onMouseOver="popOver(' + currMenu + ',' + currItem + ')" onMouseOut="popOut(' + currMenu + ',' + currItem + ')">';



// Add contents of item (default: table with link inside).

// In IE/NS6+, add padding if there's a border to emulate NS4's layer padding.

// If a target frame is specified, also add that to the <a> tag.



str += '<table width="' + (w - 8) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '"><tr><td align="left" height="' + (h - 7) + '">' + '<a class="' + textClass + '" href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a></td>';

if (target > 0) {



// Set target's parents to this menu item.

menu[target][0].parentMenu = currMenu;

menu[target][0].parentItem = currItem;



// Add a popout indicator.

if (popInd) str += '<td class="' + textClass + '" align="right">' + popInd + '</td>';

}

str += '</tr></table>' + (isNS4 ? '</layer>' : '</div>');

if (isVert) itemY += length + spacing;

else itemX += length + spacing;

}

if (isDOM) {

var newDiv = document.createElement('div');

document.getElementsByTagName('body').item(0).appendChild(newDiv);

newDiv.innerHTML = str;

ref = newDiv.style;

ref.position = 'absolute';

ref.visibility = 'hidden';

}



// Insert a div tag to the end of the BODY with menu HTML in place for IE4.

if (isIE4) {

document.body.insertAdjacentHTML('beforeEnd', '<div id="menu' + currMenu + 'div" ' + 'style="position: absolute; visibility: hidden">' + str + '</div>');

ref = getSty('menu' + currMenu + 'div');

}



// In NS4, create a reference to a new layer and write the items to it.

if (isNS4) {

ref = new Layer(0);

ref.document.write(str);

ref.document.close();

}



for (currItem = 1; currItem < menu[currMenu].length; currItem++) {

itemName = 'menu' + currMenu + 'item' + currItem;

if (isDOM || isIE4) menu[currMenu][currItem].ref = getSty(itemName);

if (isNS4) menu[currMenu][currItem].ref = ref.document[itemName];

   }

}

with(menu[0][0]) {

ref.left = x;

ref.top = y;

ref.visibility = 'visible';

   }

}



// Syntaxes: *** START EDITING HERE, READ THIS SECTION CAREFULLY! ***

//

// menu[menuNumber][0] = new Menu(Vertical menu? (true/false), 'popout indicator', left, top,

// width, 'mouseover colour', 'background colour', 'border stylesheet', 'text stylesheet');

//

// Left and Top are measured on-the-fly relative to the top-left corner of its trigger, or

// for the root menu, the top-left corner of the page.

//

// menu[menuNumber][itemNumber] = new Item('Text', 'URL', 'target frame', length of menu item,

//  additional spacing to next menu item, number of target menu to popout);

//

// If no target menu (popout) is desired, set it to 0. Likewise, if your site does not use

// frames, pass an empty string as a frame target.

//

// Something that needs explaining - the Vertical Menu setup. You can see most menus below

// are 'true', that is they are vertical, except for the first root menu. The 'length' and

// 'width' of an item depends on its orientation -- length is how long the item runs for in

// the direction of the menu, and width is the lateral dimension of the menu. Just look at

// the examples and tweak the numbers, they'll make sense eventually :).



var menu = new Array();



// Default colours passed to most menu constructors (just passed to functions, not

// a global variable - makes things easier to change later in bulk).

var defOver = '#6699cc', defBack = '#003366';



// Default 'length' of menu items - item height if menu is vertical, width if horizontal.

var defLength = 22;



// Menu 0 is the special, 'root' menu from which everything else arises.

menu[0] = new Array();

// A non-vertical menu with a few different colours and no popout indicator, as an example.

// *** MOVE ROOT MENU AROUND HERE ***  it's positioned at (5, 0) and is 17px high now.

menu[0][0] = new Menu(true, '', 12, 240, 147, '#33cccc', '#006666', 'crazyBorder', 'itemText');

// Notice how the targets are all set to nonzero values...

// The 'length' of each of these items is 40, and there is spacing of 10 to the next item.

// Most of the links are set to '#' hashes, make sure you change them to actual files.

menu[0][1] = new Item('  &nbsp;&nbsp;MEMBERS AREA', '#', '_parent', 24, 7, 21);

menu[0][2] = new Item('  &nbsp;&nbsp;Main', '#', '_parent', 24, 7, 1);

menu[0][3] = new Item('  &nbsp;&nbsp;Search', '#', '_parent', 24, 7, 2);

menu[0][4] = new Item('  &nbsp;&nbsp;Buyers', '#', '_parent', 24, 7, 3);

menu[0][5] = new Item('  &nbsp;&nbsp;Sellers', '#', '_parent', 24, 7, 4);

menu[0][6] = new Item('  &nbsp;&nbsp;Mortgages', '#', '_parent', 24, 7, 20);

menu[0][7] = new Item('  &nbsp;&nbsp;Impotant Info', '#', '_parent', 24, 7, 5);

menu[0][8] = new Item('  &nbsp;&nbsp;Local Info', '#', '_parent', 24, 7, 8);

menu[0][9] = new Item('  &nbsp;&nbsp;Golden Nugets', 'http://www.weather.ca/cities/can/toronto_ON.asp', '_parent', 24, 7, 9);

menu[0][10] = new Item('  &nbsp;&nbsp;Home', 'http://www.welistfree.info', '_parent', 24, 7, 0);





// File menu.

menu[1] = new Array();

// The File menu is positioned 0px across and 22 down from its trigger, and is 80 wide.

// All text in this menu has the stylesheet class 'item' -- see the <style> section above.

// We've passed a 'greater-than' sign '>' as a popout indicator. Try an image...?

menu[1][0] = new Menu(true, '>', 155, 0, 130, defOver, defBack, 'crazyBorder', 'itemText');

menu[1][1] = new Item('Introduction', 'http://www.welistfree.info/htm/home.html', '_parent', 22, 3, 0);

menu[1][2] = new Item('Login Now&nbsp;&nbsp;&nbsp;&nbsp;', 'http://www.welistfree.info/htm/loginFirst.html', '_parent', 22, 3, 0);

menu[1][3] = new Item('New User', 'http://www.welistfree.info/htm/new_user.html', '_parent', 22, 3, 0);



// Edit menu.

menu[2] = new Array();

menu[2][0] = new Menu(true, '>', 155, 0, 145, defOver, defBack, 'crazyBorder', 'itemText');

menu[2][1] = new Item('Hot Listings', 'http://www.welistfree.info/htm/buy.html', '_parent', 22, 3, 0);

menu[2][2] = new Item('Search Homes', 'http://www.welistfree.info/htm/mls_search.html', '_parent', 22, 3, 6);

menu[2][3] = new Item('Search ICI', '#', '_parent', 22, 3, 12);

menu[2][4] = new Item('Classified Ads', 'http://www.welistfree.info/htm/frameset_classifieds.html', '_parent', 22, 3, 0);



// Help menu

menu[3] = new Array();

menu[3][0] = new Menu(true, '>', 155, 0, 165, defOver, defBack, 'crazyBorder', 'itemText');

menu[3][1] = new Item('Buyers Residential', 'http://www.welistfree.info/htm/buy.html', '_parent', 22, 3, 0);

menu[3][2] = new Item('Buyers ICI', 'http://www.welistfree.info/htm/buyCommercial.html', '_parent', 22, 3, 0);

menu[3][3] = new Item('Buyers Checklist', '#', '_parent', 22, 3, 0);

menu[3][4] = new Item('Govt. Programs', 'http://www.gov.on.ca/MBS/english/government/housing.html', '_parent', 22, 3, 0);

menu[3][5] = new Item('Moving Checklist', 'http://www.welistfree.info/htm/movers_checklist.html', '_parent', 22, 3, 0);

menu[3][6] = new Item('Name of Condo', 'http://www.welistfree.info/htm/Condo.html', '_parent', 22, 3, 0);

menu[3][7] = new Item('Power of Sales', 'http://www.welistfree.info/htm/pos.html', '_parent', 22, 3, 0);

menu[3][8] = new Item('Land Transfer Tax', 'http://www.welistfree.info/htm/calculatorsNew.html', '_parent', 22, 3, 0);

menu[3][9] = new Item('Mortage Easy', 'http://www.welistfree.info/htm/mortgageCalculator.html', '_parent', 22, 3, 0);

menu[3][10] = new Item('Testimonials', 'http://www.gov.on.ca/MBS/english/government/testimonials.html', '_parent', 22, 3, 0);

menu[3][11] = new Item('Resume', 'http://www.welistfree.info/htm/presentation.html', '_parent', 22, 3, 0);





// Reopen menu

menu[4] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[4][0] = new Menu(true, '>', 155, 0, 165, defOver, defBack, 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[4][1] = new Item('Sellers Residential', 'http://www.welistfree.info/htm/selling.html', '_parent', 22, 3, 0);

menu[4][2] = new Item('Sellers ICI', 'http://www.welistfree.info/htm/sellingCommercial2.html', '', 22, 3, 0);

menu[4][3] = new Item('Sellers Checklist', 'http://www.welistfree.info/htm/sellers_checklist.html', '_parent', 22, 3, 0);

menu[4][4] = new Item('Terms of Service', 'http://www.welistfree.info/htm/terms.html', '', 22, 3, 0);

menu[4][5] = new Item('Testimonials', 'http://www.welistfree.info/htm/testimonials.html', '_parent', 22, 3, 0);

menu[4][6] = new Item('Resume', 'http://www.welistfree.info/htm/presentation.html', '', 22, 3, 0);

menu[4][7] = new Item('FSBO', 'http://www.welistfree.info/FSBO/index.html', '_parent', 22, 3, 0);





// Help About popout

menu[5] = new Array();

// Leftwards popout with a negative x and y relative to its trigger.

menu[5][0] = new Menu(true, '>', 155, 0, 165, defOver, defBack, 'crazyBorder', 'itemText');

menu[5][1] = new Item('VISA Approval', 'http://www.welistfree.info/htm/home_trust_visa.html', '_parent', 22, 3, 0);

menu[5][2] = new Item('Agents', 'http://www.welistfree.info/htm/agents.html', '_parent', 22, 3, 0);

menu[5][3] = new Item('Golden Nugets', 'http://www.welistfree.info/htm/golden.html', '_parent', 22, 3, 9);

menu[5][4] = new Item('Feedback', 'http://www.welistfree.info/htm/feedback.html', '_parent', 22, 3, 0);

menu[5][5] = new Item('Legal', 'http://www.welistfree.info/htm/legal.html', '_parent', 22, 3, 0);

menu[5][6] = new Item('FSBO', 'http://www.welistfree.info/FSBO/index.html', '_parent', 22, 3, 0);

menu[5][7] = new Item('Sears Club', 'http://www.welistfree.info/htm/sears.html', '_parent', 22, 3, 0);





menu[6] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[6][0] = new Menu(true, '>', 150, 0, 150, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[6][1] = new Item('Search Ontario', 'http://www.mls.ca/mls/map.asp?gt=p&gc=7&L=1&T=RR&pw=stjohns&map=1', '_parent', 22, 3, 0);

menu[6][2] = new Item('Search Canada', 'http://www.mls.ca/mls/map.asp?gt=c&gc=1&L=1&T=RR&pw=stjohns&map=1', '_parent', 22, 3, 0);





menu[7] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[7][0] = new Menu(true, '>', 170, 0, 150, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[7][1] = new Item('House Hunting', 'http://www.welistfree.info/htm/buyers_checklist.html', '_parent', 22, 2, 0);

menu[7][2] = new Item('Making an Offer', 'http://www.welistfree.info/htm/buyers_checklist.html#makingOffer', '_parent', 22, 2, 0);

menu[7][3] = new Item('Bidding Wars', 'http://www.welistfree.info/htm/buyers_checklist.html#biddingWars', '_parent', 22, 2, 0);

menu[7][4] = new Item('Checklist', 'http://www.welistfree.info/htm/buyers_checklist.html#checklist', '_parent', 22, 2, 0);

menu[7][5] = new Item('Worksheer', 'http://www.welistfree.info/htm/buyers_checklist.html#worksheet', '_parent', 22, 2, 0);

menu[7][6] = new Item('RRSP Home Buyers', 'http://www.welistfree.info/htm/buyers_checklist.html#rrspHomeBuyers', '_parent', 22, 2, 0);

menu[7][7] = new Item('5% Down Plan', 'http://www.welistfree.info/htm/buyers_checklist.html#down5Plan', '_parent', 22, 2, 0);





menu[8] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[8][0] = new Menu(true, '>', 155, -24, 165, defOver, defBack, 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[8][1] = new Item('Transit Info', 'http://www.city.toronto.on.ca/ttc/index.htm', '_parent', 22, 3, 0);

menu[8][2] = new Item('School Info', 'http://www.welistfree.info/htm/schools_site_selector.html', '_parent', 22, 3, 0);

menu[8][3] = new Item('Property Taxes', 'http://www.welistfree.info/htm/city_councils_selector2.html', '_parent', 22, 3, 0);

menu[8][4] = new Item('Places of Worship', 'http://www.toronto.com/search?type=grid&flavor_id=8&cw1=72&histoindex_left=cw1&sort=rank-desc', '_parent', 22, 3, 0);

menu[8][5] = new Item('City Councils', 'http://www.welistfree.info/htm/city_councils_selector1.html', '_parent', 22, 3, 0);

menu[8][6] = new Item('Local Photos', 'http://www.welistfree.info/htm/city_councils_selector3.html', '_parent', 22, 3, 0);



menu[9] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[9][0] = new Menu(true, '>', 175, -124, 165, defOver, defBack, 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[9][1] = new Item('Glossary', '#', '', 22, 2, 10);

menu[9][2] = new Item('Maps', '#', '', 22, 2, 11);

menu[9][3] = new Item('Health (OHIP)', 'http://www.gov.on.ca/health/', '_blank', 22, 2, 0);

menu[9][4] = new Item('Property Taxes', '#', '', 22, 2, 13);

menu[9][5] = new Item('Free Gift', '#', '', 22, 2, 14);

menu[9][6] = new Item('Govt. Programmes', '#', '', 22, 2, 15);

menu[9][7] = new Item('Landlords Only', '#', '', 22, 2, 16);

menu[9][8] = new Item('Religious Sites', 'http://www.toronto.com/search?type=grid&flavor_id=8&cw1=72&histoindex_left=cw1&sort=rank-desc', '', 22, 2, 0);

menu[9][9] = new Item('Transportation', '#', '', 22, 2, 19);

menu[9][10] = new Item('Education', '#', '', 22, 2, 18);



menu[10] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[10][0] = new Menu(true, '>', 155, 0, 150, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[10][1] = new Item('Mortgage Glossary', 'http://www.eloan.com/s/show/glossary?sid=kiGm54ALiOY6NnLDt0M8UEu02VM&user=home', '_blank', 22, 2, 0);

menu[10][2] = new Item('Real Estate Glossary', 'http://www.websiteupgrades.ca/glossary/free', '_blank', 22, 2, 0);



menu[11] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[11][0] = new Menu(true, '>', 155, 0, 150, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[11][1] = new Item('Driving & Location', 'http://maps.yahoo.com/py/maps.py', '_blank', 22, 2, 0);

menu[11][2] = new Item('Locating an Address', 'http://www.mapquest.com/', '_blank', 22, 2, 0);



menu[12] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[12][0] = new Menu(true, '>', 150, 0, 150, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[12][1] = new Item('Search MLS', 'http://www.welistfree.info/htm/frameset_classifieds2.html', '_parent', 22, 2, 0);

menu[12][2] = new Item('ICI World', 'http://iciworld.net/broker_database/', '_blank', 22, 2, 0);



menu[13] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[13][0] = new Menu(true, '>', 165, -24, 150, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[13][1] = new Item('Toronto', 'http://www.city.toronto.on.ca/taxes/', '_blank', 22, 2, 0);

menu[13][2] = new Item('Richmond Hill', 'http://www.town.richmond-hill.on.ca/townhall/fin_taxes.html', '_blank', 22, 2, 0);

menu[13][3] = new Item('Brampton', 'http://www.city.brampton.on.ca/2_5_faq.taf?rnav=home', '_blank', 22, 2, 0);

menu[13][4] = new Item('Vaughan', 'http://www.city.vaughan.on.ca/html/business/subbus/ratestax.htm', '_blank', 22, 2, 0);

menu[13][5] = new Item('Markham', 'http://www.city.markham.on.ca/markham/channels/towncentre/corporateservices/finance/taxes/taxes-rates%2Band%2Bratios.htm', '_blank', 22, 2, 0);

menu[13][6] = new Item('Mississauga', 'http://www.city.mississauga.on.ca/FINANCE/HTML/tax.htm', '_blank', 22, 2, 0);



menu[14] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[14][0] = new Menu(true, '>', 165, 0, 185, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[14][1] = new Item('Free Home Show Tickets', 'http://www.welistfree.info/htm/golden.html#', '_parent', 22, 2, 0);

menu[14][2] = new Item('Sears Club Points', 'http://www.welistfree.info/htm/sears.html', '_parent', 22, 2, 0);





menu[15] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[15][0] = new Menu(true, '>', 165, -24, 185, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[15][1] = new Item('CMHC', 'http://www.cmhc.ca/en/index.cfm', '_blank', 22, 2, 0);

menu[15][2] = new Item('Rebates GST/HST', 'http://www.ccra-adrc.gc.ca/menu/EmenuKST.html', '_blank', 22, 2, 0);



menu[16] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[16][0] = new Menu(true, '>', 165, -24, 185, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[16][1] = new Item('Legal/Financial/Admin.', 'http://www.mrlandlord.com/', '_blank', 22, 2, 0);

menu[16][2] = new Item('Housing Tribunal', 'http://www.orht.gov.on.ca/scripts/index_.asp?action=31&N_ID=3&P_ID=7634', '_blank', 22, 2, 0);



menu[17] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[17][0] = new Menu(true, '>', 165, -65, 165, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[17][1] = new Item('Vaughan', 'http://www.city.vaughan.on.ca/', '_blank', 22, 2, 0);

menu[17][2] = new Item('Richmond Hill', 'http://www.town.richmond-hill.on.ca/', '_blank', 22, 2, 0);

menu[17][3] = new Item('Brampton', 'http://www.city.brampton.on.ca/', '_blank', 22, 2, 0);

menu[17][4] = new Item('Toronto', 'http://www.city.toronto.on.ca/', '_blank', 22, 2, 0);

menu[17][5] = new Item('Markham', 'http://www.city.markham.on.ca/markham/channels/default1.htm', '_blank', 22, 2, 0);

menu[17][6] = new Item('Mississauga', 'http://www.city.mississauga.on.ca/', '_blank', 22, 2, 0);



menu[18] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[18][0] = new Menu(true, '>', 165, -24, 175, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[18][1] = new Item('School Information', 'http://libits.library.ualberta.ca/library_html/libraries/coutts/ssont.html', '_blank', 22, 2, 0);

menu[18][2] = new Item('Canadian Education Site', 'http://www.oise.utoronto.ca/%7Empress/eduweb/eduweb.html', '_blank', 22, 2, 0);

menu[18][3] = new Item('Univesity/College ', 'http://www.uc411.com/', '_blank', 22, 2, 0);





menu[19] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[19][0] = new Menu(true, '>', 165, -65, 175, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[19][1] = new Item('GTA Transit Information', 'http://www.city.toronto.on.ca/ttc/index.htm', '_blank', 22, 2, 0);

menu[19][2] = new Item('Brampton', 'http://www.city.toronto.on.ca/ttc/index.htm', '_blank', 22, 2, 0);

menu[19][3] = new Item('Markham', 'http://www.city.toronto.on.ca/ttc/index.htm', '_blank', 22, 2, 0);

menu[19][4] = new Item('Pickering', 'http://www.city.toronto.on.ca/ttc/index.htm', '_blank', 22, 2, 0);





menu[20] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[20][0] = new Menu(true, '>', 157, -124, 175, defOver, defBack, 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[20][1] = new Item('Current MTG Rates', 'http://www.tmacc.com/nawelseth/', '', 22, 2, 0);

menu[20][2] = new Item('VISA Approval', 'http://www.welistfree.info/htm/secVisa.html', '', 22, 2, 0);

menu[20][3] = new Item('Morgage Calculator', 'http://www.welistfree.info/htm/mortgageCalculator.html', '_blank', 22, 2, 0);

menu[20][4] = new Item('RBC MTG Calculator', 'https://www.royalbank.com/cgi-bin/mortgage/mortcalc.pl', '', 22, 2, 0);

menu[20][5] = new Item('MTG Isolator', 'http://www.gemortgage.ca/content/HomeBuyer/MortgageCalc/mortgage.asp', '', 22, 2, 0);

menu[20][6] = new Item('RBC Calculator', 'https://www.royalbank.com/mortgage/appr.html', '', 22, 2, 0);

menu[20][7] = new Item('CMHC', 'http://www.cmhc.ca/en/index.cfm', '_blank', 22, 2, 0);

menu[20][8] = new Item('CMHC Fees', 'http://www.cmhc.ca/en/bureho/buho/hobustst/hobustst_006.cfm', '_blank', 22, 2, 0);

menu[20][9] = new Item('CMHC Price Ceiling', 'http://www.cmhc.ca/en/moinin/moinbuho/loader.cfm?url=/commonspot/security/getfile.cfm&PageID=50319', '_blank', 22, 2, 0);

menu[20][10] = new Item('Apply on Line', 'http://www.tmacc.com/partner/secureapp.asp?id_Person=184', '', 22, 2, 0);

menu[20][11] = new Item('Mtg. Calc. Overview', 'http://www.welistfree.info/htm/mortgageCalculatorOverview.html', '', 22, 2, 0);





// File menu.

menu[21] = new Array();

// The File menu is positioned 0px across and 22 down from its trigger, and is 80 wide.

// All text in this menu has the stylesheet class 'item' -- see the <style> section above.

// We've passed a 'greater-than' sign '>' as a popout indicator. Try an image...?

menu[21][0] = new Menu(true, '>', 155, 0, 130, defOver, defBack, 'crazyBorder', 'itemText');

menu[21][1] = new Item('Members 1', 'http://www.welistfree.info/htm/membersProposal.html', '_parent', 22, 3, 22);

menu[21][2] = new Item('Members 2', 'http://www.welistfree.info/htm/membersProposal2.html', '_parent', 22, 3, 23);

menu[21][3] = new Item('Members 3', 'http://www.welistfree.info/htm/membersProposal3.html', '_parent', 22, 3, 24);





menu[22] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[22][0] = new Menu(true, '>', 136, 0, 175, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[22][1] = new Item('Treb Maps', 'loginFirst.html', '', 22, 2, 0);

menu[22][2] = new Item('Power of Sales', 'loginFirst.html', '', 22, 2, 0);

menu[22][3] = new Item('Estate Sales', 'loginFirst.html', '_blank', 22, 2, 0);



menu[23] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[23][0] = new Menu(true, '>', 136, 0, 175, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[23][1] = new Item('Treb Maps', 'loginFirst.html', '', 22, 2, 0);

menu[23][2] = new Item('East', 'loginFirst.html', '', 22, 2, 25);

menu[23][3] = new Item('West', 'loginFirst.html', '_blank', 22, 2, 0);

menu[23][4] = new Item('Central', 'loginFirst.html', '', 22, 2, 0);

menu[23][5] = new Item('North', 'loginFirst.html', '', 22, 2, 0);

menu[23][6] = new Item('Condominiums', 'loginFirst.html', '_blank', 22, 2, 0);

menu[23][7] = new Item('Homes for Rent', 'loginFirst.html', '_blank', 22, 2, 0);

menu[23][8] = new Item('ICI', 'loginFirst.html', '_blank', 22, 2, 0);

menu[23][9] = new Item('Custom Searches', 'loginFirst.html', '_blank', 22, 2, 0);



menu[24] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[24][0] = new Menu(true, '>', 136, 0, 175, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[24][1] = new Item('Charts', 'loginFirst.html', '', 22, 2, 0);

menu[24][2] = new Item('Franchise', 'loginFirst.html', '', 22, 2, 0);

menu[24][3] = new Item('Gas Stations', 'loginFirst.html', '_blank', 22, 2, 0);

menu[24][4] = new Item('How to Buy a Profitable Business', 'loginFirst.html', '_blank', 22, 2, 0);



menu[25] = new Array();

// This is across but not down... a horizontal popout (with crazy stylesheets :)...

menu[25][0] = new Menu(true, '>', 136, 0, 175, '#333366', '#666699', 'crazyBorder', 'itemText');

// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[25][1] = new Item('Treb Maps', 'loginFirst.html', '', 22, 2, 0);

menu[25][2] = new Item('Homes with Rentable Apartment ', 'loginFirst.html', '', 22, 2, 0);

menu[25][3] = new Item('Homes with walkout basement ', 'loginFirst.html', '_blank', 22, 2, 0);

menu[25][4] = new Item('Homes with 5+ bedrooms ', 'loginFirst.html', '', 22, 2, 0);

menu[25][5] = new Item('Homes (Freehold)on Subway lines ', 'loginFirst.html', '', 22, 2, 0);

menu[25][6] = new Item('Homes with 100 Ft Front age ', 'loginFirst.html', '_blank', 22, 2, 0);

menu[25][7] = new Item('Homes baking on to/close to Ravine ', 'loginFirst.html', '_blank', 22, 2, 0);



// *** OPTIONAL CODE FROM HERE DOWN ***



// These two lines handle the window resize bug in NS4. See <body onResize="...">.

// I recommend you leave this here as otherwise when you resize NS4's width menus are hidden.



var popOldWidth = window.innerWidth;

nsResizeHandler = new Function('if (popOldWidth != window.innerWidth) location.reload()');





// This is a quick snippet that captures all clicks on the document and hides the menus

// every time you click. Use if you want.



if (isNS4) document.captureEvents(Event.CLICK);

document.onclick = clickHandle;



function clickHandle(evt)

{

 if (isNS4) document.routeEvent(evt);

 hideAllBut(0);

}





// This is just the moving command for the example.



function moveRoot()

{

 with(menu[0][0].ref) left = ((parseInt(left) < 100) ? 100 : 5);

}

//  End -->
