// Required to be declared if the 
//MyFavorite DropDown control is not present in the page.
var formCover 

//--------------------------------------------------------------------------------------------
// Sniff Browser Type to see if we have version 4 or better in Netscape or IE
//--------------------------------------------------------------------------------------------

var isNav
var isIE
var isIE4
var isIE5
var isIE6 	// pjwNS6andIE6   added this line 
var isNS6 	// pjwNS6andIE6   added this line
var isMAC
isNS6 = false; 	// pjwNS6andIE6   added this line

isMAC = navigator.userAgent.indexOf("Mac");

if (parseInt(navigator.appVersion) >= 4) 
{
	
        if (navigator.appName == "Netscape") 
	{
		var tail = navigator.appVersion.indexOf(' ')
		var version = parseFloat(navigator.appVersion.substring(0,tail))
		
		if (version < 4.05) //then this is a bad version of the stand alone Navigator
		{
			gotoUpgradeBrowserPage();
		}
		if (version >= 4.05 && version <= 4.08) //then this is a GOOD version of stand alone navigator
		{
			isNav = true;
		}
		if (version > 4.08 && version < 4.5) //then this is a bad version of Communicator
		{
			gotoUpgradeBrowserPage();
		} 
		
		// pjwNS6andIE6   added the following "if ..." 
		if (version >= 5) //then this is NS 6.0
		{
			isIE = true;
			isIE5 = true;
			isNS6 = true;
		} 
		
		
		if (version >= 4.5) //then this is a GOOD version of Communicator
		{
			isNav = true;
		}	
        }
        else 
	{
                isIE = true;
                
                if (navigator.appVersion.indexOf("MSIE 5") == -1)
		{
			isIE4 = true;
		}
		
		// pjwNS6andIE6   added the following "if ..." 
		if (version > 5) //then this is IE 6.0 so tell it it's ie5
		{
			isIE = true;
			isIE5 = true;
			isIE6 = true;
			//alert('I am IE6');
		} 
		
		if (navigator.appVersion.indexOf("MSIE 5") != -1)
		{
			isIE5 = true;
			//alert('I am IE5');
		}
	}
}
else 
{
	gotoUpgradeBrowserPage();
}

function gotoUpgradeBrowserPage()	
{
	
	top.location.href="/public/upgradeBrowser.htm"
}

//----------------------------------------------------------------------------
//Global Disclaimer
//---------------------------------------------------------------------------

var currURL = document.URL.toUpperCase();


//---------------------------------------------------------------------------
//end global disclaimer
//---------------------------------------------------------------------------


//--------------------------------------------------------------------------------------------
// Function to SHOW the sub-menu when it is moused-over on the north nav bar
//--------------------------------------------------------------------------------------------
var openedMenu = 0
function showMenu(menuNumber) {				

				if (isMAC > -1) { 
				   	return(0); }
				
				// pjwNS6andIE6   added the following "if (isNS6 || isIE6) { ..." statement
				if (isNS6 || isIE6) {
					if (isNS6) {
						// because Netscape 6.0 leaves the menus open unless you exit by moving the mouse
						// up and off the menu or past one of the bordering columns surrounding the menu,
						// then we must close any opened menus before we open a new one
						if (openedMenu != 0) {
							var hide = "document.getElementById(\"" + "ieLayer" + openedMenu + "\").style.visibility=\"hidden\"";
							eval (hide);
							}
						}
					
					var show = "document.getElementById(\"" + "ieLayer" + menuNumber + "\").style.visibility=\"visible\"";
					eval (show);
					openedMenu = menuNumber
                    }
					
				else if (isNav) {
						var show = "document." + "nsLayer" + menuNumber + ".visibility=\"visible\"";
                        eval (show);
                        }
                else {
				
						if (isIE4) 
							{
							//because IE4 leaves the menus open unless you exit by moving the mouse
							//up and off the menu or past one of the bordering columns surrounding the menu,
							//then we must close any opened menus before we open a new one
							if (openedMenu != 0)
								{
								var hide = "document.all." + "ieLayer" + openedMenu + ".style.visibility=\"hidden\"";
								eval (hide);
								window.event.cancelBubble=true
								}
							}
						var show = "document.all." + "ieLayer" + menuNumber + ".style.visibility=\"visible\"";
						eval (show);
						window.event.cancelBubble=true
						openedMenu = menuNumber
					} 
				return(0); // added this line to fix a problem in Netscape 4.05 
                }
                
//--------------------------------------------------------------------------------------------
// Function to HIDE the sub-menu when it is moused-out on the north nav bar
//--------------------------------------------------------------------------------------------
function hideMenu(menuNumber) {
				

				// pjwNS6andIE6   added the following "if (isNS6 || isIE6) { ..." statement
				if (isNS6 || isIE6) {
						var hide = "document.getElementById(\"" + "ieLayer" + menuNumber + "\").style.visibility=\"hidden\"";
                        eval (hide);
						   }

                else if (isNav) {
						var hide = "document." + "nsLayer" + menuNumber + ".visibility=\"hide\"";
                        eval (hide);
						   }
               
                else if (isIE5 || isIE4){
						var hide = "document.all." + "ieLayer" + menuNumber + ".style.visibility=\"hidden\"";
                        eval (hide);
                        }
                }
                

//--------------------------------------------------------------------------------------------
// Function to HIDE or SHOW the QuickGuide menu when the tab is clicked and when page is loaded
//--------------------------------------------------------------------------------------------

var hideShow
function HideOrShowQuickGuide() 
{
	
	//now, hide or show the menu when user clicks the toggle switch and/or depending
	//on the value in the cookie when the page loads
        if (j % 2)
		{
		//alert(' j = ' + j + ' and j % 2 = ' + (j % 2));
				// pjwNS6andIE6   added the following "if (isNS6 || isIE6) ..." statement
				if (isNS6 || isIE6) 
					{
						document.getElementById("ieQuickGuideMenu").style.visibility="visible";
                    	hideShow="show";
					}
                else if (isNav) 
					{
                        document.nsQuickGuideMenu.visibility="visible";
                        hideShow="show";
					}
				else 
					{
                        document.all.ieQuickGuideMenu.style.visibility="visible";
                        hideShow="show";
					}
        }
        else 
        {
        //alert(' j = ' + j + ' and j % 2 = ' + (j % 2));
				// pjwNS6andIE6   added the following "if (isNS6 || isIE6) ..." statement
				if (isNS6 || isIE6) 
					{
						document.getElementById("ieQuickGuideMenu").style.visibility="hidden";
                    	hideShow="hide";
					}
                else if (isNav)
					{
                        document.nsQuickGuideMenu.visibility="hidden";
                        hideShow="hide";
					}
				else
					{
                        document.all.ieQuickGuideMenu.style.visibility="hidden";
                        hideShow="hide";
					}
        }               
        
		//write the value of i to the QuickGuide cookie to track if QuickGuide is Opened or Closed
		//across pages. 
		var today = new Date();
		var expire = new Date();
		expire.setTime(today.getTime() + 1000*60*60*24*365);
		document.cookie = "hideOrShow=" + hideShow + ";expires="+expire.toGMTString()+";Path=/";

		j += 1;
        if (j > 2) j = 1;
}
//--------------------------------------------------------------------------------------------
// Function to jump to a new page from Drop-List
//--------------------------------------------------------------------------------------------

//this function loads the new page into the existing browser window
function dropAndGo(theSelectList)
{
var selectValue, arrSplitForm, windowTarget
selectValue = theSelectList[theSelectList.selectedIndex].value
arrSplitForm = selectValue.split("###");
windowTarget = arrSplitForm[1]


if (theSelectList[theSelectList.selectedIndex].value == '###')
			window.parent.self.status=" Goes Nowhere";
if (windowTarget=='blank')
	{
	popUpWithToolbar(arrSplitForm[0])
	}
if (windowTarget=='top')
	{
	top.location.href=(arrSplitForm[0]);
	}
if (windowTarget=='newEx')
	{
	popUp(arrSplitForm[0],arrSplitForm[2],arrSplitForm[3])
	}
if (windowTarget=='newIn')
	{
	popUp(arrSplitForm[0],arrSplitForm[2],arrSplitForm[3])
	}
}



