// JavaScript Document
var prototype_date = "13 Sep 06";
var theUser = "Jamie Fuller";
//var theUser = "Laura Russell";
var ie = (document.all) ? true:false;
var other = (document.getElementById) ? true:false;
var gebi=document.getElementById;
var currSel="";
var imgX = new Image();
var imgC = new Image();
// commented for perf change
var loc=tbSub(window.location);
var navLabels = new Array('WHO WE ARE','WHAT WE OFFER','NEWS AND INSIGHTS','CLIENT ACCESS');
var navHrefs = new Array('pub_whoweare.html','pub_whatweoffer.html','pub_newsinsights.html','pub_clientaccess.html');
var navIds= new Array('nav0','nav1','nav2','nav3');
var i=0;
var j=0;


var navArray = new Array();
var navLinkArray = new Array();
var navLinkArrayLabels = new Array();
 
var iIndex =0;
var jIndex=0;

function loadMenuBL()
{
//removed test1
	displayMenubcs();
	displayMenulns();
}

function loadMenuB()
{
	displayMenubcs();
}

function loadMenuL()
{
	displayMenulns();
}

function displayMenubcs(){
var fullURL = window.location.pathname;
var sNVPairs = fullURL.split("/");
var p='p';
var snvp;
var menu='';
for (var i = 1; i < sNVPairs.length; i++)
    {
        var sNV = sNVPairs[i].split(",");
	if(i == sNVPairs.length-1) {
		var snv1 = new String(sNV);
	        var snv2=snv1.split(".");
	        snvp=snv2[0];
	        if(i >4) snvp = snvp+menu;
	        snvp = 'B'+snvp+p; 
	        objs = get_object(snvp);
		if(objs) objs.style.display = ""; 
	} else {
		sNV1='B'+sNV;
		if(i >4) sNV1 = sNV1+menu;
		objs = get_object(sNV1);
		if(objs) objs.style.display = "";
		if(i==4) menu = sNV;
	}
    }
}

function get_object(id) {
      var object = null;
      if( document.layers ) {
       object = document.layers[id];
      } else if( document.all ) {
       object = document.all[id];
      } else if( document.getElementById ) {
       object = document.getElementById(id);
      }
      return object;
  }


function get_object2(id) {
      var object = null;
      if( document.layers ) {
       object = document.layers[id];
      } else if( document.all ) {
       object = document.all[id];
      } else if( document.getElementById ) {
       object = document.getElementById(id);
      } else object =FALSE;
      return object;
  }

function displayMenulns(){
var fullURL = window.location.pathname;

var sNVPairs = fullURL.split("/");

var menufinal='';
var p='pa';
var snvp;
var menu='';
var menuprv='';
var menuprvall='';
for (var i = 1; i < sNVPairs.length; i++)
    {
        var sNV = sNVPairs[i].split(",");
        
	if(i == sNVPairs.length-1) {
	        var snv1 = new String(sNV);
	        var snv2=snv1.split(".");
	        snvp = snv2[0]+p;
	        if(i==4) snvp = menu+snvp;
	        sNV = snv2[0];
		objs = get_object2(sNV);
		objs2 = get_object2(snvp);
	        if(objs) objs.style.display = "";
  		if(objs2) { objs2.style.display = ""; objs2.className = "navigSelected"; }
  		else if (i<5) { menuprvall=menuprvall+p; objs2 = get_object2(menuprvall);  if(objs2)  objs2.className = "navigSelected";  }
  		if(i>4){
		//var sNVprv = sNVPairs[i-1];
		//objs2 = get_object2(sNVprv );
		objs2 = get_object2(menuprv);
		if(objs2) { objs2.className = "navigSelected"; }
		}
		
	}else {
		objs = get_object2(sNV);
		if(objs) objs.style.display = "";
		if(i==3) menu = sNV;
		if(i==4) menuprv= menu+sNV+p;
		menuprvall = sNV;
	}
    }

}


function inArray(needle) {
  for (var i=0; i < this.length; i++) {
    if (this[i] === needle) {
      return i;
    }
  }
  return false;
}
Array.prototype.inArray = inArray;
String.prototype.toInt = function() {
    var a = new Array();
    for (var i = 0; i < this.length; i++) {
        a[i] = this.charCodeAt(i);
    }
    return a;
}
function swapData(el,p1,p2,p3,p4) {
	gebi(el).innerHTML = swapTable(p1,p2,p3,p4);	
}
// ALL SHOULD REALLY BE ONE FUNCTION, BUT ALAS -- NO TIME
function popHelp() {
	window.open('pub_help.html','thewin','width=620,height=650,toolbars=0');	
}
function popSave() {
	window.open('pvt_saveAs.html','thewin','width=588,height=467,toolbars=0');	
}
function incCal() {
	with(document) {
		write('<DIV ID="cal2" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV>');	
	}
}
function popPrint() {
	window.open('pvt_print.html','thewin','width=640,height=582,toolbars=0,scrollbars=yes');	
}
function viewDate() {
	document.write(prototype_date);	
}
function chopText(val) {
	var end = (val.indexOf("(")-1);
	val = val.substring(0,end);
	return val;
}
function alignTop(el,lay,pixwidth,pixheight) {
	var vContentLayer=document.getElementById(lay);
	var vEl=document.getElementById(el);
	xPos = vEl.offsetLeft;
	yPos = vEl.offsetTop;
	tempEl = vEl.offsetParent;
	while (tempEl != null) {
        	xPos += tempEl.offsetLeft;
		yPos += tempEl.offsetTop;
        	tempEl = tempEl.offsetParent;
    	}
	if(ie) {
	layswap(lay, eval(xPos+pixwidth), eval(yPos+pixheight));
	} else if(other) {
	layswap(lay, eval(xPos+100), eval(yPos+75));
	}
}
function alignNav(el,lay,pixwidth,pixheight) {
	var vContentLayer=document.getElementById(lay);
	var vEl=document.getElementById(el);
	xPos = vEl.offsetLeft;
	yPos = vEl.offsetTop;
	tempEl = vEl.offsetParent;
	while (tempEl != null) {
        	xPos += tempEl.offsetLeft;
		yPos += tempEl.offsetTop;
        	tempEl = tempEl.offsetParent;
    	}
	layswap(lay, eval(xPos+pixwidth), eval(yPos+pixheight));
}
function activate(num) {
		gebi('sub' + num).style.color = "#DFEDF4";
	}
	function writeGroups() {
		with(document) {
			for(i=0;i<gItems3.length;i++) {
				write('<option value="' + gItems3[i][0] + '">' + gItems3[i][0] + '</option>');	
			}
		}
	}
	function groupsIcons(status) {
		var tableVar = "";
			if(status==1) {
					tableVar+='<img width="11" height="1" />&#160;<a href="#"><img src="img/icon1_shiftAllDown.gif" width="11" height="12" alt="Move Down" border="0"/></a>&#160;<img width="11" height="1" />&#160;<img width="11" height="1" />';
			} else if(status==2) {
					tableVar+='<a href="#"><img src="img/icon1_shiftAllUp.gif" width="11" height="12" border="0" alt="Move Up"/></a>&#160;<a href="#"><img src="img/icon1_shiftAllDown.gif" width="11" height="12" alt="Move Down" border="0"/></a>&#160;<img width="11" height="1" />&#160;<img width="11" height="1" />';
			} else {
					tableVar+='<a href="#"><img src="img/icon1_shiftAllUp.gif" width="11" height="12" border="0" alt="Move Up"/></a>&#160;<a href="#"><img src="img/icon1_shiftAllDown.gif" width="11" height="12" alt="Move Down" border="0"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" width="11" height="12"  border="0"  alt="Delete"/></a>&#160;<a href="pvt_profile_editgroups.html"><img src="img/icon1_edit.gif" width="11" height="12" border="0" alt="Edit"/></a>';
			}
			tableVar+='&#160;';
		return tableVar;
	}
	function writeAccts() {
		document.write('<option value="" style="background-color:#CECECE"><b>Trusts...</b></option>');
		for(i=0;i<16;i++) {
			document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
		}
		document.write('<option value="" style="background-color:#CECECE"><b>IRAs...</b></option>');
		for(i=17;i<19;i++) {
			document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
		}
		document.write('<option value="" style="background-color:#CECECE"><b>Brokerage Accounts...</b></option>');
		for(i=20;i<22;i++) {
			document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
		}
		document.write('<option value="" style="background-color:#CECECE"><b>Personal IM Accounts...</b></option>');
		for(i=23;i<36;i++) {
			document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
		}
		
		
		
	}
function layswap(id,xPos,yPos) {
	document.getElementById(id).style.left = xPos + "px";
	document.getElementById(id).style.top = yPos + "px";
	if (document.getElementById(id).style.display == "none") {
		document.getElementById(id).style.display = "inline";
	} else {
		document.getElementById(id).style.display = "none";
	}
}
function setRows() {
		
}
function footer() {
	with(document) {
		write('<hr width="774px"><div class="footer">');
			write('<a href="#">Warranties &amp; Disclosures</a> &nbsp;|&nbsp; <a href="#">Privacy</a> &nbsp;|&nbsp; <a href="#">BNYMellon.com</a> &nbsp;|&nbsp; <a href="#">Sitemap</a>');
		write('</div>');
	}
}
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}
function getText(type,el,lid) {
	var theText = 	el.innerText;
	gebi(lid).innerText = theText;
	layswap(type,0,0);
}
function acctswap(type,val) {
	if(type=="toSel") {
		if(val=="3") {
			gebi('toRow').style.display="inline";
		} else {
			gebi('toRow').style.display="none";
		}
	} else if(type=="fromSel") {
		if(val=="3") {
			gebi('fromRow').style.display="inline";
		} else {
			gebi('fromRow').style.display="none";
		}
	}
}
function togglePanel(el,lay,xP,yP) {
	var theDivs = new Array('save','list','group','acct','assets','advfilters','basis','pships','callayer','tickers','trans','tf','classes','acctgroup','timeframe','grouponly');
	for(i=0;i<theDivs.length;i++) {
		if(theDivs[i]!=lay){
		gebi(theDivs[i]).style.display = "none";
		}
	}
	if(gebi(lay).style.display=="none") {
		alignTop(el,lay,xP,yP);
	} else {
		layswap(lay,xP,yP);
	}
	currSel = el;
}
function toggleRow(rowId) {
		if(gebi(rowId).style.display=="inline") {
			gebi(rowId).style.display="none";
			gebi('img1').src="img/icon1_expand.gif";
		} else {
			gebi(rowId).style.display="inline";
			gebi('img1').src="img/icon1_contract.gif";
		}
	}
	function rsToggle() {
		if(tbSub(window.location)=="pvt_relsummary.html") {
		// All NON-HARD CODED EXPANDO/COLLAPSOS HAPPEN HERE
			var dispVars = new Array();
			for(i=0;i<3;i++) {
				dispVars.push(gebi('chart' + (i+1)).style.display);	
			}
			if(dispVars[0]=="inline") {
				for(j=2;j<21;j++) {
					hardToggle('datarow' + j,'img1');	
				}
			} else if(dispVars[1]=="inline") {
				for(j=2;j<95;j++) {
					hardToggle('datarow' + j,'img1');	
				}
			} else if(dispVars[2]=="inline") {
				for(j=2;j<18;j++) {
					hardToggle('datarow' + j,'img1');	
				}
			}
		} else {
			return false;	
		}
	}
	function hardToggle(rowId,imgId) {
		if(gebi(rowId).style.display=="inline") {
			gebi(rowId).style.display="none";
			gebi(imgId).src="img/icon1_expand.gif";
		} else {
			gebi(rowId).style.display="inline";
			gebi(imgId).src="img/icon1_contract.gif";
		}
	}
	function positionMods() {
		var xPos = gebi('container').offsetWidth;
		var yPos = "138";
		gebi('sidemods').style.left = (xPos+10) + "px";
		gebi('sidemods').style.top = yPos + "px";
	}
