function BrowserSniff () {

	// determines browser type and version
	BR = new Array();
	
	// get browser type and version
	BR.appname = navigator.appName;
	BR.version = parseInt(navigator.appVersion);
	BR.agent = navigator.userAgent;
	BR.name = "Other";
	dom = "w3c"

	if (BR.agent.indexOf('IE 6') != -1) {
		BR.name = "IE6";
		BR.brand = "IE"
	} else if (BR.agent.indexOf('IE 5.5') != -1) {
		BR.name = "IE5.5";
		BR.brand = "IE"
		dom = "IE";		
	} else if (BR.agent.indexOf('IE 5') != -1) {
		BR.name = "IE5";
		BR.brand = "IE"
		dom = "IE";
	} else if (BR.agent.indexOf('IE 4') != -1) {
		BR.name = "IE4";
		BR.brand = "IE"
		dom = "IE";
	} else if (BR.agent.indexOf('Mozilla/4') != -1) {
		BR.name = (BR.agent.indexOf('Opera') != -1) ? "OperaNS4" : "NS4";
		BR.brand = "NS"
		dom = "NS4";
	} else if (BR.agent.indexOf('Mozilla/5') != -1) {
		BR.name = (BR.agent.indexOf('Opera') != -1) ? "OperaNS6" : "NS6";
		BR.brand = "NS";
    } else if (BR.agent.indexOf('Opera') != -1) {
		BR.name = "Opera";
	}
	
}
	
BrowserSniff();

function alignPage(){
	mainheight = document.getElementById('image').offsetHeight;
	textheight = document.getElementById('text').offsetHeight+40;
	if (mainheight > textheight){
		document.getElementById('text').style.height = mainheight-60;
	}
	document.getElementById('lotext').style.visibility = "visible";
}

function writeMenuBar(){
if (BR.brand == "NS") {
document.write('<div id = "menubar"><div id="menu1" style="clear:left; float:left;width:127px;height:23px;background-color: #FFDC76"><center><a href ="../index.html"><b>&nbsp;Home&nbsp;</b></a></center></div><div id="menu2" style="float:left; width:139px;height:23px;background-color: #054333"><center><a href ="personal_lines.html">&nbsp;Personal Lines&nbsp;</a></center></div><div id="menu3" style="float:left; width:216px;height:23px;background-color: #054333"><center><a href ="investment.html">&nbsp;Investments & Financial Planning&nbsp;</a></center></div><div id="menu4" style="float:left; width:146px;height:23px;background-color: #054333"><center><a href ="employee_benefits.html">&nbsp;Employee Benefits&nbsp;</a></center></div><div id="menu5" style="float:left; height:23px;background-color: #054333"><center><a href ="individual_insurance.html">&nbsp;Individual Insurance&nbsp;</a></center></div></div>');
}
else {
document.write('<div id = "menubar" style="clear:left"><div id="menu1" style="display:inline; width:127px;height:23px;background-color: #FFDC76"><center><a href ="../index.html"><b>&nbsp;Home&nbsp;</b></a></center></div><div id="menu2" style="display:inline; width:139px;height:23px;background-color: #054333"><center><a href ="personal_lines.html">&nbsp;Personal Lines&nbsp;</a></center></div><div id="menu3" style="display:inline; width:216px;height:23px;background-color: #054333"><center><a href ="investment.html">&nbsp;Investments & Financial Planning&nbsp;</a></center></div><div id="menu4" style="display:inline; width:146px;height:23px;background-color: #054333"><center><a href ="employee_benefits.html">&nbsp;Employee Benefits&nbsp;</a></center></div><div id="menu5" style="display:inline; height:23px;background-color: #054333"><center><a href ="individual_insurance.html">&nbsp;Individual Insurance&nbsp;</a></center></div></div>');
}
}

function writeLoMenuBar(){
if (BR.brand == "NS") {
document.write('<div id = "lomenubar"><div id="lomenu1" style="border-top:1px solid #FFF;float:left; width:152px;height:23px;background-color: #FFDC76"><center><a href ="../index.html"><b>&nbsp;MacLean Agency&nbsp;</b></a></center></div><div id="lomenu2" style="float:left; width:122px;height:23px;background-color: #054333"><center><a href ="personal_lines.html">&nbsp;Personal Lines&nbsp;</a></center></div><div id="lomenu3" style="float:left; width:212px;height:23px;background-color: #054333"><center><a href ="investment.html">&nbsp;Investments & Financial Planning&nbsp;</a></center></div><div id="lomenu4" style="float:left; width:142px;height:23px;background-color: #054333"><center><a href ="employee_benefits.html">&nbsp;Employee Benefits&nbsp;</a></center></div><div id="lomenu5" style="float:left;height:23px;background-color: #054333"><center><a href ="individual_insurance.html">&nbsp;Individual Insurance&nbsp;</a></center></div></div>');
}
else {
document.write('<div id = "lomenubar" style="clear:left;border-top:1px solid #FFF;"><div id="lomenu1" style="display:inline; width:127px;height:23px;background-color: #FFDC76"><center><a href ="../index.html" onMouseOver = "lohideMenu();"><b>&nbsp;Home&nbsp;</b></a></center></div><div id="lomenu2" style="display:inline; width:139px;height:23px;background-color: #054333"><center><a href ="personal_lines.html" onMouseOver = "loshowMenu(\'1\')">&nbsp;Personal Lines&nbsp;</a></center></div><div id="lomenu3" style="display:inline; width:216px;height:23px;background-color: #054333"><center><a href ="investment.html" onMouseOver = "loshowMenu(\'2\')">&nbsp;Investments & Financial Planning&nbsp;</a></center></div><div id="lomenu4" style="display:inline; width:146px;height:23px;background-color: #054333"><center><a href ="employee_benefits.html" onMouseOver = "loshowMenu(\'3\')">&nbsp;Employee Benefits&nbsp;</a></center></div><div id="lomenu5" style="display:inline; height:23px;background-color: #054333"><center><a href ="individual_insurance.html" onMouseOver = "loshowMenu(\'4\')">&nbsp;Individual Insurance&nbsp;</a></center></div></div>');
}
}



function writeFoot(){

var lWriteString = '<table id = "foot-table" width="673" border="0" align="center" cellpadding="10" cellspacing="1">';
lWriteString += '<tr>';
lWriteString += '<td align="center" valign="middle"><font color="#ADCAC3" size="1" face="Verdana, Arial, Helvetica, sans-serif">';
lWriteString += 'MacLean Agency : Insurance and Financial Services<br>';
lWriteString += '138 Nassau Street, 3rd Floor<br>';
lWriteString += 'Princeton, NJ 08542 <br>v: 609.683.6900  f: 609.683.9232<br><a href = "http://www.macleanagency.com"><b><span class = "wh">info@macleanagency.com</span></b></a><br>';
lWriteString += '<br> Copyright &copy; 2008 MacLean Agency. All Rights Reserved.</font></td>';
lWriteString += ' </tr>';
lWriteString += '<tr></tr>';
lWriteString += '</table>';
document.write(lWriteString);

}