//--------------------------------------------------------------------------------------------
// Open MAS Connect - eBiz 2/9/2006
//--------------------------------------------------------------------------------------------
//HBXJSUPDATE: If we update the hbx.js file, this function needs to be updated/tested to make sure it still works.

function openMas(a,b,c,d,e,f,g)
{
	hbx_custom_record(a);
	setTimeout("window.open('https://www.netassetmgmt.com/enam/Russell.asp','openMas','width=800,height=550,scrollbars,resizable,address=no')",500);
}

//--------------------------------------------------------------------------------------------
// Open Russell Store
//--------------------------------------------------------------------------------------------
function openRussellStore(vPath) {

var winWidth
var winHeight
var sliced

winHeight = parseInt(590);
winWidth = parseInt(780);

// eBiz 3/20/2006: changed window name from 'null' to 'russellstore'
var page = "http://russellstore.russell.com/russellstore/" + vPath
  popupWin = window.open(page, 'russellstore',' menu=1,menubar=1,toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,top=120,left=115,width=' + winWidth + ',height=' + winHeight);
}

//--------------------------------------------------------------------------------------------
// Open Russell Store
//--------------------------------------------------------------------------------------------
function bowneBoxConnect() {

// eBiz 2/9/2006: changed window name from 'null' to 'eStore'
var finalurl = "/estore.aspx"
  popUpWindow = window.open(finalurl, 'eStore',' menu=0,menubar=0,toolbar=0,location=0,directories=0,status=1,scrollbars=1,resizable=1,copyhistory=1,width=750,height=400');
popUpWindow.focus();
}

//--------------------------------------------------------------------------------------------
// Open USD Intranet -- Create by adienst with two optional parameters of URL and Page Name
//--------------------------------------------------------------------------------------------
function openUSDIntranet(a,b) {
	var pageURL = '';
	var pageTitle = '';
	if (a) {
		pageURL = a;
	} else {
		pageURL = 'http://insite.russell.com/usdsales/';
	}
	if (b) {
		pageTitle = b;
	} else {
		pageTitle = 'USD Intranet Home Page';
	}
	hbx_custom_record(pageTitle);
	USDIntranetWindow = window.open(pageURL, 'USDIntranetWindow',' menu=1,menubar=1,toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,width=800,height=550');
	USDIntranetWindow.focus();
}

//--------------------------------------------------------------------------------------------
// Open RussellStrategyBuilder
//--------------------------------------------------------------------------------------------
function openStrategyBuilder() {
  var page = "/Strategy_Builder/DEFAULT.ASP";
  //var page = "/Sales_Marketing/Sales_Tools/rpg_unavailable.htm";
  popupWin = window.open(page, 'remote', 'menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,resize=yes,copyhistory=0,top=140,left=20,width=770,height=365')
}

//--------------------------------------------------------------------------------------------
// Open Daily Prices
//--------------------------------------------------------------------------------------------
function openDailyPricing(ChannelView) {
  //oldStuff  var page = "http://ei.russellink.com/asp/prices/rlinkprices.asp?" + ChannelView 
  var page = "/Public/prices/rlinkprices.asp?" + ChannelView
  popupWin = window.open(page, 'remote', 'menubar=yes,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width=785,height=570')
}

//--------------------------------------------------------------------------------------------
// Open Daily Performance
//--------------------------------------------------------------------------------------------
function openDailyPerformance(ChannelView) {
//oldStuff  var page = "http://ei.russellink.com/asp/prices/rlinkperformance.asp?" + ChannelView 
var page = "/Public/prices/rlinkperformance.asp?" + ChannelView
  popupWin = window.open(page, 'remote', 'menubar=yes,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width=785,height=570')
}


//--------------------------------------------------------------------------------------------
// Open UAL Daily Performance
//--------------------------------------------------------------------------------------------

var DailyPerfWin = null;
function openUALDailyPerformance(ChannelView) {

	var returnURL = window.location.toString();
	returnURL = returnURL.toUpperCase();
	returnURL = returnURL.substring(0,returnURL.indexOf("/UALPILOTS"));
	if (typeof returnURL == "undefined" || returnURL == "") {
		returnURL = "http://russellLink.russell.com";
	}	
	
	var page = "/ualpilots/prices/default.asp?returnURL=" + returnURL;

	if (DailyPerfWin && DailyPerfWin.open && !DailyPerfWin.closed)
		{DailyPerfWin.focus();}
	else
		{DailyPerfWin = window.open(page,'DailyPerfWindow','menubar=no,toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=756,height=404,left=0,top=0');
		DailyPerfWin.focus();}
}


//--------------------------------------------------------------------------------------------
// PopUp a Window 
//--------------------------------------------------------------------------------------------

function popUp(url, winWidth, winHeight){

	// begin PDF tracking code for HBX. eBiz 2/9/2006
	$url_lower = url.toLowerCase();
	if( /\.(pdf|wma)$/.test($url_lower) )
	{
		_hbDownload($url_lower);
		
		//HBX truncates page names to 100 chars
		$length = 100;
		$start = $url_lower.length - $length;
		if( $start < 1 ) $start = 0;
		$new_str = $url_lower.substring($start);
		hbx_custom_record($new_str);
	}
	//end PDF tracking code
	
	var winWidth
	var winHeight
	
	winHeight = parseInt(winHeight);
	winWidth = parseInt(winWidth);
	
	winWidth = winWidth + 17  // this is to account for room in the scrollbar for IE
	
	// eBiz 3/20/2006: changed window name from 'null' to 'popUp'
	popUpWindow = window.open(url, 'popUp',' menu=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,top=120,left=115,width=' + winWidth + ',height=' + winHeight);
	//popUpWindow.focus();  //this line of code causes Access is Denied error pop up message in IE 4.0
}

//--------------------------------------------------------------------------------------------
// PopUp a WebCastWindow
//--------------------------------------------------------------------------------------------
function popUpWebcast(url, winWidth, winHeight, winTop, winLeft){
	hbx_custom_record(url); //eBiz 2/9/2006 record HBX traffic
	var winWidth = (winWidth.length > 0) ? winWidth : 740;
	var winHeight = (winHeight.length > 0) ? winHeight : 495;
	var winTop = (winTop.length > 0) ? winTop : 33;
	var winLeft = (winLeft.length > 0) ? winLeft : 50;
	// eBiz 3/20/2006: changed window name from 'null' to 'popUpWebcast'
	popUpWindow = window.open(url, 'popUpWebcast',' menu=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=1,copyhistory=0,top=' + winTop + ',left='+ winLeft + ',width=' + winWidth + ',height=' + winHeight);
} 

//--------------------------------------------------------------------------------------------
// PopUp a Window With Everything 
//--------------------------------------------------------------------------------------------

function popUpWithToolbar(url){
	// eBiz 3/20/2006: changed window name from 'null' to 'popUpWithToolbar'
	popUpWindow = window.open(url, 'popUpWithToolbar',' menu=1,menubar=1,toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,top=120,left=115');
	//popUpWindow.focus();  //this line of code causes Access is Denied error pop up message in IE 4.0
} 

//--------------------------------------------------------------------------------------------
// PopUp a Window For Selling Russell Tools and Materials 
//--------------------------------------------------------------------------------------------

function popUpMaterials(url, winWidth, winHeight, winTop, winLeft){

	var winWidth = (winWidth.length > 0) ? winWidth : 740;
	var winHeight = (winHeight.length > 0) ? winHeight : 495;
	var winTop = (winTop.length > 0) ? winTop : 33;
	var winLeft = (winLeft.length > 0) ? winLeft : 50;
	// eBiz 3/20/2006: changed window name from 'null' to 'popUpMaterials'
	popUpWindow = window.open(url, 'popUpMaterials',' menu=1,menubar=1,toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,top=' + winTop + ',left='+ winLeft + ',width=' + winWidth + ',height=' + winHeight);
} 
 
//--------------------------------------------------------------------------------------------
// PopUp a Window With IAN System connection
//--------------------------------------------------------------------------------------------

