// Start of Page Housekeeping - Page global variables
//--------------------------------------------------------------------------------------------	
var isNav
var isIE
var isIE4
var isIE5
var isIE6
var isMAC
var isIE6 	// pjwNS6andIE6   added this line 
var isNS6 	// pjwNS6andIE6   added this line
isNS6 = false; 	// pjwNS6andIE6   added this line
	
//--------------------------------------------------------------------------------------------
// Sniff Browser Cookie - must be enabled
//--------------------------------------------------------------------------------------------	
function cookieCheck()
{
    var expdate = new Date ();  				    // start with todays date
    expdate.setDate(expdate.getDate()+52); 			// advance it 2 months
	
    //    write it 
    document.cookie = "rcomcke=true; path=; expires=" + expdate.toGMTString(); 
	 
	// now try and read it, if it's not there warn user about cookies.

  if (document.cookie.indexOf("rcomcke") != -1 || document.cookie.indexOf("/iw-mount/") != -1) {
				return(false);										// It is there so do nothing
  } 							
  else{													// display the Gotta Have Cookies
		//
		// V.Martin June 2004
		//		Commented out the upgrade browser relocation per sm
		//
       	//gotoUpgradeBrowserPage("&flag=n");
		return(true);
  } 
  return(false); // added this line to fix a problem in Netscape 4.05 
}	
  
function openNewWindow(d) {
	window.open(d);
}

//--------------------------------------------------------------------------------------------
// Sniff Browser Type to see if we have version 4 or better in Netscape or IE
//--------------------------------------------------------------------------------------------
function browserCheck()
{
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
		{
			isNav = true;
				//
				// V.Martin June 2004
				//		Commented out the upgrade browser relocation per sm
				//return(gotoUpgradeBrowserPage(""));
		}
		if (version >= 4.05 && version <= 4.08) //then this is a GOOD version of stand alone navigator
		{
			isNav = true;
			return(false);
		}
		if (version > 4.08 && version < 4.5) //then this is a bad version of Communicator
		{
			isNav = true;
				//
				// V.Martin June 2004
				//		Commented out the upgrade browser relocation per sm
				//return(gotoUpgradeBrowserPage(""));
		} 
		// pjwNS6andIE6   replaced the following "if ..." 
		if (version >= 5) //then this is NS 6.0
		{
			isIE = true;
			isIE5 = true;
			isNS6 = true;
			isNav = true;
			//
			// V.Martin June 2004
			//		Commented out the upgrade browser relocation per sm
			//return(gotoUpgradeBrowserPage(""));
		} 
		if (version >= 4.5) //then this is a GOOD version of Communicator
		{
			isNav = true;
			return(false);
		}	
        }
        else 
	{
                isIE = true;
                
                if (navigator.appVersion.indexOf("MSIE 4") != -1)
		{
			isIE4 = true;
			return(false);
			
			//alert('i am IE4');
		}
		// pjwNS6andIE6   replaced the following "if ..." 
		if (version > 5) //then this is IE 6.0 so tell it it's ie5
		{
			isIE = true;
			isIE5 = true;
			isIE6 = true;
			return(false);
			//alert('I am IE6');
		} 
		if (navigator.appVersion.indexOf("MSIE 5") != -1)
		{
			isIE5 = true;
			return(false);
			//alert('i am IE5');
		}
		isIE5 = true;
		return(false);
		
	}
}
else 
{
	isIE5 = true;
	isIE = true;
	//
	// V.Martin June 2004
	//		Commented out the upgrade browser relocation per sm
	//return(gotoUpgradeBrowserPage(""));
}
return(false); // added this line to fix a problem in Netscape 4.05 
}

function gotoUpgradeBrowserPage(sflag)
{
	if (document.cookie.indexOf("rocomcke") != -1 || document.cookie.indexOf("/iw-mount/") != -1) {
				return(false);						// we've been here
  } 
  var expdate = new Date ();  				    // start with todays date
    expdate.setDate(expdate.getDate()+52); 			// advance it 2 months
	document.cookie = "rocomcke=true; path=; expires=" + expdate.toGMTString();  
	top.location.href="/upgradeBrowser.asp?location=" + escape(location.pathname) + "?" + sflag
	return(true);
}




//--------------------------------------------------------------------------------------------
// End of Page Hsk - append any channel specific stuff after the include
//--------------------------------------------------------------------------------------------


pageHsk();

function pageHsk()
{
if (cookieCheck())
	{  return(false);  }

if (browserCheck())
	{  return(false);  }

// The following code was removed by WC at the request of DFreese on 2/14/03
//
//if (disclaimerCheck())
//	{  return(false);  }
//
}


//--------------------------------------------------------------------------------------------
// 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);
}


// cookie disclaimer script. throws up a confirm box if the cookie is not present.
function disclaimerCheck()
{
  if (document.cookie.indexOf("rcomuk") != -1 || document.cookie.indexOf("/iw-mount/") != -1) {
						return(false);								// It is there so do nothing
  }
  else{													// display the disclaimer

    location.href = "/UK/navigation/resident.asp?" + escape(location.pathname);
	return(true);
  }
 }

// compliance requirement for leaving r.com.
function leaveRcom(d) {

	boolConfirmResponse = confirm("You are now leaving Russell.com.  The following link may contain information concerning investment products other than those offered by Russell Investments Ltd, its affiliates, subsidiaries, or distributors.  Neither Russell Investments Ltd nor its affiliates take any responsiblility for investment decisions made with respect to such investment products or for the accuracy or completeness of information about such investment products.  The material available on this site has been produced by independent providers that are not affiliated with Russell Investments Ltd.  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 Investments Ltd.  Any opinions or recommendations expressed are solely those of the independent providers and are not the opinions or recommendations of Russell Investments Ltd, which is not responsible for any inaccuracies or errors.");

    if(boolConfirmResponse)
		{
		window.open(d);
		}
}

// compliance requirement for leaving r.com.
function leaveSite(d) {

	boolConfirmResponse = confirm("You are now leaving Russell.com.  The following link may contain information concerning investment products other than those offered by Russell Investments Ltd, its affiliates, subsidiaries, or distributors.  Neither Russell Investments Ltd nor its affiliates take any responsiblility for investment decisions made with respect to such investment products or for the accuracy or completeness of information about such investment products.  The material available on this site has been produced by independent providers that are not affiliated with Russell Investments Ltd.  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 Investments Ltd.  Any opinions or recommendations expressed are solely those of the independent providers and are not the opinions or recommendations of Russell Investments Ltd, which is not responsible for any inaccuracies or errors.");

    if(boolConfirmResponse)
		{
		window.open(d);
		}
}


