<!--
var subChapterName;
var subSubChapterName;
var fileName;
var currentSection;
var tempstr1;
var tempstr2;
var tempstr3;
var tempstr4;
var tempstr5;
var locationstr;
var locationstr1;
var locationstr2;
var locationstr3;
var locationstr4;
var locationstr2a;
var locationstr3a;
var locationstr4a;
var urlcheckstr;
var level;

function getLocationInfo()
{
//alert("getLocationInfo");
	url = document.URL;
	tempstr1 = url.substr(url.indexOf("//")+2,url.length);
	tempstr2 = tempstr1.substr(tempstr1.indexOf("/")+1,tempstr1.length);
	urlcheckstr = "/" + tempstr2;

	if(urlcheckstr.indexOf('/education/catalog/') != -1)
		urlcheckstr = "/education/catalog/catalog.jsp";
	if(urlcheckstr.indexOf('/company/') != -1)
	{
		if(urlcheckstr.indexOf('search') != -1)
			urlcheckstr = "/company/success.jsp";

		if(urlcheckstr.indexOf('background.jsp') == -1 && urlcheckstr.indexOf('news/') == -1 && urlcheckstr.indexOf('success.jsp') == -1)
			urlcheckstr = "/company/exeteam.jsp";

		if(urlcheckstr.indexOf('news/') != -1)
		{
			if(urlcheckstr.indexOf('event.jsp') == -1 && urlcheckstr.indexOf('newsletter') == -1)
				urlcheckstr = "/company/news/press.jsp";
			if(urlcheckstr.indexOf('newsletter') != -1)
				urlcheckstr = "/company/news/newsletter.jsp";
		}

		if(urlcheckstr.indexOf('news/press/') != -1)
			urlcheckstr = "/company/news/press.jsp";
	}
	if(urlcheckstr.indexOf('/ssc/solutions/lan_server_free.jsp') != -1)
		urlcheckstr = "/ssc/solutions/intro.jsp";
	if(urlcheckstr.indexOf('/resource/feature/') != -1)
		urlcheckstr = "/resource/feature.jsp";
	if(urlcheckstr.indexOf('/products/hardprod/ifs.jsp') != -1)
		urlcheckstr = '/products/hardprod/silkworm_3800.jsp';
	if(urlcheckstr.indexOf('/products/hardprod/ficon.jsp') != -1)
		urlcheckstr = "/products/hardprod/silkworm_12000.jsp";
	if(urlcheckstr.indexOf('/products/directors/ficon.jsp') != -1)
		urlcheckstr = "/products/directors/silkworm_12000.jsp";
	if(urlcheckstr.indexOf('/sansol/backup.jsp') != -1)
		urlcheckstr = "/sansol/backup_restore.jsp";
	if(urlcheckstr.indexOf('/sansol/business.jsp') != -1)
		urlcheckstr = "/sansol/business_continuance.jsp";
	if(urlcheckstr.indexOf('/sansol/high.jsp') != -1)
		urlcheckstr = "/sansol/high_availability.jsp";
	if(urlcheckstr.indexOf('/sansol/server.jsp') != -1)
		urlcheckstr = "/sansol/server_consolidation.jsp";
	if(urlcheckstr.indexOf('/sansol/san.jsp') != -1)
		urlcheckstr = "/sansol/san_security.jsp";
	if(urlcheckstr.indexOf('/products/directors/investment.jsp') != -1)
		urlcheckstr = "/products/directors/intro.jsp";

	tempstr3 = tempstr2.substr(tempstr2.indexOf("/")+1,tempstr2.length);
	chapterName = tempstr2.substr(0,tempstr2.indexOf("/"));
	tempstr4 = tempstr3.substr(tempstr3.indexOf("/")+1,tempstr3.length);
	tempstr4 = tempstr3;
//alert(tempstr4);
	if(tempstr4.indexOf("/") == -1)
	{
		subChapterName = "";
		fileName = tempstr4.substr(0,tempstr4.length);
	}
	else
	{
		subChapterName = tempstr4.substr(0,tempstr4.indexOf("/"));
		tempstr5 = tempstr4.substr(tempstr4.indexOf("/")+1,tempstr4.length);
		fileName = tempstr5.substr(0,tempstr5.length);
	}

	chapterNameArray = eval(chapterName + "NameArray");
	chapterLinkArray = eval(chapterName + "LinkArray");
	chapterTextArray1 = eval(chapterName + "TextArray");

	for(i=0; i<chapterNameArray.length; i++)
	{
		storedurl = chapterLinkArray[i];

		locationstr1 = 'Ȩ';
		locationstr2 = chapterTextArray[chapterName];
		locationstr3 = chapterTextArray1[i];

		if(urlcheckstr == storedurl)
		{
			level = "3a";
			locationstr2a = chapterTextArray[chapterName];
			locationstr3a = chapterTextArray1[i];
			if(locationstr3a == "")
				locationstr = locationstr1 + " &gt; " + locationstr2;
			else
				locationstr = locationstr1 + " &gt; " + locationstr2 + " &gt; " + locationstr3;
		}
		if(subChapterName != "")
		{
			subChapterNameArray = eval(chapterName + "_" + chapterNameArray[i] + "NameArray");
			subChapterLinkArray = eval(chapterName + "_" + chapterNameArray[i] + "LinkArray");
			subChapterTextArray = eval(chapterName + "_" + chapterNameArray[i] + "TextArray");

			if(subChapterName == chapterNameArray[i])
			{
				for(j=0; j<subChapterNameArray.length; j++)
				{
					storedurl = subChapterLinkArray[j];
					if(urlcheckstr == storedurl)
					{
						level = "4a";
						locationstr4 = subChapterTextArray[j];
						locationstr4a = subChapterTextArray[j];
						locationstr = locationstr1 + " &gt; " + locationstr2 + " &gt; " + locationstr3 + " &gt; " + locationstr4;
					}
				}
			}
		}
	}
}