function ianConnect(){
//get the href and convert to lower case
var workChannel
var finalurl
var workURL = document.URL.toUpperCase();

		if (workURL.indexOf("/UALPILOTS/") != -1) {
			workChannel = "/ualpilots/"
		}
		else if (workURL.indexOf("/AGE/") != -1) {
			workChannel = "/age/"
		}
		else if (workURL.indexOf("/NM/") != -1) {
			workChannel = "/nm/"
		}
		else if (workURL.indexOf("/BAIRD/") != -1) {
			workChannel = "/baird/"
		}
		else if (workURL.indexOf("/ADVISOR/") != -1) {
			workChannel = "/advisor/"
		}
		else if (workURL.indexOf("/RJFS/") != -1) {
			workChannel = "/rjfs/"
		}
		else {
			workChannel = "/ADVISOR/"
		}

// route them to the right channel
finalurl = 'https://www.managedportfoliolink.com' // PortfolioLINK UP

hbx_custom_record(finalurl); //eBiz 2/9/2006 record HBX traffic

//finalurl = workChannel + '/Managed_Accounts/Selling_and_Servicing/PortfolioLINK/PortfolioLINK_Unavailable_p.asp' // PortfolioLINK DOWN
// eBiz 3/20/2006: changed window name from 'null' to 'ianConnect'
popUpWindow = window.open(finalurl, 'ianConnect',' menu=1,menubar=1,toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=1,width=795,height=570');
//popUpWindow.focus();  //this line of code causes Access is Denied error pop up message in IE 4.0
}

//--------------------------------------------------------------------------------------------
// PopUp a Document Manager Window 
//--------------------------------------------------------------------------------------------

function popUpDocManager(url){

var winWidth
var winHeight
var sliced

winHeight = parseInt(480);
winWidth = parseInt(680);

winWidth = winWidth + 17  // this is to account for room in the scrollbar for IE
sliced = url.slice(0, 7)

	if (sliced == "http://") {
		// eBiz 3/20/2006: changed window name from 'null' to 'popUpDocManager'
		window.open(url, 'popUpDocManager',' menu=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,top=60,left=75,width=' + winWidth + ',height=' + winHeight);
	}else{
		location.href=url;
	}

}


//--------------------------------------------------------------------------------------------
// PopUp a Glossary Window 
//--------------------------------------------------------------------------------------------

function GlossaryPopUp(url){

	hbx_custom_record(url); //eBiz 2/9/2006 record HBX traffic

var winWidth
var winHeight

winHeight = parseInt(450);
winWidth = parseInt(680);
// eBiz 3/20/2006: changed window name from 'null' to 'GlossaryPopUp'
window.open(url, 'GlossaryPopUp',' menu=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,top=120,left=115,width=' + winWidth + ',height=' + winHeight);
 
}

//--------------------------------------------------------------------------------------------
// PopUp a Media Player from search 
//--------------------------------------------------------------------------------------------
function launchsPlayer(url)
{ 

	hbx_custom_record(url); //eBiz 2/9/2006 record HBX traffic

var winWidth
var winHeight
var pWidth = ""
var pHeight = ""
if (pHeight == "")
	{
	winHeight = 430;
	pHeight = winHeight - 190;
	}
	else
	{
	winHeight = parseInt(pHeight) + 135;
	}
	
	if (pWidth == "")
	{
	winWidth = 430;
	pWidth = winWidth - 110;
	}
	else
	{
	winWidth = parseInt(pWidth) + 110;
	}

	var URLstring = url 
	mediaWindow = window.open(URLstring ,'mplayer','menu=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,top=65,left=115,width=' + winWidth + ',height=' + winHeight);
}

//--------------------------------------------------------------------------------------------
// PopUp a Media Player  
//--------------------------------------------------------------------------------------------
function showMediaPlayer(hostfile, pWidth, pHeight, modal)
{ 
	hbx_custom_record(hostfile); //eBiz 2/9/2006 record HBX traffic

	var winWidth;
	var winHeight;
	var isIEBrowser = (navigator.appName.indexOf( "Microsoft" ) != -1 );
	if (pHeight == "")
	{
		winHeight = 430;
		pHeight = winHeight - 190;
	}
	else
	{
		winHeight = parseInt(pHeight) + 135;
	}
	
	if (pWidth == "")
	{
		winWidth = 430;
		pWidth = winWidth - 110;
	}
	else
	{
		winWidth = parseInt(pWidth) + 110;
	}
	
	var features = 'menu=0,menubar=0,toolbar=0,location=0,directories=0,' +
		'status=0,scrollbars=0,resizable=0,copyhistory=0,top=65,left=115,' +
		'width=' + winWidth + ',height=' + winHeight;
	if (modal && isIEBrowser)
	{
		mediaWindow = window.showModalDialog(hostfile ,'mplayer',features);
	}
	else
	{
		mediaWindow = window.open(hostfile ,'mplayer',features);
	}
}

//--------------------------------------------------------------------------------------------
// PopUp a Flash Player from Search 
//--------------------------------------------------------------------------------------------
function launchsFlashPlayer(url)
{ 
	hbx_custom_record(url); //eBiz 2/9/2006 record HBX traffic

var winWidth
var winHeight
var pWidth = ""
var pHeight = ""
if (pHeight == "")
	{
	winHeight = 550;
	pHeight = winHeight - 105;
	}
	else
	{
	winHeight = parseInt(pHeight) + 105;
	}
	
	if (pWidth == "")
	{
	winWidth = 640;
	pWidth = winWidth - 40;
	}
	else
	{
	winWidth = parseInt(pWidth) + 40;
	}

	var URLstring = url 
	mediaWindow = window.open(URLstring ,'flplayer','menu=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,top=20,left=20,width=' + winWidth + ',height=' + winHeight);
}

//--------------------------------------------------------------------------------------------
// PopUp a Flash Player  
//--------------------------------------------------------------------------------------------
function showFlashPlayer(hostfile, pWidth, pHeight, modal)
{ 
	hbx_custom_record(hostfile); //eBiz 2/9/2006 record HBX traffic

	var winWidth;
	var winHeight;
	var isIEBrowser = (navigator.appName.indexOf( "Microsoft" ) != -1 );
	if (pHeight == "")
	{
		winHeight = 550;
		pHeight = winHeight - 105;
	}
	else
	{
		winHeight = parseInt(pHeight) + 105;
	}
	
	if (pWidth == "")
	{
		winWidth = 640;
		pWidth = winWidth - 40;
	}
	else
	{
		winWidth = parseInt(pWidth) + 40;
	}

	var features = 'menu=0,menubar=0,toolbar=0,location=0,directories=0,' +
		'status=0,scrollbars=0,resizable=0,copyhistory=0,top=65,left=115,' +
		'width=' + winWidth + ',height=' + winHeight;
	if (modal && isIEBrowser)
	{
		mediaWindow = window.showModalDialog(hostfile ,'flplayer',features);
	}
	else
	{
		mediaWindow = window.open(hostfile ,'flplayer',features);
	}
}
//--------------------------------------------------------------------------------------------
// PopUp a PowerPoint Player from Search  
//--------------------------------------------------------------------------------------------
function launchsVCplayer(url)
{ 
	hbx_custom_record(url); //eBiz 2/9/2006 record HBX traffic

var winWidth
var winHeight
var pWidth = ""
var pHeight = ""

if (pHeight == "")
	{
	winHeight = 520;
	}
	else
	{
	winHeight = parseInt(pHeight);
	}
	
	if (pWidth == "")
	{
	winWidth = 577;
	}
	else
	{
	winWidth = parseInt(pWidth);
	}

	var URLstring = escape(url)  
	mediaWindow = window.open(url ,'vcplayer','menu=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,top=20,left=20,width=' + winWidth + ',height=' + winHeight);
}

//--------------------------------------------------------------------------------------------
// PopUp a PowerPoint Player from Search  
//--------------------------------------------------------------------------------------------
function launchsPPplayer(url)
{ 
var winWidth
var winHeight
var pWidth = ""
var pHeight = ""

if (pHeight == "")
	{
	winHeight = 480;
	}
	else
	{
	winHeight = parseInt(pHeight);
	}
	
	if (pWidth == "")
	{
	winWidth = 740;
	}
	else
	{
	winWidth = parseInt(pWidth);
	}

	var URLstring = escape(url)  
	mediaWindow = window.open(url ,'ppplayer','menu=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,top=20,left=20,width=' + winWidth + ',height=' + winHeight);
}


