/////////////////////////////////////////////////////////////////////////////////////
// Language Specific functions
/////////////////////////////////////////////////////////////////////////////////////
	function preloadImages() { }


	function writeMessagingImage() {
	
		var headerImages = new Array("header_right_1.jpg","header_right_2.jpg","header_right_3.jpg","header_right_4.jpg");
		
		if (document.location == (hostName + languageDirectory + "/index.html") ||
				document.location == (hostName + languageDirectory)) {
			headerImage = "header_right.gif";
		} else {
			headerImage = headerImages[Math.floor(Math.random()*4)];
		}
		
		document.write("<img src=\"" + hostName + languageDirectory + "/images/masthead/" + headerImage + "\" alt=\"\" width=\"350\" height=\"110\" border=\"0\">");
		
	}
		
	function shuffleImage(x) {
	
		headerImages[0] = "header_right_1.jpg";
		headerImages[1] = "header_right_2.jpg";
		headerImages[2] = "header_right_3.jpg";
		headerImages[3] = "header_right_4.jpg";
		
		
	}
	

	function renderTop() {
		document.writeln("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#0000cc\">");
		document.writeln("	<tr>");
		document.writeln("		<td width=\"100%\">");
		document.writeln("			<table width=\"1120\" height=\"21\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#0000cc\">");
		document.writeln("				<tr>");
		document.writeln("					<td width=\"1\" align=\"left\" valign=\"middle\" class=\"utilitybar\"><img src=\"" + "/images/spacer.gif\" height=\"22\" width=\"1\"></td>");
		document.writeln("					<td width=\"220\" align=\"left\" valign=\"middle\" class=\"utilitybar\">&nbsp;<a href=\"" + "/index.html\" class=\"utilitybar\">Home</a>&nbsp;|&nbsp;<a href=\"" + "/contact.html\" class=\"utilitybar\">Contact Us</a>&nbsp;|&nbsp;<a href=\"" + "/sitemap.html\" class=\"utilitybar\">Site&nbsp;Map</a></td>");
		document.writeln("				</tr>");
		document.writeln("			</table>");
		document.writeln("		</td>");
		document.writeln("	</tr>");
		document.writeln("</table>");
	}
		
	function renderHeader() {
		document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" bgcolor=\"#A4E1E4\">");
		document.writeln("<tr> ");
		document.writeln("<td> ");

			document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
			document.writeln("<tr>");
			document.writeln("<td height=\"20\" bgcolor=\"#A4E1E4\" align=\"left\" valign=\"top\"><a href=\"" + hostName + languageDirectory + "/index.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('top1','','" + hostName + languageDirectory + "/nav/home_2.gif',1)\"><img src=\"" + hostName + languageDirectory + "/nav/home_1.gif\" alt=\"\" name=\"Image1\" id=\"top1\" width=\"47\" height=\"20\" border=\"0\"></a><a href=\"" + hostName + languageDirectory + "/utility/contact.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('top2','','" + hostName + languageDirectory + "/nav/contact_2.gif',1)\"><img src=\"" + hostName + languageDirectory + "/nav/contact_1.gif\" alt=\"\" name=\"top2\" id=\"top2\" width=\"66\" height=\"20\" border=\"0\"></a><img src=\"" + hostName + languageDirectory + "/nav/spacer.gif\" alt=\"\" name=\"top3\" id=\"top3\" width=\"72\" height=\"1\" border=\"0\"><img src=\"" + hostName + languageDirectory + "/nav/search_1.gif\" alt=\"\" name=\"top4\" id=\"top4\" width=\"40\" height=\"20\" border=\"0\"></td>");
			document.writeln("<td height=\"20\" bgcolor=\"#A4E1E4\" align=\"left\" valign=\"middle\"><form class=\"bodytext\" method=\"get\" action=\"http://search.statestreet.com/www/securitiesfinance/en/query.html\" id=\"form1\" name=\"form1\"><input name=\"qt\" size=\"10\" maxlength=\"100\" STYLE=\"color:#333333; font-size:10px; font:verdana, chicago, sans-serif\"><input type=\"hidden\" name=\"col\" value=\"ssc\"><input type=\"hidden\" name=\"charset\" value=\"iso-8859-1\"><input type=\"hidden\" name=\"ht\" value=\"0\"><input type=\"hidden\" name=\"qp\" value=\"site:www.statestreet.com\"><input type=\"hidden\" name=\"qs\" value=\"\"><input type=\"hidden\" name=\"qc\" value=\"\"><input type=\"hidden\" name=\"pw\" value=\"100%\"><input type=\"hidden\" name=\"ws\" value=\"0\"><input type=\"hidden\" name=\"la\" value=\"en\"><input type=\"hidden\" name=\"qm\" value=\"0\"><input type=\"hidden\" name=\"st\" value=\"1\"><input type=\"hidden\" name=\"nh\" value=\"10\"><input type=\"hidden\" name=\"lk\" value=\"1\"><input type=\"hidden\" name=\"rf\" value=\"0\"><input type=\"hidden\" name=\"rq\" value=\"0\"><input type=\"hidden\" name=\"si\" value=\"1\"></td>");
			document.writeln("<td height=\"20\" bgcolor=\"#A4E1E4\" align=\"left\" valign=\"top\"><a href=\"javascript:submitSearch(document.form1)\" onMouseOut=\"MM_swapImgRestore()\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Imagego','','" + hostName + languageDirectory + "/nav/go_2.gif',1)\"><img src=\"" + hostName + languageDirectory + "/nav/go_1.gif\" alt=\"\" name=\"Imagego\" id=\"Imagego\" width=\"30\" height=\"20\" border=\"0\"></a><a href=\"" + hostName + languageDirectory + "/utility/advanced_search_sf.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('top5','','" + hostName + languageDirectory + "/nav/advanced_2.gif',1)\"><img src=\"" + hostName + languageDirectory + "/nav/advanced_1.gif\" alt=\"\" name=\"top5\" id=\"top5\" width=\"106\" height=\"20\" border=\"0\"></a><a href=\"" + hostName + languageDirectory + "/utility/site_map.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('top6','','" + hostName + languageDirectory + "/nav/site_2.gif',1)\"><img src=\"" + hostName + languageDirectory + "/nav/site_1.gif\" alt=\"\" name=\"top6\" id=\"top6\" width=\"60\" height=\"20\" border=\"0\"></a><img src=\"" + hostName + languageDirectory + "/nav/spacer.gif\" alt=\"\" width=\"48\" height=\"20\" border=\"0\"></td>");
			document.writeln("<td height=\"20\" bgcolor=\"#A4E1E4\" align=\"left\" valign=\"top\"><img src=\"" + hostName + languageDirectory + "/nav/spacer.gif\" alt=\"\"  width=\"26\" height=\"20\" border=\"0\"></td></form>");
			document.writeln("</tr>");
			document.writeln("</table>");
		document.writeln("<table background=\"" + hostName + languageDirectory + "/nav/spacer.gif\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" height=\"1\"><tr><td width=\"100%\" height=\"1\"><img src=\"" + hostName + languageDirectory + "/nav/spacer.gif\" height=\"1\" width=\"1126\"></td></tr></table></td>");
		document.writeln("</tr>");
		document.writeln("</table>");

		document.writeln("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
		document.writeln("<tr>");
		document.writeln("<td width=\"800\"><table width=\"800\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"450\"><a href=\"" + hostName + languageDirectory + "/index.html\"><img src=\"" + hostName + languageDirectory + "/images/masthead/header_left.jpg\" alt=\"\" width=\"450\" height=\"110\" border=\"0\"></td><td width=\"350\">");
		writeMessagingImage();
		document.writeln("</a></td></tr></table>");

			document.writeln("<table width=\"800\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
			document.writeln("<tr> ");
			document.writeln("<td><img src=\"" + hostName + languageDirectory + "/images/horiz_nav.gif\" alt=\"\" width=\"748\" height=\"23\" border=\"0\"></td>");
			document.writeln("<td><img src=\"" + hostName + languageDirectory + "/images/masthead/masthead_lower.gif\" width=\"52\" height=\"24\"></td>");
			document.writeln("</tr>");
			document.writeln("</table>");

		document.writeln("</td>");
		document.writeln("<td align=\"left\" valign=\"top\"><img src=\"" + hostName + languageDirectory + "/images/topimage_extended.gif\" alt=\"\" width=\"325\" height=\"134\" border=\"0\"></td>");
		document.writeln("<td background=\"" + hostName + languageDirectory + "/images/topimage_extended.gif\" width=\"100%\"><img src=\"" + hostName + languageDirectory + "/images/spacer.gif\" alt=\"\" border=\"0\" height=\"1\" width=\"1\"></td>");
		document.writeln("</tr>");
		document.writeln("</table>");
		renderNav();
	}



	function renderNav() {
		var navTop = 90;
		var navLeft = 0; 
		
		document.writeln("<div id=\"navmain\" style=\"position:absolute; left:"+navLeft+"px; top:"+navTop+"px; width:715px; height:24px; z-index:1; visibility: visible;\"><a href=\"#\" onMouseOver=\"showMenu(0)\" onMouseOut=\"hideMenu(0)\"><img src=\""+ "images/about_us_" + (detectNavPosition("about_us")?2:1) + ".gif\" width=\"143\" height=\"24\" border=\"0\"></a><a href=\"#\" onMouseOver=\"showMenu(1)\" onMouseOut=\"hideMenu(1)\"><img src=\""+ "images/our_unique_" + (detectNavPosition("our_unique")?2:1) + ".gif\" width=\"190\" height=\"24\" border=\"0\"></a><a href=\"#\" onMouseOver=\"showMenu(2)\" onMouseOut=\"hideMenu(2)\"><img src=\""+ "images/products_services_" + (detectNavPosition("products_services")?2:1) + ".gif\" width=\"191\" height=\"24\" border=\"0\"></a><a href=\"#\" onMouseOver=\"showMenu(3)\" onMouseOut=\"hideMenu(3)\"><img src=\""+ "images/technology_" + (detectNavPosition("technology")?2:1) + ".gif\" width=\"191\" height=\"24\" border=\"0\"></a></div>");
		
		document.writeln("<div id=\"navaboutus\" style=\"position:absolute; left:"+navLeft+"px; top:"+navTop+"px; width:144px; height:290px; z-index:2; visibility: hidden;\">");
		  document.writeln("<table width=\"160\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		    document.writeln("<tr>");
		      document.writeln("<td><a href=\""+openSSLink(1,1,0,0)+"\" onMouseOver=\"MM_callJS('hoverMenu(0)')\" onMouseOut=\"MM_callJS('hideMenu(0)')\" ><img src=\""+ "images/about_us_2.gif\" width=\"143\" height=\"24\" border=\"0\"></a></td>");
		    document.writeln("</tr>");
		    
   
		    /*document.writeln("<tr>");
		      document.writeln("<td><a href=\""+openSSLink(1,2,0,0)+"\" onMouseOver=\"MM_callJS('hoverMenu(0)');MM_swapImage('navImage1','','"+ "images/about_overview_2.gif',1)\" onMouseOut=\"MM_callJS('hideMenu(0)');MM_swapImgRestore()\"><img src=\""+ "images/overview_1.gif\" name=\"navImage1\" width=\"144\" height=\"24\" border=\"0\" id=\"Image1\"></a></td>");
		    document.writeln("</tr>");*/
		  document.writeln("</table>");
		document.writeln("</div>");		
		
		document.writeln("<div id=\"navourunique\" style=\"position:absolute; left:"+(navLeft+143)+"px; top:"+navTop+"px; width:190px; height:144px; z-index:4; visibility: hidden;\">");
		  document.writeln("<table width=\"190\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		    document.writeln("<tr>");
		      document.writeln("<td><a href=\""+openSSLink(2,1,0,0)+"\" onMouseOver=\"MM_callJS('hoverMenu(1)')\" onMouseOut=\"MM_callJS('hideMenu(1)')\"><img src=\""+ "images/our_unique_2.gif\" width=\"190\" height=\"24\" border=\"0\"></a></td>");
		  document.writeln("</table>");
		document.writeln("</div>");		
		
		document.writeln("<div id=\"navproductsservices\" style=\"position:absolute; left:"+(navLeft+333)+"px; top:"+navTop+"px; width:191px; height:120px; z-index:6; visibility: hidden;\">");
		  document.writeln("<table width=\"191\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		    document.writeln("<tr>");
		      document.writeln("<td><a href=\""+openSSLink(3,1,0,0)+"\" onMouseOver=\"MM_callJS('hoverMenu(2)')\" onMouseOut=\"MM_callJS('hideMenu(2)')\"><img src=\""+ "images/products_services_2.gif\" width=\"190\" height=\"24\" border=\"0\"></a></td>");
		  document.writeln("</table>");
		document.writeln("</div>");

		document.writeln("<div id=\"technology\" style=\"position:absolute; left:"+(navLeft+524)+"px; top:"+navTop+"px; width:190px; height:120px; z-index:8; visibility: hidden;\">");
		  document.writeln("<table width=\"191\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
		    document.writeln("<tr>");
		      document.writeln("<td><a href=\""+openSSLink(4,1,0,0)+"\" onMouseOver=\"MM_callJS('hoverMenu(3)')\" onMouseOut=\"MM_callJS('hideMenu(3)')\"><img src=\""+ "images/technology_2.gif\" width=\"190\" height=\"24\" border=\"0\"></a></td>");
		  document.writeln("</table>");
		document.writeln("</div>");			
	}

	
	
function renderBanner() {
		var navTop = 30;
		var navLeft = 0; 	
		document.writeln("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">");
		document.writeln("	<tr>");
		document.writeln("		<td width=\"100%\" height=\"1\" align=\"left\" valign=\"middle\"><img src=\"" + "images/spacer.gif\" height=\"1\" width=\"780\"></td>");
		document.writeln("	</tr>");
		document.writeln("</table>");

		document.writeln("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"" + "images/background_image.gif\">");
		document.writeln("	<tr>");
		document.writeln("		<td width=\"100%\" align=\"left\" valign=\"top\"><img src=\"" + "images/top.jpg\" width=\"780\" height=\"91\"><img src=\"" + "images/trim_3.jpg\" width=\"340\" height=\"" + 91 + "\"></td>");
		document.writeln("	</tr>");
		document.writeln("</table>");
}

	function renderFooter() {
		document.writeln("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
		document.writeln("<tr>");
		document.writeln("<td align=\"left\" valign=\"bottom\">");
		document.writeln("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#1A2FA4\" height=\"20\">");
		document.writeln("<tr>");
	  	document.writeln("<td width=\"120\" valign=\"bottom\" class=\"bodytext\" valign=\"top\" align=\"left\"><img src=\"" + "/images/spacer.gif\" alt=\"\" border=\"0\" height=\"1\" width=\"10\"><img src=\"" + "images/corp_links.gif\" alt=\"\" border=\"0\" height=\"20\"></td>");
	  	document.writeln("<td width=\"500\" valign=\"middle\" class=\"bodytext\"><img src=\"" + "/images/spacer.gif\" alt=\"\" border=\"0\" height=\"1\" width=\"10\"><a href=\"http://www.statestreet.com/index.html\" class=\"footerlinkblue\" target=\"_blank\">Home</a><img src=\"" + "/images/spacer.gif\" alt=\"\" border=\"0\" height=\"1\" width=\"22\"><a href=\"http://investorrelations.statestreet.com/ireye/ir_site.zhtml?ticker=stt&script=2100\" class=\"footerlinkblue\" target=\"_blank\">Investor Relations</a><img src=\"" + "/images/spacer.gif\" alt=\"\" border=\"0\" height=\"1\" width=\"22\"><a href=\"http://www.statestreet.com/company/media/overview.html\" class=\"footerlinkblue\" target=\"_blank\">Media</a><img src=\"http://www.statestreet.com" + "/images/spacer.gif\" alt=\"\" border=\"0\" height=\"1\" width=\"22\">&nbsp;</td>");
        document.writeln("<td width=\"300\" valign=\"middle\" height=\"15\"  align=\"right\" bgcolor=\"#1A2FA4\" class=\"bodytext\"><a href=\"" + hostName + languageDirectory + "/securitiesfinance/en/utility/privacy.html\" class=\"footerlink\">Privacy</a><img src=\"" + "/images/spacer.gif\" alt=\"\" border=\"0\" height=\"1\" width=\"22\"><a href=\"" + hostName + languageDirectory + "/securitiesfinance/en/utility/legal.html\" class=\"footerlink\">Legal</a><img src=\"" + "/images/spacer.gif\" alt=\"\" border=\"0\" height=\"1\" width=\"22\"></td>");
        document.writeln("<td width=\"330\" class=\"bodytext\">&nbsp;</td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td align=\"left\" height=\"1\" class=\"footerlink\" bgcolor=\"#1A2FA4\" colspan=\"4\"><img src=\"images/spacer.gif\" width=\"1120\" height=\"1\"></td>");
		document.writeln("</tr>");
		document.writeln("</table>");
		document.writeln("</td>");
		document.writeln("</tr>");
		document.writeln("</table>");
		
	}