//-----------------------------------
// Fast navigate OnChange event

function OnNavigate(Selection) { 
	if (Selection.options[Selection.selectedIndex].value != '')
		window.location.href = Selection.options[Selection.selectedIndex].value; 
}

//-----------------------------------
// Generates <OPTION> tag

function CreateOptionTag(URL, Caption) { 
	var result = '<OPTION ';
	if (URL != '') {
		if (window.location.href.indexOf('/' + URL) > -1) result += 'selected ';
	}
	result += 'value="' + URL + '">' + Caption; 
	return result;
}

//-----------------------------------
// Fast navigate combobox

var S;
S = '<FORM action="">';
S += '<SELECT class="clsEditFixed" name="navigation" size="1" onchange="OnNavigate(this)">';
S += CreateOptionTag('index.shtml', 'Home');
S += CreateOptionTag('outlook-express-backup.shtml', 'Products');
S += CreateOptionTag('magnifying-tools.shtml', '&nbsp;&nbsp;ABF Magnifying Tools');
S += CreateOptionTag('outlook-express-backup.shtml', '&nbsp;&nbsp;ABF OE Backup');
S += CreateOptionTag('outlook-backup.shtml', '&nbsp;&nbsp;ABF Outlook Backup');
S += CreateOptionTag('password-recovery.shtml', '&nbsp;&nbsp;ABF Password Recovery');
S += CreateOptionTag('photo-camera.shtml', '&nbsp;&nbsp;ABF Photo Camera');
S += CreateOptionTag('screen-saver.shtml', '&nbsp;&nbsp;ABF Screen Saver');
S += CreateOptionTag('slide-show-screen-saver.shtml', '&nbsp;&nbsp;ABF Slide Show');
S += CreateOptionTag('value-converter.shtml', '&nbsp;&nbsp;ABF Value Converter');
S += CreateOptionTag('wallpaper-changer.shtml', '&nbsp;&nbsp;ABF Wallpaper Changer');
S += CreateOptionTag('cd-blaster.shtml', '&nbsp;&nbsp;CD Blaster');
S += CreateOptionTag('lens-magnifying-glass.shtml', '&nbsp;&nbsp;Lens-magnifying glass');
S += CreateOptionTag('download.shtml', 'Download');
S += CreateOptionTag('buy.shtml', 'Buy');
S += CreateOptionTag('links.shtml', 'Links');
S += CreateOptionTag('about.shtml', 'About');
S += '</SELECT>';
S += '</FORM>';

document.writeln(S);
