﻿

var javascript_version = 1.0;
var  javascript_version = 1.1;
var  javascript_version = 1.2;
var  javascript_version = 1.3;



// BROWSER DETECTION FOR STYLE SHEET


//document.write('<link rel="stylesheet" href="styles.css" type="text/css">');

//var browserName = navigator.appName;

//if (browserName == "Netscape") {
//	document.write('<link rel="stylesheet" href="edeal_ns.css" type="text/css">');
//	} else {
//	document.write('<link rel="stylesheet" href="edeal_ie.css" type="text/css">');
//	}


// PRELOAD MAIN MENU - HOME PAGE ONLY

mainOn  = new Array();
mainOff = new Array();
mainRoll = new Array();
var num_images = 9;
var imagePrefix = "images/";

if (javascript_version > 1.0)
	{
	for(count = 1; count <= num_images; count++)
		{
		mainRoll[count]      = new Image();
		mainRoll[count].src  = imagePrefix + "main_" + count + "_o.gif";
		mainOff[count]       = new Image();
		mainOff[count].src   = imagePrefix + "main_" + count + ".gif";
		mainOn[count]        = new Image();
		mainOn[count].src    = imagePrefix + "main_" + count + "_d.gif";
		}
	}

// ROLLOVER FUNTION MAIN MENU

function rollOver(id,menu){
var imageName = menu + id;
var swpSRC = "images/" + menu + "_o.gif"
document[imageName].src=swpSRC;
}

function rollOut(id,menu){
var imageName = menu + id;
var swpSRC = "images/" + menu + ".gif"
document[imageName].src=swpSRC;
}





	
// RANDOM ANNOUNCEMENTS
// TO ADD A NEW ANNOUNCEMENT YOU MUST CHANGE THE NUMBER IN THE LOOP IN THE INITIAL 'for' STATEMENT
// AFTER THAT YOU ADD A NEW BATCH OF 'announce' ARRAYS NUMBERED AS BELOW
// THEN CHANGE THE VARIABLE 'numANNOUNCE' TO HOW MANY ANNOUNCEMENTS THERE ARE
// THIS IS TRUE FOR ALL OF THE RANDOM PAGES



// RANDOM ANNOUNCEMENT FOR THE INDEX.HTML PAGE

function indexAnnounce(){

var announce = new Array(2);


announce [0] = '<DIV class="footer">Identified as a leader in her field and listed in The Canadian Legal Lexpert Directory. One of only four lawyers selected under her specialty in the Windsor area.</DIV>';

announce [1] = '<DIV class="footer">Invited to be a Round Table Mentor at the Advocates Society "Taking Care of Business" Conference (Toronto, September 25, 2007.) </DIV>';


var numAnnounce = 2;
var randomzizer = numAnnounce -1;
var ranNum= Math.round(Math.random()*randomzizer);

var text = announce [ranNum];

document.write(text);

}