//--------------------------------------------------------------------------------------------
// PopUp a PowerPoint Player  
//--------------------------------------------------------------------------------------------
function showPowerPlayer(hostfile, pWidth, pHeight, modal)
{ 
	var title = 'Open window - ' + hostfile.replace(/^\/|.aspx$/ig, '').replace(/_/g, ' ').replace(/\//g, ' - ').toLowerCase();
	var winHeight = (pHeight != "" && !isNaN(pHeight)) ? parseInt(pHeight) : 480;
	var winWidth = (pWidth != "" && !isNaN(pWidth)) ? parseInt(pWidth) : 740;
	var features = 'menu=0,menubar=0,toolbar=0,location=0,directories=0,' +
		'status=0,scrollbars=0,resizable=0,copyhistory=0,top=65,left=115,' +
		'width=' + winWidth + ',height=' + winHeight;
	
	mediaWindow = window.open(hostfile,'mediaWindow',features);
	mediaWindow.focus();
	
	if (typeof(customEventRecord) != 'undefined') customEventRecord(this,'o',title);
	if (typeof(hbx_custom_record) != 'undefined') hbx_custom_record(title);
}


//--------------------------------------------------------------------------------------------
// PopUp a Glossary Window 
//--------------------------------------------------------------------------------------------

function FeeSchedulePopUp(){

var winWidth
var winHeight
var url = "/Managed_Accounts/Fee_Schedule/Fee_Calculator/FeeCalculator.asp"
winHeight = parseInt(570);
winWidth = parseInt(740);

// eBiz 3/20/2006: changed window name from 'null' to 'FeeSchedulePopUp'
window.open(url, 'FeeSchedulePopUp',' menu=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=no,copyhistory=0,top=50,left=50,width=' + winWidth + ',height=' + winHeight);
 
}


//--------------------------------------------------------------------------------------------
// Date Stamp Function
//--------------------------------------------------------------------------------------------

function dateStamp()
{
today = new Date()
mm=today.getMonth()+1;
if(mm==1) date="January";
	if(mm==2) date="February";
	if(mm==3) date="March";
	if(mm==4) date="April";
	if(mm==5) date="May";
	if(mm==6) date="June";
	if(mm==7) date="July";
	if(mm==8) date="August";
	if(mm==9) date="September";
	if(mm==10) date="October";
	if(mm==11) date="November";
	if(mm==12) date="December";

yy=today.getFullYear();

if (yy <= 99)
	{
	yy = yy + 1900;
	}
document.write(date," ",today.getDate(),", ",yy);
}

//--------------------------------------------------------------------------------------------
// Add Frames (for Home page)
//--------------------------------------------------------------------------------------------
function addHomePageFrames()
{
	var numFrames = top.frames.length;
	//alert(numFrames);

	if (numFrames == 0) top.location.href= 'default.asp'

}


// ---------------------------------------------------------------------------------------------------------------------
// The GoToResults function checks to see if the ResultsWin window has been opened (and is still open) and 
// if it has then the focus is set to the ResultsWin window otherwise the window is just opened.
// ---------------------------------------------------------------------------------------------------------------------
	var ResultsWin = null;
	function GoToResults(theInputString,theMode,theType,theFromArea)
	{
	theURL = null;
		
	if (theInputString == "[DoNothing]")
		{ } // do not open up a new window 
	else {  // set focus to an existing window or open a new window 
		
		if (typeof theFromArea == "undefined" || theFromArea == "") {			// valid values for theFromArea: home or menu
			theFromArea = "home";
			}	
		
		if (theFromArea == "menu" && ResultsWin && ResultsWin.open && !ResultsWin.closed)
			{ } // do nothing
		else {
			if (typeof theInputString == "undefined" || theInputString == "") {		// theInputString contains either a ticker symbol or a company name to search for
				theInputString = "$rut";
				}
			if (typeof theMode == "undefined" || theMode == "") {					// valid values for theMode: quote or CompanyList
				theMode = "quote";
				}
			if (typeof theType == "undefined" || theType == "") {					// valid values for theType: stock or fund
				theType = "stock";
				}
			}

		if (theType == "fund")
			{theURL = "http://russell2.stockpoint.com/russell2/childquote.asp?findinputstring=" + theInputString + "&mode=" + theMode;}
		else 
			{theURL = "http://russell2.stockpoint.com/russell2/childquote.asp?inputstring=" + theInputString + "&mode=" + theMode;}
		
		if (theFromArea == "menu" && ResultsWin && ResultsWin.open && !ResultsWin.closed)
				{ResultsWin.focus()}
		else
			{ResultsWin = window.open(theURL,"ResultsWindow","toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=616,height=430,left=152,top=75");
			ResultsWin.focus();}
		}
	}
	

// ---------------------------------------------------------------------------------------------------------------------
// The GoToTracker function checks to see if the TrackerWin window has been opened (and is still open) and 
// if it has then the focus is set to the TrackerWin window otherwise the window is just opened.
// ---------------------------------------------------------------------------------------------------------------------

	var TrackerWin = null;
	function GoToTracker()
		{
		if (TrackerWin && TrackerWin.open && !TrackerWin.closed)
			{TrackerWin.focus();}
		else
			{TrackerWin = window.open("http://portfolio.stockpoint.com/portfolio2client/russell2.asp","TrackerWindow","toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=450,left=0,top=0");
			TrackerWin.focus();}
		}


// ---------------------------------------------------------------------------------------------------------------------
// The GoToRussellCom function checks to see if the RussellComWin window has been opened (and is still open) and 
// if it has then the focus is set to the RussellComWin window otherwise the window is just opened.
// ---------------------------------------------------------------------------------------------------------------------
	var RussellComWin = null;
	function GoToRussellCom()
		{
		if (RussellComWin && RussellComWin.open && !RussellComWin.closed)
			{RussellComWin.focus();}
		else
			{RussellComWin = window.open("http://www.russell.com","RussellComWindow","");
			RussellComWin.focus();}
		}


// ---------------------------------------------------------------------------------------------------------------------
// Open the Individual Brokerage Account window.
// The openIndivAcct function checks to see if the AcctWin window has been opened (and is still open) and 
// if it has then the focus is set to the AcctWin window otherwise the window is just opened.
// ---------------------------------------------------------------------------------------------------------------------
//		{AcctWin = window.open("https://investing.schwab.com/trading/start","AcctWindow","");	(s/b this link)
// ---------------------------------------------------------------------------------------------------------------------

	var AcctWin = null;
	function openIndivAcct()
		{
		if (AcctWin && AcctWin.open && !AcctWin.closed)
			{AcctWin.focus()}
		else
			{AcctWin = window.open("http://www.schwab.com/","AcctWindow","");
			AcctWin.focus()}
		}


// ---------------------------------------------------------------------------------------------------------------------
// The openRetirementCalculators function checks to see if the RetCalcWin window has been opened (and is still open) and 
// if it has then the focus is set to the RetCalcWin window otherwise the window is just opened.
// ---------------------------------------------------------------------------------------------------------------------
	var RetCalcWin = null;
	function openRetirementCalculators(topIntro)
		{
		if (typeof topIntro == "undefined" || topIntro == "") {			// valid values for topIntro: yes or no
			topIntro = "yes";
			}
		if (RetCalcWin && RetCalcWin.open && !RetCalcWin.closed)
			{RetCalcWin.focus();}
		else
			{RetCalcWin = window.open("/UALPilots/Planning/Retirement_Calculators/default.asp?intro=" + topIntro,"RetCalcWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=690,height=598,left=0,top=0");
			RetCalcWin.focus();}
		}
		
		
// ---------------------------------------------------------------------------------------------------------------------
// The openRetirementPlanner function checks to see if the RetPlannerWin window has been opened (and is still open) and 
// if it has then the focus is set to the RetPlannerWin window otherwise the window is just opened.
// ---------------------------------------------------------------------------------------------------------------------
	var RetPlannerWin = null;
	function openRetirementPlanner()
		{
		if (RetPlannerWin && RetPlannerWin.open && !RetPlannerWin.closed)
			{RetPlannerWin.focus();}
		else
			{RetPlannerWin = window.open("http://retirement.russell.com/lifepointsplanner/","RetPlannerWindow","toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=740,height=570,left=0,top=0");
			RetPlannerWin.focus();}
		}

		
// ---------------------------------------------------------------------------------------------------------------------
// The turnTickerOnOff function creates or deletes the UAL_TickerTape cookie depending  
// on whether the action passed to this function is to turn the ticker tape on of off.
// If the cookie is NOT present then the ticker tape will be displayed which is the default.
// If the cookie is present it means the ticker tape is not displayed.
// ---------------------------------------------------------------------------------------------------------------------
		
	function turnTickerOnOff(theAction)
	{
		if (typeof theAction == "undefined" || theAction == "") 	// valid values for theAction: "on" or "off"
			{theAction = "on";}
		
		if (document.cookie.indexOf("UAL_TickerTape") != -1)
		{	// The UAL_TickerTape cookie is there meaning the ticker tape was turned off
			if (theAction == "off")
			{	// Do nothing because the ticker tape was already turned off
			}
			else
			{	// Delete the cookie because we want the ticker tape turned on
				var tickerexpdate = new Date ();  						// start with todays date
				tickerexpdate.setDate(tickerexpdate.getDate()-7); 		// set the expiration date to an old date to delete it
				document.cookie = "UAL_TickerTape=delete; path=; expires=" + tickerexpdate.toGMTString(); 
				window.parent.location.href="/UALPilots/default.asp";
			}
		}
 		else
		{
			if (theAction == "off")
			{	// Write the cookie to turn off the ticker tape
				document.cookie = "UAL_TickerTape=true; path=; expires=";
				window.parent.location.href="/UALPilots/default.asp";
			}
			else
			{	// Do nothing because the cookie is not there meaning the ticker tape is already turned on
			}
		 }
	}
	
	
// ---------------------------------------------------------------------------------------------------------------------
// The openRegistrationForm function checks to see if the RegFormWin window has been opened (and is still open) and 
// if it has then the focus is set to the RegFormWin window otherwise the window is just opened.
// ---------------------------------------------------------------------------------------------------------------------
	var RegFormWin = null;
	function openRegistrationForm()	{
		if (RegFormWin && RegFormWin.open && !RegFormWin.closed)
			{RegFormWin.focus();}
		else
			{RegFormWin = window.open("https://russelllink.russell.com/ualpilots/membership/registrationForm.asp","RegFormWindow","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=640,height=480,left=60,top=15");
			RegFormWin.focus();}
	}
//New functions for level1 template

function writeTOPrintWin()
{
	printWin.window.document.write("<html><head><title>Printer Friendly Version</title><LINK rel='stylesheet' type='text/css' href='/InvestmentManagement/navigation/style.css'/></head><body>");
	printWin.window.document.write(document.printForm.stuffToPrint.value);
	printWin.window.document.write("<br><br><img align='top' src='/images/blackline.gif ' width='100%' height='1'><br><br><Div align='left'><table cellpadding='0', cellspacing='0', width='100%'><tr><td align='left'  class='disclaimer' >Copyright &#169; Frank Russell Company 2001. All rights reserved.</td><td align='right'><img src='/images/russell_logo.gif' border='0'></td></tr></table></div></body></html>");
	printWin.window.document.close();
}
//--------------------------------------------------------------------------------------------
// Open Printer Friendly Page
//--------------------------------------------------------------------------------------------
function openPrintPage(url,winWidth,winHeight) {
var winWidth
var winHeight
if (winWidth == '' || winWidth == null || winWidth == 'undefined')
{
	winWidth = parseInt(660);
	winHeight = parseInt(450);
}
if (winWidth != '' && winWidth != null && winWidth != 'undefined')
{
	winWidth = parseInt(winWidth);
	winHeight = parseInt(winHeight);
}

winWidth = winWidth + 17  // this is to account for room in the scrollbar for IE

if (url == '' || url =='undefined')
	{
	// eBiz 3/20/2006: changed window name from 'null' to 'openPrintPage'
	printWin = window.open('', 'openPrintPage',' menu=0,menubar=1,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,top=100,left=115,width=' + winWidth + ',height=' + winHeight);
	printWin.window.document.open();
	//Some Netscape browsers need us to wait a second before writing content into the new window
	setTimeout("writeTOPrintWin()",1000)
	}
else
	{
	// eBiz 3/20/2006: changed window name from 'null' to 'openPrintPage'
	printWin = window.open(url, 'openPrintPage',' menu=0,menubar=1,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,top=100,left=115,width=' + winWidth + ',height=' + winHeight);
	}

}

//-------------------------------------------------------------------------------------------------
// supports the checkAndPop function(below)
//-------------------------------------------------------------------------------------------------
function GetCheckAndPopCookie(sName)
{
	  // cookies are separated by semicolons
	  var aCookie = document.cookie.split(";");
	  for (var i=0; i < aCookie.length; i++)
	  {
	    // a name/value pair (a crumb) is separated by an equal sign
	    var aCrumb = aCookie[i].split("=");
	    //get rid of spaces in cookie name
	    aCrumb[0] = aCrumb[0].replace(' ','')

	    //alert('|' + aCrumb[0] + '| = |' + aCrumb[1] + '|');

	    if (sName == aCrumb[0])
	    {
	      GetCheckAndPopCookie = unescape(aCrumb[1]);
	      return GetCheckAndPopCookie
	    }
	  }

	  // a cookie with the requested name does not exist
}

//-------------------------------------------------------------------------------------------------
// supports the checkAndPop function(below)
//-------------------------------------------------------------------------------------------------
function writeCheckAndPopCookie(Cname,Cvalue,CexpireMonth,CexpireDay,CexpireYear,pageToOpen,pageToOpenWidth,pageToOpenHeight)
{
	var today = new Date();

	//var expire = new Date();
	//var CnumberOfDaysFromTodayToExpire
	//CnumberOfDaysFromTodayToExpire = parseInt(CnumberOfDaysFromTodayToExpire);
	//expire.setTime(today.getTime() + 1000*60*60*24*CnumberOfDaysFromTodayToExpire);

	//months start with 0 (january = 0 and Dec = 11) so fix the vaule that the user entered
	var CexpireMonth = parseInt(CexpireMonth)
	CexpireMonth = CexpireMonth - 1

	var CexpireDay= parseInt(CexpireDay)

	var CexpireYear= parseInt(CexpireYear)

	var expire = new Date(CexpireYear, CexpireMonth, CexpireDay);

	//expire.setTime(today.getTime());

	//alert('expire = ' + expire);
	//alert('expire.toGMTString() = ' + expire.toGMTString());


	document.cookie = Cname + "=" + Cvalue + ";expires="+expire.toGMTString();
}


//-------------------------------------------------------------------------------------------------
// check for cookie, if they don't have it, pop open the specified window
//-------------------------------------------------------------------------------------------------
function checkAndPop(Cname,CexpireMonth,CexpireDay,CexpireYear,pageToOpen,pageToOpenWidth,pageToOpenHeight)
{
//check to see if the cookie exists, if it does and it's value is TRUE, then do nothing
//if it doesn't exist or it's value is anything other than TRUE then set then create the cookie
//and set it's value to TRUE along with the specified expiration date, then
//pop open a window at the size specified and load the specified URL into it
if (GetCheckAndPopCookie(Cname) != 'true')
{
 var strCookieToWrite = "writeCheckAndPopCookie('" + Cname + "','true','" + CexpireMonth + "','" + CexpireDay + "','" + CexpireYear + "','" + pageToOpen + "','" + pageToOpenWidth + "','" + pageToOpenHeight + "');"
 //alert('strCookieToWrite = ' + strCookieToWrite);
 eval(strCookieToWrite)

 popUp(pageToOpen,pageToOpenWidth,pageToOpenHeight);
}
}

//-------------------------------------------------------------------------------------------------
// check for cookie, if they don't have it, pop open the specified window
//-------------------------------------------------------------------------------------------------
function checkAndPopSession(Cname,pageToOpen,pageToOpenWidth,pageToOpenHeight)
{
//check to see if the cookie exists, if it does and it's value is TRUE, then do nothing
//if it doesn't exist or it's value is anything other than TRUE then set then create the cookie
//and set it's value to TRUE along with the specified expiration date, then
//pop open a window at the size specified and load the specified URL into it

if (GetCheckAndPopCookie(Cname) != 'true')
{
 document.cookie = Cname + "=true; path=;";

 popUp(pageToOpen,pageToOpenWidth,pageToOpenHeight);
}
}

//-------------------------------------------------------------------------------------------------
// check for cookie, if they don't have it, pop open the specified window
//-------------------------------------------------------------------------------------------------
function popWriteCookie(Cname,CexpireMonth,CexpireDay,CexpireYear)
{

 var today = new Date();
 
 	 
 	//months start with 0 (january = 0 and Dec = 11) so fix the vaule that the user entered
 	var CexpireMonth = parseInt(CexpireMonth)
 	CexpireMonth = CexpireMonth - 1
 
 	var CexpireDay= parseInt(CexpireDay)
 
 	var CexpireYear= parseInt(CexpireYear)
 
 	var expire = new Date(CexpireYear, CexpireMonth, CexpireDay);
 
 	document.cookie = Cname + "=true;  path=; expires="+expire.toGMTString();

}
//------------------------------------------------------------
// Start search page function
//------------------------------------------------------------
function searchValidateNewSearch() {
	if (document.forms[0].query.value.length > 0) {
		return true;
	} else {
		document.forms[0].query.focus();
		return false;
	}
}

function searchSyncInput(passedVal) {
	document.forms[0].txtquery.value = passedVal;
	document.forms[0].txtquerybot.value = passedVal;
}

function searchQueryCriteriaChanged() {
	var df = document.forms[0];
	
	if (df.txtquery.value.toLowerCase() != df.query.value.toLowerCase() ||
		df.txtquerybot.value.toLowerCase() != df.query.value.toLowerCase()) {
		
		if (df.txtquery.value != df.query.value) {
			df.txtquerybot.value = df.txtquery.value;
			df.query.value = df.txtquery.value;
		}
		
		if (df.txtquerybot.value != df.query.value) {
			df.txtquery.value = df.txtquerybot.value;
			df.query.value = df.txtquerybot.value;
		}
		
		return true;
	} else {
		return false;
	}
}

function searchValidate() {
	if (searchQueryCriteriaChanged()) {
		document.forms[0].page.value = 0;
	}
	return true;
}

function searchViewResultsPage(passedVal) {
	document.forms[0].page.value = passedVal;
	if (searchQueryCriteriaChanged()) {
		document.forms[0].page.value = 0;
	}
	document.forms[0].submit();
}

function searchShowDocSummaries(passedVal) {
	document.forms[0].showDocSummaries.value = passedVal;
	searchValidate();
	document.forms[0].submit();
}
//------------------------------------------------------------
// End search page function
//------------------------------------------------------------

//------------------------------------------------------------
// START modifications for WebTrends
//------------------------------------------------------------
var dcs_imgarray = new Array;
var dcs_ptr = 0;
var dCurrent = new Date();
var DCS=new Object();
var WT=new Object();
var DCSext=new Object();

var dcsADDR = "ssdc.russell.com";
var dcsID = "";

if (dcsID == ""){
	var TagPath = dcsADDR;
} else {
	var TagPath = dcsADDR+"/"+dcsID;
}

function dcs_var(){
	WT.tz = dCurrent.getTimezoneOffset();
	WT.ul = navigator.appName=="Netscape" ? navigator.language : navigator.userLanguage;
	WT.cd = screen.colorDepth;
	WT.sr = screen.width+"x"+screen.height;
	WT.jo = navigator.javaEnabled() ? "Yes" : "No";
	WT.ti   = document.title;
	DCS.dcsdat = dCurrent.getTime();
	if ((window.document.referrer != "") && (window.document.referrer != "-")){
		if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4) ){
			DCS.dcsref = window.document.referrer;
		}
	}

	DCS.dcsuri = window.location.pathname;
	DCS.dcsqry = window.location.search;
	DCS.dcssip = window.location.hostname;

}