function genLocation()
{
//alert(locationstr);
	if(locationstr != null)
	{
		document.writeln('<table width="100%" cellpadding="0" cellspacing="0" valign=center>');
		document.writeln('<tr><td><img src="/images/shim.gif" width="10" height="1"></td><td width="100%" valign=center>');
		document.writeln('<br><span class="location"><font color="#666666">'+locationstr+'</font></span>');
		document.writeln('</td></tr>');
		document.writeln('</table>');
	}
	else
		document.writeln('&nbsp;');
}

function addSubHeader1()
{
	document.write('<img src="/'+chapterName+'/images/subheader.gif">');
}

function addSubHeader2()
{
	chapterColor = chapterColorArray[chapterName];
	chapterBgimg = chapterBgImgArray[chapterName];
	document.writeln('<table border="0" cellpadding="0" cellspacing="0" bgcolor="'+chapterColor+'" width="100%" height="24">');
	document.writeln('<tr><td><img src="/images/shim.gif" width="10" height="1"></td>');
	document.writeln('<td width="100%" class="subheader2">');
	if(level != null)
		document.writeln(eval("locationstr"+level));
	else
		document.writeln('&nbsp;');
	document.writeln('</td>');
	document.write('<td align="right">');
	if(chapterBgimg == "")
		document.writeln('&nbsp;');
	else
		document.write('<img src="/'+chapterName+'/images/'+chapterBgimg+'">');
	document.write('</td></tr>');
	document.writeln('</table>');
}

function addSubHeader3()
{
	chapterColor = chapterColorArray[chapterName];
	document.writeln('<table border="0" cellpadding="0" cellspacing="0" bgcolor="'+chapterColor+'" width="100%" height="24">');
	document.writeln('<tr><td><img src="/images/shim.gif" width="21" height="1"></td></tr>');
	document.writeln('</table>');
}


