var g_oPopupMenu = new SMPopupMenu("SMGlobalPopupMenu"), oItem = null;
with(g_oPopupMenu){
addItem("10012", "ILG_20_20Professional", "/ilg/index.html", 1, "", 1, "");
addItem("10016", "ILG_20Professional_20Database", "/ilg/access/index.html", 2, "", 1, "");
addItem("10027", "ILG_20Databases", "/ilg/access/data/index.html", 3, "", 1, "");
addItem("100143", "ILG_20a10", "/ilg/access/data/ilg-a10/index.html", 4, "", 1, "");
addItem("100140", "ILG_20b09", "/ilg/access/data/b09/index.html", 4, "", 1, "");
addItem("100131", "ILG_20a09", "/ilg/access/data/ilg-a09/index.html", 4, "", 1, "");
addItem("100129", "ILG_20b08", "/ilg/access/data/ilg-b08/index.html", 4, "", 1, "");
addItem("100127", "ILG_20a08", "/ilg/access/data/ilga08/index.html", 4, "", 1, "");
addItem("10046", "ILG_20b07", "/ilg/access/data/ilgb07/index.html", 4, "", 1, "");
addItem("10047", "ILG_20a07", "/ilg/access/data/ilga07/index.html", 4, "", 1, "");
addItem("10048", "ILG_20b06", "/ilg/access/data/ilgb06/index.html", 4, "", 1, "");
addItem("10049", "ILG_20a06", "/ilg/access/data/ilga06/index.html", 4, "", 1, "");
addItem("10050", "ILG_20b05", "/ilg/access/data/ilgb05/index.html", 4, "", 1, "");
addItem("10051", "ILG_20a05", "/ilg/access/data/ilga05/index.html", 4, "", 1, "");
addItem("10052", "ILG_20b04", "/ilg/access/data/ilgb04/index.html", 4, "", 1, "");
addItem("10053", "ILG_20a04", "/ilg/access/data/ilga04/index.html", 4, "", 1, "");
addItem("10054", "ILG_20b03", "/ilg/access/data/ilgb03/index.html", 4, "", 1, "");
addItem("10055", "ILG_20a03", "/ilg/access/data/ilga03/index.html", 4, "", 1, "");
addItem("10056", "ILG_20b02", "/ilg/access/data/ilgb02/index.html", 4, "", 1, "");
addItem("10057", "ILG_20a02", "/ilg/access/data/ilga02/index.html", 4, "", 1, "");
addItem("10058", "ILG_20b01", "/ilg/access/data/ilgb01/index.html", 4, "", 1, "");
addItem("10059", "ILG_20a01", "/ilg/access/data/ilga01/index.html", 4, "", 1, "");
addItem("10060", "ILG_20b00", "/ilg/access/data/ilgb00/index.html", 4, "", 1, "");
addItem("10061", "ILG_20a00", "/ilg/access/data/ilga00/index.html", 4, "", 1, "");
addItem("100137", "ILG_20Database_20Archive", "/ilg/access/ilg-database-archive/index.html", 3, "", 1, "");
addItem("10077", "ILG_201979", "/ilg/access/ilg-database-archive/ilg-1979/index.html", 4, "", 1, "");
addItem("100105", "ILG_201980", "/ilg/access/ilg-database-archive/ilg-1980/index.html", 4, "", 1, "");
addItem("100106", "ILG_201981", "/ilg/access/ilg-database-archive/ilg-1981/index.html", 4, "", 1, "");
addItem("100107", "ILG_201982", "/ilg/access/ilg-database-archive/ilg-1982/index.html", 4, "", 1, "");
addItem("10076", "ILG_201983", "/ilg/access/ilg-database-archive/ilgj83/index.html", 4, "", 1, "");
addItem("100108", "ILG_201984", "/ilg/access/ilg-database-archive/ilg-1984/index.html", 4, "", 1, "");
addItem("100109", "ILG_201985", "/ilg/access/ilg-database-archive/ilg-1985/index.html", 4, "", 1, "");
addItem("100110", "ILG_201986", "/ilg/access/ilg-database-archive/ilg-1986/index.html", 4, "", 1, "");
addItem("100111", "ILG_201987", "/ilg/access/ilg-database-archive/ilg-1987/index.html", 4, "", 1, "");
addItem("100112", "ILG_201988", "/ilg/access/ilg-database-archive/ilg-1988/index.html", 4, "", 1, "");
addItem("10072", "ILG_201989", "/ilg/access/ilg-database-archive/ilgw89/index.html", 4, "", 1, "");
addItem("100113", "ILG_201990", "/ilg/access/ilg-database-archive/ilg-1990/index.html", 4, "", 1, "");
addItem("100114", "ILG_201991", "/ilg/access/ilg-database-archive/ilg-1991/index.html", 4, "", 1, "");
addItem("100115", "ILG_201992", "/ilg/access/ilg-database-archive/ilg-1992/index.html", 4, "", 1, "");
addItem("100116", "ILG_201993", "/ilg/access/ilg-database-archive/ilg-1993/index.html", 4, "", 1, "");
addItem("100117", "ILG_201994", "/ilg/access/ilg-database-archive/ilg-1994/index.html", 4, "", 1, "");
addItem("100118", "ILG_201995", "/ilg/access/ilg-database-archive/ilg-1995/index.html", 4, "", 1, "");
addItem("100119", "ILG_201996", "/ilg/access/ilg-database-archive/ilg-1996/index.html", 4, "", 1, "");
addItem("100120", "ILG_201997", "/ilg/access/ilg-database-archive/ilg-1997/index.html", 4, "", 1, "");
addItem("10065", "ILG_20a98", "/ilg/access/ilg-database-archive/ilga98/index.html", 4, "", 1, "");
addItem("10064", "ILG_20b98", "/ilg/access/ilg-database-archive/ilgb98/index.html", 4, "", 1, "");
addItem("10063", "ILG_20a99", "/ilg/access/ilg-database-archive/ilga99/index.html", 4, "", 1, "");
addItem("10062", "ILG_20b99", "/ilg/access/ilg-database-archive/ilgb99/index.html", 4, "", 1, "");
addItem("10026", "Software", "/ilg/access/software/index.html", 3, "", 1, "");
addItem("10044", "ILG_20Software", "/ilg/access/software/ilg-download/index.html", 4, "", 1, "");
addItem("10045", "WPLOTF_20Software", "/ilg/access/software/ilg-download/index2.html", 4, "", 1, "");
addItem("10093", "FIELDPLOT_20Software", "/ilg/access/software/fieldplot-software/index.html", 4, "", 1, "");
addItem("10091", "ILG_20Import_20MS_20Excel", "/ilg/access/software/ilg-import-into-excel/index.html", 4, "", 1, "");
addItem("10092", "ILG_20Import_20MS_20Access", "/ilg/access/software/ilg-import-into-ms-access/index.html", 4, "", 1, "");
addItem("10025", "Manuals", "/ilg/access/info/index.html", 3, "", 1, "");
addItem("10031", "ILG_20Software_20Manual", "/ilg/access/info/manual/index.html", 4, "", 1, "");
addItem("10035", "ILG_20Data_20Browser", "/ilg/access/info/manual/browser/index.html", 5, "", 1, "");
addItem("10036", "The_20various_20data_20of_20ILG_20data_20files", "/ilg/access/info/manual/data/index.html", 5, "", 1, "");
addItem("10037", "The_20various_20data_20fields_20of_20ILG_20data_20base", "/ilg/access/info/manual/fields/index.html", 5, "", 1, "");
addItem("10038", "Filter_20Functions:_20Search_20a_20clear_20frequency", "/ilg/access/info/manual/filter/index.html", 5, "", 1, "");
addItem("10039", "Detect_20your_20Collissions", "/ilg/access/info/manual/collissions/index.html", 5, "", 1, "");
addItem("10040", "How_20to_20find_20Wooden_20Frequencies", "/ilg/access/info/manual/wooden/index.html", 5, "", 1, "");
addItem("10041", "HFCC_20requirements_20and_20historical_20ILG_20data", "/ilg/access/info/manual/requirements/index.html", 5, "", 1, "");
addItem("10042", "ILG_20Edit_20Function", "/ilg/access/info/manual/editor/index.html", 5, "", 1, "");
addItem("10043", "Install_20ILG_20Software", "/ilg/access/info/manual/installation/index.html", 5, "", 1, "");
addItem("100130", "MS_20DOS_20Settings_20for_20ILG_20Browser", "/ilg/access/info/manual/ms-dos-settings/index.html", 5, "", 1, "");
addItem("10032", "ILG_20Database_20Structure", "/ilg/access/info/structure/index.html", 4, "", 1, "");
addItem("10033", "ILG_20in_20use_20with_20WPLOTF", "/ilg/access/info/ilg-wplotf/index.html", 4, "", 1, "");
addItem("10034", "ILG_20Import_20in_20MS_X2Excel", "/ilg/access/info/import-excel/index.html", 4, "", 1, "");
addItem("10082", "Quick_20Access_20to_20the_20Bands", "/ilg/at-a-glance/index.html", 2, "", 1, "");
addItem("10073", "ILG_20Listening_20Post", "/ilg/ilg-listening-post/index.html", 2, "", 1, "");
addItem("100141", "SSN_20Sunspot_X2Numbers", "/ilg/ssn/index.html", 2, "", 1, "");
addItem("10080", "Free_20Monitoring_20Request", "/ilg/monitoring/index.html", 2, "", 1, "");
addItem("10071", "HF_20Multi_X2Band_20Check", "/ilg/hf-band-check/index.html", 2, "", 1, "");
addItem("100138", "Central_20European_20Bandscans", "/ilg/central-european-bandscans/index.html", 2, "", 1, "");
addItem("10070", "Dirty_20Conference_20Tricks", "/ilg/tricks/index.html", 2, "", 1, "");
addItem("10083", "Wooden_20or_20no_20wooden_20?", "/ilg/wooden-warning/index.html", 2, "", 1, "");
addItem("10078", "Jamming", "/ilg/jamming/index.html", 2, "", 1, "");
addItem("10079", "DRM", "/ilg/drm/index.html", 2, "", 1, "");
addItem("10013", "ILG_20History", "/ilg/history/index.html", 2, "", 1, "");
addItem("10084", "Spirit_20of_20HFCC", "/ilg/spirit/index.html", 2, "", 1, "");
addItem("10024", "Shortwave_20Statistic", "/ilg/sw-statistic/index.html", 2, "", 1, "");
addItem("10028", "Frequency_20Hour_20Statistic", "/ilg/sw-statistic/hours/index.html", 3, "", 1, "");
addItem("100123", "Analysis_20of_20Hours", "/ilg/sw-statistic/analysis-ilghfcc/index.html", 3, "", 1, "");
addItem("100128", "Analysis_20of_20FMO_C2_B4s", "/ilg/sw-statistic/analysis-fmo/index.html", 3, "", 1, "");
addItem("10030", "Statistic_20of_20Stations", "/ilg/sw-statistic/stations/index.html", 3, "", 1, "");
addItem("10074", "SW_20Transmitter_20Sites", "/ilg/google-earth/index.html", 2, "", 1, "");
addItem("10069", "Closed_20Shortwave_20Stations", "/ilg/closed/index.html", 2, "", 1, "");
addItem("100121", "ITU_20Reference_20Data", "/ilg/itu-reference-data/index.html", 2, "", 1, "");
addItem("10075", "Interesting_20Links", "/ilg/links/index.html", 2, "", 1, "");
addItem("10085", "ILG_20Test_20Access", "/ilg-test-access/index.html", 1, "", 1, "");
addItem("100132", "ILG_20Database_20Test_20Files", "/ilg-test-access/ilg-data-file/index.html", 2, "", 1, "");
addItem("10015", "ILG_20Database_20Information", "/ilg-test-access/demo/index.html", 2, "", 1, "");
addItem("10021", "Database", "/ilg-test-access/demo/database/index.html", 3, "", 1, "");
addItem("10020", "Software", "/ilg-test-access/demo/software/index.html", 3, "", 1, "");
addItem("10022", "Manual", "/ilg-test-access/demo/manual/index.html", 3, "", 1, "");
addItem("10094", "ILG_20Data_20Browser", "/ilg-test-access/demo/manual/ilg-data-browser/index.html", 4, "", 1, "");
addItem("10095", "The_20various_20data_20of_20ILG_20data_20files", "/ilg-test-access/demo/manual/the-various-data-of-ilg-data-files/index.html", 4, "", 1, "");
addItem("10096", "The_20various_20data_20fields_20of_20ILG_20data_20base", "/ilg-test-access/demo/manual/the-various-data-fields-of-ilg-data-base/index.html", 4, "", 1, "");
addItem("10097", "Filter_20Functions:_20Search_20a_20clear_20frequency", "/ilg-test-access/demo/manual/filter-functions-search-a-clear-frequency/index.html", 4, "", 1, "");
addItem("10098", "Detect_20your_20Collissions", "/ilg-test-access/demo/manual/detect-your-collissions/index.html", 4, "", 1, "");
addItem("10099", "How_20to_20find_20Wooden_20Frequencies", "/ilg-test-access/demo/manual/how-to-find-wooden-frequencies/index.html", 4, "", 1, "");
addItem("100100", "HFCC_20requirements_20and_20historical_20ILG_20data", "/ilg-test-access/demo/manual/hfcc-requirements-and-historical-ilg-data/index.html", 4, "", 1, "");
addItem("100101", "ILG_20Edit_20Function", "/ilg-test-access/demo/manual/ilg-edit-function/index.html", 4, "", 1, "");
addItem("100102", "Install_20ILG_20Software", "/ilg-test-access/demo/manual/install-ilg-software/index.html", 4, "", 1, "");
addItem("10023", "Statistic", "/ilg-test-access/demo/statistic/index.html", 3, "", 1, "");
addItem("100135", "ILG_20Database_20Structure", "/ilg-test-access/demo/ilg-database-structure/index.html", 3, "", 1, "");
addItem("100136", "ILG_20in_20use_20with_20WPLOTF", "/ilg-test-access/demo/ilg-in-use-with-wplotf/index.html", 3, "", 1, "");
addItem("10086", "HF_20Multi_X2Band_20Check", "/ilg-test-access/hf-band-check/index.html", 2, "", 1, "");
addItem("100139", "Central_20European_20Bandscans", "/ilg-test-access/central-european-bandscans/index.html", 2, "", 1, "");
addItem("100133", "Quick_20Access_20to_20the_20Bands", "/ilg-test-access/quick-access-to-the-bands/index.html", 2, "", 1, "");
addItem("100104", "Wooden_20or_20no_20wooden_20?", "/ilg-test-access/wooden-warning/index.html", 2, "", 1, "");
addItem("10087", "Spirit_20of_20HFCC", "/ilg-test-access/spirit-of-hfcc/index.html", 2, "", 1, "");
addItem("10088", "Closed_20Shortwave_20Stations", "/ilg-test-access/closed-shortwave-stations/index.html", 2, "", 1, "");
addItem("10089", "ILG_20Listening_20Post", "/ilg-test-access/ilg-listening-post/index.html", 2, "", 1, "");
addItem("10090", "Shortwave_20Statistic", "/ilg-test-access/shortwave-statistic/index.html", 2, "", 1, "");
addItem("100103", "Monitoring_20Request", "/ilg-test-access/monitoring-request/index.html", 2, "", 1, "");
addItem("1001", "BFM_20_20Consulting", "/bfm-consulting/index.html", 1, "", 1, "");
addItem("1002", "Frequency_20Management_20Consulting", "/bfm-consulting/frequency-management-consulting/index.html", 2, "", 1, "");
addItem("1003", "Special_20Projects", "/bfm-consulting/special-projects/index.html", 2, "", 1, "");
addItem("1004", "ILG_20_X7_20BFM_20Company_20Projects", "/ilg-bfm-projects/index.html", 1, "", 1, "");
addItem("1009", "International_20Broadcasting_20Web_20Directory", "/ilg-bfm-projects/ibwd/index.html", 2, "", 1, "");
addItem("1007", "Sat_X2Receiver_X2World", "/ilg-bfm-projects/srw/index.html", 2, "", 1, "");
addItem("10010", "BFM_20Sat_X2Shop", "/ilg-bfm-projects/bfm-satshop/index.html", 2, "", 1, "");
addItem("10011", "ILGRadio_20Database", "/ilg-bfm-projects/ilgradio/index.html", 2, "", 1, "");
};

var m_sSelectedOptionValue = '0';
function printCatnavDropdown(){
	document.write('<select id="catdropdown" style="width:100%"></select>');
	SMShop.base.addMember("CatnavDropdown");
};

function CatnavDropdown_windowOnLoad(args){
	var oItems = g_oPopupMenu.selectItems(0, true);
	var selCatDropDown = $('catdropdown'),oOption = null, sDepth = '';

	if(m_sSelectedOptionValue == '0'){
		oOption = selCatDropDown[selCatDropDown.length] = new Option();
		with(oOption){
			selected='selected';
			text='<Warengruppen>';
			value = '0';
		}
	};

	oItems.each(function(oItem) {
		sDepth = ''; for(var i=1;i<parseInt(oItem.depth);i++) sDepth += '-';
		oOption = selCatDropDown[selCatDropDown.length] = new Option();
		with(oOption){
			if(oItem.id == m_sSelectedOptionValue) selected = 'selected';
			text = sDepth + ' ' + oItem.caption;
			value = oItem.id;
		}}
	);

	selCatDropDown.onchange = function(){
		var oItem = g_oPopupMenu.selectSingleItem(this.value);
		
		location.href = SMOMAbsoluteRootURL + oItem.url;
		
	};
};