function jump(target) {
	location=target;	
}
function checkLabel(val) {
	if(val=="1") {
		gebi('datefield').innerHTML = "<strong>Transfer Date*:</strong>";
		gebi('duration').style.display = 'none';
	} else {
		gebi('datefield').innerHTML = "<strong>Start Date*:</strong>";
		gebi('duration').style.display = 'inline';
	}
}
function chk(val) {
	if(val=="ach") {
		gebi('achRow').style.display='inline';
		gebi('wtRow').style.display='none';
		gebi('cRow').style.display='none';
	} else if(val=="wt") {
		gebi('achRow').style.display='none';
		gebi('wtRow').style.display='inline';
		gebi('cRow').style.display='none';
	} else if(val=="check") {
		gebi('achRow').style.display='none';
		gebi('wtRow').style.display='none';
		gebi('cRow').style.display='inline';
	}
}
function groupSwap(flag,linkEl) {
	var theTable1 = gebi('swapResults');
	var theTable2 = gebi('swapIncluded');
	var activeRow = linkEl.parentNode.parentNode.rowIndex;
	var cellCt = linkEl.parentNode.parentNode.childNodes.length;
	if(flag==1) {
	var fromRow = theTable2.childNodes[0].childNodes[activeRow];
	var fromCell = fromRow.childNodes[0];
		var remRowCt = gebi('swapResults').childNodes[0].childNodes.length;
		var theBody = linkEl.parentNode.parentNode.parentNode;
		var resultsRowCt = theTable1.childNodes[0].childNodes.length;
		for(j=0;j<resultsRowCt;j++) {
			var toCell = theTable1.childNodes[0].childNodes[j].childNodes[0];
			if(fromCell.innerHTML==toCell.innerHTML) {
				toCell.parentNode.childNodes[2].innerHTML = "<a href=\"javascript:void(0)\" onclick=\"groupSwap(0,this)\">Add to Group <img src=\"img/icon1_addgroup.gif\" width=\"10\" height=\"9\" align=\"absmiddle\" /></a>";
				linkEl.parentNode.parentNode.parentNode.deleteRow(activeRow);
			}
		}
	} else if(flag==0) {
		var fromRow = theTable1.childNodes[0].childNodes[activeRow];
		fromRow.childNodes[2].innerHTML = "Included";
		var newRow = theTable2.tBodies[0].appendChild(document.createElement('tr'));
		for(i=0;i<cellCt;i++) {
			var cell = document.createElement('TD');
			cell.innerHTML = theTable1.childNodes[0].childNodes[activeRow].childNodes[i].innerHTML;
			newRow.appendChild(cell);
		}
		newRow.childNodes[2].innerHTML ='<a href="javascript:void(0)" onclick="groupSwap(1,this)"><img src="img/icon1_remgroup.gif" width="10" height="9" align="absmiddle" /> Remove</a>';
	}
}
function duration(val) {
	if(val=="1") {
		gebi('d1').style.display='none';
		gebi('d2').style.display='none';
	} else if(val=="2") {
		gebi('d1').style.display='inline';
		gebi('d2').style.display='none';
	} else if(val=="3") {
		gebi('d1').style.display='none';
		gebi('d2').style.display='inline';
	}
}
function icon(type,href) {
	var theImgs = new Array('account','attachment','calendar','delete','edit','email','expand','folder','info','newWindow','print','recurrence','save','schedule','view','shiftUp','shiftDown','shiftLeft','shiftRight','shiftAllUp','shiftAllDown','shiftAllLeft','shiftAllRight','file','history');
	var alts = new Array('Account Activity','Attach','Calendar','Delete','Edit','Send','Expand','folder','info','newWindow','Print','recurrence','Save','Schedule','More Details','Shift Up','Shift Down','Shift Left','Shift Right','Move Up','Move Down','Shift All Left','Shift All Right','Statement','Past Versions');
	return('<a href="' + href + '"><img alt="' + alts[type] + '" src="img/icon1_' + theImgs[type] + '.gif" border="0" align="absmiddle"/></a>');
}
function profileNav(curr) {
	var navitems = new Array('ACCOUNT NICKNAMES','MANAGE GROUPS','PREFERENCES','MANAGE ALERTS','RESET PASSWORD');
	var navlinks = new Array('pvt_profile_acctnicknames.html','pvt_profile_managegroups.html','pvt_profile_preferences.html','pvt_profile_managealerts.html','#');
	with(document) {
		write('<div style="float: left;" class="leftnav">');
				write('<p>');
					for(i=0;i<navitems.length;i++) {
						write('<a href="' + navlinks[i] + '"');
						if(curr==i) {
							write(' class="current_theme"');
						}
						write('>' + navitems[i] + ' &raquo;</a><br>');
					}
				write('</p>');
				write('<p><a href="#">Banking SETTINGS</a>&#160;&#160;<img src="img/icon1_newWindow.gif" alt= "New Window"/></p>');
			write('</div>');	
	}
}
function xferNav(curr) {
	var navitems = new Array('TRANSFER STATUS','TRANSFER HISTORY','REQUEST A TRANSFER');
	var navlinks = new Array('pvt_transfers.html','pvt_transfers_history.html','pvt_transfers_request.html');
	with(document) {
		write('<div style="float: left;" class="leftnav">');
				write('<p>');
					for(i=0;i<navitems.length;i++) {
						write('<a href="' + navlinks[i] + '"');
						if(curr==i) {
							write(' class="current_theme"');
						}
						write('>' + navitems[i] + ' &raquo;</a><br>');
					}
					write('<br>Other Transfers<br>');
					write('<a href="#">Banking To Banking</a>&#160;&#160;');
				write('</p>');
			write('</div>');	
	}
}
function tbSub(el) {
	var whole = el.toString();
	var start = whole.lastIndexOf("/");
	var end = whole.length;
	var thepage = whole.substring(start+1,end);
	return thepage;
}
function newCash(idx) {
	if((idx==0)||(idx==1)) {
		gebi('cashrow').style.display="none";
	} else {
		gebi('cashrow').style.display="inline";
		gebi('cashfield').innerHTML = cashAmt[idx];
	}
}
function acctSub(val) {
	if(val.length>21) {
		var retVal = val.substring(0,21) + "...";
	} else {
		var retVal = val;
	}
	return retVal;
}
/*
function writeNav(active) {
	with(document) {
		write('<table width="774px" border="0" cellspacing="0" cellpadding="0">');
			write('<tr>');
				write('<td align="right" valign="top" class="overnav">');
					write('<a href="javascript:popHelp()">HELP</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_search.html">SEARCH</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_locations.html">LOCATIONS</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_contactus.html">CONTACT US</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_sitetour.html">SITE TOUR</a>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td><table width="100%" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td><a href="index.html"><img src="img/mellon_logo_nontitle.gif" width="152" height="47" border="0" /></a></td>');
						write('<td align="right"><img src="img/mellon_title.gif" width="282" height="47" border="0"/></td>');
					write('</tr>');
				write('</table>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td>');
					write('<ul id="minitabs">');
					for(i=0;i<navLabels.length;i++) {
						write('<li id="nav' + i + '"');
						if(i==active) {
							write(' class="current"');
						}
						if(i==(navLabels.length-1)) {
							write(' style="border-right: solid 1px #718492"');	
						} else if(i<(navLabels.length-1)) {
							write(' onmouseover="alignNav(\'nav' + i+ '\',\'subnav' + i + '\',0,17)" onmouseout="layswap(\'subnav' + i + '\',0,0)"');
						}
						write('"><a href="' + navHrefs[i] +'">' + navLabels[i] + '</a></li>');
					}
					write('</ul>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td class="navBgActive" height="22">');
					write('<table width="774" border="0" cellpadding="0" cellspacing="0">');
						write('<tr align="center" class="homenav">');
							write('<td valign="middle" nowrap="nowrap" class="navLvl2"><a id="sub1" href="pvt_groupsummary.html" class="navLvl2">RELATIONSHIP SUMMARY</a></td>');
							write('<td width="1" nowrap="nowrap""><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub2" href="pvt_portfolio.html" class="navLvl2">PORTFOLIOS</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub3" href="pvt_banking.html" class="navLvl2">BANKING</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub4" href="pvt_brokerage.html" class="navLvl2">BROKERAGE</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub5" href="pvt_reporting.html" class="navLvl2">REPORTING</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub6" href="pvt_transfers.html" class="navLvl2">TRANSFERS</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub7" href="pvt_messagectr.html" class="navLvl2">MESSAGE CENTER</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub8" href="pvt_profile_acctnicknames.html" class="navLvl2">MY PROFILE</a></td>');
						write('</tr>');
					write('</table>');
				write('</td>');
			write('</tr>');
		write('</table>');		
	}
}
*/
function writeNav(active) {
	with(document) {
		write('<table width="774px" border="0" cellspacing="0" cellpadding="0">');
			write('<tr>');
				write('<td align="right" valign="top" class="overnav">');
					write('<a href="javascript:popHelp()">HELP</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_search.html">SEARCH</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_locations.html">LOCATIONS</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_contactus.html">CONTACT US</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_sitetour.html">SITE TOUR</a>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td><table width="100%" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td><a href="index.html"><img src="img/mellon_logo_nontitle.gif" width="152" height="47" border="0" /></a></td>');
						write('<td align="right"><img src="img/mellon_title.gif" width="282" height="47" border="0"/></td>');
					write('</tr>');
				write('</table>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td>');
					write('<ul id="minitabs">');
					for(i=0;i<navLabels.length;i++) {
						write('<li id="nav' + i + '"');
						if(i==active) {
							write(' class="current"');
						}
						if(i==(navLabels.length-1)) {
							write(' style="border-right: solid 1px #718492"');	
						} 
						write('"><a href="' + navHrefs[i] +'">' + navLabels[i] + '</a></li>');
					}
					write('</ul>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td class="navBgActive" height="22">');
					write('<table width="774" border="0" cellpadding="0" cellspacing="0">');
						write('<tr align="center" class="homenav">');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub1" href="pvt_groupsummary.html" onmouseover="alignNav(\'sub1\',\'subsubnav1\',0,14)" onmouseout="layswap(\'subsubnav1\',0,0)" class="navLvl2">SUMMARY</a></td>');
							write('<td width="1" nowrap="nowrap""><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub2" href="pvt_portfolio.html" onmouseover="alignNav(\'sub2\',\'subsubnav2\',0,14)" onmouseout="layswap(\'subsubnav2\',0,0)" class="navLvl2">PORTFOLIO DETAILS</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub3" href="pvt_banking.html" onmouseover="alignNav(\'sub3\',\'subsubnav3\',0,14)" onmouseout="layswap(\'subsubnav3\',0,0)" class="navLvl2">BANKING</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub4" href="pvt_brokerage.html" onmouseover="alignNav(\'sub4\',\'subsubnav4\',0,14)" onmouseout="layswap(\'subsubnav4\',0,0)" class="navLvl2">BROKERAGE</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub5" href="pvt_reporting.html" onmouseover="alignNav(\'sub5\',\'subsubnav5\',0,14)" onmouseout="layswap(\'subsubnav5\',0,0)" class="navLvl2">REPORTING</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub6" href="pvt_transfers.html" onmouseover="alignNav(\'sub6\',\'subsubnav6\',0,14)" onmouseout="layswap(\'subsubnav6\',0,0)" class="navLvl2">TRANSFERS</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub7" href="pvt_messagectr.html" onmouseover="alignNav(\'sub7\',\'subsubnav7\',0,14)" onmouseout="layswap(\'subsubnav7\',0,0)" class="navLvl2">MESSAGE CENTER</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub8" href="pvt_profile_acctnicknames.html" onmouseover="alignNav(\'sub8\',\'subsubnav8\',0,14)" onmouseout="layswap(\'subsubnav8\',0,0)" class="navLvl2">SETTINGS</a></td>');
						write('</tr>');
					write('</table>');
				write('</td>');
			write('</tr>');
		write('</table>');		
	}
}
function writeNavNoSub(active) {
	with(document) {
		write('<table width="774px" border="0" cellspacing="0" cellpadding="0">');
			write('<tr>');
				write('<td align="right" valign="top" class="overnav">');
					write('<a href="javascript:popHelp()">HELP</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_search.html">SEARCH</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_locations.html">LOCATIONS</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_contactus.html">CONTACT US</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_sitetour.html">SITE TOUR</a>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td><table width="100%" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td><a href="index.html"><img src="img/mellon_logo_nontitle.gif" width="152" height="47" border="0" /></a></td>');
						write('<td align="right"><img src="img/mellon_title.gif" width="282" height="47" /></td>');
					write('</tr>');
				write('</table>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td>');
					write('<ul id="minitabs">');
					for(i=0;i<navLabels.length;i++) {
						write('<li id="' + navIds[i] + '"');
						if(i==active) {
							write(' class="current"');
						}
						if(i==(navLabels.length-1)) {
							write(' style="border-right: none"');	
						} 
						write('"><a href="' + navHrefs[i] +'">' + navLabels[i] + '</a></li>');
					}
					write('</ul>');
				write('</td>');
			write('</tr>');
			write('<tr>');
					write('<td bgcolor="#718492" nowrap="nowrap" colspan="' + navLabels.length + '" height="6"><img width="1" height="6"/></td>');
			write('</tr>');
		write('</table>');		
	}
}
function writeNavHome(active,isFly) {
	with(document) {
		write('<table width="1002px" border="0" cellspacing="0" cellpadding="0">');
			write('<tr>');
				write('<td width="1002px">');
					if(isFly=="true"){
						write('<ul id="minitabs_themes">');
					}
					else{
					write('<ul id="minitabs_themes_logged">');
					}
					for(i=0;i<navLabels.length;i++) {
						write('<li id="' + navIds[i] + '"');
					if(navLabels[i]==active) {
						if(navLabels[i]=="CLIENT ACCESS") {
						  write(' class="expand_theme"');						
						}else{
						  isActive = true;
						  write(' class="current_theme"');						
						}
					}
					
					else if((active=="Home Page")||(active=="HiddenPages")){
						if(navLabels[i]=="CLIENT ACCESS") {
						  write(' class="expand_theme2"');						
						}else{
						  write('class="inactive_theme"');
						}
					}
					else if(navLabels[i]=="CLIENT ACCESS"){
						write(' class="current_theme_client"');
					}
						if(i==(navLabels.length-1)) {
							write(' style="border-right: solid 1px #718492"');
							
						} else if(i<(navLabels.length-1)) {
							if(isFly=="true"){
								write(' onmouseover="alignNav(\'nav' + i+ '\',\'subnav' + i + '\',0,24)" onmouseout="layswap(\'subnav' + i + '\',0,0)"');
								
							}
						}
						write('"><a href="' + navLinkArrayLabels[i] +'">' + navLabels[i] + '</a></li>');
						
					}
					write('</ul>');
				write('</td>');
			write('</tr>');
		write('</table>');		
	}
}
/*
function subnav() {
	var whole = location.toString();
	var start = whole.lastIndexOf("/");
	var end = whole.length;
	var thepage = whole.substring(start+1,end);
	if((thepage=='index.html')||(thepage=='')) {
		var tabWidth = "193";	
	} else {
		var tabWidth = "193";
	}
	with(document) {
		write('<div id="subnav0" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'nav0\',\'subnav0\',0,17)" onMouseOut="layswap(\'subnav0\',0,0)">');
			write('<table width="' + tabWidth + '" border="0" cellspacing="0" cellpadding="0">');
  				write('<tr>');
    					write('<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
  						write('<tr>');
    							write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Our Practice</td>');
 			 			write('</tr>');
  						write('<tr>');
    							write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Our Process</td>');
  						write('</tr>');
 		 				write('<tr>');
    							write('<td class="subnav" onClick="jump(\'pub_history.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Our History</td>');
  						write('</tr>');
						write('<tr>');
    							write('<td class="subnav" onClick="jump(\'pub_who_management.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Management Team</td>');
  						write('</tr>');
  						write('<tr>');
    							write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;BNY Mellon Corporate</td>');
  						write('</tr>');
					write('</table>');
				write('</td>');
  			write('</tr>');
		write('</table>');
	write('</div>');
	write('<div id="subnav1" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'nav1\',\'subnav1\',0,17)" onMouseOut="layswap(\'subnav1\',0,0)">');
		write('<table width="' + tabWidth + '" border="0" cellspacing="0" cellpadding="0">');
 			write('<tr>');
    				write('<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
 						write('<tr>');
            					write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Individuals</td>');
  						write('</tr>');
  						write('<tr>');
            					write('<td class="subnav" onClick="jump(\'pub_familyoffice.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Family Office</td>');
  						write('</tr>');
  						write('<tr>');
            					write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Charitable Gift Programs</td>');
  						write('</tr>');
						write('<tr>');
            					write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Professionals &amp; Institutions</td>');
  						write('</tr>');
						write('<tr>');
            					write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Endowments &amp; Foundations</td>');
  						write('</tr>');
					write('</table>');
				write('</td>');
  			write('</tr>');
		write('</table>');
	write('</div>');
	write('<div id="subnav2" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'nav2\',\'subnav2\',0,17)" onMouseOut="layswap(\'subnav2\',0,0)">');
		write('<table width="' + tabWidth + '" border="0" cellspacing="0" cellpadding="0">');
  			write('<tr>');
    				write('<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
           			write('<tr>'); 
            				write('<td class="subnav" onClick="jump(\'pub_melloninnews.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;BNY Mellon in the News</td>');
          			write('</tr>');
		  			write('<tr>'); 
            				write('<td class="subnav" onClick="jump(\'pub_pressreleases.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Press Releases</td>');
          			write('</tr>');
		  			write('<tr>'); 
            				write('<td class="subnav" onClick="jump(\'pub_communitysupport.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Community Support</td>');
          			write('</tr>');
					write('<tr>'); 
            				write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Market Updates</td>');
          			write('</tr>');
          			write('<tr>');
            				write('<td class="subnav" onClick="jump(\'pub_insights.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Insights</td>');
          			write('</tr>');
        			write('</table>');
			write('</td>');
  		write('</tr></table>');
	write('</div>');
	write('<div id="subnav3" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'nav3\',\'subnav3\',0,17)" onMouseOut="layswap(\'subnav3\',0,0)">');
		write('<table width="' + tabWidth + '" border="0" cellspacing="0" cellpadding="0">');
  			write('<tr>');
    				write('<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="2">');
           			write('<tr>'); 
            				write('<td class="subnav" onClick="jump(\'pub_clientaccess.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Login</td>');
          			write('</tr>');
        			write('</table>');
			write('</td>');
  		write('</tr></table>');
	write('</div>');
	}
}
*/
	function subnav() {
		with(document) {
			write('<div id="subsubnav1" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub1\',\'subsubnav1\',0,14)" onMouseOut="layswap(\'subsubnav1\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_groupsummary.html\')">&#160;&#160;Group Summary</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_relsummary.html\')">&#160;&#160;Accounts Summary</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_team.html\')">&#160;&#160;My Team</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_profile_alertslist.html\')">&#160;&#160;Alerts</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav2" style="position:absolute;display:none;z-index:2;left:0;top:0;"onMouseOver="alignNav(\'sub2\',\'subsubnav2\',0,14)" onMouseOut="layswap(\'subsubnav2\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_portfolio.html\')">&#160;&#160;Holdings</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_portfolio_accountactivity.html\')">&#160;&#160;Account Activity</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_portfolio_estimatedincome.html\')">&#160;&#160;Estimated Income</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_portfolio_investmentobjectives.html\')">&#160;&#160;Investment Objectives</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_portfolio_analystcommentary.html\')">&#160;&#160;Analyst Commentary</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav3" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub3\',\'subsubnav3\',0,14)" onMouseOut="layswap(\'subsubnav3\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_banking.html\')">&#160;&#160;Online Banking</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav4" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub4\',\'subsubnav4\',0,14)" onMouseOut="layswap(\'subsubnav4\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_brokerage.html\')">&#160;&#160;Online Brokerage</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav5" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub5\',\'subsubnav5\',0,14)" onMouseOut="layswap(\'subsubnav5\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_reporting.html\')">&#160;&#160;Reporting Templates</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'">&#160;&#160;Saved Reports</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_reporting_statements.html\')">&#160;&#160;Statements</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_reporting_taxForms.html\')">&#160;&#160;Tax Documents</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_reporting_myDocuments.html\')">&#160;&#160;My Documents</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav6" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub6\',\'subsubnav6\',0,14)" onMouseOut="layswap(\'subsubnav6\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_transfers.html\')">&#160;&#160;Transfer Status</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_transfers_history.html\')">&#160;&#160;Transfer History</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_transfers_request.html\')">&#160;&#160;Internal Transfer Request</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_transfers_request_ext.html\')">&#160;&#160;External Transfer Request</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav7" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub7\',\'subsubnav7\',0,14)" onMouseOut="layswap(\'subsubnav7\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_messagectr.html\')">&#160;&#160;Messages</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav8" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub8\',\'subsubnav8\',0,14)" onMouseOut="layswap(\'subsubnav8\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
						write('<tr>');
							write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_profile_acctnicknames.html\')">&#160;&#160;Account Nicknames</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_profile_managegroups.html\')">&#160;&#160;Manage Groups</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_profile_preferences.html\')">&#160;&#160;Preferences</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_profile_managealerts.html\')">&#160;&#160;Manage Alerts</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'">&#160;&#160;Reset Password</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
		}
	}
	
function subnavHome() {
	var whole = location.toString();
		var start = whole.lastIndexOf("/");
		var end = whole.length;
		var thepage = whole.substring(start+1,end);
		var tabWidth = "249";
		var i=0;
		var j=0;
		
		with(document) {
		//Test Mellon Theme Leaf nodes - Who We are
		//alert(navArray.length);
		for(i=0;i<navArray.length;i++){
			
			var strMain = "subnav";
			var str = strMain+i;
			var str1 = "nav"+i;
			
			if(navArray[i][0]=="CLIENT ACCESS")
				tabWidth = "249";
			var heightTotal = navArray[i].length * 25;
			write('<div id="' + str + '" style="position:absolute;display:none;z-index:4;left:0;top:0;" onMouseOver="alignNav(\'nav' + i+ '\',\'subnav' + i + '\',0,24)" onmouseout="layswap(\'subnav' + i + '\',0,0)">');
				write('<table width="' + tabWidth + '" border="0" cellspacing="0" cellpadding="0">');
					write('<tr height="' +heightTotal+ '">');
						write('<td bgcolor="#FFFFFF"><table height="100%" width="100%" border="0" cellspacing="1" cellpadding="3" align="top">');
							
							for(j=0;j<navArray[i].length;j++){
								
								write('<tr>');
									write('<td class="subnav" onClick="jump(\'' + navLinkArray[i][j] +'\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'" >&nbsp;&nbsp;&nbsp;' + navArray[i][j] + '</td>');
								write('</tr>');
							}
						write('</table>');
					write('</td>');
				write('</tr>');
			write('</table>');
		write('</div>');
		}
	}
}

var iconView = "<img alt='More Details' src='img/icon1_view.gif' border='0' align='absmiddle'/>";
var testheaders = new Array('Security','CUSIP','Security Name/Tax Lot ID','Value Date','Price','Quantity','Market Price','Amount','Yield','Accruals','Unrealized Gain/Loss','Go To');
var testitems = new Array();
testitems[0] = new Array('#AAPL','037833100','Apple Computer, Inc.','','$62.00','10720','$65.56','$702,729.40','-','','$38,089.40',iconView);
testitems[1] = new Array('','','4568','04-Apr-05','$62.00','10720','$65.56','$702,729.40','','','$32,304.00','');
testitems[2] = new Array('','','Pending','','','5000','$65.56','$327,774.00','','','','');

var displayOpts = new Array('inline','inline','inline','inline');
function writeDataTable(dataHeaders,dataItems,dataAligns,dataLevels) {
	var dH = dataHeaders;
	var dI = dataItems;
	var dA = dataAligns;
	var dL = dataLevels;
	with(document) {
		write('<table width="100%" border="0" cellpadding="0" cellspacing="1" id="dataTable">');
			write('<tr class="dataTableHeader">');
			for(a=0;a<dH.length;a++) {
				write('<td>' + dH[a] + '</td>');	
			}
			write('</tr>');
			write('<tr class="dataTableFilter">');
			for(b=0;b<dH.length;b++) {
				write('<td><a href="javascript:void(0)"><img src="img/arrowDown.gif" border="0" alt="Sort on this Column"/></a></td>');	
			}
			write('</tr>');
			if((loc=="pvt_relsummary.html")||(loc=="pvt_portfolio.html")) {
				write('<tr><td height="20" colspan="' + dI[0].length + '"><a href="javascript:void(0)"><img src="img/icon1_expand.gif" border="0" align="absmiddle" /> Expand All</a>&#160;&#160;<a href="javascript:void(0)"><img src="img/icon1_contract.gif" border="0" align"absmiddle" /> Collapse All</a></td></tr>');
				}
				if(loc=="pvt_portfolio_estimatedincome.html") {
				write('<tr><td height="20" colspan="' + dI[0].length + '" style="font-size:11px;color:#666666;font-weight:bold">As of 12 Sep 06</td></tr>');
				}
			for(c=0;c<dI.length;c++) {
				if(dI[c].length>0){ 
				var disp; 
				if((tbSub(window.location)=="pvt_relsummary.html")&&(dL[c]!="1")) {
					disp = "none";
				} else {
					disp = "inline";	
				}
					write('<tr class="dataTableEntry" id="datarow' + c + '" style="display:' + disp + ';border-bottom: solid 1px #EDEDED">');
				
					for(d=0;d<dI[c].length;d++) {
						if(dI[c][d].length>0){ 
							var firstL = dI[c][d].substring(0,1);
							if(firstL=="*") {
								var theimg = "<img alt='Expand' id=\"img"+c+"\" src='img/icon1_expand.gif' border='0' align='absmiddle'/>";
								dI[c][d] = "<b>" + dI[c][d].substring(1,dI[c][d].length) + "</b>";
							} else if(firstL=="#") {
								if((c==1)||(dL[c]=="1")) {
									if(loc!="pvt_relsummary.html") {
										var iconState = "contract";
									} else{
										var iconState = "expand";
									}
								} else {
									var iconState = "contract";
								}
								var theimg = "<img alt='Contract' id=\"img"+c+"\" src='img/icon1_" + iconState + ".gif' border='0' align='absmiddle'/>";
								dI[c][d] = "<b>" + dI[c][d].substring(1,dI[c][d].length) + "</b>";
							} else if(firstL=="%") {
								var theimg = "";
								dI[c][d] = dI[c][d].substring(1,dI[c][d].length);
								gebi('datarow' + c).className = "dataSubheaderRow";
							} else if(firstL=="^") {
								var theimg = "";
								dI[c][d] = dI[c][d].substring(1,dI[c][d].length);
								gebi('datarow' + c).className = "dataSubheaderRow";
							} else {
								var theimg = "";	
							}
							if((d==0)&&((firstL!="#")&&(firstL!="*")&&(firstL!="^")&&(firstL!="%"))&&(loc=="pvt_relsummary.html")) {
								dI[c][d] = "<a href=\"#\" title=\"" + dI[c][d] + "\">" + acctSub(dI[c][d]) + "</a>";	
							}
						} else {
							var theimg = "";	
						}
						if(c==1) {
							if(tbSub(window.location)=="pvt_relsummary.html") {
								theimg = '<a href="javascript:void(0)" onclick="rsToggle()">' + theimg + '</a>';
							} else {
								theimg = '<a href="javascript:void(0)" onclick="toggleRow(\'datarow2\');toggleRow(\'datarow3\');toggleRow(\'datarow4\');toggleRow(\'datarow5\');toggleRow(\'datarow6\')">' + theimg + '</a>';
							}
						} else {
							theimg = '<a href="javascript:void(0)">' + theimg + '</a>';	
						}
						if(d==0) {
							if(dL[c]==1) {
		
							} else if(dL[c]==2){
								theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
							} else if(dL[c]==3) {
								theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
							}
						}
						if((dI[c][d]=="")||(dI[c][d]==null)) {
							dI[c][d] = "&#160;";	
						} else if (dataItems[c][d]=="NULL") {
							dI[c][d] = "--";	
						}
						if((dI[c][d].substring(0,1)=="-")&&(dI[c][d].substring(1,2)=="$")) {
							dI[c][d] = "(" + dI[c][d].substring(1,dI[c][d].length) + ")";	
						}
						if(((loc=="pvt_portfolio.html")||(loc=="pvt_portfolio_estimatedincome.html"))&&((d==0)||(d==2))&&(dI[c][d+2]!="")) {
							write('<td class="dataTableEntry2" height="20" nowrap="nowrap" align="' + dA[d] + '">' + theimg + '&#160;<a href="javascript:void(0)">' + dI[c][d] + '</a>&#160;</td>');
						} else {
							write('<td class="dataTableEntry2" height="20" nowrap="nowrap" align="' + dA[d] + '">' + theimg + '&#160;' + dI[c][d] + '&#160;</td>');
						}
					}
					write('</tr>');
				}
			}
			if(loc=="pvt_groupsummary.html") {
				write('<tr><td align="right" colspan="5"><a href="pvt_profile_managegroups.html">Manage Groups &raquo;</a></td></tr>');	
			}
		write('</table>');
		}
	}
	function writeDataTableAlt(dataHeaders,dataItems,dataAligns,dataLevels,expands) {
	with(document) {
		write('<table width="100%" border="0" cellpadding="0" cellspacing="1">');
			write('<tr class="dataTableHeader">');
			for(a=0;a<dataHeaders.length;a++) {
				write('<td>' + dataHeaders[a] + '</td>');	
			}
			write('</tr>');
			write('<tr class="dataTableFilter">');
			for(b=0;b<dataHeaders.length;b++) {
				write('<td><a href="javascript:void(0)"><img src="img/arrowDown.gif" border="0" alt="Sort on this Column"/></a></td>');	
			}
			write('</tr>');
			for(c=0;c<dataItems.length;c++) {
				var disp;
				if(dataItems[c].length>0){ 
				if(expands.inArray(c)) {
					disp = "inline";
					
				} else {
					disp = "none";	
				}
				write('<tr class="dataTableEntry" id="datarow' + c + '" style="display:' + disp + ';border-bottom: solid 1px #EDEDED">');
				
				for(d=0;d<dataItems[c].length;d++) {
					if(dataItems[c][d].length>0){ 
					var firstL = dataItems[c][d].substring(0,1);
					if(firstL=="*") {
						var theimg = "<img alt='Expand' id=\"img"+c+"\" src='img/icon1_expand.gif' border='0' align='absmiddle'/>";
						dataItems[c][d] = dataItems[c][d].substring(1,dataItems[c][d].length);
					} else if(firstL=="#") {
						if((c==1)||(dataLevels[c]=="1")) {
							var iconState = "expand";
						} else {
							var iconState = "contract";
						}
						var theimg = "<img alt='Contract' id=\"img"+c+"\" src='img/icon1_" + iconState + ".gif' border='0' align='absmiddle'/>";
						dataItems[c][d] = dataItems[c][d].substring(1,dataItems[c][d].length);
					} else if(firstL=="%") {
						var theimg = "";
						dataItems[c][d] = dataItems[c][d].substring(1,dataItems[c][d].length);
						gebi('datarow' + c).className = "dataSubheaderRow";
					} else if(firstL=="^") {
						var theimg = "";
						dataItems[c][d] = dataItems[c][d].substring(1,dataItems[c][d].length);
						gebi('datarow' + c).className = "dataSubheaderRow";
					} else {
						var theimg = "";	
					}
					} else {
						var theimg = "";	
					}
					if(c==1) {
							if(loc=="pvt_relsummary.html") {
								theimg = '<a href="javascript:void(0)" onclick="rsToggle()">' + theimg + '</a>';
							} else {
								theimg = '<a href="javascript:void(0)" onclick="toggleRow(\'datarow2\');toggleRow(\'datarow3\');toggleRow(\'datarow4\');toggleRow(\'datarow5\');toggleRow(\'datarow6\')">' + theimg + '</a>';
							}
						} else {
							theimg = '<a href="javascript:void(0)">' + theimg + '</a>';	
						}
					if(d==0) {
						if(dataLevels[c]==1) {
		
						} else if(dataLevels[c]==2){
							theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
						} else if(dataLevels[c]==3) {
							theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
						}
					}
					if((dataItems[c][d]=="")||(dataItems[c][d]==null)||(dataItems[c][d]=="NULL")) {
						dataItems[c][d] = "--";	
					}
					if((dataItems[c][d].substring(0,1)=="-")&&(dataItems[c][d].substring(1,2)=="$")) {
						dataItems[c][d] = "(" + dataItems[c][d].substring(1,dataItems[c][d],length) + ")";	
					}
					write('<td class="dataTableEntry2" height="20" nowrap="nowrap" align="' + dataAligns[d] + '">' + theimg + '&#160;' + dataItems[c][d] + '&#160;</td>');
				}
				
				write('</tr>');
				}
			}
		write('</table>');
		}
	}
function swapTable(dataHeaders,dataItems,dataAligns,dataLevels) {
	var dH = dataHeaders;
	var dI = dataItems;
	var dA = dataAligns;
	var dL = dataLevels;
	var tableVar = "";
		tableVar += '<table width="100%" border="0" cellpadding="0" cellspacing="1">';
			tableVar += '<tr class="dataTableHeader">';
			for(a=0;a<dH.length;a++) {
				tableVar += '<td>' + dH[a] + '</td>';	
			}
			tableVar += '</tr>';
			tableVar += '<tr class="dataTableFilter">';
			for(b=0;b<dH.length;b++) {
				tableVar += '<td><a href="javascript:void(0)"><img src="img/arrowDown.gif" border="0" alt="Sort on this Column"/></a></td>';	
			}
			tableVar += '</tr>';
			if((loc=="pvt_relsummary.html")||(loc=="pvt_portfolio.html")) {
				tableVar += '<tr><td height="20" colspan="' + dI[0].length + '"><a href="javascript:void(0)"><img src="img/icon1_expand.gif" border="0" align="absmiddle" /> Expand All</a>&#160;&#160;<a href="javascript:void(0)"><img src="img/icon1_contract.gif" border="0" align"absmiddle" /> Collapse All</a></td></tr>';
			}
			for(c=0;c<dI.length;c++) {
				var disp; 
				if(dL[c]!="1") {
					disp = "none";
				} else {
					disp = "inline";	
				}
				if(dI[c][0].substring(0,1)=="*") {
					var theClass = "dataTableEntry";
				} else if(dI[c][0].substring(0,1)=="#") {
					var theClass = "dataTableEntry";
				} else if(dI[c][0].substring(0,1)=="%") {
					var theClass = "dataSubheaderRow";
				} else if(dI[c][0].substring(0,1)=="^") {
					var theClass = "dataSubheaderRow";
				} else {
					var theClass = "";
				}
				tableVar += '<tr class="' + theClass + '"  id="datarow' + c + '" style="display:' + disp + ';border-bottom: solid 1px #EDEDED">';
				for(d=0;d<dI[c].length;d++) {
						var theimg;
						var theText = dI[c][d];
						var firstL = dI[c][d].substring(0,1);
						if(firstL=="*") {
							theimg = "<img id=\"img"+c+"\" src='img/icon1_expand.gif' border='0' align='absmiddle'/>";
							theText = theText.substring(1,theText.length);
						} else if(firstL=="#") {
							if((c==1)||(dL[c]=="1")) {
								var iconState = "expand";
							} else {
								var iconState = "contract";
							}
							var theimg = "<img alt='Contract' id=\"img"+c+"\" src='img/icon1_" + iconState + ".gif' border='0' align='absmiddle'/>";
							theText = theText.substring(1,theText.length);
						} else if(firstL=="%")  {
							theimg = "";
							theText = theText.substring(1,theText.length);
							//gebi('datarow' + c).className = "dataSubheaderRow";
						} else if(firstL=="^") {
							theimg = "";
							theText = theText.substring(1,theText.length);
							//gebi('datarow' + c).className = "dataSubheaderRow";
						} else {
							theimg = "";	
						}
						if((d==0)&&((firstL!="#")&&(firstL!="*")&&(firstL!="^")&&(firstL!="%"))) {
								theText = "<a href=\"#\" title=\"" + theText + "\">" + acctSub(theText) + "</a>";	
							}
					if(c==1) {
						if(tbSub(window.location)=="pvt_relsummary.html") {
							theimg = '<a href="javascript:void(0)" onclick="rsToggle()">' + theimg + '</a>';
						} else {
							theimg = '<a href="javascript:void(0)" onclick="toggleRow(\'datarow2\');toggleRow(\'datarow3\');toggleRow(\'datarow4\');toggleRow(\'datarow5\');toggleRow(\'datarow6\')">' + theimg + '</a>';
						}
					} else {
						theimg = '<a href="javascript:void(0)">' + theimg + '</a>';	
					}
					if(d==0) {
						if(dataLevels[c]==1) {
		
						} else if(dL[c]==2){
							theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
						} else if(dL[c]==3) {
							theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
						}
					}
					//if((dataItems[c][d]=="")||(dataItems[c][d]==null)) {
					//	dataItems[c][d] = "&#160;";	
					//}
					tableVar += '<td class="dataTableEntry2" height="20" nowrap="nowrap" align="' + dA[d] + '">' + theimg + '&#160;' + theText + '&#160;</td>';
				}
				tableVar += '</tr>';
			}
		tableVar += '</table>';
		return tableVar;
	}
	function printMod(type) {
		if(type==1) { // MARKET INFORMATION MODULE
			with(document) {
			write('<div class="cssbox" style="width:189px">');
				write('<div class="cssbox_head"><h2></h2></div>');
					write('<div class="cssbox_body">');
						write('<table width="184px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td class="moduleHeader2"><span class="icons"><a href="#"><img src="img/icon_info.gif" border="0" alt="Help for this Topic"/></a></span>MARKET INFORMATION</td>');
					write('</tr>');
					write('<tr>');
						write('<td class="list">');
							write('&#160;<input type="text" name="textfield" style="width:100px"/>');
							write('&#160;<a href="#" class="moduleLinks"><img src="img/button_getquotes.gif" width="69" height="16" align="absmiddle" border="0" /></a></td>');
					write('</tr>');
					write('<tr>');
						write('<td class="list">');
							write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
							for(i=0;i<mwatch.length;i++) {
							write('<tr>');
								write('<td class="moduleBody2" nowrap="nowrap">' + mwatch[i][0] + '</td>');
								write('<td class="moduleBody2" align="right">' + mwatch[i][1] + '</td>');
								write('<td class="moduleBody2" align="right">' + mwatch[i][2] + '</td>');
							write('</tr>');
							}
						write('</table></td>');
					write('</tr>');
					write('<tr>');
						write('<td align="right" class="moduleBody2">Quotes are delayed 20 minutes.<br />');
							write('<a href="#" class="moduleLinks2">Disclaimer &raquo;</a></td>');
					write('</tr>');
				write('</table>');
					write('</div>');
				write('</div>');
			}
		} else if(type==2) {
			with(document) { // LAST 5 ALERTS
			write('<div class="cssbox" style="width:189px">');
				write('<div class="cssbox_head"><h2></h2></div>');
					write('<div class="cssbox_body">');
						write('<table width="184px" border="0" cellspacing="0" cellpadding="0" class="ph">');
							write('<tr>');
								write('<td class="moduleHeader2"><span class="icons"><a href="javascript:void(0)" onclick="popHelp()"><img src="img/icon_info.gif" alt="Help for this Topic" border="0"/></a><a href="pvt_profile_managealerts.html"><img src="img/icon_attach.gif" border="0" alt="Manage Alerts"/></a><a href="#"><img src="img/icon_print.gif" border="0" alt="Print"/></a></span>LAST 5 ALERTS </td>');
							write('</tr>');
							write('<tr>');
								write('<td><span class="icons"><a href="#"><img src="img/icon_pclip.gif" border="0" alt="Edit"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" alt="Delete" border="0"/></a></span><a href="#" class="moduleLinks2">Cash &amp; CE Over 10%</a><br />');
								write('<span class="moduleBody2">&#160;Account: <a href="pvt_portfolio_accountactivity.html" class="moduleLinks2">98994249889</a></span></td>');
							write('</tr>');
							write('<tr>');
								write('<td><span class="icons"><a href="#"><img src="img/icon_pclip.gif" border="0" alt="Edit"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" alt="Delete" border="0"/></a></span><a href="#" class="moduleLinks2">Basic Materials Below 16%</a><br />');
								write('<span class="moduleBody2">Account: <a href="pvt_portfolio_accountactivity.html" class="moduleLinks2">Michael\'s Growth Trust</a></span></td>');
							write('</tr>');
							write('<tr>');
								write('<td><span class="icons"><a href="#"><img src="img/icon_pclip.gif" border="0" alt="Edit"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" alt="Delete" border="0"/></a></span><a href="#" class="moduleLinks2">Distribution Over $10k</a><br />');
								write('<span class="moduleBody2">Account: <a href="pvt_portfolio_accountactivity.html" class="moduleLinks2">98728474648</a></span></td>');
							write('</tr>');
							write('<tr>');
								write('<td><span class="icons"><a href="#"><img src="img/icon_pclip.gif" border="0" alt="Edit"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" alt="Delete" border="0"/></a></span><a href="#" class="moduleLinks2">Equity Over 60%</a><br />');
								write('<span class="moduleBody2">Group: <a href="pvt_relsummary.html" class="moduleLinks2">Steven Donovan</a></span>');
							write('</td>');
							write('</tr>');
							write('<tr>');
								write('<td><span class="icons"><a href="#"><img src="img/icon_pclip.gif" border="0" alt="Edit"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" alt="Delete" border="0"/></a></span><a href="#" class="moduleLinks2">Mid Cap Below 22%</a><br />');
								write('<span class="moduleBody2">Group: <a href="pvt_relsummary.html" class="moduleLinks2">Partnerships</a></span>');
							write('</td>');
							write('</tr>');
							write('<tr>');
								write('<td align="right"><a href="pvt_profile_alertslist.html" class="moduleLinks2">View All Alerts &raquo;</a><br />');
								write('<a href="pvt_profile_managealerts.html" class="moduleLinks2">Set Alerts &raquo;</a></td>');
							write('</tr>');
						write('</table>');
					write('</div>');
				write('</div>');
			}
			} else if(type==3) { // CREATE NEW GROUP
			with(document) {
			write('<div class="cssbox" style="width:189px">');
				write('<div class="cssbox_head"><h2></h2></div>');
					write('<div class="cssbox_body">');
				write('<table width="184px" border="0" cellspacing="0" cellpadding="1" class="ph">');
					write('<tr>');
						write('<td class="moduleHeader2"><span class="icons"><a href="#"><img src="img/icon_info.gif" alt="Help for this Topic" border="0"/></a></span>MANAGE GROUPS</td>');
					write('</tr>');
					write('<tr>');
						write('<td class="moduleBody2">You can now organize your accounts into custom groups.</td>');
					write('</tr>');
					write('<tr>');
						write('<td align="right"><a href="pvt_profile_managegroups.html" class="moduleLinks2">Manage Groups &raquo;</a><br/><a href="pvt_groupsummary.html" class="moduleLinks2">View Group Summary &raquo;</a><br/><a href="pvt_profile_managegroups.html" class="moduleLinks2">Create a New Group &raquo;</a></td>');
					write('</tr>');
				write('</table>');
				write('</div>');
				write('</div>');
			}
			} else if(type==4) { // PORTFOLITO LINKS
				with(document) {
				write('<div class="cssbox" style="width:189px">');
					write('<div class="cssbox_head"><h2></h2></div>');
						write('<div class="cssbox_body">');
					write('<table width="184px" border="0" cellspacing="0" cellpadding="1" class="ph">');
						write('<tr>');
							write('<td class="moduleHeader2"><span class="icons"><a href="#"><img src="img/icon_info.gif" alt="Help for this Topic" border="0"/></a></span>PORTFOLIO DETAILS</td>');
						write('</tr>');
						write('<tr>');
							write('<td class="moduleBody2"><a href="pvt_portfolio.html" class="moduleLinks2">Holdings &raquo;</a><br/><a href="pvt_portfolio_accountactivity.html" class="moduleLinks2">Account Activity &raquo;</a><br/><a href="pvt_portfolio_estimatedincome.html" class="moduleLinks2">Estimated Income &raquo;</a><br/><a href="pvt_reporting_statements.html" class="moduleLinks2">Statements &raquo;</a><br/><a href="pvt_reporting_taxForms.html" class="moduleLinks2">Tax Documents &raquo;</a><br/></td>');
						write('</tr>');
					write('</table>');
					write('</div>');
					write('</div>');
				}
			} else if(type==5) { // MY TEAM MODULE
				with(document) {
				write('<div class="cssbox" style="width:189px">');
					write('<div class="cssbox_head"><h2></h2></div>');
						write('<div class="cssbox_body">');
					write('<table width="184px" border="0" cellspacing="0" cellpadding="1" class="ph">');
						write('<tr>');
							write('<td class="moduleHeader2"><span class="icons"><a href="#"><img src="img/icon_info.gif" alt="Help for this Topic" border="0"/></a></span>CONTACT MY TEAM</td>');
						write('</tr>');
						write('<tr>');
							write('<td class="moduleBody2"><strong>John Smith</strong><br/>Relationship Manager<br/>(555) 555-5555</td>');
						write('</tr>');
						write('<tr>');
							write('<td class="moduleBody2"><strong>Chris Holloway</strong><br/>Investment Center<br/>(555) 555-5555</td>');
						write('</tr>');
					write('</table>');
					write('</div>');
					write('</div>');
				}
			}
	}
	function writeDivs() {
		with(document) {
			write('<div id="save" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="0">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" style="cursor:hand" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="popSave();layswap(\'save\',0,0)">Format: CSV</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" style="cursor:hand" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="popSave();layswap(\'save\',0,0)">Excel</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" style="cursor:hand" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="popSave();layswap(\'save\',0,0)">PDF</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" style="cursor:hand" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="popSave();layswap(\'save\',0,0)">Quicken</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" style="cursor:hand" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="popSave();layswap(\'save\',0,0)">Money</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="basis" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'basis\',this,\'basislink\')">Trade Basis</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'basis\',this,\'basislink\')">Settlement Basis</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="pships" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'pships\',this,\'pshipslink\')">Include in Balance</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'pships\',this,\'pshipslink\')">Show Separately</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="group" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'group\',this,\'grouplink2\');gebi(\'chart1\').style.display=\'none\';gebi(\'chart2\').style.display=\'none\';gebi(\'chart3\').style.display=\'inline\';swapData(\'data\',relHeaders4,relItems4,relAligns4,relLevels4)">Sector</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'group\',this,\'grouplink2\');gebi(\'chart1\').style.display=\'none\';gebi(\'chart2\').style.display=\'inline\';gebi(\'chart3\').style.display=\'none\';swapData(\'data\',relHeaders5,relItems5,relAligns5,relLevels5)">Market Capitalization</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'group\',this,\'grouplink2\')">Sub-Asset Class</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'group\',this,\'grouplink2\')">Security</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="acct" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="190px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleLinks" height="18">Click on a Top Group</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acct\',this,\'acctlink2\')">All Accounts</td>');
								write('</tr>');
								for(i=0;i<gItems3.length;i++) {
									if(i>0) {
									write('<tr>');
										write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acct\',this,\'acctlink2\')">' + chopText(gItems3[i][0]) + '</td>');
									write('</tr>');
									}
								}
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody">Or Select any Group:<br/><br/>');
										write('<select name="group" id="group" style="width:130px">');
											write('<option value="" selected="selected">Select One...</option>');
											for(i=0;i<gItems3.length;i++) {
												if(i>0) {
													write('<option value="">' + chopText(gItems3[i][0]) + '</option>');
												}
											}
										write('</select>&#160;<img src="img/button_go.gif" border="0" /><br/>');
										write('<a class="moduleLinks" href="#">View the Group Summary &raquo;</a>');
									write('</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="grouponly" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="190px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleLinks" height="18">Click on a Top Group</td>');
								write('</tr>');
								write('<tr>');
								write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'grouponly\',this,\'aglink\')">All Accounts </td>');
							write('</tr>');
							for(i=0;i<gItems3.length;i++) {
								if(i>0) {
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'grouponly\',this,\'aglink\')">' + chopText(gItems3[i][0]) + '</td>');
								write('</tr>');
								}
							}
							write('<tr>');
								write('<td bgcolor="#EDEDED"><table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><strong class="moduleLinks">Or Select any Group: </strong><br /><br />');
											write('<select name="acctselect" style="width:130px"><option value="" selected="selected">Select One...</option>');
											for(i=0;i<gItems.length;i++) {
												if(i>0) {
													write('<option value="">' + chopText(gItems[i][0]) + '</option>');
												}
											}
											write('</select>&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle" /><br/><img width="1" height="5"/><br/><a href="pvt_groupsummary.html" class="moduleLinks">View the Group Summary &raquo;</a></td>');
									write('</tr>');
								write('</table></td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="assets" style="width:180px;position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="180px" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\');gebi(\'prefs1\').style.display=\'inline\';gebi(\'prefs2\').style.display=\'none\';gebi(\'chart1\').style.display=\'inline\';gebi(\'chart2\').style.display=\'none\';gebi(\'chart3\').style.display=\'none\';swapData(\'data\',relHeaders5,relItems5,relAligns5,relLevels5)">All Assets &amp; Liabilities</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\');gebi(\'prefs1\').style.display=\'none\';gebi(\'prefs2\').style.display=\'inline\';gebi(\'chart1\').style.display=\'none\';gebi(\'chart2\').style.display=\'inline\';gebi(\'chart3\').style.display=\'none\';swapData(\'data\',relHeaders3,relItems3,relAligns3,relLevels3)">Equity</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\')">Fixed Income</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\')">Cash</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\')">Alternative Investments</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\')">Balanced Mutual Funds</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\')">Other</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="acctgroup" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="540" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999"><table width="100%" border="0" cellspacing="1" cellpadding="4">');
							write('<tr>');
								write('<td bgcolor="#EDEDED"><span class="moduleHeader"><strong>View a Group </strong></span><br />');
									write('<span class="moduleLinks">Click on a Top Group</span></td>');
								write('<td width="75%" rowspan="14" valign="top" bgcolor="#EDEDED"><span class="moduleHeader"><strong>View an Account</strong></span>');
									write('<table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><br />Select a Trust Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=0;i<16;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select an IRA Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=17;i<19;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select a Personal IM Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=23;i<36;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Or type in an account number:<br/>');
											write('<input name="" type="text" style="width:130px" />&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" align="absmiddle" /></td>');
									write('</tr>');
								write('</table></td>');
							write('</tr>');
							write('<tr>');
								write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acctgroup\',this,\'aglink\')">All Accounts </td>');
							write('</tr>');
							for(i=0;i<gItems3.length;i++) {
								if(i>0) {
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acctgroup\',this,\'aglink\')">' + chopText(gItems3[i][0]) + '</td>');
								write('</tr>');
								}
							}
							write('<tr>');
								write('<td bgcolor="#EDEDED"><table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><strong class="moduleLinks">Or Select any Group: </strong><br /><br />');
											write('<select name="acctselect" style="width:130px"><option value="" selected="selected">Select One...</option>');
											for(i=0;i<gItems.length;i++) {
												if(i>0) {
													write('<option value="">' + chopText(gItems[i][0]) + '</option>');
												}
											}
											write('</select>&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle" /><br/><img width="1" height="5"/><br/><a href="pvt_groupsummary.html" class="moduleLinks">View the Group Summary &raquo;</a></td>');
									write('</tr>');
								write('</table></td>');
								write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="acctgroup2" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="540" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999"><table width="100%" border="0" cellspacing="1" cellpadding="4">');
							write('<tr>');
								write('<td bgcolor="#EDEDED"><span class="moduleHeader"><strong>View a Group </strong></span><br />');
									write('<span class="moduleLinks">Click on a Top Group</span></td>');
								write('<td width="75%" rowspan="14" valign="top" bgcolor="#EDEDED"><span class="moduleHeader"><strong>View an Account</strong></span>');
									write('<table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><br />Select a Trust Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=0;i<16;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select an IRA Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=17;i<19;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select a Personal IM Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=23;i<36;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Or type in an account number:<br/>');
											write('<input name="" type="text" style="width:130px" />&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" align="absmiddle" /></td>');
									write('</tr>');
								write('</table></td>');
							write('</tr>');
							for(i=0;i<gItems3.length;i++) {
							write('<tr>');
								write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acctgroup2\',this,\'aglink\');location=\'pvt_profile_editalerts.html\'">' + chopText(gItems3[i][0]) + '</td>');
								write('</tr>');
							}
							write('<tr>');
								write('<td bgcolor="#EDEDED"><table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><strong class="moduleLinks">Or Select any Group: </strong><br />');
											write('<select name="acctselect" style="width:130px"><option value="" selected="selected">Select One...</option>');
											for(i=0;i<gItems.length;i++) {
												if(i>0) {
													write('<option value="">' + chopText(gItems[i][0]) + '</option>');
												}
											}
											write('</select>&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle" /><br/><img width="1" height="5"/><br/><a href="pvt_groupsummary.html" class="moduleLinks">View the Group Summary &raquo;</a></td>');
									write('</tr>');
								write('</table></td>');
								write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="acctgroup3" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="540" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999"><table width="100%" border="0" cellspacing="1" cellpadding="4">');
							write('<tr>');
								write('<td bgcolor="#EDEDED"><span class="moduleHeader"><strong>View a Group </strong></span><br />');
									write('<span class="moduleLinks">Click on a Top Group</span></td>');
								write('<td width="75%" rowspan="14" valign="top" bgcolor="#EDEDED"><span class="moduleHeader"><strong>View an Account</strong></span>');
									write('<table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><br />Select a Trust Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=0;i<16;i++) {
													document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select an IRA Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=17;i<19;i++) {
													document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select a Personal IM Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=23;i<36;i++) {
													document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Or type in an account number:<br/>');
											write('<input name="" type="text" style="width:130px" />&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" align="absmiddle" /></td>');
									write('</tr>');
								write('</table></td>');
							write('</tr>');
							for(i=0;i<gItems3.length;i++) {
							write('<tr>');
								write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acctgroup2\',this,\'aglink\');location=\'pvt_profile_editalerts.html\'">' + chopText(gItems3[i][0]) + '</td>');
								write('</tr>');
							}
							write('<tr>');
								write('<td bgcolor="#EDEDED"><table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><strong class="moduleLinks">Or Select any Group: </strong><br />');
											write('<select name="acctselect" style="width:130px"><option value="" selected="selected">Select One...</option>');
											for(i=0;i<gItems2.length;i++) {
												if(i>0) {
													write('<option value="">' + chopText(gItems2[i][0]) + '</option>');
												}
											}
											write('</select>&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle" /><br/><img width="1" height="5"/><br/><a href="pvt_groupsummary.html" class="moduleLinks">View the Group Summary &raquo;</a></td>');
									write('</tr>');
								write('</table></td>');
								write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="list" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Accounts</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Asset Type</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Management Types</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Sector</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\');swapData(\'data\',relHeaders3,relItems3,relAligns3,relLevels3)">Securities</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Sub-Asset Class</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Tax Lots</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="advfilters" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="275" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12">');
									write('<input name="sep_part" type="checkbox" id="sep_part" value="1" /> Display Partnership Accounts Separately<br/>');
									write('<input name="sep_ben" type="checkbox" id="sep_ben" value="1" />Display  Beneficiary Accounts Separately<br/>');
									write('<input name="sep_other" type="checkbox" id="sep_other" value="1" />Display Other Accounts Separately<br/>');
									write('<br/>');
									write('<center><table border="0" cellpadding="0" cellspacing="0" width="95%">');
											write('<tr>');
												write('<td bgcolor="#999999" height="1"></td>');
											write('</tr>');
										write('</table></center><br/>');
										write('<a href="javascript:void(0)" onclick="layswap(\'advfilters\',0,0)"><img src="img/button_go.gif" border="0" align="right"/></a>');
									write('</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="trans" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleLinks" height="12">Select one or more</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox" value="checkbox" /> All </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox2" value="checkbox" /> Purchases</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox3" value="checkbox" /> Sales/Maturities</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox4" value="checkbox" /> Withdrawals</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox6" value="checkbox" />Securities</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox5" value="checkbox" /> Corporate Actions</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><a href="javascript:void(0)" onclick="layswap(\'trans\',0,0)"><img src="img/button_go.gif" width="28" height="16" border="0" /></a>&#160;</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="timeframe" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'timeframe\',this,\'timeframeLink\')">3 Months</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'timeframe\',this,\'timeframeLink\')">6 Months</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'timeframe\',this,\'timeframeLink\')">12 Months</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'timeframe\',this,\'timeframeLink\')">24 Months</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="callayer" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="175" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12">');
									write('<input name="trend_from" type="text" id="trend_from" style="width:90px" />&#160;<a href="#" onclick="cal.select(document.getElementById(\'trend_from\'),\'anchor1\',\'MM/dd/yyyy\');return false"><img src="img/icon1_calendar.gif" alt="Calendar" name="anchor1" width="10" height="10" border="0" align="absmiddle" id="anchor1" /></a>&#160;&#160;<a href="javascript:void(0)" onclick="layswap(\'callayer\',0,0)"><img src="img/button_go.gif" border="0" align="absmiddle"/></a>');
									write('</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="tickers" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');

							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">')
								write('<tr>')
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onclick="getText(\'tickers\',this,\'tickerslink\')">All Symbols</td>')
								write('</tr>')
								write('<tr>')
									write('<td height="18" bgcolor="#EDEDED" class="moduleBody">')
									write('Enter a Symbol <br /><input type="text" name="textfield" style="width:100"/>')
									write('&#160;<a href="javascript:void(0)" onclick="layswap(\'tickers\',0,0)"><img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle"/></a>&#160;</td>')
								write('</tr>')
								write('<tr>')
									write('<td height="18" bgcolor="#EDEDED" class="moduleBody">')
									write('Or Enter a CUSIP<br /><input type="text" name="textfield" style="width:100"/>')
									write('&#160;<a href="javascript:void(0)" onclick="layswap(\'tickers\',0,0)"><img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle"/></a>&#160;</td>')
								write('</tr>')
							write('</table>')

						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="tf" style="position:absolute;left:0;top:0;display:none">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Last 7 Days </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Last 30 Days </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Month to Date </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Year to Date </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Previous Month </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Previous Year </td>');
								write('</tr>');
								write('<tr>');
									write('<td height="18" bgcolor="#EDEDED" class="moduleBody">');
									write('<strong>Custom</strong><br />');
									write('<table width="100%" border="0" cellspacing="0" cellpadding="2">');
										write('<tr>');
											write('<td>From </td>');
											write('<td><input type="text" name="textfield2" style="width:60px"/>&#160;<a href="javascript:void(0)"><img src="img/icon1_calendar.gif" width="10" height="10" /></a></td>');
										write('</tr>');
										write('<tr>');
											write('<td>To</td>');
											write('<td><input type="text" name="textfield22" style="width:60px"/>&#160;<a href="javascript:void(0)"><img src="img/icon1_calendar.gif" width="10" height="10" /></a></td>');
										write('</tr>');
										write('<tr>');
											write('<td>&nbsp;</td>');
											write('<td><a href="javascript:void(0)" onclick="layswap(\'tf\',0,0)"><img src="img/button_go.gif" width="28" height="16" border="0" /></a></td>');
										write('</tr>');
									write('</table>');
									write('<br /><a href="javascript:void(0)" onclick="layswap(\'tf\',0,0)"></a>&#160;</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="classes" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">All Portfolio Holdings</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Equity</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Fixed Income</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Cash</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Alternative Investments</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Balanced Mutual Funds</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Other</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<DIV ID="cal2" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV>');
			}
		}
		
		
		function openMellonpopup(popurl){
		
			var newwindow=window.open(popurl,'popupwindow',"height=600,width=800,left=100,top=100,resizable=1,menubar=1,scrollbars=1");
			if (window.focus) 
				{newwindow.focus();
			    }
			
		}
		
		function openpopup(popurl,winName,title,wdth,hgt)
		{
			var winpops=window.open(popurl,winName,wdth,hgt,"toolbar,location,directories,status,scrollbars,menubar,resizable")
		}
		
		  function newWindow(url){
			  var newWin=window.open(url,'popupwindow',"height=500,width=500,resizable=1,menubar=1,scrollbars=1");
				if (window.focus) 
				{newWin.focus();
			    }
		  }
		  
		   
		  function popup(){
		  var newWinBrokerage=window.open('http://www.google.com','mywindow',"width=400,height=200,toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no, resizable=no");
  		}
  			
			function createSubMenu(parname,linkname)
			{
				navLabels[iIndex]= parname;
		
				navLinkArrayLabels[iIndex]= linkname;
				jIndex=0;
				navArray[iIndex] = new Array();
				navLinkArray[iIndex] = new Array();
				 /*
				myarray[i]= vMenu.CreateMenu();
				myarray[i].displayHtml = parname;
				myarray[i].href=linkname;*/
			}
			
			function addToSubMenu(name,link)
			{
				navArray[iIndex][jIndex]=name;
				navLinkArray[iIndex][jIndex]= link;
				jIndex++;
				/*
				var vsubMenu = vMenu.CreateLink();
				vsubMenu.displayHtml=name;
				
				vsubMenu.href = link;
				myarray[i].AddItem(vsubMenu);
				*/
			}
			function linkSubMenu()
			{ 
				iIndex++;
				jIndex=0;/*
				vMenu.AddItem(myarray[i]);
				i++;	*/
			} 
			function prepareMenuForRendering() 
			{/*
				vMenu.SetOrientation("h");
				vMenu.SetSubMenuImage("flyout_arrow.gif", 4, 7);
				vMenu.SetSize(249, 25);*/
			}
			function highlightMenu(strSelected)
			{
			/*
				vMenu.highlightSelected(strSelected);*/
			} 

