//
function miniCart(){
var prdCount = 0, prdString = "", subTotal = (xmlConfig.cartSubTotal > 0)?xmlConfig.cartSubTotal:0;
	if(xmlOHeader.childNodes.length==0) subTotal = 0;
	for(var i=0;i<xmlOHeader.childNodes.length;i++){
		prdCount = prdCount+(parseInt(xmlOHeader.childNodes[i].QuantityAmount));
		};
	prdString += "Produkte:<strong>&nbsp;" + prdCount + "</strong><br>";
	//prdString += "Summe:<strong>&nbsp;" + TFormatCurrency(subTotal, objPriCurrency) + "</strong><br><br>";
	prdString += "<br><a class=\"WAGRUNAV\" href=\"orderform." + xmlConfig.fileExtension + "\">";
	prdString += "<strong>" + '<img src="assets/images/bullet.gif" width="13" height="10" border="0" align="absmiddle" hspace="0" vspace="0" class="catnav">' + "Zum Bestellschein</strong></a>";
	return(prdString);
	};
//
var TNavDropDownIndent = ".."
//
function NavLinkedDropDownList(){
	return(TNavDropDownList(true));
	};
//
function NavDropDownList(){
	return(TNavDropDownList(false));
	};
//
function storeSearchParameters(optionValueArray){
var xmlSearchEngine = xmlConfig.getFirstItem("SearchEngine");
	if(optionValueArray[0]!="null"&&optionValueArray[0]!="nada"){
		xmlSearchEngine.categoryIndex = optionValueArray[0];
		xmlSearchEngine.categoryId = optionValueArray[2];
		xmlSearchEngine.ByCategory = "1";
		}
	else{
		xmlSearchEngine.categoryIndex = "null";
		xmlSearchEngine.categoryId = "null";
		xmlSearchEngine.ByCategory = "0";
		};
	};
//
function TNavDropDownList(asLink){
var rString = "";
var myNavIndex = "";
	if(asLink) myNavIndex = xmlConfig.navIndex;
	else myNavIndex = xmlConfig.getFirstItem("SearchEngine").categoryIndex;
	if(!(myNavIndex=="null"||myNavIndex=="")){ navigation[parseInt(myNavIndex)].active = true; };
	if(asLink) rString += "<select name=\"navselect\" onChange=\"changeLoc(this[this.selectedIndex].value.split(';;')[0],this[this.selectedIndex].value.split(';;')[1])\">"
	else rString += "<select name=\"navselect\" onChange=\"storeSearchParameters(this[this.selectedIndex].value.split(';;'))\">";
	rString += "<option value=\"nada;;start.htm;;null\">AeroCENTER ÜBERSICHT</option>";
	for(var i=0; i<navigation.length; i++){
		if(navigation[i].parentId==null){
			rString += TNavDropDownItem(navigation[i], "");
			};
		};
	rString += "</select>";
	return(rString);
	};
//
function TNavDropDownItem(navItem, cptPreFix){
var rString = "";
	rString += "<option value=\"" + navItem.id + ";;" + navItem.linkUrl + ";;" + navItem.categoryId + "\"";
	if(navItem.active) rString += " selected";
	rString += ">" + cptPreFix + navItem.caption + "</option>";
	for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==navItem.id) rString += TNavDropDownItem(navigation[i], cptPreFix + TNavDropDownIndent);
	return(rString);	
	};
