function setElementVisibility(elementToSet, showItSwitch, keepPlacementSwitch){
 if (showItSwitch) {
   elementToSet.style.display = "inline";
   elementToSet.style.visibility = "visible";
 }
 else{
   if (keepPlacementSwitch) {
     elementToSet.style.display = "inline";
     elementToSet.style.visibility = "hidden";
   }
   else{
     elementToSet.style.display = "none";
   }
 }
}
function hideTable(){
 setElementVisibility(document.getElementById("myTable"), false, true);
}

function showTable(){
 setElementVisibility(document.getElementById("myTable"), true);
}




var dlp = document.location.pathname;

var pageName = dlp.substring(dlp.lastIndexOf('/')+1,dlp.lastIndexOf('.'));

if (pageName.substring(pageName.lastIndexOf('/')) != '/') {

//	top.document.title = top.document.title + ' | ' + pageName

	top.document.title = 'MLC - Investment Banking'

}



function navitem(pageTitle,title) {

	// home, about, team, sectors, services, clients, resources

	document.writeln ('<tr><td background="none"><img src="images\/c.gif" width="18" height="37" alt="" \/><\/td>');

	document.writeln ('<td background="none">');

	if (pageTitle == title) {

		document.writeln('<img src="images\/nav_carat.gif" name="c_' + title + '" width="12" height="12" alt="&gt;" \/>');

	} else {

		document.writeln ('<img src="images\/c.gif" name="c_' + title + '" width="12" height="12" alt="" \/>');

	}

	document.writeln('<\/td>');

//	document.write ('<td background=none><a href="' + title + '.html" target=_self>')

//	document.write ('<img src="images\/nav_' + title + '.gif" width=84 height=16 border=0 alt="' + title.toUpperCase() + '" \/>');

//	document.write ('<img src="images\/nav_' + title + '.gif" width=84 height=16 border=0 onMouseOver="var currCarat = document.images[\'c_' + title].src;document.images[\'c_' + title].src=\'images\/nav_carat.gif\';" onMouseOut="document.images[\'c_' + title].src=currCarat;" alt="' + title.toUpperCase() + '" \/>');

//	document.write ('<\/a><\/td></tr>');

//	document.writeln ('<td background="none"><a href="' + title + '.html" target="_self"><img src="images\/nav_' + title + '.gif" width="84" height="16" border="0" onMouseOver="var currCarat = document.images[\'c_' + title].src;document.images[\'c_' + title].src=\'images\/nav_carat.gif\';" onMouseOut="document.images[\'c_' + title].src=currCarat;" alt="' + title.toUpperCase() + '" \/><\/a><\/td></tr>");

	document.writeln ('<td background="none"><a href="' + title + '.html" target="_self"><img src="images\/nav_' + title + '.gif" width="84" height="16" border="0" alt="' + title.toUpperCase() + '" \/><\/a><\/td></tr>');

}



function swapImg(title) {

//	var currImg = document.images['c_' + title];

	alert(title);

}



function navsubitem(pageTitle,title) {

	document.writeln('		<tr><td background="none"><img src="images\/c.gif" width="10" height="27" border="0" alt="" \/><\/td>');

	document.writeln('		<td background="none">');

	if (pageTitle == title) {

		document.writeln('<img src="images\/nav_carat.gif" name="c_' + title + '" width="12" height="12" border="0" alt="&gt;" \/>');

	} else {

		document.writeln('<img src="images\/c.gif" name="c_' + title + '" width="12" height="12" border="0" alt="" \/>');

	}

	document.writeln('<\/td>');

	document.writeln('		<td background="none"><a href="' + title + '.html" target="_self"><img src="images\/nav_' + title + '.gif" width="84" height="16" border="0" alt="' + title.toUpperCase() + '" \/><\/a><\/td><\/tr>');				

}



function displayNav(pageTitle) {

	document.writeln ('<table cellpadding="0" cellspacing="0" border="0">');

	document.writeln ('<colgroup><col valign="top"><\/colgroup>');

	document.writeln ('<tr><td width="131" height="379" valign="top">');

	document.writeln ('	<table cellpadding="0" cellspacing="0" border="0" height="379" background="none"><tr><td valign="top" background="none">');

	document.writeln ('		<table cellpadding="0" cellspacing="0" background="none" border="0">');

	document.writeln ('<tr><td colspan="3" background="none"><img src="images/c.gif" width="1" height="12" border="0" alt="" \/><\/td><\/tr>');

	navitem(pageTitle,'index');

	navitem(pageTitle,'about');

	navitem(pageTitle,'team');

	navitem(pageTitle,'sectors');

	navitem(pageTitle,'services');

	navitem(pageTitle,'clients');

	navitem(pageTitle,'resources');

	document.writeln('		<\/table>');

	document.writeln('	<\/td><\/tr><tr><td valign="top" background="none">');

	document.writeln('		<table background="none" border=0 cellpadding=0 cellspacing=0 background="none">');

	navsubitem(pageTitle,'contact');

	navsubitem(pageTitle,'directions');

	navsubitem(pageTitle,'employment');

	document.writeln('		<\/table>');

	document.writeln('	<\/td><\/tr><\/table>');

	document.writeln('<\/td><\/tr>');

	document.writeln('<\/table>');

}



function masterNav(pageTitle, linkStr) {

//	alert(pageName)

	displayHeader();



	document.writeln('	<table width="740" cellpadding="0" cellspacing="0" border=0" class="main">');

	document.writeln('	<colgroup><col valign="top" align="right" width="180"><col valign="top" width="44"><col valign="top" width="516"><\/colgroup>');

	document.writeln('	<tr>');

	document.writeln('	<td valign="top" align="right">');

	displayNav(pageTitle);

	document.writeln('	<\/td>');

	document.writeln('	<td>&nbsp;<\/td>');

	document.writeln('	<td class="content" valign="top">');

	document.writeln('	<table border="0" width="425" height="55" cellpadding="0" cellspacing="0">');

	document.writeln('	<tr><td background="images\/masthead_' + pageTitle + '.gif">');

	document.writeln('<\/td><\/tr><\/table>');



}



function displayFooter() {

	document.write('<\/td><\/tr><\/table>');

	document.writeln('<table width="740" cellpadding="4" cellspacing="0" border="0" class="footer">');

	document.writeln('<tr><td><img src="images\/c.gif" width="362" height="1" border="0" alt="" \/><\/td><td><img src="images\/c.gif" width="362" height="1" border="0" \/><\/td><\/tr>');

	document.writeln('<tr><td><img src="images\/c.gif" width="1" height="1" border="0" alt="" \/><\/td><\/tr>');

	document.writeln('<tr><td class="footer">&copy; 2011 McNamee Lawrence &amp; Co. LLC<\/td>');

	document.writeln('<td align="right" class="footer">Member <a class="footerLink" href="http://www.finra.org" target="blank">FINRA</a> and SIPC<\/td>');

	document.writeln('<\/tr><\/table><\/div>');



}


