// solutions.js

//******************************
function myIPILeftNav(strSelectedPage)
{
	var arySolutionsPages = [
				'Solutions Overview',
				'Carrier Ethernet and MPLS',
				'Enterprise Switching and Routing',
				'Provider Edge',
				'IPTV and VOD',
				'Customer Solution Profiles',
				'White Papers'
				 ];

	var arySolutionsPageURLs = [
				'/solutions/solutions_home.html',
				'/solutions/solutions_carrier.html',
				'/solutions/solutions_switching.html',
				'/solutions/solutions_edge.html',
				'/solutions/solutions_iptv.html',
				'/solutions/profiles.html',
				'/whitepapers/whitepapers_home.html' 
				];

	
	var aryProfilesPages = [
				'Fujitsu Limited',
				'Furukawa Network Solution Corp.',									
				'Media Global Links'				
				 ];

	var aryProfilePageURLs = [
				'/solutions/profiles/fujitsu.html',									  
				'/solutions/profiles/furukawa.html',				
				'/solutions/profiles/media-global-links.html'
				
				];

	document.write('<table width="100%" cellspacing="0" cellpadding="0" border="0">');
	document.write('	<tr>');
	document.write('		<td class="leftcell">&nbsp;</td>');
	document.write('	</tr>');

	for(var iIndex = 0; iIndex < arySolutionsPages.length; iIndex++)
	{
		var strLeftNavClass = 'leftnav';
		
		document.write('	<tr>');
		document.write('	   <td class="leftcell">');

		if(strSelectedPage == arySolutionsPages[iIndex])
		{
			strLeftNavClass += '-selected';						
		}//end if
		
		document.write('<a href="' + arySolutionsPageURLs[iIndex] + '" class="' + strLeftNavClass + '">' + arySolutionsPages[iIndex] + '</a>');
		document.write('	   </td>');
		document.write('	</tr>');
				
		var bSecondaryLeftNav = false;
		
		if((strSelectedPage == 'Customer Solution Profiles') && (arySolutionsPages[iIndex] == 'Customer Solution Profiles'))
		{
			bSecondaryLeftNav = true;
		}//end if


		if((strSelectedPage == 'Fujitsu Limited') && (arySolutionsPages[iIndex] == 'Customer Solution Profiles'))
		{
			bSecondaryLeftNav = true;
		}//end if


		if((strSelectedPage == 'Furukawa Network Solution Corp.') && (arySolutionsPages[iIndex] == 'Customer Solution Profiles'))
		{
			bSecondaryLeftNav = true;
		}//end if


		if((strSelectedPage == 'Media Global Links') && (arySolutionsPages[iIndex] == 'Customer Solution Profiles'))
		{
			bSecondaryLeftNav = true;
		}//end if
		

		
		if(bSecondaryLeftNav)
		{		
			for(var iProfilesIndex = 0; iProfilesIndex < aryProfilesPages.length; iProfilesIndex++)
			{
				var strLeftNavSecClass = 'leftnav-secondary';
				document.write('	<tr>');
				document.write('	   <td class="leftcell">');					
				if(strSelectedPage == aryProfilesPages[iProfilesIndex])
				{											
					strLeftNavSecClass += '-selected';						
				}//end if
									
				document.write('<a href="' + aryProfilePageURLs[iProfilesIndex] + '" class="' + strLeftNavSecClass + '">' + aryProfilesPages[iProfilesIndex] + '</a>');
				document.write('	   </td>');
				document.write('	</tr>');		
			}//end for				
		}//end if 
	}//end for

	document.write('</table>');
}//end function
//********************************