//
	function openItem(itemId){
	var objActiveItem = null;
		if(itemId!=null){
			objActiveItem = navigation[itemId];
			if(objActiveItem!=null){
				objActiveItem.open = true;
				openItem(objActiveItem.parentId);
				};
			};
		};
		
	function activateItem(itemId){
	var objActiveItem = null;
		if(itemId!=null){
			objActiveItem = navigation[itemId];
			if(objActiveItem!=null){
				objActiveItem.active = true;
				openItem(objActiveItem.parentId);
				};
			};
		};
		
	function itemHasSubelems(itemId){
		for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==itemId) return(true);
		return(false);
		};
	
	function TNavLinkList(){
	var strHTML = "";
		for(var i=0; i<navigation.length; i++) if(navigation[i].parentId==null) strHTML += printItem(navigation[i], 0);
		return(strHTML);
		};	
		
	function printItem(navItem, depth){
	var strHTML = "";
	var elemWidth = 1;
		strHTML += '<table width="100%" class="CATLINKS1STPARENT" border="0" cellpadding="0" cellspacing="0" >';
		strHTML += "<tr>"
		for(var i=0; i<depth; i++){
			strHTML += "<td";
			if(navItem.active) strHTML += " class=\"ACTIVECATEGORY\""
			else strHTML += " class=\"CATLINKS1STBULLET\"";
			strHTML += ' width="1%"><img src="assets/images/spacer.gif" width="13" height="1" height="1" alt="" border="0"></td>';
			};
		if(navItem.active) strHTML += '<td width="1%" class="ACTIVECATEGORY"><img src="assets/images/bulletcatact.gif" width="13" height="10" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
		else if(navItem.open&&itemHasSubelems(navItem.id)) strHTML += '<td width="1%" class="CATLINKS1STBULLET"><img src="assets/images/bulletcat1stcls.gif" width="13" height="10" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
		else strHTML += '<td width=\"1%\"><img src="assets/images/bulletcat1st.gif" width="13" height="10" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
		strHTML += "<td";
		if(navItem.active) strHTML += " class=\"ACTIVECATEGORY\""
		else strHTML += " class=\"CATLINKS1STBULLET\"";
		strHTML += "width=\"" + ( 100 - ( depth + 1 ) ) + "%\">"
			+ "<a href=\"" + navItem.linkUrl + "?categoryId=" + escape(navItem.id) + "\" class=\"WAGRUNAV\">"
			+ navItem.caption
			+ "</a>"
			+ "</td>";
		strHTML += "</tr>"
		strHTML += "</table>"
		depth++;
		if(navItem.active||navItem.open){
			for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==navItem.id) strHTML += printItem(navigation[i], depth);
			};
		return(strHTML);
		};


//

// navElem
	function navElem(id,caption,linkUrl,parentId,categoryId){
		this.id = id;
		this.caption = caption;
		this.linkUrl = linkUrl;
		this.parentId = parentId;
		this.active = false;
		this.open = false;
		this.categoryId = categoryId;
		};