function A(N,V){
	return "&"+N+"="+escape(V);
}

function dcs_createImage(dcs_src)
{
	if (document.images){
		dcs_imgarray[dcs_ptr] = new Image;
		dcs_imgarray[dcs_ptr].src = dcs_src;
		dcs_ptr++;
	}
}

function dcsMeta(){
	var MRV="";
	var F=false;
	var myDocumentElements;
	if (document.all){
		F = true;
		myDocumentElements=document.all.tags("meta");
	}
	if (!F && document.documentElement){
		F = true;
		myDocumentElements=document.getElementsByTagName("meta");
	}
	if (F){
		for (var i=1; i<=myDocumentElements.length;i++){
			myMeta=myDocumentElements.item(i-1);
			if (myMeta.name) {
				if (myMeta.name.indexOf('WT.')==0){
					WT[myMeta.name.substring(3)]=myMeta.content;
				}
				if (myMeta.name.indexOf('DCSext.')==0){
					DCSext[myMeta.name.substring(7)]=myMeta.content;
				}
				if (myMeta.name.indexOf('DCS.')==0){
					DCS[myMeta.name.substring(4)]=myMeta.content;
				}
			}
		}
	}
}

function dcs_TAG(TagImage){
	var P ="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+TagImage+"/dcs.gif?";
	for (N in DCS){P+=A( N, DCS[N]);}
	for (N in WT){P+=A( "WT."+N, WT[N]);}
	for (N in DCSext){P+=A( N, DCSext[N]);}

	dcs_createImage(P);
}

