//
// Code to generate a standard case study index in the sidebar of
// a case study page.
//
// hrefArray contains the href and anchor text
// descArray contains an optional non-hyperlinked description
//
// To delete a case study, simply delete the appropriate hrefArray entry
// (the entire line), and corresponding descArray line (if it exists).
//
// To add a case study, add a new hrefArray entry (and, if needed, a
// corresponding descArray entry). This script does no sorting, so you
// need to add new entries in ALPHABETIC ORDER.
//

var hrefArray = new Array();
var descArray = new Array();

hrefArray['activestate.html'] = 'ActiveState';
hrefArray['arenanet.html'] = 'ArenaNet';
hrefArray['barebones.html'] = 'Bare Bones Software';
hrefArray['bea.html'] = 'BEA Systems';
hrefArray['cardinal_ROI.pdf'] = 'Cardinal Health';
hrefArray['carefusion.html'] = 'CareFusion';
hrefArray['ciena.html'] = 'Ciena';
hrefArray['csh.html'] = 'Computer Science House, Rochester Institute of Technology';
hrefArray['ixos.html'] = 'IXOS Software AG';
hrefArray['ni.html'] = 'National Instruments';
hrefArray['nikon.pdf'] = 'Nikon';
hrefArray['nvidia.html'] = 'NVIDIA';
hrefArray['openwave.html'] = 'Openwave';
hrefArray['stepstone.html'] = 'StepStone';
hrefArray['sunoz.html'] = 'Sun Professional Services Australia';
hrefArray['symbian.html'] = 'Symbian Ltd.';
hrefArray['ubisoft.html'] = 'Ubisoft';
hrefArray['zoran.html'] = 'Zoran Corporation';

descArray['ni.html'] = '(<em>featuring Perforce and Network Appliance</em>)';
descArray['nvidia.html'] = '(<em>featuring Perforce and Network Appliance</em>)';
descArray['zoran.html'] = '(<em>featuring Perforce and Network Appliance</em>)';

var prefix = '';
if ((document.URL.search('/de/') != -1) || (document.URL.search('/fr/') != -1))
	prefix = '../../success/';
var lastSlash = document.URL.lastIndexOf('/') + 1;
var thisFilename = document.URL.slice(lastSlash);
document.write('<ul>\n');;
for (var i in hrefArray) {
	document.write('<li>');
	if ( thisFilename != i ) {
		document.write('<a href="' + prefix + i + '">');
		document.write(hrefArray[i] + '</a>');
	}
	else {
		document.write('<strong>' + hrefArray[i] + '</strong>');
	}
	if (descArray[i])
		document.write(' ' + descArray[i]);
	document.write('</li>\n');
}
document.write('</ul>');