// navigation
var navigation = new Array();
//
navigation[0] = new navElem(0,"AUSBILDUNG Gleitschirm","pi1113943369.htm",null,"WG111");
navigation[1] = new navElem(1,"Schnuppertag","pi-351646074.htm",0,"WG311");
navigation[2] = new navElem(2,"Ausbildung Stufe I+II","pi1196199231.htm",0,"WG395");
navigation[3] = new navElem(3,"WO ? --> !","pi1205392931.htm",0,"WG403");
navigation[4] = new navElem(4,"WER ? --> !","pi671263998.htm",0,"WG415");
navigation[5] = new navElem(5,"Unterlagen Gleitschirm Schulung","pi1142419340.htm",0,"WG255");
navigation[6] = new navElem(6,"WEITERBILDUNG","pi1148887946.htm",null,"WG278");
navigation[7] = new navElem(7,"PERFORMANCE Training","pi1222321149.htm",6,"WG425");
navigation[8] = new navElem(8,"ElektroSCHIRM-MotorSCHIRM","pi-1541706220.htm",6,"WG396");
navigation[9] = new navElem(9,"Doppelsitzer A+B","pi561644932.htm",6,"WG433");
navigation[10] = new navElem(10,"FliegerPLAUSCH","pi2132451706.htm",6,"WG426");
navigation[11] = new navElem(11,"THERMIK Trekking","pi-1052639629.htm",6,"WG427");
navigation[12] = new navElem(12,"ParaSKIING","pi-2111570714.htm",6,"WG432");
navigation[13] = new navElem(13,"FUNRISER","pi1223040701.htm",6,"WG430");
navigation[14] = new navElem(14,"PASSAGIER-Flüge","pi1223997191.htm",null,"001003");
navigation[15] = new navElem(15,"FERIEN - TOUREN","pi1900268502.htm",null,"WG112");
navigation[16] = new navElem(16,"SHOP","pi-972877374.htm",null,"WG167");
navigation[17] = new navElem(17,"SCHIRME","pi428677279.htm",16,"WG113");
navigation[18] = new navElem(18,"DHV-LTF 1","pi-474306987.htm",17,"WG200");
navigation[19] = new navElem(19,"DHV-LTF 1-2","pi1702861554.htm",17,"WG201");
navigation[20] = new navElem(20,"Doppelsitzer","pi-694517043.htm",17,"WG205");
navigation[21] = new navElem(21,"Extra LEICHT","pi-1884104376.htm",17,"WG206");
navigation[22] = new navElem(22,"DHV-LTF 2","pi-14440309.htm",17,"WG202");
navigation[23] = new navElem(23,"DHV-LTF 2-3","pi-1905163664.htm",17,"WG203");
navigation[24] = new navElem(24,"Wettkampf","pi1898220977.htm",17,"WG204");
navigation[25] = new navElem(25,"Speedflying","pi1230994119.htm",17,"WG435");
navigation[26] = new navElem(26,"Freestyle-Acro","pi-1065252357.htm",17,"WG207");
navigation[27] = new navElem(27,"Welcher Schirm für welchen Piloten?","pi2018593352.htm",17,"WG279");
navigation[28] = new navElem(28,"Zubehör","pi749230046.htm",17,"WG316");
navigation[29] = new navElem(29,"Advance","pi1358818332.htm",17,"WG218");
navigation[30] = new navElem(30,"Swing","pi-641488659.htm",17,"WG219");
navigation[31] = new navElem(31,"APCO","pi-1124052695.htm",17,"WG372");
navigation[32] = new navElem(32,"OZONE","pi1652463714.htm",17,"WG397");
navigation[33] = new navElem(33,"Gin-Niviuk","pi1424478413.htm",17,"WG390");
navigation[34] = new navElem(34,"Airwave","pi-545010461.htm",17,"WG221");
navigation[35] = new navElem(35,"Mietschirme - Testschirme","pi1147471508.htm",17,"WG273");
navigation[36] = new navElem(36,"Gurtzeuge","pi-135147137.htm",16,"WG145");
navigation[37] = new navElem(37,"Die richtige Grösse? ","pi-1768537473.htm",36,"WG269");
navigation[38] = new navElem(38,"Schulung","pi-965199470.htm",36,"WG181");
navigation[39] = new navElem(39,"Wende + Leicht","pi123161631.htm",36,"WG184");
navigation[40] = new navElem(40,"Sport","pi1678685886.htm",36,"WG182");
navigation[41] = new navElem(41,"Leistung - XC","pi562347690.htm",36,"WG183");
navigation[42] = new navElem(42,"Wettkampf","pi-1679996221.htm",36,"WG187");
navigation[43] = new navElem(43,"Speedriding-Acro","pi1205243184.htm",36,"WG401");
navigation[44] = new navElem(44,"Kinder Gurtzeug","pi1123660043.htm",36,"WG195");
navigation[45] = new navElem(45,"BI-Place","pi1374904176.htm",36,"WG186");
navigation[46] = new navElem(46,"Für den Piloten","pi1779555338.htm",45,"WG422");
navigation[47] = new navElem(47,"Für den Passagier","pi-1871711539.htm",45,"WG421");
navigation[48] = new navElem(48,"Zubehör","pi774310216.htm",45,"WG423");
navigation[49] = new navElem(49,"Advance","pi2057967110.htm",36,"WG264");
navigation[50] = new navElem(50,"Swing","pi347991609.htm",36,"WG263");
navigation[51] = new navElem(51,"APCO","pi1138394553.htm",36,"WG244");
navigation[52] = new navElem(52,"SupAIR","pi-1647574504.htm",36,"WG262");
navigation[53] = new navElem(53,"Zubehör","pi2143854029.htm",36,"WG212");
navigation[54] = new navElem(54,"Notschirme","pi325661481.htm",16,"WG143");
navigation[55] = new navElem(55,"Gleitschirm","pi1179821934.htm",54,"WG359");
navigation[56] = new navElem(56,"Motorschirm + MS-Trike","pi-730578345.htm",54,"WG360");
navigation[57] = new navElem(57,"Delta - Hängegleiter","pi-288763060.htm",54,"WG361");
navigation[58] = new navElem(58,"OCCASION","pi910861257.htm",16,"WG298");
navigation[59] = new navElem(59,"Flug-Instrumente","pi-1421418296.htm",16,"WG142");
navigation[60] = new navElem(60,"Varios","pi1121150622.htm",59,"WG189");
navigation[61] = new navElem(61,"Varios mit Zusatzfunktionen","pi-1092944441.htm",59,"WG190");
navigation[62] = new navElem(62,"Vario-GPS-XC","pi457139708.htm",59,"WG191");
navigation[63] = new navElem(63,"WETTER-Instrumente","pi1141901119.htm",59,"WG253");
navigation[64] = new navElem(64,"Zubehör Flytec + Bräuniger","pi1333942752.htm",59,"WG199");
navigation[65] = new navElem(65,"Zubehör Aircotec","pi1124365243.htm",59,"WG198");
navigation[66] = new navElem(66,"XC Trainer","pi-845984439.htm",65,"WG252");
navigation[67] = new navElem(67,"Favorit+Champion","pi-699071190.htm",65,"WG249");
navigation[68] = new navElem(68,"Top Navigator","pi135636067.htm",65,"WG250");
navigation[69] = new navElem(69,"Bräuniger","pi794819949.htm",59,"WG239");
navigation[70] = new navElem(70,"Aircotec","pi-1438387993.htm",59,"WG237");
navigation[71] = new navElem(71,"Flytec","pi-283057508.htm",59,"WG238");
navigation[72] = new navElem(72,"Garmin","pi947016876.htm",59,"WG154");
navigation[73] = new navElem(73,"Funk+Kamera","pi1128517183.htm",16,"WG224");
navigation[74] = new navElem(74,"Helm-Kamera","pi1265700845.htm",73,"WG443");
navigation[75] = new navElem(75,"Flugfunk","pi664397051.htm",73,"WG242");
navigation[76] = new navElem(76,"Sport- + Freizeitfunk","pi-1494639223.htm",73,"WG226");
navigation[77] = new navElem(77,"Wintec","pi1321432180.htm",73,"WG389");
navigation[78] = new navElem(78,"FUNK - Helme - Zubehör","pi1206954301.htm",73,"WG406");
navigation[79] = new navElem(79,"Helme-Bekleidung-Brillen","pi1878265723.htm",16,"WG149");
navigation[80] = new navElem(80,"Helme","pi821856789.htm",79,"WG383");
navigation[81] = new navElem(81,"SKI + Speedfly","pi1232733988.htm",80,"WG436");
navigation[82] = new navElem(82,"Integral","pi1124262530.htm",80,"WG196");
navigation[83] = new navElem(83,"Jet-Light","pi-175989541.htm",80,"WG197");
navigation[84] = new navElem(84,"UL","pi-435218610.htm",80,"WG277");
navigation[85] = new navElem(85,"Helikopter+Headset","pi1233565739.htm",80,"WG437");
navigation[86] = new navElem(86,"Zubehör","pi1148403451.htm",80,"WG276");
navigation[87] = new navElem(87,"Shirt","pi29418385.htm",79,"WG376");
navigation[88] = new navElem(88,"Jacken","pi-679141720.htm",79,"WG379");
navigation[89] = new navElem(89,"Overall","pi-571386999.htm",79,"WG380");
navigation[90] = new navElem(90,"Brillen-Skibrillen","pi663815019.htm",79,"WG375");
navigation[91] = new navElem(91,"Kopfbedeckungen","pi-1430989770.htm",79,"WG144");
navigation[92] = new navElem(92,"Handschuhe","pi854919187.htm",79,"WG382");
navigation[93] = new navElem(93,"Speedarms","pi-2067215766.htm",79,"WG377");
navigation[94] = new navElem(94,"Karabiner","pi-1416676704.htm",16,"WG150");
navigation[95] = new navElem(95,"FUN RISER","pi1190122911.htm",16,"WG371");
navigation[96] = new navElem(96,"Container-Rucksäcke-Taschen","pi909541345.htm",16,"WG270");
navigation[97] = new navElem(97,"Literatur+Land-Luft-Karten","pi-59118252.htm",16,"WG146");
navigation[98] = new navElem(98,"Fachbuecher-Weiterbildung","pi1976821315.htm",97,"WG400");
navigation[99] = new navElem(99,"Ausbildung-Flugbuecher-Unterlagen","pi52189834.htm",97,"WG399");
navigation[100] = new navElem(100,"Luftkarten","pi1470970000.htm",97,"WG260");
navigation[101] = new navElem(101,"Freizeitkarten","pi951135019.htm",97,"WG259");
navigation[102] = new navElem(102,"Topografische Karten","pi1581535569.htm",97,"WG261");
navigation[103] = new navElem(103,"DVD - CD - Video","pi643587790.htm",16,"WG257");
navigation[104] = new navElem(104,"SHV - DULV Kennzeichen","pi1115398817.htm",16,"WG174");
navigation[105] = new navElem(105,"NOCH MEHR Zubehör","pi1115578318.htm",16,"WG178");
navigation[106] = new navElem(106,"Mehr Zubehör","pi-375842307.htm",105,"WG295");
navigation[107] = new navElem(107,"Hardware","pi-272737428.htm",105,"WG294");
navigation[108] = new navElem(108,"Windsäcke","pi-1145938924.htm",105,"WG291");
navigation[109] = new navElem(109,"Bremsgriffe","pi2021292686.htm",105,"WG293");
navigation[110] = new navElem(110,"Schleppen","pi266474848.htm",105,"WG292");
navigation[111] = new navElem(111,"TERMINE","pi-1798326239.htm",null,"WG439");
navigation[112] = new navElem(112,"AC-WETTER","pi1144774801.htm",null,"WG271");
navigation[113] = new navElem(113,"INFO","pi1405772642.htm",null,"WG233");
navigation[114] = new navElem(114,"Das AeroCENTER","pi-2097802139.htm",113,"WG392");
navigation[115] = new navElem(115,"AC Team","pi1144832668.htm",113,"WG272");
navigation[116] = new navElem(116,"WO ? --> !","pi-1991017279.htm",113,"WG393");
navigation[117] = new navElem(117,"WasWarDaNoch?","pi1748136717.htm",113,"WG363");
navigation[118] = new navElem(118,"Filme Bilder Download","pi-1335102234.htm",null,"WG290");
navigation[119] = new navElem(119,"BILDER-Reisen","pi-1300193258.htm",118,"WG366");
navigation[120] = new navElem(120,"Gleitschirm-Speed-Acro","pi1212564379.htm",118,"WG411");
navigation[121] = new navElem(121,"Andere","pi364451916.htm",118,"WG414");
navigation[122] = new navElem(122,"Download","pi610459457.htm",118,"WG413");
navigation[123] = new navElem(123,"Service-Werkstatt","pi357290071.htm",null,"WG121");