// JavaScript Document
var prototype_date = "13 Sep 06";
var theUser = "Jamie Fuller";
//var theUser = "Laura Russell";
var ie = (document.all) ? true:false;
var other = (document.getElementById) ? true:false;
var gebi=document.getElementById;
var currSel="";
var imgX = new Image();
var imgC = new Image();
// commented for perf change
var loc=tbSub(window.location);
var navLabels = new Array('WHO WE ARE','WHAT WE OFFER','NEWS AND INSIGHTS','CLIENT ACCESS');
var navHrefs = new Array('pub_whoweare.html','pub_whatweoffer.html','pub_newsinsights.html','pub_clientaccess.html');
var navIds= new Array('nav0','nav1','nav2','nav3');
var i=0;
var j=0;


var navArray = new Array();
var navLinkArray = new Array();
var navLinkArrayLabels = new Array();

var iIndex =0;
var jIndex=0;

function loadMenuBL()
{
	displayMenubc();
	displayMenuln();
}

function loadMenuB()
{
	displayMenubc();
}

function loadMenuL()
{
	displayMenuln();
}
function displayMenubc(){
var fullURL = window.location.pathname;

var sNVPairs = fullURL.split("/");
var menu;
var menufinal='';
var p='p';
var snvp;
var menu='';
for (var i = 2; i < sNVPairs.length; i++)
    {
        var sNV = sNVPairs[i].split(",");
        sNV='B'+sNV;
//alert(sNV);
if(i == sNVPairs.length-1) {
        var snv1 = new String(sNV);
        var snv2=snv1.split(".");
        snvp = snv2[0]+menu+p;
        sNV = snv2[0]+menu;
        //alert(snvp);
		if(document.getElementById(snvp)) { document.getElementById(snvp).style.display = ""; }
}else {
sNV = sNV+menu;
if(document.getElementById(sNV)) document.getElementById(sNV).style.display = "";
if(i==3) menu = sNV;
}
    }

}
function displayMenuln(){
var fullURL = window.location.pathname;

var sNVPairs = fullURL.split("/");
var menu;
var menufinal='';
var p='p';
var snvp;
var menu='';
for (var i = 2; i < sNVPairs.length; i++)
    {
        var sNV = sNVPairs[i].split(",");
//alert(sNV);
if(i == sNVPairs.length-1) {
        var snv1 = new String(sNV);
        var snv2=snv1.split(".");
        snvp = snv2[0]+menu+p;
        sNV = snv2[0]+menu;
        if(document.getElementById(sNV)) document.getElementById(sNV).style.display = "";
		if(document.getElementById(snvp)) { document.getElementById(snvp).className = "pwmMellonNavigSelected1"; }
		else {
			var sNVprv = sNVPairs[i-1];
			document.getElementById(sNVprv).style.color = "red";
		}
}else {
if(document.getElementById(sNV)) document.getElementById(sNV).style.display = "";
if(i==3) menu = sNV;
}
    }

}

