var dlf_platform_menu_text = "" +
"Home|index.php|\n" +
"My Purchases|my.php|\n" +
"Authors|author.php|\n" +
"Affiliates|affiliate.php|\n" +
"Help|help.php|\n" +
"About|about.php|\n" +
"&nbsp;||\n" +
"All Platforms|pltfrm=0||" +
"Mac|pltfrm=MAC||" +
"Other|pltfrm=OTHER||" +
"Palm Pilot|pltfrm=PALMPILOT||" +
"Solaris|pltfrm=SOLARIS||" +
"Unix|pltfrm=LINUX,FREEBSD||" +
"	FreeBSD|pltfrm=FREEBSD||" +
"	Linux|pltfrm=LINUX||" +
"Windows|pltfrm=WIN3x,WIN9x,NT,WIN3x9x,WIN9xNT,WIN3x9xNT||" +
"	Windows 3.x|pltfrm=WIN3x,WIN3x9x,WIN3x9xNT||" +
"	Windows 95/98/Me|pltfrm=WIN9x,WIN3x9x,WIN9xNT,WIN3x9xNT||" +
"	Windows NT/2000/XP|pltfrm=NT,WIN9xNT,WIN3x9xNT||" +
"Windows CE|pltfrm=WINCE||";


function DLFPlatformMenuText( url )
{
	var s = dlf_platform_menu_text.replace( /\|(pltfrm=[a-zA-Z0-9,]*)\|\|/g, "|" + url + "|\n" );
	s = s.replace( /pltfrm=/g, "pltfrm=ALL," );	// include ALL for platforms
	s = s.replace( /pltfrm=ALL,0/g, "pltfrm=" );	// restore the All Platforms item
	s = s.substr( 0, s.length - 1 );					// remove the "\n" at end
	return s;
}