dcs_var();
dcsMeta();
dcs_TAG(TagPath);
//------------------------------------------------------------
// END modifications for WebTrends
//------------------------------------------------------------

//---------------------------------Code from Auragen scipts.js-----------------------------
function createMainLink (theName,theID,theWidth,theHeight,thebackground,theLink) {
	//if(document.layers) document.write('<td background="'+thebackground+'" align="center" valign="top" class="topNavNetscape"><ilayer id="'+theID+'ButtonParent" visibility="hide"><layer id="'+theID+'Button" width="'+theWidth+'" height="'+theHeight+'">');
	//else
	document.write('<td background="'+thebackground+'" valign="top" align="center" class="topNav" width="'+theWidth+'" height="'+theHeight+'" id="'+theID+'Button">');

	document.write('<img src="/images/spacer.gif" width="1" height="3" alt=""><br>');
	if(theLink) document.write('<a href="'+theLink+'" target="_blank">');
	document.write('<center>'+theName+'</center>');
	if(theLink) document.write('</a>');

	//if(document.layers) document.write('</layer></ilayer>');
	document.write('</td>');
}

function createSubLink (theSubName,theSubID,theSubWidth,theSubHeight,theSubLink,theParentID,hasChild,isAltColor) {
	if(isAltColor) {
		bgColor = dropdownBGcolorAlt;
		bgColorOver = dropdownBGcolorOverAlt;
		bgClass = "dropdownAlt";
	} else {
		bgColor = dropdownBGcolor;
		bgColorOver = dropdownBGcolorOver;
		bgClass = "dropdown";
	}
	var theOutput = "";
	theOutput += '<tr><td><img src="/images/spacer.gif" width="1" height="'+theSubHeight+'" alt=""></td>';
	if(document.layers) {
		theOutput += '<td valign="middle" class="'+bgClass+'Netscape"><ilayer id="'+theSubID+'ButtonParent"><layer id="'+theSubID+'Button" width="'+theSubWidth+'" height="'+theSubHeight+'">';
	} else {
		theOutput += '<td valign="top" class="'+bgClass+'" width="'+theSubWidth+'" height="'+theSubHeight+'" id="'+theSubID+'Button">';
	}
	if(document.layers) theOutput += '<img src="/images/spacer.gif" width="1" height="2" alt=""><br>';
	if(theSubLink && !hasChild) theOutput += '<a href="'+theSubLink+'" onmouseover="subRollover(\''+theSubID+'Button\',\''+theParentID+'\',\''+bgColorOver+'\');" onmouseout="subRollover(\''+theSubID+'Button\',\''+theParentID+'\',\''+bgColor+'\');">';
	else if(theSubLink && hasChild) theOutput += '<a href="'+theSubLink+'">';
	theOutput += "<div class='indent'>" + theSubName + "</div>";
	if(theSubLink) theOutput += '</a>';
	if(document.layers) theOutput += '</layer></ilayer>';
	theOutput += '</td><td><img src="/images/spacer.gif" width="1" height="1" alt=""></td>';
	theOutput += '</tr>';
	return theOutput;
}

