//	Start Browser Sniffer
// Ultimate client-side JavaScript client sniff. Version 3.03
// (C) Netscape Communications 1999-2001.  Permission granted to reuse and distribute.
// Revised 17 May 99 to add is_nav5up and is_ie5up (see below).
// Revised 20 Dec 00 to add is_gecko and change is_nav5up to is_nav6up
//                      also added support for IE5.5 Opera4&5 HotJava3 AOLTV
// Revised 22 Feb 01 to correct Javascript Detection for IE 5.x, Opera 4, 
//                      correct Opera 5 detection
//                      add support for winME and win2k
//                      synch with browser-type-oo.js
// Revised 26 Mar 01 to correct Opera detection
// Revised 02 Oct 01 to add IE6 detection
// Revised 17 Jun 03 to remove platform detection, opera, aol, webtv -MH,ssga
// Everything you always wanted to know about your JavaScript client
// but were afraid to ask. Creates "is_" variables indicating:
// (1) browser vendor:
//     is_nav, is_ie, is_opera, is_hotjava, is_webtv, is_TVNavigator, is_AOLTV
// (2) browser version number:
//     is_major (integer indicating major version number: 2, 3, 4 ...)
//     is_minor (float   indicating full  version number: 2.02, 3.01, 4.04 ...)
// (3) browser vendor AND major version number
//     is_nav2, is_nav3, is_nav4, is_nav4up, is_nav6, is_nav6up, is_gecko, is_ie3,
//     is_ie4, is_ie4up, is_ie5, is_ie5up, is_ie5_5, is_ie5_5up, is_ie6, is_ie6up
//
// See http://www.it97.de/JavaScript/JS_tutorial/bstat/navobj.html and 
// http://www.it97.de/JavaScript/JS_tutorial/bstat/Browseraol.html
// for detailed lists of userAgent strings.
//
// Note: you don't want your Nav4 or IE4 code to "turn off" or
// stop working when new versions of browsers are released, so
// in conditional code forks, use is_ie5up ("IE 5.0 or greater") 
// is_opera5up ("Opera 5.0 or greater") instead of is_ie5 or is_opera5
// to check version in code which you want to work on future
// versions.

    // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase();

    // *** BROWSER VERSION ***
    // Note: On IE5, these return 4, so use is_ie5up to detect IE5.
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);

    // Note: Opera and WebTV spoof Navigator.  We do strict client detection.
    // If you want to allow spoofing, take out the tests for opera and webtv.
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)
				&& (agt.indexOf('safari')==-1) && (agt.indexOf('blackberry')==-1));
	var is_netscape = ((agt.indexOf('netscape')!=-1));
    var is_nav2 = (is_nav && (is_major == 2));
    var is_nav3 = (is_nav && (is_major == 3));  
    var is_nav4 = (is_nav && (is_major == 4));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );
    var is_nav6 = (is_nav && (is_major == 5));
    var is_nav6up = (is_nav && (is_major >= 5));
    var is_nav6_1up = (is_nav6up &&
                      ( (agt.indexOf('netscape/8') != -1) ||
                      (agt.indexOf('netscape/7') != -1) ||
                       ((agt.indexOf("netscape6/6.") != -1) &&
                        (agt.charAt(agt.indexOf("6/6.") + 4) > 0) ) ) );
    var is_gecko = (agt.indexOf('gecko') != -1);
	var is_safari = (agt.indexOf('safari') != -1);

    var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie3    = (is_ie && (is_major < 4));
    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
    var is_ie4up  = (is_ie && (is_major >= 4));
    var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
    var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
    var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);

//	End Browser Sniffer

// Cookie Functions

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

// End Cookie Functions


//  Start Browser Warnings

	// Mozilla and Safari are supported
	
	// Netscape Navigator prior to 6.1 unsupported
	if (is_nav2 || is_nav3 || is_nav4) {
		window.location = "/ssga_help/browser_upgrade.html";
		}
	// Netscape 6.1 and above is supported not 6.0
	else if (is_nav && is_netscape && !is_nav6_1up) {
		window.location = "/ssga_help/browser_upgrade.html";
		}
	// Internet Explorer prior to 5.0 unsupported
	else if (is_ie3 || is_ie4) {
		window.location = "/ssga_help/browser_upgrade.html";
		}
	else {}

//  End Browser Warnings


var pop_win;

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location=\""+selObj.options[selObj.selectedIndex].value+"\"");
  if (restore) selObj.selectedIndex=0;
}


function openWindow(theURL,winName,features) 
{
	pop_win=window.open(theURL,winName,features);

}

function openWindow2(theURL,winName,features) 
{
	pop_win=window.open(theURL,"_blank",features);
}


function ssga_disclaimer(theURL,winName,features) 