function inArray(needle) {
  for (var i=0; i < this.length; i++) {
    if (this[i] === needle) {
      return i;
    }
  }
  return false;
}
Array.prototype.inArray = inArray;
String.prototype.toInt = function() {
    var a = new Array();
    for (var i = 0; i < this.length; i++) {
        a[i] = this.charCodeAt(i);
    }
    return a;
}
function swapData(el,p1,p2,p3,p4) {
	gebi(el).innerHTML = swapTable(p1,p2,p3,p4);	
}
// ALL SHOULD REALLY BE ONE FUNCTION, BUT ALAS -- NO TIME
function popHelp() {
	window.open('pub_help.html','thewin','width=620,height=650,toolbars=0');	
}
function popSave() {
	window.open('pvt_saveAs.html','thewin','width=588,height=467,toolbars=0');	
}
function incCal() {
	with(document) {
		write('<DIV ID="cal2" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV>');	
	}
}
function popPrint() {
	window.open('pvt_print.html','thewin','width=640,height=582,toolbars=0,scrollbars=yes');	
}
function viewDate() {
	document.write(prototype_date);	
}
function chopText(val) {
	var end = (val.indexOf("(")-1);
	val = val.substring(0,end);
	return val;
}
function alignTop(el,lay,pixwidth,pixheight) {
	var vContentLayer=document.getElementById(lay);
	var vEl=document.getElementById(el);
	xPos = vEl.offsetLeft;
	yPos = vEl.offsetTop;
	tempEl = vEl.offsetParent;
	while (tempEl != null) {
        	xPos += tempEl.offsetLeft;
		yPos += tempEl.offsetTop;
        	tempEl = tempEl.offsetParent;
    	}
	if(ie) {
	layswap(lay, eval(xPos+pixwidth), eval(yPos+pixheight));
	} else if(other) {
	layswap(lay, eval(xPos+100), eval(yPos+75));
	}
}
function alignNav(el,lay,pixwidth,pixheight) {
	var vContentLayer=document.getElementById(lay);
	var vEl=document.getElementById(el);
	xPos = vEl.offsetLeft;
	yPos = vEl.offsetTop;
	tempEl = vEl.offsetParent;
	while (tempEl != null) {
        	xPos += tempEl.offsetLeft;
		yPos += tempEl.offsetTop;
        	tempEl = tempEl.offsetParent;
    	}
	layswap(lay, eval(xPos+pixwidth), eval(yPos+pixheight));
}
function activate(num) {
		gebi('sub' + num).style.color = "#DFEDF4";
	}
	function writeGroups() {
		with(document) {
			for(i=0;i<gItems3.length;i++) {
				write('<option value="' + gItems3[i][0] + '">' + gItems3[i][0] + '</option>');	
			}
		}
	}
	function groupsIcons(status) {
		var tableVar = "";
			if(status==1) {
					tableVar+='<img width="11" height="1" />&#160;<a href="#"><img src="img/icon1_shiftAllDown.gif" width="11" height="12" alt="Move Down" border="0"/></a>&#160;<img width="11" height="1" />&#160;<img width="11" height="1" />';
			} else if(status==2) {
					tableVar+='<a href="#"><img src="img/icon1_shiftAllUp.gif" width="11" height="12" border="0" alt="Move Up"/></a>&#160;<a href="#"><img src="img/icon1_shiftAllDown.gif" width="11" height="12" alt="Move Down" border="0"/></a>&#160;<img width="11" height="1" />&#160;<img width="11" height="1" />';
			} else {
					tableVar+='<a href="#"><img src="img/icon1_shiftAllUp.gif" width="11" height="12" border="0" alt="Move Up"/></a>&#160;<a href="#"><img src="img/icon1_shiftAllDown.gif" width="11" height="12" alt="Move Down" border="0"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" width="11" height="12"  border="0"  alt="Delete"/></a>&#160;<a href="pvt_profile_editgroups.html"><img src="img/icon1_edit.gif" width="11" height="12" border="0" alt="Edit"/></a>';
			}
			tableVar+='&#160;';
		return tableVar;
	}
	function writeAccts() {
		document.write('<option value="" style="background-color:#CECECE"><b>Trusts...</b></option>');
		for(i=0;i<16;i++) {
			document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
		}
		document.write('<option value="" style="background-color:#CECECE"><b>IRAs...</b></option>');
		for(i=17;i<19;i++) {
			document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
		}
		document.write('<option value="" style="background-color:#CECECE"><b>Brokerage Accounts...</b></option>');
		for(i=20;i<22;i++) {
			document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
		}
		document.write('<option value="" style="background-color:#CECECE"><b>Personal IM Accounts...</b></option>');
		for(i=23;i<36;i++) {
			document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
		}
		
		
		
	}