// getNavElementByCatID
function getNavElementByCatID(categoryId){
	for(var i=0; i<navigation.length; i++){
		if(navigation[i].categoryId==categoryId){
			return(navigation[i]);
			break;
			};
		};
		return(null);
	};
// changeLoc
function changeLoc(id,linkUrl){
	if(id!="nada"){
		xmlConfig.navIndex = id.toString();
		if(xmlConfig.getFirstItem("SearchEngine").ByCategory == "1"){
			if(id=="null") xmlConfig.getFirstItem("SearchEngine").categoryId = "null"
			else xmlConfig.getFirstItem("SearchEngine").categoryId = navigation[id].categoryId;
			xmlConfig.getFirstItem("SearchEngine").categoryIndex = id;
			}
		else{
			xmlConfig.getFirstItem("SearchEngine").categoryId = "null";
			xmlConfig.getFirstItem("SearchEngine").categoryIndex = "null";
			};
		safeData();
		location.href = linkUrl + "?categoryId=" + id.toString();
		};
	};
// searchOnEnterNavi
function searchOnEnterNavi(){
	if(window.event.keyCode==13){
		xmlConfig.getFirstItem('SearchEngine').term=document.searchEngine.searchTerm.value;
		location.href = "search.htm";
		};
	};
// activates entries for categories
activateItem(getParameterFromURL("categoryId"));