function updateDividers(divider1,divider2) {
	document.images['northNav_divider1'].src = "/images/northNavDivider.gif";
	document.images['northNav_divider2'].src = "/images/northNavDivider.gif";
	document.images['northNav_divider3'].src = "/images/northNavDivider.gif";
	document.images['northNav_divider4'].src = "/images/northNavDivider.gif";
	document.images['northNav_divider5'].src = "/images/northNavDivider.gif";

	if(divider1 != "") {
		document.images[divider1].src = "/images/northNavDivider_right-over.gif";
	}
	if(divider2 != "") {
		document.images[divider2].src = "/images/northNavDivider_left-over.gif";
	}

}

function mainRollover(theRollover,theState,theBackgroundColor) {
	if(ns4) document[theRollover + "Parent"].document[theRollover].bgColor = theBackgroundColor;
	else {
		var whichBackground = getReference(theRollover);
		whichBackground.backgroundColor = theBackgroundColor;
	}

	if(theRollover == "productsButton") {
		var whichBackground = getReference("northNav_left");
		whichBackground.backgroundColor = theBackgroundColor;
		if(theState == "-over") {
			updateDividers("","northNav_divider1");
		}
	} else if(theRollover == "performanceButton") {
		if(theState == "-over") {
			updateDividers("northNav_divider1","northNav_divider2");
		}
	} else if(theRollover == "researchButton") {
		if(theState == "-over") {
			updateDividers("northNav_divider2","northNav_divider3");
		}
	} else if(theRollover == "salesMarketingButton") {
		if(theState == "-over") {
			updateDividers("northNav_divider3","northNav_divider4");
		}
	} else if(theRollover == "RussellUniversityButton") {
		if(theState == "-over") {
			updateDividers("northNav_divider4","northNav_divider5");
		}
	} else if(theRollover == "operationsCenterButton") {
		if(theState == "-over") {
			updateDividers("northNav_divider5","");
		}
		var whichBackground = getReference("northNav_right");
		whichBackground.backgroundColor = theBackgroundColor;
	}

	/*theImageName=document.images[theRollover].src;
	theImageName=theImageName.substr(0,theImageName.length-4);
	if (theImageName.indexOf("-over") != -1) theImageName = theImageName.substr(0,theImageName.length-5);
	theImageName = theImageName + theState + ".gif";
	document.images[theRollover].src = theImageName;
	*/
}

function subRollover(theRollover,theRolloverParent,theBackgroundColor) {
	if(ns4) document[theRolloverParent].document[theRollover + "Parent"].document[theRollover].bgColor = theBackgroundColor;
	else {
		var whichBackground = getReference(theRollover);
		whichBackground.backgroundColor = theBackgroundColor;
	}
}

function callDropdownsShown() {
	toggleVisibility(formCover.layer, "hidden");
}

function callDropdownsHidden() {
	//toggleVisibility(formCover.layer, "visible");
}

function dropDownsCentered(newTargetX,newTriggerTargetX) {
	var findWt = findWidth();

	var newTargetX = parseInt((findWt/2) - (designWidth/2)) + formCover.relativeLeftPosition;
	if(ns6) newTargetX += leftMargin;
	if (formCover.left != newTargetX) {
		var newTriggerTargetX = parseInt((findWt/2) - (designWidth/2)) + formCover.triggerRelativeLeft;
		if(ns6) newTriggerTargetX += leftMargin;
		if (newTargetX < formCover.relativeLeftPosition + leftMargin) { //Check to see if page is resized below design width
			newTargetX = formCover.relativeLeftPosition + leftMargin;
			newTriggerTargetX = formCover.triggerRelativeLeft + leftMargin;
		}
		formCover.setPosition(newTargetX,newTriggerTargetX);
	}
}

function clickMyFavorites() {	
	if(formCover.reference.visibility == "visible") toggleVisibility(formCover.layer, "hidden");
	else toggleVisibility(formCover.layer, "visible");
}

function processClicks() {
	favoritesDropDownDiv = document.getElementById('myFavoriteList');
	if (favoritesDropDownDiv != null){
		if (favoritesDropDownDiv.style.visibility == 'visible'){
			favoritesDropDownDiv.style.visibility = 'hidden'
		}
	}	
}

if (window.Event) // Navigator 4.0x
  document.captureEvents(Event.MOUSEUP);
  document.onmouseup = processClicks;


// IE3 safe image switching code
var goodBrowser = 0;

if(document.images){
        // enable rollovers
        goodBrowser = 1;
/*
        //image preloading stuff
        //put your images that will be used into a comma delimited
        //list on the next line... follow the example =)
        var preLoad = new Array('/images/b_products-over.gif','/images/b_performance-over.gif','/images/b_research-over.gif','/images/b_salesMarketing-over.gif','/images/b_RussellUniversity-over.gif','/images/b_operationsCenter-over.gif');

        //don't touch this (it does the pre-loading for you)
        for(var i = 0; i < preLoad.length;i++){
                var k = new Image();
                k.src = preLoad[i];
        }
*/
}

function flipper(){
        if(goodBrowser == 1){
                for(var i = 0; i < flipper.arguments.length; i += 2){
                document.images[flipper.arguments[i]].src = flipper.arguments[i+1];
                }
        }

}

function popWindow(theURL,theName,theOptions){
        var newWin = window.open(theURL,theName,theOptions);
        newWin.focus();
}

function changeStyle( elementName, styleName )
{
	//alert(styleName);
	if(ns4) document[elementName].className=styleName;
	else if(ie4) document.all[elementName].className=styleName;
	else document.getElementById(elementName).className=styleName;

	//alert(document.getElementById(elementName).className);

	//if(ns4) alert("ns4");
	//else if(ie4) alert("ie4");
	//else alert("other");

	//var whichBackground = getReference(elementName);
	//whichBackground.backgroundColor = theBackgroundColor;

}
//--------------------------------------------------------------------------------------------
// PopUp a Window enabling Save Target As for PDF documents.
// In order to work, put the call of the function in the onclick:
// <a href="File.pdf" onclick="return ClickPopUp('File.pdf', 600, 400)">File</a>
//--------------------------------------------------------------------------------------------
function ClickPopUp(url, winWidth, winHeight){
popUp(url, winWidth, winHeight);
return false;
}


function leaveSite(url, winWidth, winHeight) {
	
	boolConfirmResponse = confirm("\nYou are now leaving Russell Investment Group's secured web site for financial professionals, RussellLINK. The following link may contain information concerning investments other than those offered by Russell Investment Group, its affiliates, subsidiaries, or distribution channels.  Neither Russell Investment Group nor its affiliates are responsible for investment decisions made with respect to such investments or for the accuracy or completeness of information about such investments.  Russell Investment Group is a registered trade name of Frank Russell Company, a Washington USA corporation, which operates through subsidiaries worldwide. Frank Russell Company is a subsidiary of The Northwestern Mutual Life Insurance Company. \n\nThe material available on this site has been produced by independent providers that are not affiliated with Russell Investment Group.  Descriptions of, references to, or links to products or publications within any linked web site does not imply endorsement of that product or publication by Russell Investment Group.  Any opinions or recommendations expressed are solely those of the independent providers and are not the opinions or recommendations of Russell Investment Group, which is not responsible for any inaccuracies or errors.");

    if(boolConfirmResponse) 
		{
		//window.open(url, null,' menu=0,menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,top=120,left=115,width=' + winWidth + ',height=' + winHeight);
		//window.open(url, winWidth, winHeight);
		// eBiz 3/20/2006: changed window name from 'null' to 'leaveSite'
		window.open(url, 'leaveSite',' menu=yes,menubar=yes,toolbar=yes,location=yes,directories=yes,status=0,scrollbars=1,resizable=1,copyhistory=0,top=120,left=115,width=' + winWidth + ',height=' + winHeight);
		}
}