function layswap(id,xPos,yPos) {
	document.getElementById(id).style.left = xPos + "px";
	document.getElementById(id).style.top = yPos + "px";
	if (document.getElementById(id).style.display == "none") {
		document.getElementById(id).style.display = "inline";
	} else {
		document.getElementById(id).style.display = "none";
	}
}
function setRows() {
		
}
function footer() {
	with(document) {
		write('<hr width="774px"><div class="footer">');
			write('<a href="#">Warranties &amp; Disclosures</a> &nbsp;|&nbsp; <a href="#">Privacy</a> &nbsp;|&nbsp; <a href="#">BNYMellon.com</a> &nbsp;|&nbsp; <a href="#">Sitemap</a>');
		write('</div>');
	}
}
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}
function getText(type,el,lid) {
	var theText = 	el.innerText;
	gebi(lid).innerText = theText;
	layswap(type,0,0);
}
function acctswap(type,val) {
	if(type=="toSel") {
		if(val=="3") {
			gebi('toRow').style.display="inline";
		} else {
			gebi('toRow').style.display="none";
		}
	} else if(type=="fromSel") {
		if(val=="3") {
			gebi('fromRow').style.display="inline";
		} else {
			gebi('fromRow').style.display="none";
		}
	}
}
function togglePanel(el,lay,xP,yP) {
	var theDivs = new Array('save','list','group','acct','assets','advfilters','basis','pships','callayer','tickers','trans','tf','classes','acctgroup','timeframe','grouponly');
	for(i=0;i<theDivs.length;i++) {
		if(theDivs[i]!=lay){
		gebi(theDivs[i]).style.display = "none";
		}
	}
	if(gebi(lay).style.display=="none") {
		alignTop(el,lay,xP,yP);
	} else {
		layswap(lay,xP,yP);
	}
	currSel = el;
}
function toggleRow(rowId) {
		if(gebi(rowId).style.display=="inline") {
			gebi(rowId).style.display="none";
			gebi('img1').src="img/icon1_expand.gif";
		} else {
			gebi(rowId).style.display="inline";
			gebi('img1').src="img/icon1_contract.gif";
		}
	}
	function rsToggle() {
		if(tbSub(window.location)=="pvt_relsummary.html") {
		// All NON-HARD CODED EXPANDO/COLLAPSOS HAPPEN HERE
			var dispVars = new Array();
			for(i=0;i<3;i++) {
				dispVars.push(gebi('chart' + (i+1)).style.display);	
			}
			if(dispVars[0]=="inline") {
				for(j=2;j<21;j++) {
					hardToggle('datarow' + j,'img1');	
				}
			} else if(dispVars[1]=="inline") {
				for(j=2;j<95;j++) {
					hardToggle('datarow' + j,'img1');	
				}
			} else if(dispVars[2]=="inline") {
				for(j=2;j<18;j++) {
					hardToggle('datarow' + j,'img1');	
				}
			}
		} else {
			return false;	
		}
	}
	function hardToggle(rowId,imgId) {
		if(gebi(rowId).style.display=="inline") {
			gebi(rowId).style.display="none";
			gebi(imgId).src="img/icon1_expand.gif";
		} else {
			gebi(rowId).style.display="inline";
			gebi(imgId).src="img/icon1_contract.gif";
		}
	}
	function positionMods() {
		var xPos = gebi('container').offsetWidth;
		var yPos = "138";
		gebi('sidemods').style.left = (xPos+10) + "px";
		gebi('sidemods').style.top = yPos + "px";
	}