{

	pop_win=window.open(theURL,"_blank",features);

}

function ssgafunds_popup() {
	ssga_disclaimer("/disclaimers/ssgafunds_disclaimer.html", "_blank", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=650,height=377,left=0, top=0");
}

function ssgafrance_popup() {
	ssga_disclaimer("/disclaimers/ssgafrance_disclaimer.html", "_blank", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=650,height=377,left=0, top=0");
}




function leaveConfirm(theURL){



message="\nYou are leaving ssga.com. This link is provided as a courtesy for informational \npurposes only and leads to web pages which we do not maintain. We do not \nprovide any information directly to the linked website, nor do we endorse or \naffirm any of the information provided by it. We make no representations or \nwarranties with respect to the information contained on the site and we take \nno responsibility for supplementing, updating or correcting any such information. \nBy providing this link, we are not providing you with investment advice or offering \nsecurities for sale to you.\n"



	if(confirm(message)){

		openWindow2(theURL, "bridge", "toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=720,height=520,left=0, top=0");

			    

	}

}





function leaveConfirm2(theURL){



 message="\nYou are leaving ssga.com. We do not maintain or provide any information directly \nto the linked website, nor do we make any representations, recommendations \nor warranties with respect to the information contained on the site.\n"



	if(confirm(message)){

		openWindow2(theURL, "bridge", "toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=720,height=520,left=0, top=0");

			    

	}

}



function followLink(form){

		if(form.options[form.selectedIndex].value != "") {

			var pattern1 = /advisors.ssga.com/g;
			var pattern2 = /www.ssgafunds.com/g;
			var pattern3 = /www.statestreetfrance.com/g;
			var pattern4 = /www.ssga.fr/g;
			var pattern5 = /www.spdrs.com/g;
			

			if (  (pattern1.exec(form.options[form.selectedIndex].value) != null) ||
				  (pattern2.exec(form.options[form.selectedIndex].value) != null) ||
				  (pattern5.exec(form.options[form.selectedIndex].value) != null)) {
				forwardToSSgAFunds(form.options[form.selectedIndex].value);
			} else if ( (pattern3.exec(form.options[form.selectedIndex].value) != null) || 
				    (pattern4.exec(form.options[form.selectedIndex].value) != null) ) {
				globalOfficesDisclaimers("A","http://www.ssga.fr/?lg=fr_FR");
			} else {
				location.href = form.options[form.selectedIndex].value;
			}
		}
}


function forwardToSSgAFunds(someURL) {
	  // determine which disclaimer function we need to call based on where we are going
  
	if (someURL.indexOf('/etf/index.jsp') != -1) {
	      forwardToSSgAFundsFundPageConfirm(someURL);
	} else if (someURL.indexOf('/mf/index.jsp') != -1) {
	      forwardToSSgAFundsFundPageConfirm(someURL);
	} else {
	      forwardToSSgAFundsNonFundPageConfirm(someURL);
	}
}

function forwardToSSgAFunds2(someURL) {
	  forwardToSSgAFundsFundPageConfirm2(someURL);
}


function forwardToSSgAFundsNonFundPageConfirm(someURL){
	// displays disclaimer for transfer to ASG/SSgAFunds site, non fund pages (e.g. ssgafunds home page)
		message="\nYou are leaving ssga.com.  The contents at this site are not intended for distribution to, or use by, any person or entity in any jurisdiction or country where such distribution or use would be contrary to local law or regulation. SSgA makes no representation that the contents of the site are appropriate for use in all locations, or that the transactions, securities, products, instruments or services discussed at this site are available or appropriate for sale or use in all jurisdictions or countries, or by all investors or counterparties. All persons and entities accessing this site do so on their own initiative and are responsible for compliance with applicable local laws and regulations. Nothing on this site shall be considered a solicitation to buy or an offer to sell a security to any person in any jurisdiction where such offer, solicitation, purchase or sale would be unlawful under the securities laws of such jurisdiction.\n"
	 
		if(confirm(message)){
		       openWindow2(someURL, "bridge", "toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=720,height=520,left=0, top=0");
	               //changeAreaClass('disclaimer_area','disclaimer_inactive');
	               //changeAreaClass('page_cover_area','cover_inactive');
	}
}

function forwardToSSgAFundsFundPageConfirm(someURL){
	// displays disclaimer for transfer to ASG/SSgAFunds site, Fund Pages
		message="\nYou are leaving ssga.com. This link is provided as a courtesy for informational purposes only and leads to web pages which SSgA does not maintain. We do not provide any information directly to the linked website, nor do we endorse or affirm any of the information provided by it. We make no representation or warranty with respect to the information contained on the site and we take no responsibility for supplementing, updating or correcting any such information. By providing this link, we are not providing you with investment advice or offering securities for sale to you.\n"
	 
		if(confirm(message)){
			openWindow2(someURL, "bridge", "toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=720,height=520,left=0, top=0");
	           	//changeAreaClass('disclaimer_area','disclaimer_inactive');
	                //changeAreaClass('page_cover_area','cover_inactive');
	}
}

function forwardToSSgAFundsNonFundPageConfirm2(someURL){
	openWindow2(someURL, "bridge", "toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=720,height=520,left=0, top=0");
	              
}

function forwardToSSgAFundsFundPageConfirm2(someURL){
	openWindow2(someURL, "bridge", "toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=720,height=520,left=0, top=0");
	           	
}

function openContactWindow( url ){

	openWindow(url,'contact','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=700,height=520,left=0, top=0,screenX=0,screenY=0');

}





function openRegistrationWindow( url ){

	openWindow(url,'register','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=610,left=0,top=0,screenX=0,screenY=0');

}





function openFeedbackWindow( url ){

	openWindow(url,'feedback','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=590,height=520,left=0, top=0,screenX=0,screenY=0');

}





function openPOVWindow( url, name ){

	openWindow(url,name,'toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=618,left=0,top=0,screenX=0,screenY=0');

}



function openCareerWindow( url, name ){

	openWindow(url,name,'toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=600,left=0,top=0,screenX=0,screenY=0');

}



function openHtmlWindow( url, name ){

openWindow(url,name,'toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=700,height=600,left=0,top=0,screenX=0,screenY=0');

}




function openLibraryWindow( url, name ){

name=name.replace(/\./g, "_");

	openWindow(url,name,'toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=618,height=520,innerwidth=618,left=0,top=0,screenX=0,screenY=0');

}



function openAUPFWindow( url, name ){

name=name.replace(/\./g, "_");

	openWindow(url,name,'toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=825,height=520,innerwidth=825,left=0,top=0,screenX=0,screenY=0');

}





function openBioWindow(url, name){

	openWindow(url,name,'toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=610,height=520,left=0,top=0,screenX=0,screenY=0');

}



function openNoToolbarWindow(url){

	openWindow(url,'','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=850,height=520,left=50,top=50,screenX=0,screenY=0');

}


function openToolbarWindow(url){

	openWindow(url,'','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=850,height=520,left=50,top=50,screenX=0,screenY=0');

}

function openHFBTWindow(url){

	openWindow(url,'','toolbar=no,location=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=742,height=675,left=50,top=50,screenX=0,screenY=0');

}

function openPerformanceWindow(url, name){

	openWindow(url,name,'toolbar=yes,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=720,left=0,top=0,screenX=0,screenY=0');

}



function openPerformanceSystemWindow(url){

	openPerformanceWindow(url,"Performance_System");

}



function openPerformanceReportsWindow(url){

	openPerformanceWindow(url,"Performance_Reports");

}



function openProcessWindow(url){

	openWindow(url,'Process','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=720,left=0,top=0,screenX=0,screenY=0');

}



function openPhilosophyWindow(url){

	openWindow(url,'Philosophy','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=720,left=0,top=0,screenX=0,screenY=0');

}



function openFeesWindow(url){

	openWindow(url,'Standard_Fee_Schedule','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=720,left=0,top=0,screenX=0,screenY=0');

}



function openCommentaryWindow(url){

	openWindow(url,'Investment_Commentary','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=720,left=0,top=0,screenX=0,screenY=0');

}



function openInvTeamWindow(url){

	openWindow(url,'Investment_Team','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=720,left=0,top=0,screenX=0,screenY=0');

}



var videoNoSlideWindow;

var videoSlideWindow;

function openVideoWindow(mnemonic){

	if (videoSlideWindow != null && !videoSlideWindow.closed)

	{

		videoSlideWindow.close();

	}

	videoNoSlideWindow = window.open("/weblogic/VideoRequestServlet?videoMnemonic=" + mnemonic, "_embeddedNEW","height=464,width=540,left=50,top=50,resizable=yes,scrollbars=no,toolbar=no,location=no");

}

function openVideoWithSlidesWindow(mnemonic){

	if (videoNoSlideWindow != null && !videoNoSlideWindow.closed)

	{

		videoNoSlideWindow.close();

	}

    videoSlideWindow = window.open("/weblogic/VideoRequestServlet?videoMnemonic=" + mnemonic + "&videoSlidesFlag=true", "_embeddedNEW","height=798,width=540,left=50,top=50,resizable=yes,scrollbars=no,toolbar=no,location=no");

}

function openVideoAuthorsWindow(mnemonic){	

	openVideoWindow(mnemonic);

}



function openTransitionReportsWindow(url){

	openWindow(url,'Transition_Reports','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=720,height=500,left=0,top=0,screenX=0,screenY=0');

}



function openSiteTourWindow(url){

openWindow(url,'Site_Tour','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=no,resizable=no,width=640,height=460,innerheight=478,left=0,top=0,screenX=0,screenY=0');

}





function openAcctWindow(url)

{

	//to make a unique url each time to prevent caching

  	var day = new Date;

	url=url+'&ut='+day.getTime();

	openWindow(url,'acct_view','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=620,height=520,screenX=0,screenY=0,top=0,left=0');

}



function openAcctPrintWindow(url)

{

	openWindow(url,'acct_print_view','toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=620,height=520,screenX=0,screenY=0,top=0,left=0');

}





function openDoc(url) {

	var name = "word_doc";

	var features = "toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=700,innerwidth=700,left=0,top=0,screenX=0,screenY=0";

	if (is_ie) {

	     window.open(url, name, features);

	} else {

	     window.location = url;

	}

}



function openVGapWindow(chartCode){

    openWindow("/vgap/cht/" + chartCode + "_pop.html",'vgap_chart','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=no,resizable=no,width=576,height=490,innerheight=490,left=0,top=0,screenX=0,screenY=0');

}



//---------This part Added by Alex Chun Wai So - to improve tuckerman's real estate pages' maintaince flexability ---------------------------------------------

//---------(Tuckerman Loader)---------------------------------------------------------------------



function proj_obj(name, url)  { 

   this.name = name;

   this.url = url; 

}



var re_proj_path = "/institutional/real_estate/";

var re_past_proj = new Array();

var re_private_past_proj = new Array();

var re_curr_proj = new Array();



var re_past_proj_tlt = 16;



// Past Project
re_past_proj[0] = new proj_obj("54 Magnolia at Deerwood", re_proj_path + 'pastprojects.html');
re_past_proj[1] = new proj_obj("Alta Terrace", re_proj_path + 'pastprojects.html');
re_past_proj[2] = new proj_obj("Azure Creek at Tatum ranch", re_proj_path + 'pastprojects.html');
re_past_proj[3] = new proj_obj("Broadstone at Moreno Valley", re_proj_path + 'pastprojects.html');
re_past_proj[4] = new proj_obj("Broadwater Apartments", re_proj_path + 'pastprojects.html');
re_past_proj[5] = new proj_obj("Canyon Park Apartments", re_proj_path + 'pastprojects.html');
re_past_proj[6] = new proj_obj("Crescent Apartments", re_proj_path + 'pastprojects.html');
re_past_proj[7] = new proj_obj("Douglas Grand", re_proj_path + 'pastprojects.html');
re_past_proj[8] = new proj_obj("Germantown Farms", re_proj_path + 'pastprojects.html');
re_past_proj[9] = new proj_obj("Grand Apartments at Gateway", re_proj_path + 'pastprojects.html');
re_past_proj[10] = new proj_obj("GrandeVille at the Commons", re_proj_path + 'pastprojects.html');
re_past_proj[11] = new proj_obj("Haverhill Apartments", re_proj_path + 'pastprojects.html');
re_past_proj[12] = new proj_obj("Milano Apartments", re_proj_path + 'pastprojects.html');
re_past_proj[13] = new proj_obj("Mira Vista Apartments", re_proj_path + 'pastprojects.html');
re_past_proj[14] = new proj_obj("Preserve at Rolling Oaks", re_proj_path + 'pastprojects.html');
re_past_proj[15] = new proj_obj("San Simeon Apartments", re_proj_path + 'pastprojects.html');
re_past_proj[16] = new proj_obj("South End Square", re_proj_path + 'pastprojects.html');
re_past_proj[17] = new proj_obj("Station Plaza", re_proj_path + 'pastprojects.html');
re_past_proj[18] = new proj_obj("Turnberry Place", re_proj_path + 'pastprojects.html');
re_past_proj[19] = new proj_obj("Valencia Apartment Homes", re_proj_path + 'pastprojects.html');
re_past_proj[20] = new proj_obj("Village Greens of Annapolis", re_proj_path + 'pastprojects.html');
re_past_proj[21] = new proj_obj("Vineyard Gate Apartments", re_proj_path + 'pastprojects.html');


// Past Project
re_private_past_proj[0] = new proj_obj("54 Magnolia at Deerwood", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[1] = new proj_obj("Alta Terrace", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[2] = new proj_obj("Azure Creek at Tatum ranch", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[3] = new proj_obj("Broadstone at Moreno Valley", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[4] = new proj_obj("Broadwater Apartments", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[5] = new proj_obj("Canyon Park Apartments", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[6] = new proj_obj("Crescent Apartments", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[7] = new proj_obj("Douglas Grand", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[8] = new proj_obj("Germantown Farms", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[9] = new proj_obj("Grand Apartments at Gateway", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[10] = new proj_obj("GrandeVille at the Commons", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[11] = new proj_obj("Haverhill Apartments", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[12] = new proj_obj("Milano Apartments", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[13] = new proj_obj("Mira Vista Apartments", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[14] = new proj_obj("Preserve at Rolling Oaks", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[15] = new proj_obj("San Simeon Apartments", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[16] = new proj_obj("South End Square", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[17] = new proj_obj("Station Plaza", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[18] = new proj_obj("Turnberry Place", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[19] = new proj_obj("Valencia Apartment Homes", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[20] = new proj_obj("Village Greens of Annapolis", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');
re_private_past_proj[21] = new proj_obj("Vineyard Gate Apartments", '/weblogic/private/realEstateHome?PAGE_REQUEST=PASTPROJECTS');


// Current Project
re_curr_proj[0] = new proj_obj("Alta Creek", re_proj_path + 'altacreek.html');
re_curr_proj[1] = new proj_obj("Broadstone McDowell", re_proj_path + 'broadstonemcdowell.html');
re_curr_proj[2] = new proj_obj("Broadstone Memorial", re_proj_path + 'broadstonememorial.html');
re_curr_proj[3] = new proj_obj("Broadstone Montecito", re_proj_path + 'broadstonemontecito.html');
re_curr_proj[4] = new proj_obj("Broadstone Vistas", re_proj_path + 'broadstonevistas.html');
re_curr_proj[5] = new proj_obj("Cobalt Condominiums", re_proj_path + 'cobaltcondominiums.html');
re_curr_proj[6] = new proj_obj("GrandeVille at Greenwich", re_proj_path + 'grandeVillegreenwich.html');
re_curr_proj[7] = new proj_obj("Heritage at Live Oaks", re_proj_path + 'heritageliveoaks.html');
re_curr_proj[8] = new proj_obj("Medici Apartments", re_proj_path + 'medici.html');
re_curr_proj[9] = new proj_obj("SoHa Lofts Condominiums", re_proj_path + 'sohalofts.html');
re_curr_proj[10] = new proj_obj("Talon Hill Apartments", re_proj_path + 'talonhill.html');
re_curr_proj[11] = new proj_obj("The Flats", re_proj_path + 'theflats.html');
re_curr_proj[12] = new proj_obj("Waterstone Apartments", re_proj_path + 'waterstone.html');





var str_main_top = "<table width=\"177\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";

var str_main_bot = "</table>\n";

var str_sm_top = "<tr><td align=\"center\" width=\"7\"><img src=\"/images/dot_blue.gif\" width=\"3\" height=\"9\"></td><td class=\"content\">";

var str_lnk_st = "<a href=\"";

var str_sm_ctr = "\" class=\"content\">";

var str_sm_bot = "</a></td></tr>";





function re_make_past_proj_leftlinks(){

var i;

var str_left = str_main_top;

var str_right = "";



	for (i=0; i < re_past_proj.length/2; i++ ) {

		str_left += str_sm_top + str_lnk_st + re_past_proj[i].url + str_sm_ctr + re_past_proj[i].name + str_sm_bot;

	}

	str_left += str_main_bot;

	document.write(str_left);

}



function re_make_past_proj_rightlinks(){

var i;

var str_right = str_main_top;



	for (i=0; i < re_past_proj.length/2; i++ ) { }



	for (;i < re_past_proj.length; i++ ) {

		str_right += str_sm_top + str_lnk_st + re_past_proj[i].url + str_sm_ctr + re_past_proj[i].name + str_sm_bot;

	}

	str_right += str_main_bot;

	document.write(str_right);

}





function re_make_curr_proj_leftlinks(pname){

var i;

var str_left = str_main_top;

var str_right = "";



	for (i=0; i < re_curr_proj.length/2; i++ ) {

		

		var st1 = (re_curr_proj[i].name == pname)? re_curr_proj[i].name : "";

		var st2 = (re_curr_proj[i].name == pname)? "" : re_curr_proj[i].name;

		str_left += str_sm_top + st1 + str_lnk_st + re_curr_proj[i].url + str_sm_ctr + st2 + str_sm_bot;

	}

	str_left += str_main_bot;

	document.write(str_left);

}



function re_make_curr_proj_rightlinks(pname){

var i;

var str_right = str_main_top;



	for (i=0; i < re_curr_proj.length/2; i++ ) { }



	for (;i < re_curr_proj.length; i++ ) {

		var st1 = (re_curr_proj[i].name == pname)? re_curr_proj[i].name : "";

		var st2 = (re_curr_proj[i].name == pname)? "" : re_curr_proj[i].name;

		str_right += str_sm_top + st1 + str_lnk_st + re_curr_proj[i].url + str_sm_ctr + st2 + str_sm_bot;

	}

	str_right += str_main_bot;

	document.write(str_right);

}





function re_make_pvt_past_proj_leftlinks(){

var i;

var str_left = str_main_top;

var str_right = "";



	for (i=0; i < re_private_past_proj.length/2; i++ ) {

		str_left += str_sm_top + str_lnk_st + re_private_past_proj[i].url + str_sm_ctr + re_private_past_proj[i].name + str_sm_bot;

	}

	str_left += str_main_bot;

	document.write(str_left);

}



function re_make_pvt_past_proj_rightlinks(){

var i;

var str_right = str_main_top;



	for (i=0; i < re_private_past_proj.length/2; i++ ) { }



	for (;i < re_private_past_proj.length; i++ ) {

		str_right += str_sm_top + str_lnk_st + re_private_past_proj[i].url + str_sm_ctr + re_private_past_proj[i].name + str_sm_bot;

	}

	str_right += str_main_bot;

	document.write(str_right);

}





//----------------------------------------------------------------------------------------------------------





//---------- Pop Up disclaimer -----------------------------------------------------------------------------

function popupdisclaimer(theLocation){ 



	var disclaimertxt;

	var fRet;



	disclaimertxt = 'You are leaving ssga.com.  The contents at this site are not intended for distribution to, or use by, any person or entity in any jurisdiction or country where such distribution or use would be contrary to local law or regulation. SSgA makes no representations that the contents are appropriate for use in all locations, or that the transactions, securities, products, instruments or services discussed at this site are available or appropriate for sale or use in all jurisdictions or countries, or by all investors or counterparties. All persons and entities accessing this site do so on their own initiative and are responsible for compliance with applicable local laws and regulations. Nothing on this site shall be considered a solicitation to buy or an offer to sell a security to any person in any jurisdiction where such offer, solicitation, purchase or sale would be unlawful under the securities laws of such jurisdiction.';



	fRet = confirm(disclaimertxt);



	if (fRet == true){

		if (theLocation == 'runjava') {

			document.newUserForm.submit();

		}

		else {

			window.open(theLocation);

		}

	}



}





function mp3Confirm(theURL){



var message="This material is for your private information. It is subject to copyright of State Street Corporation with"+

" all rights reserved and may not be reproduced without the prior express written permission of State Street Corporation.  "+

"The views expressed are the views of State Street Global Advisors (SSgA) as of the date the video and audio were produced "+

"and are subject to change based on market and other conditions. The opinions expressed may differ from those with different "+

"investment philosophies. The information we provide does not constitute investment advice and it should not be relied on "+

"as such. It should not be considered a solicitation to buy or an offer to sell a security. It does not take into account "+

"any investor's particular investment objectives, strategies, tax status or investment horizon. We encourage you to consult "+

"your tax or financial advisor. All material has been obtained from sources believed to be reliable, but its accuracy is not "+

"guaranteed. There is no representation nor warranty as to the current accuracy of, nor liability for, decisions based on "+

"such information. Past performance is no guarantee of future results.";  



	if(confirm(message)){

		window.location=theURL;

			    

	}

}



//-----------------------------------



function createMP3Disclaimer(thetitle,theURL){



var mp3html = "<html>" +

"<head>" +

"<META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-16\">" +

"<title>MP3 Disclaimer</title>" +

"<link rel=\"stylesheet\" href=\"/css/ssga_style.css\" type=\"text/css\">" +

"<link rel=\"stylesheet\" href=\"/css/gfp.css\" type=\"text/css\">" +

"</head>" +

"<body style=\"margin-top:0px;padding-top:0px\" background=\"/images/bg_039.gif\">" +

"<img src=\"/images/form_banner3.gif\">" +

"<div style=\"margin-left:100px;margin-top:20px;width:400px;\">" +

"<p style=\"font-face: Arial, Helvetica, sans-serif;font-weight: bold;font-size: 16px;color: #000000;\">MP3 Disclaimer</p>" +

"<p style=\"font-face: Arial, Helvetica, sans-serif;font-weight: bold;font-size: 14px;color: #003399;\">Terms of Use</p>" +

"<p>This material is for your private information. It is subject to copyright of State Street Corporation with all rights reserved and may not be reproduced without the prior express written permission of State Street Corporation. The views expressed are the views of State Street Global Advisors as of the date the video and audio were produced and are subject to change based on market and other conditions. The opinions expressed may differ from those with different investment philosophies. The information we provide does not constitute investment advice and it should not be relied on as such. It should not be considered a solicitation to buy or an offer to sell a security. It does not take into account any investor's particular investment objectives, strategies, tax status or investment horizon. We encourage you to consult your tax or financial advisor. All material has been obtained from sources believed to be reliable, but its accuracy is not guaranteed. There is no representation or warranty as to the current accuracy of," +

" nor liability for, decisions based on such information. Past performance is no guarantee of future results. " +

"<br><br>" +

"By clicking on the link below, I agree to the terms stated above:" +

"</p>" +

"</div>" +

"<div style=\"padding: 10px 8px;margin-left:100px;margin-top:15px;background-color:#FFFFCC;width:400px;border-style:solid;border-width:1px;\">" +

"<img style=\"vertical-align:text-top\" src=\"/images/dot_red.gif\" width=\"3\" height=\"9\">&nbsp;<a href=\"" +

theURL + "\">" + thetitle + "</a>&nbsp;<a href=\"" + theURL + "\"><img src=\"/images/mp3.gif\" border=\"0\"></a>" +

"</div>" +

"</body>" +

"</html>";



  popupwin1 = window.open('MP3 Disclaimer','_blank','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=618,height=520,innerwidth=618,left=0,top=0,screenX=0,screenY=0');

  popupwin1.document.open();

  popupwin1.document.write(mp3html);

  popupwin1.document.close();		    

}





//---------- Global offices --------------------------------------------------------------------------

//-----------disclaimer -----------------------------------------------------------------------------



function globalOfficesDisclaimers(dtype, theURL){



	var message = "";

	if (dtype == "A") {

		message = "You are leaving ssga.com.  The contents at this site are not intended for distribution to, or use by, any person or entity in any jurisdiction or country where such distribution or use would be contrary to local law or regulation. SSgA makes no representation that the contents of the site are appropriate for use in all locations, or that the transactions, securities, products, instruments or services discussed at this site are available or appropriate for sale or use in all jurisdictions or countries, or by all investors or counterparties. All persons and entities accessing this site do so on their own initiative and are responsible for compliance with applicable local laws and regulations. Nothing on this site shall be considered a solicitation to buy or an offer to sell a security to any person in any jurisdiction where such offer, solicitation, purchase or sale would be unlawful under the securities laws of such jurisdiction.";

	}

	if (dtype == "B") {

		message = "You are leaving ssga.com. This link is provided as a courtesy for informational purposes only and leads to web pages which SSgA does not maintain. We do not provide any information directly to the linked website, nor do we endorse or affirm any of the information provided by it. We make no representation or warranty with respect to the information contained on the site and we take no responsibility for supplementing, updating or correcting any such information. By providing this link, we are not providing you with investment advice or offering securities for sale to you.";

	}

	if (dtype == "C") {

		message = "You are leaving ssga.com.  The contents at this site are not intended for distribution to, or use by, any person or entity in any jurisdiction or country where such distribution or use would be contrary to local law or regulation. SSgA makes no representation that the contents of the site are appropriate for use in all locations, or that the transactions, securities, products, instruments or services discussed at this site are available or appropriate for sale or use in all jurisdictions or countries, or by all investors or counterparties. All persons and entities accessing this site do so on their own initiative and are responsible for compliance with applicable local laws and regulations. Nothing on this site shall be considered a solicitation to buy or an offer to sell a security to any person in any jurisdiction where such offer, solicitation, purchase or sale would be unlawful under the securities laws of such jurisdiction.";

	}

	if(confirm(message)){
		openToolbarWindow(theURL);

	}

}



//-----------Mgmt Team -----------------------------------------------------------------------------



function showimages(num, total) {

	var k;

	showLayer("showhide_sm" + num);

	showLayer("showhide_title" + num);

	showLayer("showhide_lg" + num);

	showLayer("showhide_bio" + num);

	

	for (var i=1; i <= total; i++){

		if (i != num) {

			hideLayer("showhide_sm" + i);

			hideLayer("showhide_title" + i);

			hideLayer("showhide_lg" + i);

			hideLayer("showhide_bio" + i);

		}

	}

}



function showLayer(whichLayer) {

if (document.getElementById)

{

// this is the way the standards work

var style2 = document.getElementById(whichLayer).style;

style2.display = "block";

}

else if (document.all) {

// this is the way old msie versions work

var style2 = document.all[whichLayer].style;

style2.display = "block";

}

else if (document.layers) {

// this is the way nn4 works

var style2 = document.layers[whichLayer].style;

style2.display = "block";

}

}



function hideLayer(whichLayer) {

if (document.getElementById)

{

// this is the way the standards work

var style2 = document.getElementById(whichLayer).style;

style2.display = "none";

}

else if (document.all) {

// this is the way old msie versions work

var style2 = document.all[whichLayer].style;

style2.display = "none";

}

else if (document.layers) {

// this is the way nn4 works

var style2 = document.layers[whichLayer].style;

style2.display = "none";

}

}



//------------------------------------ New Asset management pages with flash 12/05/2006---------------------------------------------------------------------

//these two functions control the Flash overlay on the OFA page
function changeSWFClass(classNameNew) {
				document.getElementById('right_col_swf').className = classNameNew;
}
function changeOpaqueDIVClass(classNameNew) {
	document.getElementById('background_opaque').className = classNameNew;
	document.getElementById('header_background_opaque').className = "header_"+classNameNew;
}

function newImage( imgSrc ){

	var imgName = new Image();
	imgName.src = imgSrc;

	return imgName;

}

function change( imgName, imgLocation )
{
	document[imgName].src = imgLocation ;
}

var preloadFlag = false;

function loadImages()
{
	if (document.images)
	{

		home_up = newImage( "/images/MngABSRET_up.jpg" );
		home_over = newImage("/images/MngABSRET_over.jpg");

		preloadFlag = true;
	}
}



//------------------------------- Mask background ----------------------------------

//Function for a fade out

function fadeOut(divId, startOpacity, endOpacity, time){
  var fadeOut = new fx.Opacity(divId , {duration: time});
  fadeOut.hide();
  fadeOut.custom(startOpacity, endOpacity);  
}
function fadeOutHide(divId, startOpacity, endOpacity, time){
  var fadeOut = new fx.Opacity(divId , {duration: time});
  fadeOut.custom(startOpacity, endOpacity);  
}
function hide(divId){
  var fadeOut = new fx.Opacity(divId , {duration: 0});
  fadeOut.hide(); 
}

//----Function to open Report Center Documents in New Window --

function viewReport( href ) {
	
window.open(href,'reportDocument','toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=600,left=0,top=0,screenX=0,screenY=0');

}
//--- function to handle drop down on consultant/client home page in case there are more then one clients
function SubmitClientForm(){
	
	var selectedClientIndex = document.ClientForm.clientOrg.selectedIndex;
	var selectedClientId = document.ClientForm.clientOrg.options[selectedClientIndex].value;	
	var url = "/weblogic/private/privateHome?CLIENT_ID="+selectedClientId;	
	window.parent.location = url;
	}


//-----Flash helper functions------
//function to dynamically resize a div
function setupHTMLDiv(myHeight,myDiv){
 var myArticles=document.getElementById(myDiv);
  myArticles.style.height=myHeight+"px";
}
//function to open a web page and trigger a Webtrends call
function openWindowWithWebtrends(myURL, site_section){
	dcsMultiTrack('DCS.dcsuri', myURL,'WT.ti',site_section);
	window.location=myURL;
}


//-------Log Out Functionality-----------
function deleteCookie (name) {
  var exp = new Date();

  exp.setTime (exp.getTime() - 1);  // This cookie is history

  var cval = getCookie (name);

  document.cookie = name + "=" + "" + ";path=/; expires=" + exp.toGMTString()+"; domain=.statestr.com";

}

// "Internal" function to return the decoded value of a cookie
//

function getCookieVal (offset) {

  var endstr = document.cookie.indexOf (";", offset);

  if (endstr == -1)

	endstr = document.cookie.length;

  return unescape(document.cookie.substring(offset, endstr));

}

//

//  Function to return the value of the cookie specified by "name".
//    name - String object containing the cookie name.
//    returns - String object containing the cookie value, or null if
//      the cookie does not exist.


function getCookie (name) {

  var arg = name + "=";

  var alen = arg.length;

  var clen = document.cookie.length;

  var i = 0;

  while (i < clen) {

	var j = i + alen;

	if (document.cookie.substring(i, j) == arg)

	  return getCookieVal (j);

	i = document.cookie.indexOf(" ", i) + 1;

	if (i == 0) break; 

  }

  return null;

}

function openStrategyLink(strategyPath, strategyCode, fromPage){
 openNoToolbarWindow(strategyPath);
 dcsMultiTrack('WT.cg_n', fromPage, 'WT.cg_s', strategyCode);
}

//function to reset z-order
function resetOverflowZIndex(myZDiv,myZIndex,myPosition,myODiv,myOverflow){
	if (myZDiv != undefined){
  	var divZOrderReset=document.getElementById(myZDiv);
  	divZOrderReset.style.zIndex=myZIndex;
  	if (is_ie6up){
  		divZOrderReset.style.position=myPosition;
  	}
  }
  if (myODiv != undefined){
  	if (is_ie6up){
		  var divOverflowReset=document.getElementById(myODiv);
		  divOverflowReset.style.overflow=myOverflow;
		}
	}
}