function genSideMenu()
{
//alert(urlcheckstr);
	chapterNameArray = eval(chapterName + "NameArray");
	chapterLinkArray = eval(chapterName + "LinkArray");
	chapterTextArray1 = eval(chapterName + "TextArray");

	document.writeln('<table width="150" border="0" cellspacing="0" cellpadding="0">');
	document.writeln('<tr><td valign="top">');
	document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
//	document.writeln('<tr><td colspan="2"><img src="/images/shim.gif" height="20" width="1"></td></tr>');

	for(i=0; i<chapterNameArray.length; i++)
	{
		storedurl = chapterLinkArray[i];

		document.writeln('<tr>');
		if(urlcheckstr == storedurl)
		{
			if(urlcheckstr == "/company/news/event.jsp" || urlcheckstr == "/ssc/evolution/intro.jsp" || urlcheckstr == "/ssc/ifsa/intro.jsp" || urlcheckstr == "/ssc/solutions/intro.jsp")
			{
				writeEmptyCell();
				document.writeln('<td class="leftmenu">'+chapterTextArray1[i]+'</td>');
			}
			else
			{
			writeArrowCell();
			cssclass = 'leftmenu_' + chapterName.substr(0,3);
			document.writeln('<td class="'+cssclass+'">'+chapterTextArray1[i]+'</td>');
			}
		}
		else
		{
			writeEmptyCell();
			href = chapterLinkArray[i];
			if(href.indexOf("http://") != -1)
				target = "_blank";
			else
				target = "_self";
			document.writeln('<td><a href="'+href+'" class="leftmenu" target="'+target+'">'+chapterTextArray1[i]+'</a></td>');
		}
		document.writeln('</tr>');

		if(subChapterName == "")
		{
			if(i != (chapterNameArray.length-1))
			{
				document.writeln('<tr>');
				document.writeln('<td width="17"><img src="/images/0.gif" width="16" height="21"></td>');
				writeGreyCell();
				document.writeln('</tr>');
			}
		}
		else
		{	//alert(urlcheckstr);
			subChapterNameArray = eval(chapterName + "_" + chapterNameArray[i] + "NameArray");
			subChapterLinkArray = eval(chapterName + "_" + chapterNameArray[i] + "LinkArray");
			subChapterTextArray = eval(chapterName + "_" + chapterNameArray[i] + "TextArray");

			if(subChapterName == chapterNameArray[i] && subChapterNameArray.length > 0)
			{
				document.writeln('<tr>');
//				if(urlcheckstr == "/products/hardprod/eol.jsp")
//					document.writeln('<td width="17" valign="bottom"><img src="/images/sidemenu_arrow_pro.gif" vspace="4"></td>');
//				else
					document.writeln('<td width="17">&nbsp;</td>');
				document.writeln('<td valign="top">');
				document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');

				for(j=0; j<subChapterNameArray.length; j++)
				{
					if(subChapterName == "hardprod")
					{
						if(j==0)
						{
							writeEmptyRow();
							document.writeln('<tr><td valign="top" colspan="2" class="leftmenu"><b>2 Gbit/sec</b></td></tr>');
						}
					}
					storedurl = subChapterLinkArray[j];
					writeEmptyRow();

//					if(subChapterName == "hardprod" && j==4)
//					{
//						if(urlcheckstr == storedurl)
//							document.writeln('<tr><td valign="top" colspan="2" class="leftmenu_pro">'+subChapterTextArray[j]+'</td>');
//						else
//							document.writeln('<tr><td valign="top" colspan="2" class="leftmenu"><a href="'+subChapterLinkArray[j]+'" class="leftmenu" target="_self">'+subChapterTextArray[j]+'</a></td>');
//					}
//					else
//					{
						document.writeln('<tr>');
						if(urlcheckstr == storedurl)
						{
							writeArrowCell();
							cssclass = 'leftmenu_' + chapterName.substr(0,3);
							document.writeln('<td valign="top" class="'+cssclass+'">'+subChapterTextArray[j]+'</td>');
						}
						else
						{
							writeEmptyCell();
			href = subChapterLinkArray[j];
			if(href.indexOf("http://") != -1)
				target = "_blank";
			else
				target = "_self";
							document.writeln('<td valign="top" class="leftmenu"><a href="'+href+'" class="leftmenu" target="'+target+'">'+subChapterTextArray[j]+'</a></td>');
						}
						document.writeln('</tr>');
//					}
				}
				document.writeln('</table>');
				document.writeln('</td>');
				document.writeln('</tr>');
				document.writeln('<td width="17"><img src="/images/0.gif" width="16" height="21"></td>');
				writeGreyCell();
				document.writeln('</tr>');
			}
			else
			{
				if(i != (chapterNameArray.length-1))
				{
					document.writeln('<tr>');
					document.writeln('<td width="17"><img src="/images/0.gif" width="16" height="21"></td>');
					writeGreyCell();
					document.writeln('</tr>');
				}
			}
		}
	}
	document.writeln('</table>');

	document.writeln('</td></tr></table>');
}

function writeEmptyRow()
{
	document.writeln('<tr><td width="16" class="leftmenu">&nbsp;</td><td valign="top" class="leftmenu">&nbsp;</td></tr>');
}

function writeGreyCell()
{
	document.writeln('<td><img src="/images/sidemenu_line.gif" width="115" height="1"></td>');
}

function writeEmptyCell()
{
	document.writeln('<td width="16" class="leftmenu">&nbsp;</td>');
}

function writeArrowCell()
{
	arrowname = 'sidemenu_arrow_'+chapterName.substr(0,3);
	document.writeln('<td class="leftmenu"><img src="/images/'+arrowname+'.gif"></td>');
}

//-->