function jump(target) {
	location=target;	
}
function checkLabel(val) {
	if(val=="1") {
		gebi('datefield').innerHTML = "<strong>Transfer Date*:</strong>";
		gebi('duration').style.display = 'none';
	} else {
		gebi('datefield').innerHTML = "<strong>Start Date*:</strong>";
		gebi('duration').style.display = 'inline';
	}
}
function chk(val) {
	if(val=="ach") {
		gebi('achRow').style.display='inline';
		gebi('wtRow').style.display='none';
		gebi('cRow').style.display='none';
	} else if(val=="wt") {
		gebi('achRow').style.display='none';
		gebi('wtRow').style.display='inline';
		gebi('cRow').style.display='none';
	} else if(val=="check") {
		gebi('achRow').style.display='none';
		gebi('wtRow').style.display='none';
		gebi('cRow').style.display='inline';
	}
}
function groupSwap(flag,linkEl) {
	var theTable1 = gebi('swapResults');
	var theTable2 = gebi('swapIncluded');
	var activeRow = linkEl.parentNode.parentNode.rowIndex;
	var cellCt = linkEl.parentNode.parentNode.childNodes.length;
	if(flag==1) {
	var fromRow = theTable2.childNodes[0].childNodes[activeRow];
	var fromCell = fromRow.childNodes[0];
		var remRowCt = gebi('swapResults').childNodes[0].childNodes.length;
		var theBody = linkEl.parentNode.parentNode.parentNode;
		var resultsRowCt = theTable1.childNodes[0].childNodes.length;
		for(j=0;j<resultsRowCt;j++) {
			var toCell = theTable1.childNodes[0].childNodes[j].childNodes[0];
			if(fromCell.innerHTML==toCell.innerHTML) {
				toCell.parentNode.childNodes[2].innerHTML = "<a href=\"javascript:void(0)\" onclick=\"groupSwap(0,this)\">Add to Group <img src=\"img/icon1_addgroup.gif\" width=\"10\" height=\"9\" align=\"absmiddle\" /></a>";
				linkEl.parentNode.parentNode.parentNode.deleteRow(activeRow);
			}
		}
	} else if(flag==0) {
		var fromRow = theTable1.childNodes[0].childNodes[activeRow];
		fromRow.childNodes[2].innerHTML = "Included";
		var newRow = theTable2.tBodies[0].appendChild(document.createElement('tr'));
		for(i=0;i<cellCt;i++) {
			var cell = document.createElement('TD');
			cell.innerHTML = theTable1.childNodes[0].childNodes[activeRow].childNodes[i].innerHTML;
			newRow.appendChild(cell);
		}
		newRow.childNodes[2].innerHTML ='<a href="javascript:void(0)" onclick="groupSwap(1,this)"><img src="img/icon1_remgroup.gif" width="10" height="9" align="absmiddle" /> Remove</a>';
	}
}
function duration(val) {
	if(val=="1") {
		gebi('d1').style.display='none';
		gebi('d2').style.display='none';
	} else if(val=="2") {
		gebi('d1').style.display='inline';
		gebi('d2').style.display='none';
	} else if(val=="3") {
		gebi('d1').style.display='none';
		gebi('d2').style.display='inline';
	}
}
function icon(type,href) {
	var theImgs = new Array('account','attachment','calendar','delete','edit','email','expand','folder','info','newWindow','print','recurrence','save','schedule','view','shiftUp','shiftDown','shiftLeft','shiftRight','shiftAllUp','shiftAllDown','shiftAllLeft','shiftAllRight','file','history');
	var alts = new Array('Account Activity','Attach','Calendar','Delete','Edit','Send','Expand','folder','info','newWindow','Print','recurrence','Save','Schedule','More Details','Shift Up','Shift Down','Shift Left','Shift Right','Move Up','Move Down','Shift All Left','Shift All Right','Statement','Past Versions');
	return('<a href="' + href + '"><img alt="' + alts[type] + '" src="img/icon1_' + theImgs[type] + '.gif" border="0" align="absmiddle"/></a>');
}
function profileNav(curr) {
	var navitems = new Array('ACCOUNT NICKNAMES','MANAGE GROUPS','PREFERENCES','MANAGE ALERTS','RESET PASSWORD');
	var navlinks = new Array('pvt_profile_acctnicknames.html','pvt_profile_managegroups.html','pvt_profile_preferences.html','pvt_profile_managealerts.html','#');
	with(document) {
		write('<div style="float: left;" class="leftnav">');
				write('<p>');
					for(i=0;i<navitems.length;i++) {
						write('<a href="' + navlinks[i] + '"');
						if(curr==i) {
							write(' class="current_theme"');
						}
						write('>' + navitems[i] + ' &raquo;</a><br>');
					}
				write('</p>');
				write('<p><a href="#">Banking SETTINGS</a>&#160;&#160;<img src="img/icon1_newWindow.gif" alt= "New Window"/></p>');
			write('</div>');	
	}
}
function xferNav(curr) {
	var navitems = new Array('TRANSFER STATUS','TRANSFER HISTORY','REQUEST A TRANSFER');
	var navlinks = new Array('pvt_transfers.html','pvt_transfers_history.html','pvt_transfers_request.html');
	with(document) {
		write('<div style="float: left;" class="leftnav">');
				write('<p>');
					for(i=0;i<navitems.length;i++) {
						write('<a href="' + navlinks[i] + '"');
						if(curr==i) {
							write(' class="current_theme"');
						}
						write('>' + navitems[i] + ' &raquo;</a><br>');
					}
					write('<br>Other Transfers<br>');
					write('<a href="#">Banking To Banking</a>&#160;&#160;');
				write('</p>');
			write('</div>');	
	}
}
function tbSub(el) {
	var whole = el.toString();
	var start = whole.lastIndexOf("/");
	var end = whole.length;
	var thepage = whole.substring(start+1,end);
	return thepage;
}
function newCash(idx) {
	if((idx==0)||(idx==1)) {
		gebi('cashrow').style.display="none";
	} else {
		gebi('cashrow').style.display="inline";
		gebi('cashfield').innerHTML = cashAmt[idx];
	}
}
function acctSub(val) {
	if(val.length>21) {
		var retVal = val.substring(0,21) + "...";
	} else {
		var retVal = val;
	}
	return retVal;
}
/*
function writeNav(active) {
	with(document) {
		write('<table width="774px" border="0" cellspacing="0" cellpadding="0">');
			write('<tr>');
				write('<td align="right" valign="top" class="overnav">');
					write('<a href="javascript:popHelp()">HELP</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_search.html">SEARCH</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_locations.html">LOCATIONS</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_contactus.html">CONTACT US</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_sitetour.html">SITE TOUR</a>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td><table width="100%" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td><a href="index.html"><img src="img/mellon_logo_nontitle.gif" width="152" height="47" border="0" /></a></td>');
						write('<td align="right"><img src="img/mellon_title.gif" width="282" height="47" border="0"/></td>');
					write('</tr>');
				write('</table>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td>');
					write('<ul id="minitabs">');
					for(i=0;i<navLabels.length;i++) {
						write('<li id="nav' + i + '"');
						if(i==active) {
							write(' class="current"');
						}
						if(i==(navLabels.length-1)) {
							write(' style="border-right: solid 1px #718492"');	
						} else if(i<(navLabels.length-1)) {
							write(' onmouseover="alignNav(\'nav' + i+ '\',\'subnav' + i + '\',0,17)" onmouseout="layswap(\'subnav' + i + '\',0,0)"');
						}
						write('"><a href="' + navHrefs[i] +'">' + navLabels[i] + '</a></li>');
					}
					write('</ul>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td class="navBgActive" height="22">');
					write('<table width="774" border="0" cellpadding="0" cellspacing="0">');
						write('<tr align="center" class="homenav">');
							write('<td valign="middle" nowrap="nowrap" class="navLvl2"><a id="sub1" href="pvt_groupsummary.html" class="navLvl2">RELATIONSHIP SUMMARY</a></td>');
							write('<td width="1" nowrap="nowrap""><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub2" href="pvt_portfolio.html" class="navLvl2">PORTFOLIOS</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub3" href="pvt_banking.html" class="navLvl2">BANKING</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub4" href="pvt_brokerage.html" class="navLvl2">BROKERAGE</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub5" href="pvt_reporting.html" class="navLvl2">REPORTING</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub6" href="pvt_transfers.html" class="navLvl2">TRANSFERS</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub7" href="pvt_messagectr.html" class="navLvl2">MESSAGE CENTER</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub8" href="pvt_profile_acctnicknames.html" class="navLvl2">MY PROFILE</a></td>');
						write('</tr>');
					write('</table>');
				write('</td>');
			write('</tr>');
		write('</table>');		
	}
}
*/
function writeNav(active) {
	with(document) {
		write('<table width="774px" border="0" cellspacing="0" cellpadding="0">');
			write('<tr>');
				write('<td align="right" valign="top" class="overnav">');
					write('<a href="javascript:popHelp()">HELP</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_search.html">SEARCH</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_locations.html">LOCATIONS</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_contactus.html">CONTACT US</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_sitetour.html">SITE TOUR</a>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td><table width="100%" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td><a href="index.html"><img src="img/mellon_logo_nontitle.gif" width="152" height="47" border="0" /></a></td>');
						write('<td align="right"><img src="img/mellon_title.gif" width="282" height="47" border="0"/></td>');
					write('</tr>');
				write('</table>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td>');
					write('<ul id="minitabs">');
					for(i=0;i<navLabels.length;i++) {
						write('<li id="nav' + i + '"');
						if(i==active) {
							write(' class="current"');
						}
						if(i==(navLabels.length-1)) {
							write(' style="border-right: solid 1px #718492"');	
						} 
						write('"><a href="' + navHrefs[i] +'">' + navLabels[i] + '</a></li>');
					}
					write('</ul>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td class="navBgActive" height="22">');
					write('<table width="774" border="0" cellpadding="0" cellspacing="0">');
						write('<tr align="center" class="homenav">');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub1" href="pvt_groupsummary.html" onmouseover="alignNav(\'sub1\',\'subsubnav1\',0,14)" onmouseout="layswap(\'subsubnav1\',0,0)" class="navLvl2">SUMMARY</a></td>');
							write('<td width="1" nowrap="nowrap""><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub2" href="pvt_portfolio.html" onmouseover="alignNav(\'sub2\',\'subsubnav2\',0,14)" onmouseout="layswap(\'subsubnav2\',0,0)" class="navLvl2">PORTFOLIO DETAILS</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub3" href="pvt_banking.html" onmouseover="alignNav(\'sub3\',\'subsubnav3\',0,14)" onmouseout="layswap(\'subsubnav3\',0,0)" class="navLvl2">BANKING</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub4" href="pvt_brokerage.html" onmouseover="alignNav(\'sub4\',\'subsubnav4\',0,14)" onmouseout="layswap(\'subsubnav4\',0,0)" class="navLvl2">BROKERAGE</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub5" href="pvt_reporting.html" onmouseover="alignNav(\'sub5\',\'subsubnav5\',0,14)" onmouseout="layswap(\'subsubnav5\',0,0)" class="navLvl2">REPORTING</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub6" href="pvt_transfers.html" onmouseover="alignNav(\'sub6\',\'subsubnav6\',0,14)" onmouseout="layswap(\'subsubnav6\',0,0)" class="navLvl2">TRANSFERS</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub7" href="pvt_messagectr.html" onmouseover="alignNav(\'sub7\',\'subsubnav7\',0,14)" onmouseout="layswap(\'subsubnav7\',0,0)" class="navLvl2">MESSAGE CENTER</a></td>');
							write('<td width="1" nowrap="nowrap"><span style="font-size:14px;color:#FFFFFF;font-weight:normal">|</span></td>');
							write('<td nowrap="nowrap" class="navLvl2"><a id="sub8" href="pvt_profile_acctnicknames.html" onmouseover="alignNav(\'sub8\',\'subsubnav8\',0,14)" onmouseout="layswap(\'subsubnav8\',0,0)" class="navLvl2">SETTINGS</a></td>');
						write('</tr>');
					write('</table>');
				write('</td>');
			write('</tr>');
		write('</table>');		
	}
}
function writeNavNoSub(active) {
	with(document) {
		write('<table width="774px" border="0" cellspacing="0" cellpadding="0">');
			write('<tr>');
				write('<td align="right" valign="top" class="overnav">');
					write('<a href="javascript:popHelp()">HELP</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_search.html">SEARCH</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_locations.html">LOCATIONS</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_contactus.html">CONTACT US</a>&#160;&#160;|');
					write('&#160;&#160;<a href="pub_sitetour.html">SITE TOUR</a>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td><table width="100%" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td><a href="index.html"><img src="img/mellon_logo_nontitle.gif" width="152" height="47" border="0" /></a></td>');
						write('<td align="right"><img src="img/mellon_title.gif" width="282" height="47" /></td>');
					write('</tr>');
				write('</table>');
				write('</td>');
			write('</tr>');
			write('<tr>');
				write('<td>');
					write('<ul id="minitabs">');
					for(i=0;i<navLabels.length;i++) {
						write('<li id="' + navIds[i] + '"');
						if(i==active) {
							write(' class="current"');
						}
						if(i==(navLabels.length-1)) {
							write(' style="border-right: none"');	
						} 
						write('"><a href="' + navHrefs[i] +'">' + navLabels[i] + '</a></li>');
					}
					write('</ul>');
				write('</td>');
			write('</tr>');
			write('<tr>');
					write('<td bgcolor="#718492" nowrap="nowrap" colspan="' + navLabels.length + '" height="6"><img width="1" height="6"/></td>');
			write('</tr>');
		write('</table>');		
	}
}
function writeNavHome(active,isFly) {
	with(document) {
		write('<table width="1002px" border="0" cellspacing="0" cellpadding="0">');
			write('<tr>');
				write('<td>');
					if(isFly=="true"){
						write('<ul id="minitabs_themes">');
					}
					else{
					write('<ul id="minitabs_themes_logged">');
					}
					for(i=0;i<navLabels.length;i++) {
						write('<li id="' + navIds[i] + '"');
					if(navLabels[i]==active) {
						if(navLabels[i]=="CLIENT ACCESS") {
						  write(' class="expand_theme"');						
						}else{
						  isActive = true;
						  write(' class="current_theme"');						
						}
					}
					
					else if((active=="Home Page")||(active=="HiddenPages")){
						if(navLabels[i]=="CLIENT ACCESS") {
						  write(' class="expand_theme2"');						
						}else{
						  write('class="inactive_theme"');
						}
					}
					else if(navLabels[i]=="CLIENT ACCESS"){
						write(' class="current_theme_client"');
					}
						if(i==(navLabels.length-1)) {
							write(' style="border-right: solid 1px #718492"');
							
						} else if(i<(navLabels.length-1)) {
							if(isFly=="true"){
								write(' onmouseover="alignNav(\'nav' + i+ '\',\'subnav' + i + '\',0,24)" onmouseout="layswap(\'subnav' + i + '\',0,0)"');
								
							}
						}
						write('"><a href="' + navLinkArrayLabels[i] +'">' + navLabels[i] + '</a></li>');
						
					}
					
					write('</ul>');
				write('</td>');
			write('</tr>');
		write('</table>');		
	}
}
/*
function subnav() {
	var whole = location.toString();
	var start = whole.lastIndexOf("/");
	var end = whole.length;
	var thepage = whole.substring(start+1,end);
	if((thepage=='index.html')||(thepage=='')) {
		var tabWidth = "193";	
	} else {
		var tabWidth = "193";
	}
	with(document) {
		write('<div id="subnav0" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'nav0\',\'subnav0\',0,17)" onMouseOut="layswap(\'subnav0\',0,0)">');
			write('<table width="' + tabWidth + '" border="0" cellspacing="0" cellpadding="0">');
  				write('<tr>');
    					write('<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
  						write('<tr>');
    							write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Our Practice</td>');
 			 			write('</tr>');
  						write('<tr>');
    							write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Our Process</td>');
  						write('</tr>');
 		 				write('<tr>');
    							write('<td class="subnav" onClick="jump(\'pub_history.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Our History</td>');
  						write('</tr>');
						write('<tr>');
    							write('<td class="subnav" onClick="jump(\'pub_who_management.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Management Team</td>');
  						write('</tr>');
  						write('<tr>');
    							write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;BNY Mellon Corporate</td>');
  						write('</tr>');
					write('</table>');
				write('</td>');
  			write('</tr>');
		write('</table>');
	write('</div>');
	write('<div id="subnav1" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'nav1\',\'subnav1\',0,17)" onMouseOut="layswap(\'subnav1\',0,0)">');
		write('<table width="' + tabWidth + '" border="0" cellspacing="0" cellpadding="0">');
 			write('<tr>');
    				write('<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
 						write('<tr>');
            					write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Individuals</td>');
  						write('</tr>');
  						write('<tr>');
            					write('<td class="subnav" onClick="jump(\'pub_familyoffice.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Family Office</td>');
  						write('</tr>');
  						write('<tr>');
            					write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Charitable Gift Programs</td>');
  						write('</tr>');
						write('<tr>');
            					write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Professionals &amp; Institutions</td>');
  						write('</tr>');
						write('<tr>');
            					write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Endowments &amp; Foundations</td>');
  						write('</tr>');
					write('</table>');
				write('</td>');
  			write('</tr>');
		write('</table>');
	write('</div>');
	write('<div id="subnav2" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'nav2\',\'subnav2\',0,17)" onMouseOut="layswap(\'subnav2\',0,0)">');
		write('<table width="' + tabWidth + '" border="0" cellspacing="0" cellpadding="0">');
  			write('<tr>');
    				write('<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
           			write('<tr>'); 
            				write('<td class="subnav" onClick="jump(\'pub_melloninnews.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;BNY Mellon in the News</td>');
          			write('</tr>');
		  			write('<tr>'); 
            				write('<td class="subnav" onClick="jump(\'pub_pressreleases.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Press Releases</td>');
          			write('</tr>');
		  			write('<tr>'); 
            				write('<td class="subnav" onClick="jump(\'pub_communitysupport.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Community Support</td>');
          			write('</tr>');
					write('<tr>'); 
            				write('<td class="subnav" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Market Updates</td>');
          			write('</tr>');
          			write('<tr>');
            				write('<td class="subnav" onClick="jump(\'pub_insights.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Insights</td>');
          			write('</tr>');
        			write('</table>');
			write('</td>');
  		write('</tr></table>');
	write('</div>');
	write('<div id="subnav3" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'nav3\',\'subnav3\',0,17)" onMouseOut="layswap(\'subnav3\',0,0)">');
		write('<table width="' + tabWidth + '" border="0" cellspacing="0" cellpadding="0">');
  			write('<tr>');
    				write('<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="2">');
           			write('<tr>'); 
            				write('<td class="subnav" onClick="jump(\'pub_clientaccess.html\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'">&#160;&#160;Login</td>');
          			write('</tr>');
        			write('</table>');
			write('</td>');
  		write('</tr></table>');
	write('</div>');
	}
}
*/
	function subnav() {
		with(document) {
			write('<div id="subsubnav1" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub1\',\'subsubnav1\',0,14)" onMouseOut="layswap(\'subsubnav1\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_groupsummary.html\')">&#160;&#160;Group Summary</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_relsummary.html\')">&#160;&#160;Accounts Summary</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_team.html\')">&#160;&#160;My Team</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_profile_alertslist.html\')">&#160;&#160;Alerts</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav2" style="position:absolute;display:none;z-index:2;left:0;top:0;"onMouseOver="alignNav(\'sub2\',\'subsubnav2\',0,14)" onMouseOut="layswap(\'subsubnav2\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_portfolio.html\')">&#160;&#160;Holdings</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_portfolio_accountactivity.html\')">&#160;&#160;Account Activity</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_portfolio_estimatedincome.html\')">&#160;&#160;Estimated Income</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_portfolio_investmentobjectives.html\')">&#160;&#160;Investment Objectives</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_portfolio_analystcommentary.html\')">&#160;&#160;Analyst Commentary</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav3" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub3\',\'subsubnav3\',0,14)" onMouseOut="layswap(\'subsubnav3\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_banking.html\')">&#160;&#160;Online Banking</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav4" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub4\',\'subsubnav4\',0,14)" onMouseOut="layswap(\'subsubnav4\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_brokerage.html\')">&#160;&#160;Online Brokerage</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav5" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub5\',\'subsubnav5\',0,14)" onMouseOut="layswap(\'subsubnav5\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_reporting.html\')">&#160;&#160;Reporting Templates</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'">&#160;&#160;Saved Reports</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_reporting_statements.html\')">&#160;&#160;Statements</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_reporting_taxForms.html\')">&#160;&#160;Tax Documents</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_reporting_myDocuments.html\')">&#160;&#160;My Documents</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav6" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub6\',\'subsubnav6\',0,14)" onMouseOut="layswap(\'subsubnav6\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_transfers.html\')">&#160;&#160;Transfer Status</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_transfers_history.html\')">&#160;&#160;Transfer History</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_transfers_request.html\')">&#160;&#160;Internal Transfer Request</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_transfers_request_ext.html\')">&#160;&#160;External Transfer Request</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav7" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub7\',\'subsubnav7\',0,14)" onMouseOut="layswap(\'subsubnav7\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_messagectr.html\')">&#160;&#160;Messages</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="subsubnav8" style="position:absolute;display:none;z-index:2;left:0;top:0;" onMouseOver="alignNav(\'sub8\',\'subsubnav8\',0,14)" onMouseOut="layswap(\'subsubnav8\',0,0)">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
						write('<tr>');
							write('<td bgcolor="#666666"><table width="100%" border="0" cellspacing="1" cellpadding="2">');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_profile_acctnicknames.html\')">&#160;&#160;Account Nicknames</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_profile_managegroups.html\')">&#160;&#160;Manage Groups</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_profile_preferences.html\')">&#160;&#160;Preferences</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'" onclick="jump(\'pvt_profile_managealerts.html\')">&#160;&#160;Manage Alerts</td>');
							write('</tr>');
							write('<tr>');
								write('<td class="subnav2" onMouseOver="this.className=\'hilite2\'" onMouseOut="this.className=\'subnav2\'">&#160;&#160;Reset Password</td>');
							write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
		}
	}
	
function subnavHome() {
	var whole = location.toString();
		var start = whole.lastIndexOf("/");
		var end = whole.length;
		var thepage = whole.substring(start+1,end);
		var tabWidth = "249";
		var i=0;
		var j=0;
		
		with(document) {
		//Test Mellon Theme Leaf nodes - Who We are
		//alert(navArray.length);
		for(i=0;i<navArray.length;i++){
			
			var strMain = "subnav";
			var str = strMain+i;
			var str1 = "nav"+i;
			
			if(navArray[i][0]=="CLIENT ACCESS")
				tabWidth = "249";
			var heightTotal = navArray[i].length * 25;
			write('<div id="' + str + '" style="position:absolute;display:none;z-index:4;left:0;top:0;" onMouseOver="alignNav(\'nav' + i+ '\',\'subnav' + i + '\',0,24)" onmouseout="layswap(\'subnav' + i + '\',0,0)">');
				write('<table width="' + tabWidth + '" border="0" cellspacing="0" cellpadding="0">');
					write('<tr height="' +heightTotal+ '">');
						write('<td bgcolor="#FFFFFF"><table height="100%" width="100%" border="0" cellspacing="1" cellpadding="3" align="top">');
							
							for(j=0;j<navArray[i].length;j++){
								
								write('<tr>');
									write('<td class="subnav" onClick="jump(\'' + navLinkArray[i][j] +'\')" onMouseOver="this.className=\'hilite\'" onMouseOut="this.className=\'subnav\'" >&nbsp;&nbsp;&nbsp;' + navArray[i][j] + '</td>');
								write('</tr>');
							}
						write('</table>');
					write('</td>');
				write('</tr>');
			write('</table>');
		write('</div>');
		}
	}
}

var iconView = "<img alt='More Details' src='img/icon1_view.gif' border='0' align='absmiddle'/>";
var testheaders = new Array('Security','CUSIP','Security Name/Tax Lot ID','Value Date','Price','Quantity','Market Price','Amount','Yield','Accruals','Unrealized Gain/Loss','Go To');
var testitems = new Array();
testitems[0] = new Array('#AAPL','037833100','Apple Computer, Inc.','','$62.00','10720','$65.56','$702,729.40','-','','$38,089.40',iconView);
testitems[1] = new Array('','','4568','04-Apr-05','$62.00','10720','$65.56','$702,729.40','','','$32,304.00','');
testitems[2] = new Array('','','Pending','','','5000','$65.56','$327,774.00','','','','');

var displayOpts = new Array('inline','inline','inline','inline');
function writeDataTable(dataHeaders,dataItems,dataAligns,dataLevels) {
	var dH = dataHeaders;
	var dI = dataItems;
	var dA = dataAligns;
	var dL = dataLevels;
	with(document) {
		write('<table width="100%" border="0" cellpadding="0" cellspacing="1" id="dataTable">');
			write('<tr class="dataTableHeader">');
			for(a=0;a<dH.length;a++) {
				write('<td>' + dH[a] + '</td>');	
			}
			write('</tr>');
			write('<tr class="dataTableFilter">');
			for(b=0;b<dH.length;b++) {
				write('<td><a href="javascript:void(0)"><img src="img/arrowDown.gif" border="0" alt="Sort on this Column"/></a></td>');	
			}
			write('</tr>');
			if((loc=="pvt_relsummary.html")||(loc=="pvt_portfolio.html")) {
				write('<tr><td height="20" colspan="' + dI[0].length + '"><a href="javascript:void(0)"><img src="img/icon1_expand.gif" border="0" align="absmiddle" /> Expand All</a>&#160;&#160;<a href="javascript:void(0)"><img src="img/icon1_contract.gif" border="0" align"absmiddle" /> Collapse All</a></td></tr>');
				}
				if(loc=="pvt_portfolio_estimatedincome.html") {
				write('<tr><td height="20" colspan="' + dI[0].length + '" style="font-size:11px;color:#666666;font-weight:bold">As of 12 Sep 06</td></tr>');
				}
			for(c=0;c<dI.length;c++) {
				if(dI[c].length>0){ 
				var disp; 
				if((tbSub(window.location)=="pvt_relsummary.html")&&(dL[c]!="1")) {
					disp = "none";
				} else {
					disp = "inline";	
				}
					write('<tr class="dataTableEntry" id="datarow' + c + '" style="display:' + disp + ';border-bottom: solid 1px #EDEDED">');
				
					for(d=0;d<dI[c].length;d++) {
						if(dI[c][d].length>0){ 
							var firstL = dI[c][d].substring(0,1);
							if(firstL=="*") {
								var theimg = "<img alt='Expand' id=\"img"+c+"\" src='img/icon1_expand.gif' border='0' align='absmiddle'/>";
								dI[c][d] = "<b>" + dI[c][d].substring(1,dI[c][d].length) + "</b>";
							} else if(firstL=="#") {
								if((c==1)||(dL[c]=="1")) {
									if(loc!="pvt_relsummary.html") {
										var iconState = "contract";
									} else{
										var iconState = "expand";
									}
								} else {
									var iconState = "contract";
								}
								var theimg = "<img alt='Contract' id=\"img"+c+"\" src='img/icon1_" + iconState + ".gif' border='0' align='absmiddle'/>";
								dI[c][d] = "<b>" + dI[c][d].substring(1,dI[c][d].length) + "</b>";
							} else if(firstL=="%") {
								var theimg = "";
								dI[c][d] = dI[c][d].substring(1,dI[c][d].length);
								gebi('datarow' + c).className = "dataSubheaderRow";
							} else if(firstL=="^") {
								var theimg = "";
								dI[c][d] = dI[c][d].substring(1,dI[c][d].length);
								gebi('datarow' + c).className = "dataSubheaderRow";
							} else {
								var theimg = "";	
							}
							if((d==0)&&((firstL!="#")&&(firstL!="*")&&(firstL!="^")&&(firstL!="%"))&&(loc=="pvt_relsummary.html")) {
								dI[c][d] = "<a href=\"#\" title=\"" + dI[c][d] + "\">" + acctSub(dI[c][d]) + "</a>";	
							}
						} else {
							var theimg = "";	
						}
						if(c==1) {
							if(tbSub(window.location)=="pvt_relsummary.html") {
								theimg = '<a href="javascript:void(0)" onclick="rsToggle()">' + theimg + '</a>';
							} else {
								theimg = '<a href="javascript:void(0)" onclick="toggleRow(\'datarow2\');toggleRow(\'datarow3\');toggleRow(\'datarow4\');toggleRow(\'datarow5\');toggleRow(\'datarow6\')">' + theimg + '</a>';
							}
						} else {
							theimg = '<a href="javascript:void(0)">' + theimg + '</a>';	
						}
						if(d==0) {
							if(dL[c]==1) {
		
							} else if(dL[c]==2){
								theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
							} else if(dL[c]==3) {
								theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
							}
						}
						if((dI[c][d]=="")||(dI[c][d]==null)) {
							dI[c][d] = "&#160;";	
						} else if (dataItems[c][d]=="NULL") {
							dI[c][d] = "--";	
						}
						if((dI[c][d].substring(0,1)=="-")&&(dI[c][d].substring(1,2)=="$")) {
							dI[c][d] = "(" + dI[c][d].substring(1,dI[c][d].length) + ")";	
						}
						if(((loc=="pvt_portfolio.html")||(loc=="pvt_portfolio_estimatedincome.html"))&&((d==0)||(d==2))&&(dI[c][d+2]!="")) {
							write('<td class="dataTableEntry2" height="20" nowrap="nowrap" align="' + dA[d] + '">' + theimg + '&#160;<a href="javascript:void(0)">' + dI[c][d] + '</a>&#160;</td>');
						} else {
							write('<td class="dataTableEntry2" height="20" nowrap="nowrap" align="' + dA[d] + '">' + theimg + '&#160;' + dI[c][d] + '&#160;</td>');
						}
					}
					write('</tr>');
				}
			}
			if(loc=="pvt_groupsummary.html") {
				write('<tr><td align="right" colspan="5"><a href="pvt_profile_managegroups.html">Manage Groups &raquo;</a></td></tr>');	
			}
		write('</table>');
		}
	}
	function writeDataTableAlt(dataHeaders,dataItems,dataAligns,dataLevels,expands) {
	with(document) {
		write('<table width="100%" border="0" cellpadding="0" cellspacing="1">');
			write('<tr class="dataTableHeader">');
			for(a=0;a<dataHeaders.length;a++) {
				write('<td>' + dataHeaders[a] + '</td>');	
			}
			write('</tr>');
			write('<tr class="dataTableFilter">');
			for(b=0;b<dataHeaders.length;b++) {
				write('<td><a href="javascript:void(0)"><img src="img/arrowDown.gif" border="0" alt="Sort on this Column"/></a></td>');	
			}
			write('</tr>');
			for(c=0;c<dataItems.length;c++) {
				var disp;
				if(dataItems[c].length>0){ 
				if(expands.inArray(c)) {
					disp = "inline";
					
				} else {
					disp = "none";	
				}
				write('<tr class="dataTableEntry" id="datarow' + c + '" style="display:' + disp + ';border-bottom: solid 1px #EDEDED">');
				
				for(d=0;d<dataItems[c].length;d++) {
					if(dataItems[c][d].length>0){ 
					var firstL = dataItems[c][d].substring(0,1);
					if(firstL=="*") {
						var theimg = "<img alt='Expand' id=\"img"+c+"\" src='img/icon1_expand.gif' border='0' align='absmiddle'/>";
						dataItems[c][d] = dataItems[c][d].substring(1,dataItems[c][d].length);
					} else if(firstL=="#") {
						if((c==1)||(dataLevels[c]=="1")) {
							var iconState = "expand";
						} else {
							var iconState = "contract";
						}
						var theimg = "<img alt='Contract' id=\"img"+c+"\" src='img/icon1_" + iconState + ".gif' border='0' align='absmiddle'/>";
						dataItems[c][d] = dataItems[c][d].substring(1,dataItems[c][d].length);
					} else if(firstL=="%") {
						var theimg = "";
						dataItems[c][d] = dataItems[c][d].substring(1,dataItems[c][d].length);
						gebi('datarow' + c).className = "dataSubheaderRow";
					} else if(firstL=="^") {
						var theimg = "";
						dataItems[c][d] = dataItems[c][d].substring(1,dataItems[c][d].length);
						gebi('datarow' + c).className = "dataSubheaderRow";
					} else {
						var theimg = "";	
					}
					} else {
						var theimg = "";	
					}
					if(c==1) {
							if(loc=="pvt_relsummary.html") {
								theimg = '<a href="javascript:void(0)" onclick="rsToggle()">' + theimg + '</a>';
							} else {
								theimg = '<a href="javascript:void(0)" onclick="toggleRow(\'datarow2\');toggleRow(\'datarow3\');toggleRow(\'datarow4\');toggleRow(\'datarow5\');toggleRow(\'datarow6\')">' + theimg + '</a>';
							}
						} else {
							theimg = '<a href="javascript:void(0)">' + theimg + '</a>';	
						}
					if(d==0) {
						if(dataLevels[c]==1) {
		
						} else if(dataLevels[c]==2){
							theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
						} else if(dataLevels[c]==3) {
							theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
						}
					}
					if((dataItems[c][d]=="")||(dataItems[c][d]==null)||(dataItems[c][d]=="NULL")) {
						dataItems[c][d] = "--";	
					}
					if((dataItems[c][d].substring(0,1)=="-")&&(dataItems[c][d].substring(1,2)=="$")) {
						dataItems[c][d] = "(" + dataItems[c][d].substring(1,dataItems[c][d],length) + ")";	
					}
					write('<td class="dataTableEntry2" height="20" nowrap="nowrap" align="' + dataAligns[d] + '">' + theimg + '&#160;' + dataItems[c][d] + '&#160;</td>');
				}
				
				write('</tr>');
				}
			}
		write('</table>');
		}
	}
function swapTable(dataHeaders,dataItems,dataAligns,dataLevels) {
	var dH = dataHeaders;
	var dI = dataItems;
	var dA = dataAligns;
	var dL = dataLevels;
	var tableVar = "";
		tableVar += '<table width="100%" border="0" cellpadding="0" cellspacing="1">';
			tableVar += '<tr class="dataTableHeader">';
			for(a=0;a<dH.length;a++) {
				tableVar += '<td>' + dH[a] + '</td>';	
			}
			tableVar += '</tr>';
			tableVar += '<tr class="dataTableFilter">';
			for(b=0;b<dH.length;b++) {
				tableVar += '<td><a href="javascript:void(0)"><img src="img/arrowDown.gif" border="0" alt="Sort on this Column"/></a></td>';	
			}
			tableVar += '</tr>';
			if((loc=="pvt_relsummary.html")||(loc=="pvt_portfolio.html")) {
				tableVar += '<tr><td height="20" colspan="' + dI[0].length + '"><a href="javascript:void(0)"><img src="img/icon1_expand.gif" border="0" align="absmiddle" /> Expand All</a>&#160;&#160;<a href="javascript:void(0)"><img src="img/icon1_contract.gif" border="0" align"absmiddle" /> Collapse All</a></td></tr>';
			}
			for(c=0;c<dI.length;c++) {
				var disp; 
				if(dL[c]!="1") {
					disp = "none";
				} else {
					disp = "inline";	
				}
				if(dI[c][0].substring(0,1)=="*") {
					var theClass = "dataTableEntry";
				} else if(dI[c][0].substring(0,1)=="#") {
					var theClass = "dataTableEntry";
				} else if(dI[c][0].substring(0,1)=="%") {
					var theClass = "dataSubheaderRow";
				} else if(dI[c][0].substring(0,1)=="^") {
					var theClass = "dataSubheaderRow";
				} else {
					var theClass = "";
				}
				tableVar += '<tr class="' + theClass + '"  id="datarow' + c + '" style="display:' + disp + ';border-bottom: solid 1px #EDEDED">';
				for(d=0;d<dI[c].length;d++) {
						var theimg;
						var theText = dI[c][d];
						var firstL = dI[c][d].substring(0,1);
						if(firstL=="*") {
							theimg = "<img id=\"img"+c+"\" src='img/icon1_expand.gif' border='0' align='absmiddle'/>";
							theText = theText.substring(1,theText.length);
						} else if(firstL=="#") {
							if((c==1)||(dL[c]=="1")) {
								var iconState = "expand";
							} else {
								var iconState = "contract";
							}
							var theimg = "<img alt='Contract' id=\"img"+c+"\" src='img/icon1_" + iconState + ".gif' border='0' align='absmiddle'/>";
							theText = theText.substring(1,theText.length);
						} else if(firstL=="%")  {
							theimg = "";
							theText = theText.substring(1,theText.length);
							//gebi('datarow' + c).className = "dataSubheaderRow";
						} else if(firstL=="^") {
							theimg = "";
							theText = theText.substring(1,theText.length);
							//gebi('datarow' + c).className = "dataSubheaderRow";
						} else {
							theimg = "";	
						}
						if((d==0)&&((firstL!="#")&&(firstL!="*")&&(firstL!="^")&&(firstL!="%"))) {
								theText = "<a href=\"#\" title=\"" + theText + "\">" + acctSub(theText) + "</a>";	
							}
					if(c==1) {
						if(tbSub(window.location)=="pvt_relsummary.html") {
							theimg = '<a href="javascript:void(0)" onclick="rsToggle()">' + theimg + '</a>';
						} else {
							theimg = '<a href="javascript:void(0)" onclick="toggleRow(\'datarow2\');toggleRow(\'datarow3\');toggleRow(\'datarow4\');toggleRow(\'datarow5\');toggleRow(\'datarow6\')">' + theimg + '</a>';
						}
					} else {
						theimg = '<a href="javascript:void(0)">' + theimg + '</a>';	
					}
					if(d==0) {
						if(dataLevels[c]==1) {
		
						} else if(dL[c]==2){
							theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
						} else if(dL[c]==3) {
							theimg = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;" + theimg;
						}
					}
					//if((dataItems[c][d]=="")||(dataItems[c][d]==null)) {
					//	dataItems[c][d] = "&#160;";	
					//}
					tableVar += '<td class="dataTableEntry2" height="20" nowrap="nowrap" align="' + dA[d] + '">' + theimg + '&#160;' + theText + '&#160;</td>';
				}
				tableVar += '</tr>';
			}
		tableVar += '</table>';
		return tableVar;
	}
	function printMod(type) {
		if(type==1) { // MARKET INFORMATION MODULE
			with(document) {
			write('<div class="cssbox" style="width:189px">');
				write('<div class="cssbox_head"><h2></h2></div>');
					write('<div class="cssbox_body">');
						write('<table width="184px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td class="moduleHeader2"><span class="icons"><a href="#"><img src="img/icon_info.gif" border="0" alt="Help for this Topic"/></a></span>MARKET INFORMATION</td>');
					write('</tr>');
					write('<tr>');
						write('<td class="list">');
							write('&#160;<input type="text" name="textfield" style="width:100px"/>');
							write('&#160;<a href="#" class="moduleLinks"><img src="img/button_getquotes.gif" width="69" height="16" align="absmiddle" border="0" /></a></td>');
					write('</tr>');
					write('<tr>');
						write('<td class="list">');
							write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
							for(i=0;i<mwatch.length;i++) {
							write('<tr>');
								write('<td class="moduleBody2" nowrap="nowrap">' + mwatch[i][0] + '</td>');
								write('<td class="moduleBody2" align="right">' + mwatch[i][1] + '</td>');
								write('<td class="moduleBody2" align="right">' + mwatch[i][2] + '</td>');
							write('</tr>');
							}
						write('</table></td>');
					write('</tr>');
					write('<tr>');
						write('<td align="right" class="moduleBody2">Quotes are delayed 20 minutes.<br />');
							write('<a href="#" class="moduleLinks2">Disclaimer &raquo;</a></td>');
					write('</tr>');
				write('</table>');
					write('</div>');
				write('</div>');
			}
		} else if(type==2) {
			with(document) { // LAST 5 ALERTS
			write('<div class="cssbox" style="width:189px">');
				write('<div class="cssbox_head"><h2></h2></div>');
					write('<div class="cssbox_body">');
						write('<table width="184px" border="0" cellspacing="0" cellpadding="0" class="ph">');
							write('<tr>');
								write('<td class="moduleHeader2"><span class="icons"><a href="javascript:void(0)" onclick="popHelp()"><img src="img/icon_info.gif" alt="Help for this Topic" border="0"/></a><a href="pvt_profile_managealerts.html"><img src="img/icon_attach.gif" border="0" alt="Manage Alerts"/></a><a href="#"><img src="img/icon_print.gif" border="0" alt="Print"/></a></span>LAST 5 ALERTS </td>');
							write('</tr>');
							write('<tr>');
								write('<td><span class="icons"><a href="#"><img src="img/icon_pclip.gif" border="0" alt="Edit"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" alt="Delete" border="0"/></a></span><a href="#" class="moduleLinks2">Cash &amp; CE Over 10%</a><br />');
								write('<span class="moduleBody2">&#160;Account: <a href="pvt_portfolio_accountactivity.html" class="moduleLinks2">98994249889</a></span></td>');
							write('</tr>');
							write('<tr>');
								write('<td><span class="icons"><a href="#"><img src="img/icon_pclip.gif" border="0" alt="Edit"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" alt="Delete" border="0"/></a></span><a href="#" class="moduleLinks2">Basic Materials Below 16%</a><br />');
								write('<span class="moduleBody2">Account: <a href="pvt_portfolio_accountactivity.html" class="moduleLinks2">Michael\'s Growth Trust</a></span></td>');
							write('</tr>');
							write('<tr>');
								write('<td><span class="icons"><a href="#"><img src="img/icon_pclip.gif" border="0" alt="Edit"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" alt="Delete" border="0"/></a></span><a href="#" class="moduleLinks2">Distribution Over $10k</a><br />');
								write('<span class="moduleBody2">Account: <a href="pvt_portfolio_accountactivity.html" class="moduleLinks2">98728474648</a></span></td>');
							write('</tr>');
							write('<tr>');
								write('<td><span class="icons"><a href="#"><img src="img/icon_pclip.gif" border="0" alt="Edit"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" alt="Delete" border="0"/></a></span><a href="#" class="moduleLinks2">Equity Over 60%</a><br />');
								write('<span class="moduleBody2">Group: <a href="pvt_relsummary.html" class="moduleLinks2">Steven Donovan</a></span>');
							write('</td>');
							write('</tr>');
							write('<tr>');
								write('<td><span class="icons"><a href="#"><img src="img/icon_pclip.gif" border="0" alt="Edit"/></a>&#160;<a href="#"><img src="img/icon1_delete.gif" alt="Delete" border="0"/></a></span><a href="#" class="moduleLinks2">Mid Cap Below 22%</a><br />');
								write('<span class="moduleBody2">Group: <a href="pvt_relsummary.html" class="moduleLinks2">Partnerships</a></span>');
							write('</td>');
							write('</tr>');
							write('<tr>');
								write('<td align="right"><a href="pvt_profile_alertslist.html" class="moduleLinks2">View All Alerts &raquo;</a><br />');
								write('<a href="pvt_profile_managealerts.html" class="moduleLinks2">Set Alerts &raquo;</a></td>');
							write('</tr>');
						write('</table>');
					write('</div>');
				write('</div>');
			}
			} else if(type==3) { // CREATE NEW GROUP
			with(document) {
			write('<div class="cssbox" style="width:189px">');
				write('<div class="cssbox_head"><h2></h2></div>');
					write('<div class="cssbox_body">');
				write('<table width="184px" border="0" cellspacing="0" cellpadding="1" class="ph">');
					write('<tr>');
						write('<td class="moduleHeader2"><span class="icons"><a href="#"><img src="img/icon_info.gif" alt="Help for this Topic" border="0"/></a></span>MANAGE GROUPS</td>');
					write('</tr>');
					write('<tr>');
						write('<td class="moduleBody2">You can now organize your accounts into custom groups.</td>');
					write('</tr>');
					write('<tr>');
						write('<td align="right"><a href="pvt_profile_managegroups.html" class="moduleLinks2">Manage Groups &raquo;</a><br/><a href="pvt_groupsummary.html" class="moduleLinks2">View Group Summary &raquo;</a><br/><a href="pvt_profile_managegroups.html" class="moduleLinks2">Create a New Group &raquo;</a></td>');
					write('</tr>');
				write('</table>');
				write('</div>');
				write('</div>');
			}
			} else if(type==4) { // PORTFOLITO LINKS
				with(document) {
				write('<div class="cssbox" style="width:189px">');
					write('<div class="cssbox_head"><h2></h2></div>');
						write('<div class="cssbox_body">');
					write('<table width="184px" border="0" cellspacing="0" cellpadding="1" class="ph">');
						write('<tr>');
							write('<td class="moduleHeader2"><span class="icons"><a href="#"><img src="img/icon_info.gif" alt="Help for this Topic" border="0"/></a></span>PORTFOLIO DETAILS</td>');
						write('</tr>');
						write('<tr>');
							write('<td class="moduleBody2"><a href="pvt_portfolio.html" class="moduleLinks2">Holdings &raquo;</a><br/><a href="pvt_portfolio_accountactivity.html" class="moduleLinks2">Account Activity &raquo;</a><br/><a href="pvt_portfolio_estimatedincome.html" class="moduleLinks2">Estimated Income &raquo;</a><br/><a href="pvt_reporting_statements.html" class="moduleLinks2">Statements &raquo;</a><br/><a href="pvt_reporting_taxForms.html" class="moduleLinks2">Tax Documents &raquo;</a><br/></td>');
						write('</tr>');
					write('</table>');
					write('</div>');
					write('</div>');
				}
			} else if(type==5) { // MY TEAM MODULE
				with(document) {
				write('<div class="cssbox" style="width:189px">');
					write('<div class="cssbox_head"><h2></h2></div>');
						write('<div class="cssbox_body">');
					write('<table width="184px" border="0" cellspacing="0" cellpadding="1" class="ph">');
						write('<tr>');
							write('<td class="moduleHeader2"><span class="icons"><a href="#"><img src="img/icon_info.gif" alt="Help for this Topic" border="0"/></a></span>CONTACT MY TEAM</td>');
						write('</tr>');
						write('<tr>');
							write('<td class="moduleBody2"><strong>John Smith</strong><br/>Relationship Manager<br/>(555) 555-5555</td>');
						write('</tr>');
						write('<tr>');
							write('<td class="moduleBody2"><strong>Chris Holloway</strong><br/>Investment Center<br/>(555) 555-5555</td>');
						write('</tr>');
					write('</table>');
					write('</div>');
					write('</div>');
				}
			}
	}
	function writeDivs() {
		with(document) {
			write('<div id="save" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="0">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" style="cursor:hand" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="popSave();layswap(\'save\',0,0)">Format: CSV</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" style="cursor:hand" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="popSave();layswap(\'save\',0,0)">Excel</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" style="cursor:hand" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="popSave();layswap(\'save\',0,0)">PDF</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" style="cursor:hand" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="popSave();layswap(\'save\',0,0)">Quicken</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" style="cursor:hand" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="popSave();layswap(\'save\',0,0)">Money</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="basis" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'basis\',this,\'basislink\')">Trade Basis</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'basis\',this,\'basislink\')">Settlement Basis</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="pships" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'pships\',this,\'pshipslink\')">Include in Balance</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'pships\',this,\'pshipslink\')">Show Separately</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="group" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'group\',this,\'grouplink2\');gebi(\'chart1\').style.display=\'none\';gebi(\'chart2\').style.display=\'none\';gebi(\'chart3\').style.display=\'inline\';swapData(\'data\',relHeaders4,relItems4,relAligns4,relLevels4)">Sector</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'group\',this,\'grouplink2\');gebi(\'chart1\').style.display=\'none\';gebi(\'chart2\').style.display=\'inline\';gebi(\'chart3\').style.display=\'none\';swapData(\'data\',relHeaders5,relItems5,relAligns5,relLevels5)">Market Capitalization</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'group\',this,\'grouplink2\')">Sub-Asset Class</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'group\',this,\'grouplink2\')">Security</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="acct" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="190px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleLinks" height="18">Click on a Top Group</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acct\',this,\'acctlink2\')">All Accounts</td>');
								write('</tr>');
								for(i=0;i<gItems3.length;i++) {
									if(i>0) {
									write('<tr>');
										write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acct\',this,\'acctlink2\')">' + chopText(gItems3[i][0]) + '</td>');
									write('</tr>');
									}
								}
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody">Or Select any Group:<br/><br/>');
										write('<select name="group" id="group" style="width:130px">');
											write('<option value="" selected="selected">Select One...</option>');
											for(i=0;i<gItems3.length;i++) {
												if(i>0) {
													write('<option value="">' + chopText(gItems3[i][0]) + '</option>');
												}
											}
										write('</select>&#160;<img src="img/button_go.gif" border="0" /><br/>');
										write('<a class="moduleLinks" href="#">View the Group Summary &raquo;</a>');
									write('</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="grouponly" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="190px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleLinks" height="18">Click on a Top Group</td>');
								write('</tr>');
								write('<tr>');
								write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'grouponly\',this,\'aglink\')">All Accounts </td>');
							write('</tr>');
							for(i=0;i<gItems3.length;i++) {
								if(i>0) {
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'grouponly\',this,\'aglink\')">' + chopText(gItems3[i][0]) + '</td>');
								write('</tr>');
								}
							}
							write('<tr>');
								write('<td bgcolor="#EDEDED"><table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><strong class="moduleLinks">Or Select any Group: </strong><br /><br />');
											write('<select name="acctselect" style="width:130px"><option value="" selected="selected">Select One...</option>');
											for(i=0;i<gItems.length;i++) {
												if(i>0) {
													write('<option value="">' + chopText(gItems[i][0]) + '</option>');
												}
											}
											write('</select>&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle" /><br/><img width="1" height="5"/><br/><a href="pvt_groupsummary.html" class="moduleLinks">View the Group Summary &raquo;</a></td>');
									write('</tr>');
								write('</table></td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="assets" style="width:180px;position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="180px" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\');gebi(\'prefs1\').style.display=\'inline\';gebi(\'prefs2\').style.display=\'none\';gebi(\'chart1\').style.display=\'inline\';gebi(\'chart2\').style.display=\'none\';gebi(\'chart3\').style.display=\'none\';swapData(\'data\',relHeaders5,relItems5,relAligns5,relLevels5)">All Assets &amp; Liabilities</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\');gebi(\'prefs1\').style.display=\'none\';gebi(\'prefs2\').style.display=\'inline\';gebi(\'chart1\').style.display=\'none\';gebi(\'chart2\').style.display=\'inline\';gebi(\'chart3\').style.display=\'none\';swapData(\'data\',relHeaders3,relItems3,relAligns3,relLevels3)">Equity</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\')">Fixed Income</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\')">Cash</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\')">Alternative Investments</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\')">Balanced Mutual Funds</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'assets\',this,\'assetlink2\')">Other</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="acctgroup" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="540" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999"><table width="100%" border="0" cellspacing="1" cellpadding="4">');
							write('<tr>');
								write('<td bgcolor="#EDEDED"><span class="moduleHeader"><strong>View a Group </strong></span><br />');
									write('<span class="moduleLinks">Click on a Top Group</span></td>');
								write('<td width="75%" rowspan="14" valign="top" bgcolor="#EDEDED"><span class="moduleHeader"><strong>View an Account</strong></span>');
									write('<table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><br />Select a Trust Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=0;i<16;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select an IRA Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=17;i<19;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select a Personal IM Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=23;i<36;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Or type in an account number:<br/>');
											write('<input name="" type="text" style="width:130px" />&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" align="absmiddle" /></td>');
									write('</tr>');
								write('</table></td>');
							write('</tr>');
							write('<tr>');
								write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acctgroup\',this,\'aglink\')">All Accounts </td>');
							write('</tr>');
							for(i=0;i<gItems3.length;i++) {
								if(i>0) {
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acctgroup\',this,\'aglink\')">' + chopText(gItems3[i][0]) + '</td>');
								write('</tr>');
								}
							}
							write('<tr>');
								write('<td bgcolor="#EDEDED"><table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><strong class="moduleLinks">Or Select any Group: </strong><br /><br />');
											write('<select name="acctselect" style="width:130px"><option value="" selected="selected">Select One...</option>');
											for(i=0;i<gItems.length;i++) {
												if(i>0) {
													write('<option value="">' + chopText(gItems[i][0]) + '</option>');
												}
											}
											write('</select>&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle" /><br/><img width="1" height="5"/><br/><a href="pvt_groupsummary.html" class="moduleLinks">View the Group Summary &raquo;</a></td>');
									write('</tr>');
								write('</table></td>');
								write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="acctgroup2" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="540" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999"><table width="100%" border="0" cellspacing="1" cellpadding="4">');
							write('<tr>');
								write('<td bgcolor="#EDEDED"><span class="moduleHeader"><strong>View a Group </strong></span><br />');
									write('<span class="moduleLinks">Click on a Top Group</span></td>');
								write('<td width="75%" rowspan="14" valign="top" bgcolor="#EDEDED"><span class="moduleHeader"><strong>View an Account</strong></span>');
									write('<table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><br />Select a Trust Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=0;i<16;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select an IRA Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=17;i<19;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select a Personal IM Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=23;i<36;i++) {
													write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Or type in an account number:<br/>');
											write('<input name="" type="text" style="width:130px" />&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" align="absmiddle" /></td>');
									write('</tr>');
								write('</table></td>');
							write('</tr>');
							for(i=0;i<gItems3.length;i++) {
							write('<tr>');
								write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acctgroup2\',this,\'aglink\');location=\'pvt_profile_editalerts.html\'">' + chopText(gItems3[i][0]) + '</td>');
								write('</tr>');
							}
							write('<tr>');
								write('<td bgcolor="#EDEDED"><table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><strong class="moduleLinks">Or Select any Group: </strong><br />');
											write('<select name="acctselect" style="width:130px"><option value="" selected="selected">Select One...</option>');
											for(i=0;i<gItems.length;i++) {
												if(i>0) {
													write('<option value="">' + chopText(gItems[i][0]) + '</option>');
												}
											}
											write('</select>&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle" /><br/><img width="1" height="5"/><br/><a href="pvt_groupsummary.html" class="moduleLinks">View the Group Summary &raquo;</a></td>');
									write('</tr>');
								write('</table></td>');
								write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="acctgroup3" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="540" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999"><table width="100%" border="0" cellspacing="1" cellpadding="4">');
							write('<tr>');
								write('<td bgcolor="#EDEDED"><span class="moduleHeader"><strong>View a Group </strong></span><br />');
									write('<span class="moduleLinks">Click on a Top Group</span></td>');
								write('<td width="75%" rowspan="14" valign="top" bgcolor="#EDEDED"><span class="moduleHeader"><strong>View an Account</strong></span>');
									write('<table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><br />Select a Trust Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=0;i<16;i++) {
													document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select an IRA Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=17;i<19;i++) {
													document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Select a Personal IM Account<br />');
											write('<select name="acctselect" style="width:360px"><option value="" selected="selected">Select One...</option>');
												for(i=23;i<36;i++) {
													document.write('<option value="' + xferDrops[i][1] + '">' + xferDrops[i][1] + ' - ' + xferDrops[i][0] + '</option>');	
												}
											write('</select>&#160;<br/><br/>');
											write('Or type in an account number:<br/>');
											write('<input name="" type="text" style="width:130px" />&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" align="absmiddle" /></td>');
									write('</tr>');
								write('</table></td>');
							write('</tr>');
							for(i=0;i<gItems3.length;i++) {
							write('<tr>');
								write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'acctgroup2\',this,\'aglink\');location=\'pvt_profile_editalerts.html\'">' + chopText(gItems3[i][0]) + '</td>');
								write('</tr>');
							}
							write('<tr>');
								write('<td bgcolor="#EDEDED"><table width="100%" border="0" cellspacing="0" cellpadding="5">');
									write('<tr>');
										write('<td class="moduleBody"><strong class="moduleLinks">Or Select any Group: </strong><br />');
											write('<select name="acctselect" style="width:130px"><option value="" selected="selected">Select One...</option>');
											for(i=0;i<gItems2.length;i++) {
												if(i>0) {
													write('<option value="">' + chopText(gItems2[i][0]) + '</option>');
												}
											}
											write('</select>&#160;');
											write('<img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle" /><br/><img width="1" height="5"/><br/><a href="pvt_groupsummary.html" class="moduleLinks">View the Group Summary &raquo;</a></td>');
									write('</tr>');
								write('</table></td>');
								write('</tr>');
						write('</table></td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="list" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Accounts</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Asset Type</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Management Types</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Sector</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\');swapData(\'data\',relHeaders3,relItems3,relAligns3,relLevels3)">Securities</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Sub-Asset Class</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'list\',this,\'listlink2\')">Tax Lots</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="advfilters" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="275" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12">');
									write('<input name="sep_part" type="checkbox" id="sep_part" value="1" /> Display Partnership Accounts Separately<br/>');
									write('<input name="sep_ben" type="checkbox" id="sep_ben" value="1" />Display  Beneficiary Accounts Separately<br/>');
									write('<input name="sep_other" type="checkbox" id="sep_other" value="1" />Display Other Accounts Separately<br/>');
									write('<br/>');
									write('<center><table border="0" cellpadding="0" cellspacing="0" width="95%">');
											write('<tr>');
												write('<td bgcolor="#999999" height="1"></td>');
											write('</tr>');
										write('</table></center><br/>');
										write('<a href="javascript:void(0)" onclick="layswap(\'advfilters\',0,0)"><img src="img/button_go.gif" border="0" align="right"/></a>');
									write('</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="trans" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleLinks" height="12">Select one or more</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox" value="checkbox" /> All </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox2" value="checkbox" /> Purchases</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox3" value="checkbox" /> Sales/Maturities</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox4" value="checkbox" /> Withdrawals</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox6" value="checkbox" />Securities</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><input type="checkbox" name="checkbox5" value="checkbox" /> Corporate Actions</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'"><a href="javascript:void(0)" onclick="layswap(\'trans\',0,0)"><img src="img/button_go.gif" width="28" height="16" border="0" /></a>&#160;</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="timeframe" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'timeframe\',this,\'timeframeLink\')">3 Months</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'timeframe\',this,\'timeframeLink\')">6 Months</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'timeframe\',this,\'timeframeLink\')">12 Months</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'timeframe\',this,\'timeframeLink\')">24 Months</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="callayer" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="175" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12">');
									write('<input name="trend_from" type="text" id="trend_from" style="width:90px" />&#160;<a href="#" onclick="cal.select(document.getElementById(\'trend_from\'),\'anchor1\',\'MM/dd/yyyy\');return false"><img src="img/icon1_calendar.gif" alt="Calendar" name="anchor1" width="10" height="10" border="0" align="absmiddle" id="anchor1" /></a>&#160;&#160;<a href="javascript:void(0)" onclick="layswap(\'callayer\',0,0)"><img src="img/button_go.gif" border="0" align="absmiddle"/></a>');
									write('</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="tickers" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');

							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">')
								write('<tr>')
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onclick="getText(\'tickers\',this,\'tickerslink\')">All Symbols</td>')
								write('</tr>')
								write('<tr>')
									write('<td height="18" bgcolor="#EDEDED" class="moduleBody">')
									write('Enter a Symbol <br /><input type="text" name="textfield" style="width:100"/>')
									write('&#160;<a href="javascript:void(0)" onclick="layswap(\'tickers\',0,0)"><img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle"/></a>&#160;</td>')
								write('</tr>')
								write('<tr>')
									write('<td height="18" bgcolor="#EDEDED" class="moduleBody">')
									write('Or Enter a CUSIP<br /><input type="text" name="textfield" style="width:100"/>')
									write('&#160;<a href="javascript:void(0)" onclick="layswap(\'tickers\',0,0)"><img src="img/button_go.gif" width="28" height="16" border="0" align="absmiddle"/></a>&#160;</td>')
								write('</tr>')
							write('</table>')

						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="tf" style="position:absolute;left:0;top:0;display:none">');
				write('<table width="193" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Last 7 Days </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Last 30 Days </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Month to Date </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Year to Date </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Previous Month </td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="18" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'tf\',this,\'tflink\')">Previous Year </td>');
								write('</tr>');
								write('<tr>');
									write('<td height="18" bgcolor="#EDEDED" class="moduleBody">');
									write('<strong>Custom</strong><br />');
									write('<table width="100%" border="0" cellspacing="0" cellpadding="2">');
										write('<tr>');
											write('<td>From </td>');
											write('<td><input type="text" name="textfield2" style="width:60px"/>&#160;<a href="javascript:void(0)"><img src="img/icon1_calendar.gif" width="10" height="10" /></a></td>');
										write('</tr>');
										write('<tr>');
											write('<td>To</td>');
											write('<td><input type="text" name="textfield22" style="width:60px"/>&#160;<a href="javascript:void(0)"><img src="img/icon1_calendar.gif" width="10" height="10" /></a></td>');
										write('</tr>');
										write('<tr>');
											write('<td>&nbsp;</td>');
											write('<td><a href="javascript:void(0)" onclick="layswap(\'tf\',0,0)"><img src="img/button_go.gif" width="28" height="16" border="0" /></a></td>');
										write('</tr>');
									write('</table>');
									write('<br /><a href="javascript:void(0)" onclick="layswap(\'tf\',0,0)"></a>&#160;</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<div id="classes" style="position:absolute;left:0;top:0;display:none;z-index:4">');
				write('<table width="180px" border="0" cellspacing="0" cellpadding="0">');
					write('<tr>');
						write('<td bgcolor="#999999">');
							write('<table width="100%" border="0" cellspacing="1" cellpadding="2">');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">All Portfolio Holdings</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Equity</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Fixed Income</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Cash</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Alternative Investments</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Balanced Mutual Funds</td>');
								write('</tr>');
								write('<tr>');
									write('<td bgcolor="#EDEDED" class="moduleBody" height="12" onmouseover="this.style.backgroundColor=\'#333333\';this.style.color=\'#EDEDED\'" onmouseout="this.style.backgroundColor=\'#EDEDED\';this.style.color=\'#333333\'" onclick="getText(\'classes\',this,\'classlink\')">Other</td>');
								write('</tr>');
							write('</table>');
						write('</td>');
					write('</tr>');
				write('</table>');
			write('</div>');
			write('<DIV ID="cal2" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV>');
			}
		}
		
		
		function openMellonpopup(popurl){
		
			var newwindow=window.open(popurl,'popupwindow',"height=600,width=800,left=100,top=100,resizable=1,menubar=1,scrollbars=1");
			if (window.focus) 
				{newwindow.focus();
			    }
			
		}
		
		function openpopup(popurl,winName,title,wdth,hgt)
		{
			var winpops=window.open(popurl,winName,wdth,hgt,"toolbar,location,directories,status,scrollbars,menubar,resizable")
		}
		
		  function newWindow(url){
			  var newWin=window.open(url,'popupwindow',"height=500,width=500,resizable=1,menubar=1,scrollbars=1");
				if (window.focus) 
				{newWin.focus();
			    }
		  }
		  
		   
		  function popup(){
		  var newWinBrokerage=window.open('http://www.google.com','mywindow',"width=400,height=200,toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no, resizable=no");
  		}
  			
			function createSubMenu(parname,linkname)
			{
				navLabels[iIndex]= parname;
		
				navLinkArrayLabels[iIndex]= linkname;
				jIndex=0;
				navArray[iIndex] = new Array();
				navLinkArray[iIndex] = new Array();
				 /*
				myarray[i]= vMenu.CreateMenu();
				myarray[i].displayHtml = parname;
				myarray[i].href=linkname;*/
			}
			
			function addToSubMenu(name,link)
			{
				navArray[iIndex][jIndex]=name;
				navLinkArray[iIndex][jIndex]= link;
				jIndex++;
				/*
				var vsubMenu = vMenu.CreateLink();
				vsubMenu.displayHtml=name;
				
				vsubMenu.href = link;
				myarray[i].AddItem(vsubMenu);
				*/
			}
			function linkSubMenu()
			{ 
				iIndex++;
				jIndex=0;/*
				vMenu.AddItem(myarray[i]);
				i++;	*/
			} 
			function prepareMenuForRendering() 
			{/*
				vMenu.SetOrientation("h");
				vMenu.SetSubMenuImage("flyout_arrow.gif", 4, 7);
				vMenu.SetSize(249, 25);*/
			}
			function highlightMenu(strSelected)
			{
			/*
				vMenu.highlightSelected(strSelected);*/
			} 