//---------------------------------END Code from Auragen scipts.js-----------------------------

//------------------------------------------------------------
// HBX code - eBiz 5/3/2006
//------------------------------------------------------------
var $clientsidescripts_version = 50;
document.write('<script type="text\/javascript" src="\/common\/js\/hbx_page_code.js?v=3"><\/script>');
document.write('<script type="text\/javascript" src="\/common\/js\/hbx.js"><\/script>');

//------------------------------------------------------------
// openCAAP - eBiz 4/28/2006
//------------------------------------------------------------
function openCAAP(a,b,c,d,e,f,g)
{
	hbx_custom_record(a);
	setTimeout("window.open('https://www.cir2.com','openCAAP','width=800,height=550,scrollbars,resizable,address=no')",500);
}

//------------------------------------------------------------
// Overwrite search box functionality (existing search function is inline in template) - eBiz 10/12/2006
//------------------------------------------------------------
function hijack_search_button()
{
	var $element;
	if ($element = document.getElementById('SitePageTop1_NavbarSearch_btnSubmit')) {
		$element.onclick = search_redirect;
	}
}
function search_redirect()
{
	var $array = new Array();
	//ADD NEW SEARCH TERMS AND DESTINATIONS HERE
	$array['somefakesearch'] = '/Privacy_Notice.aspx';
	$array['!rmap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['@rmap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['#rmap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['*rmap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['?rmap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['gormap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['gotormap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['go2rmap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['=rmap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['equalrmap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['equalsrmap'] = '/Russell_University/Practice_Management/Tools/Rmap.aspx';
	$array['ageworkshops'] = '/Common/keywords/age_workshops.aspx';
	$array['fpa'] = '/Research_Commentary/Conferences/FPA_Retreat_2007.aspx';
	$array['globalinvesting'] = '/Research_Commentary/Capital_Markets_Insight/Global_Investing.aspx';
	$array['dain'] = '/Research_Commentary/Conferences/Dain_Conference_2007.aspx';

	//DO NOT EDIT BELOW THIS LINE
	var searchText = document.getElementById('SitePageTop1_NavbarSearch_txtSearchString').value;
	var $str = searchText.toLowerCase();
	$str = $str.replace(/\s/g,'');
	if( typeof($array[$str]) != 'undefined' )
	{
		window.location = $array[$str] + '?DCMP=ILC-KW-' + escape($str.replace(/[!,@,#,\*,\?,\=]/g,'')) + '&searchText=' + escape(searchText);
		return false;
	}
	else 
	{
		ShowAlert();
	}
}


function tipThisBox(elem)
{
	ToggleClass(elem.parentNode,'hideTip','showTip');
}

function expandoBox()
{
	if (!document.getElementsByTagName) { return; }
	var divs = document.getElementsByTagName("div");

	// loop through all div tags
	for (var i=0; i<divs.length; i++)
	{
		var div = divs[i];

		// find the tipBox divs
		if (/(^|\s)tipBox(\s|$)/.test(div.className))
		{
			// loop through all h3 tags in the tipBox
			var h3s = div.getElementsByTagName('h3');
			for (var j=0; j<h3s.length; j++)
			{
				var h3 = h3s[j];
				// find the title h3
				if (/(^|\s)title(\s|$)/.test(h3.className))
				{
					h3.onclick = function () {tipThisBox(this); return false;}
				}
			}
		}
	}
}






/* Core RussellLINK Library */
AddEvent(window, 'load', AttachInitialEventListeners);

// Run all window.onload events here
function AttachInitialEventListeners()
{
    expandoBox();
    hijack_search_button();
}


/* Thanks to Scott Andrew */
function AddEvent(obj, evType, fn)
{
    if (obj.addEventListener)
    {
        obj.addEventListener(evType, fn, true);
        return true;
    }
    else if (obj.attachEvent)
    {
        var r = obj.attachEvent("on"+evType, fn);
        return r;
    }
    else
    {
	    return false;
    }
}
function GetAncestorElement(elem, ancestorNodeName)
{
    var returnValue;
    var workingElem = elem;
    while (workingElem.nodeName.toLowerCase() != 'body' && workingElem.nodeName.toLowerCase() != ancestorNodeName.toLowerCase())
    {
        workingElem = workingElem.parentNode;
    }
    if (workingElem.nodeName.toLowerCase() == 'body' || workingElem === elem)
    {
        returnValue == null;
    }
    else
    {
        returnValue = workingElem;
    }
    return returnValue;
}
function deepNodeRecursion(master, classCheck, arrayDestination)
{
  var nodeList = master.childNodes;
  for (var i = nodeList.length - 1; i >= 0; i--)
  {
    if (nodeList[i].nodeType == 1)
    {
      var thisElementNode = nodeList[i];
      if(ContainsClass(thisElementNode, classCheck))
	    {
	      arrayDestination[arrayDestination.length] = thisElementNode;
	    }
      var childOfMaster = nodeList[i];
      deepNodeRecursion(childOfMaster, classCheck, arrayDestination);
    }
  }
  return arrayDestination;
}
function ContainsClass(elem, classInQuestion)
{
    var returnValue = false;
    if (elem.className)
    {
	    var regExp = new RegExp('(^|\\s)(' + classInQuestion + ')(\\s|$)');
	    var result = elem.className.match(regExp);
	    returnValue = (result != null && result[2] == classInQuestion);
    }
    else
    {
        returnValue = false;
    }
    return returnValue;
}
function AddClass(elem, classToAdd)
{
    if (!ContainsClass(elem, classToAdd))
    {
        elem.className += ' ' + classToAdd;
    }
}
function RemoveClass(elem, classToRemove)
{
	var regExp = new RegExp('(^|\\s+)' + classToRemove + '(\\s+|$)');
	elem.className = elem.className.replace(regExp, ' ');
}
function ToggleClass(elem,classOne,classTwo)
{
	var regExp = new RegExp('(^|\\s)(' + classOne + '|' + classTwo + ')(\\s|$)');
	var result = elem.className.match(regExp);
	if (result && result[2] == classOne)
	{
		elem.className = elem.className.replace(regExp,result[1] + classTwo + result[3]);
	}
	else if (result && result[2] == classTwo)
	{
		elem.className = elem.className.replace(regExp,result[1] + classOne + result[3]);
	} else
	{
		elem.className = elem.className + ' ' + classOne;
	}
}
function SetCookie(key, val, expireDate, path, domain, secure)
{
    var returnValue = false;
    if (key && val)
    {
        var cookieString = key + '=' + val;
        if (expireDate) cookieString += ';expires=' + expireDate;
        if (path) cookieString += ';path=' + path;
        if (domain) cookieString += ';domain=' + domain;
        if (secure) cookieString += ';secure';
        document.cookie = cookieString;
        returnValue = true;
    }
    return returnValue;
}

//-- Code to place the FollowingButtonArea correctly
AddEvent(window, 'load', RepositionFollowingButtonArea);

function RepositionFollowingButtonArea()
{
 var sn = document.getElementById('SubNav');
 var fb = document.getElementById('FollowingButtonArea');
 if (sn && fb)
 {
  fb.style.top = (sn.offsetTop + sn.offsetHeight - 142).toString() + 'px';
  AddClass(fb, 'repositioned');
 }
} 


//-- Code to Activiate the RDC Calculator
function RedirectToRDS()
{
 var rdsUrl = '/RDS/HomePage.aspx';
 var RDS_Window = window.open(rdsUrl, 'RDS_Window','width=780,height=800,scrollbars=1,resizable=1,address=no');
 if (RDS_Window != null)
 {
  RDS_Window.focus();
 }
 else
 {
  window.location.href = rdsUrl;
 }
 return false;
}


/* Omniture functions */
function IsVariableSet(varName)
{
	return (typeof window[varName] != 'undefined');
}
function SetVariable(varName, defaultVal, inheritedVarName)
{
	if (!inheritedVarName) inheritedVarName = varName;
	window[varName] = IsVariableSet(inheritedVarName) ? window[inheritedVarName] : defaultVal;
	return;
}