function utilFaq() {
	
	var self = this;
}

utilFaq.prototype.events = {

	jsCategoryId : null,					//ID der FAQ Hauptkategorie
	jsSubCategoryId : null,					//ID der Unterkategorie
	jsThirdLevelCategoryId : null,			//ID der 3. Gruppierungsebene, wenn vorhanden
	jsFaqId : null,							//ID der angezeigten FAQ

	jsSaveCategoryId : null,
	jsSaveSubCategoryId : null,
	jsSaveFaqId : null,
	
	jsVotingContactForm : null,
	
	jsSearchResults : null,
	
	jsLastNavEvent : null,					//Kennzeichner fuer die Herkunft (siehe 4.2.4 Herkunftskuerzel)
	relatedFaqs : [],
	aktPageNum : 1,
	
	allFaqs : [],
	allCategories : [],
	faqDataArr : [],
	
	googleAnalyticsPath : '|FAQ|',
	ajaxReloadText : 'FAQs werden geladen...',
	
	init : function() {
		utilFaq.events.jsCategoryId = 0;
		utilFaq.events.jsSubCategoryId = null;
		utilFaq.events.jsThirdLevelCategoryId = null;
		utilFaq.events.jsFaqId = null;
	},
	
	getFaqJsObject : function(li) {
		//li-ID looks like this: faqs_1_1 => [PREFIX]_[LEVEL]_[NO])
		var liId = li.getAttribute('id');
		
		liId = liId.replace(/expanderContainer/, "expanderContainer_");
		var liIdArr = liId.split('_');
		var data;
		
		if(liId.indexOf("pointHead_") < 0) {
			data = util.multiSelect.getCacheData(parseInt(liIdArr[liIdArr.length-2]));
		}
		else {
			data = util.multiSelect.getCacheData(3);
		}
		return data.sub[parseInt(liIdArr[liIdArr.length-1])];
	},
	
	//register onclick-events
	registerEvents : function() {
		var i, li, a, faqJsObject;
		var categories = [];
		var subCategories = [];
		var faqs = [];
		
		try {
			categories = document.getElementById('faqOption_level1').getElementsByTagName("li");
		}
		catch(e) {
		}
		
		try {
			subCategories = document.getElementById('faqOption_level2').getElementsByTagName("li");
		}
		catch(e) {
		}
		
		try {
			faqs = document.getElementById('faqContent').getElementsByTagName("a");
			if(faqs.length == 0 && utilFaq.display.faqMode != 'faqsearch') {
				utilFaq.display.hide('faqHeadline');
				utilFaq.display.hide('faqList');
			}
		}
		catch(e) {
		}
		
		//TOPLEVEL-Kategorien (linke Liste)
		for(i=0; i < categories.length; i++) {
			li = categories[i];
			
			if(!li.getAttribute('eventsAttached')) {
				faqJsObject = this.getFaqJsObject(li);
				
				li.setAttribute("categoryId", faqJsObject.catId);			
				if(faqJsObject.questions) {
					li.setAttribute("anzQuestions", faqJsObject.questions.length);
				}
				
				if (env.isIE) {
					li.detachEvent("onclick", util.multiSelect.select);
					li.attachEvent("onclick", this.onClickCategory);
				}
				
				else {
					li.removeEventListener("click", util.multiSelect.select, false);
					li.addEventListener("click", this.onClickCategory, false);
				}
				li.setAttribute('eventsAttached', 1);
				
				if(faqJsObject.catId == 0) {
					//TOP TEN Kategorie nicht zur Auswahl anzeigen
					li.style.display = 'none';
				}
			}
		}
		
		//SECONDLEVEL-Kategorien (rechte Liste)
		for(i=0; i < subCategories.length; i++) {
			li = subCategories[i];
			faqJsObject = this.getFaqJsObject(li);
			
			if(!li.getAttribute('eventsAttached')) {
				li.setAttribute("categoryId", faqJsObject.catId);		
				
				if (env.isIE) {
					li.detachEvent("onclick", util.multiSelect.select);
					li.attachEvent("onclick", this.onClickSubCategory);
				}
				
				else {
					li.removeEventListener("click", util.multiSelect.select, false);
					li.addEventListener("click", this.onClickSubCategory, false);
				}
				li.setAttribute('eventsAttached', 1);
			}
		}
		
		//THIRDLEVEL-Kategorien und FAQs (untere Liste)
		for(i=0; i < faqs.length; i++) {
			a = faqs[i];
			
			if(!a.getAttribute('eventsAttached')) {
				if(a.id.indexOf("pointHead_") < 0) {
					//FAQ
					if (env.isIE) {
						a.detachEvent("onclick", util.multiSelect.select);
						a.attachEvent("onclick", this.onClickFaq);
					}
					else {
						a.removeEventListener("click", util.multiSelect.select, false);
						a.addEventListener("click", this.onClickFaq, false);
					}
					a.removeAttribute('href');
				}
				else {
					//THIRDLEVEL
					if (env.isIE) {
						faqJsObject = this.getFaqJsObject(a);
						a.setAttribute("categoryId", faqJsObject.catId);			
						a.attachEvent("onclick", this.onClickThirdLevelCategoryId);
					}
					else {
						faqJsObject = this.getFaqJsObject(a);
						a.setAttribute("categoryId", faqJsObject.catId);
						a.addEventListener("click", this.onClickThirdLevelCategoryId, false);
					}
				}
				a.setAttribute('eventsAttached', 1);
				a.setAttribute("style", "cursor:pointer;");
			}
		}
	},
	
	//register onclick-events for related FAQs
	registerEventsRelatedFaq : function() {
		var i, a;
		for(i=1; i < utilFaq.events.relatedFaqs.length; i++) {
			elem = utilFaq.events.relatedFaqs[i];
			a = document.getElementById("relatedFaq_"+elem.faqId);
			if(a) {
				if (env.isIE) {
					a.detachEvent("onclick", util.multiSelect.select);
					a.attachEvent("onclick", this.onClickRelatedFaq);
				}
				else {
					a.removeEventListener("click", util.multiSelect.select, false);
					a.addEventListener("click", this.onClickRelatedFaq, false);
				}
				a.setAttribute('answer', elem.answer);
				a.setAttribute('faqId', elem.faqId);
				a.removeAttribute('href');
				a.setAttribute('eventsAttached', 1);
				a.setAttribute("style", "cursor:pointer;");
			}
		}
	},
	
	//register onclick-events contact form
	registerEventsContactForm : function() {
		var i, a;
		var faqs = [];
		
		try {
			faqs = document.getElementById('expanderContainer1').getElementsByTagName("a");
		}
		catch(e) {
		}
		
		for(i=0; i < faqs.length; i++) {
			a = faqs[i];
			
			if(!a.getAttribute('eventsAttached')) {
				var liIdArr = a.parentNode.id.split('_');
				if (env.isIE) {
					a.attachEvent("onclick", this.onClickFaqContactForm);
				}
				else {
					a.addEventListener("click", this.onClickFaqContactForm, false);
				}
				a.setAttribute('eventsAttached', 1);
				a.setAttribute('faqId', liIdArr[liIdArr.length - 1]);
			}
		}
	},
	
	trackCategoryView : function(catpath) {
		try {
			if(pageTracker) {
				fullPath = utilFaq.events.googleAnalyticsPath+catpath;
				//fullPath = fullPath.replace(/ /g, '_');
				
				//fullPath = '|TE_FAQ'+fullPath;
				pageTracker._trackPageview(escape(fullPath));
				//if(console) console.log(fullPath);
			}
		}
		catch(e) {
		}
	},
	
	trackFAQView : function(catpath, faq) {
		try {
			if(pageTracker) {
				pathElements = catpath.split("|");
				if(pathElements.length == 2) {
					fullPath = utilFaq.events.googleAnalyticsPath+catpath+'|-|'+faq;
				}
				else {
					fullPath = utilFaq.events.googleAnalyticsPath+catpath+'|'+faq;
				}
				//fullPath = fullPath.replace(/ /g, '_');
				
				//fullPath = '|TE_FAQ'+fullPath;
				pageTracker._trackPageview(escape(fullPath));
				//if(console) console.log(fullPath);
			}
		}
		catch(e) {
		}
	},
	
	//TOPLEVEL-Kategorie clicked
	onClickCategory : function(evt) {
		var obj = (evt.srcElement) ? evt.srcElement : evt.target;
		
		loaded = false;
		try {
			categories = document.getElementById('faqOption_level1').getElementsByTagName("li");
			if(categories) {
				currentCatId = obj.getAttribute('categoryid');
				index = parseInt(obj.getAttribute('id').split('_')[2]);
				if(currentCatId != utilFaq.events.faqDataArr.sub[index].catId) {
					for(i=1; i <= utilFaq.events.faqDataArr.sub.length; i++) {
						if (utilFaq.events.faqDataArr.sub[i].catId == currentCatId) {
							util.multiSelect.select(index, 1);
							saveIndex = util.multiSelect.cache[1].index;
							util.multiSelect.cache[1].index = i;
							util.multiSelect.load(2);
							util.multiSelect.cache[1].index = saveIndex;
	
							loaded = true;
							break;
						}
					}
				}
			}
		}
		catch(e) {
		}
		if(!loaded) {
			util.multiSelect.select(evt, 2);
		}
		
		utilFaq.events.registerEvents();
		if(obj.getAttribute("anzQuestions")) utilFaq.display.showFaqList(false);
		utilFaq.events.jsCategoryId = obj.getAttribute("categoryId");
		utilFaq.events.jsSubCategoryId = null;
		utilFaq.events.jsThirdLevelCategoryId = null;
		//utilFaq.events.jsFaqId = null;
		// Google Analytics
		utilFaq.events.trackCategoryView(utilFaq.events.allCategories[utilFaq.events.jsCategoryId]["catpath"]);
		//DWH-reporting
		reportEventCategory1();
		utilFaq.events.setLastNavEvent("CATEGORY1");
	},
	
	//SECONDLEVEL-Kategorie clicked
	onClickSubCategory : function(evt) {
		utilFaq.display.show('faqHeadline');
		utilFaq.display.show('faqList');
		utilFaq.display.show('image_loading');
		utilFaq.display.hideDetailPage();
		var obj = (evt.srcElement) ? evt.srcElement : evt.target;
		util.multiSelect.select(evt, 3);
		document.getElementById('faqHeadline').innerHTML=utilFaq.events.ajaxReloadText;
		try {
			document.getElementById('faqDetailHeadline').innerHTML=utilFaq.events.ajaxReloadText;
		}
		catch(e) {
			//element not found
		}
		utilFaq.events.jsSubCategoryId = obj.getAttribute("categoryId");
		loadCategory(utilFaq.events.jsSubCategoryId);
		utilFaq.events.jsThirdLevelCategoryId = null;
		utilFaq.events.jsFaqId = null;
		// Google Analytics
		utilFaq.events.trackCategoryView(utilFaq.events.allCategories[utilFaq.events.jsSubCategoryId]["catpath"]);
		//DWH-reporting
		reportEventCategory2();
		utilFaq.events.setLastNavEvent("CATEGORY2");
	},
	
	//THIRDLEVEL-Kategorie clicked
	onClickThirdLevelCategoryId : function(evt) {
		var obj = (evt.srcElement) ? evt.srcElement : evt.target;
		if(!utilFaq.events.jsSubCategoryId) {
			utilFaq.events.jsCategoryId = utilFaq.events.jsSaveCategoryId;
			utilFaq.events.jsSubCategoryId = utilFaq.events.jsSaveSubCategoryId;
		}
		utilFaq.events.jsThirdLevelCategoryId = obj.getAttribute("categoryId");
		utilFaq.events.jsFaqId = null;
		// Google Analytics
		utilFaq.events.trackCategoryView(utilFaq.events.allCategories[utilFaq.events.jsThirdLevelCategoryId]["catpath"]);
		//DWH-reporting
		reportEventCategory3();
		utilFaq.events.setLastNavEvent("CATEGORY3");
		utilFaq.events.jsSaveCategoryId = utilFaq.events.jsCategoryId;
		utilFaq.events.jsSaveSubCategoryId = utilFaq.events.jsSubCategoryId;
	},
	
	//FAQ clicked
	onClickFaq : function(evt) {
		var obj = (evt.srcElement) ? evt.srcElement : evt.target;
		utilFaq.display.hide('panelRelatedFAQ');
		if(!utilFaq.events.jsSubCategoryId) {
			utilFaq.events.jsCategoryId = utilFaq.events.jsSaveCategoryId;
			utilFaq.events.jsSubCategoryId = utilFaq.events.jsSaveSubCategoryId;
		}
		utilFaq.events.jsFaqId = obj.getAttribute('faqId');
		// Google Analytics
		utilFaq.events.trackFAQView(utilFaq.events.allFaqs[utilFaq.events.jsFaqId]["catpath"], obj.innerHTML);
		loadFAQ();
		utilFaq.display.showFaqDetail(evt, true);
		//DWH-reporting
		reportEventFaq();
		utilFaq.events.setLastNavEvent("FAQ");
		utilFaq.events.jsSaveCategoryId = utilFaq.events.jsCategoryId;
		utilFaq.events.jsSaveSubCategoryId = utilFaq.events.jsSubCategoryId;
		utilFaq.events.jsSaveFaqId = utilFaq.events.jsFaqId;
	},
	
	//Related FAQ clicked
	onClickRelatedFaq : function(evt) {
		var obj = (evt.srcElement) ? evt.srcElement : evt.target;
		utilFaq.display.hide('panelRelatedFAQ');
		utilFaq.events.jsFaqId = obj.getAttribute('faqId');
		// Google Analytics
		utilFaq.events.trackFAQView(utilFaq.events.allFaqs[utilFaq.events.jsFaqId]["catpath"], obj.innerHTML);
		loadFAQ();
		utilFaq.display.showFaqDetail(evt, false);
		//DWH-reporting
		reportEventRelatedFaq();
		utilFaq.events.setLastNavEvent("FAQ");
		utilFaq.events.jsSaveFaqId = utilFaq.events.jsFaqId;
	},
	
	//FAQ in contact form clicked
	onClickFaqContactForm : function(evt) {
		var obj = (evt.srcElement) ? evt.srcElement : evt.target;
		// Google Analytics
		try {
			if(obj.tagName == "STRONG") {
				utilFaq.events.jsFaqId = obj.parentNode.getAttribute('faqId');
			}
			else {
				utilFaq.events.jsFaqId = obj.getAttribute('faqId');
			}
			if(!utilFaq.events.allFaqs[utilFaq.events.jsFaqId]["clickReported"]) {
				// Google Analytics
				utilFaq.events.trackFAQView(utilFaq.events.allFaqs[utilFaq.events.jsFaqId]["catpath"], obj.innerHTML);
				//DWH-reporting
				reportEventFaq();
				
				utilFaq.events.allFaqs[utilFaq.events.jsFaqId]["clickReported"] = true;
			}
		}
		catch(e) {}
	},
	
	onClickVoting : function(showDiv) {
		document.getElementById('voting').style.display = 'none';
		document.getElementById(showDiv).style.display = 'block';
	},
	
	onClickVotingContactForm : function(selectedVoting) {
		if(selectedVoting == 'voting_positive') {
			document.getElementById('voting_contactform').style.display = 'none';
			document.getElementById('voting_contactform_positive').style.display = 'block';
			utilFaq.events.jsVotingContactForm = 'JA';
		}
		else {
			utilFaq.events.jsVotingContactForm = 'NEIN';
		}
		reportEventVoting();
	},
	
	onClickSearchPaging : function(evt) {
		var obj = (evt.srcElement) ? evt.srcElement : evt.target;
		newPage = parseInt(obj.getAttribute("searchResultPage"));
		if(newPage && newPage != utilFaq.events.aktPageNum) {
			utilFaq.events.aktPageNum = newPage;
			searchPaging();
		}
	},
	
	setLastNavEvent : function(eventName) {
		utilFaq.events.jsLastNavEvent = eventName;
		var lastNav = document.getElementById('lastNavEvent');
		if(lastNav) lastNav.value = eventName;
	},
	
	onFillCategoriesCompleted : function() {
		var i;
		utilFaq.display.hide('image_loading');
		renderFaqs();
		saveIndex = util.multiSelect.cache[1].index;
		saveSubIndex = util.multiSelect.cache[2].index;
		try {
			categories = document.getElementById('faqOption_level1').getElementsByTagName("li");
			if(categories) {
				currentCatId = categories[(util.multiSelect.cache[1].index)-1].getAttribute('categoryid');
				if(utilFaq.events.faqDataArr.sub[util.multiSelect.cache[1].index].catId != currentCatId) {
					for(i=1; i <= utilFaq.events.faqDataArr.sub.length; i++) {
						if (utilFaq.events.faqDataArr.sub[i].catId == currentCatId) {
							util.multiSelect.cache[1].index = i;
							break;
						}
					}
				}
			}
		}
		catch(e) {
		}
		try {
			subCategories = document.getElementById('faqOption_level2').getElementsByTagName("li");
			if(subCategories) {
				currentCatId = subCategories[(util.multiSelect.cache[2].index)-1].getAttribute('categoryid');
				if(utilFaq.events.faqDataArr.sub[util.multiSelect.cache[1].index].sub[util.multiSelect.cache[2].index].catId != currentCatId) {
					for(i=1; i <= utilFaq.events.faqDataArr.sub[util.multiSelect.cache[1].index].sub.length; i++) {
						if (utilFaq.events.faqDataArr.sub[util.multiSelect.cache[1].index].sub[i].catId == currentCatId) {
							util.multiSelect.cache[2].index = i;
							break;
						}
					}
				}
			}
		}
		catch(e) {
		}
		util.multiSelect.load(3);
		util.multiSelect.cache[1].index = saveIndex;
		util.multiSelect.cache[2].index = saveSubIndex;
		utilFaq.events.registerEvents();
	},
	
	onSearchFormSubmit : function(initSearchTag) {
		if(utilFaq.events.jsLastNavEvent && utilFaq.events.jsLastNavEvent != 'null') {
			document.getElementById('form_faqSearch_lastNavEvent').value = utilFaq.events.jsLastNavEvent;
		}
		searchTag = document.getElementById('input_faqSearch').value;
		if(searchTag.length == 0 || searchTag == initSearchTag) {
			utilFaq.display.show('searchFormErrorText');
		}
		else {
			document.form_faqSearch.submit();
		}
	}
}

utilFaq.prototype.display = {
	parentHeadline : "",
	faqMode : "",
	faqNumResults : "",
	browser : navigator.userAgent,
	
	isIE6 : function() {
		if(this.browser.toLowerCase().indexOf("msie 6.0") != -1) {
			return true;
		}
		else {
			return false;
		}
	},
	
	show : function(id) {
		try {
			if(id == 'faqHeadline' || id == 'faqDetailHeadline') {
				document.getElementById(id).style.display = 'inline';
			}
			else if(utilFaq.display.isIE6() && (id == 'faqCategoryList' || id == 'faqList' || id == 'faqDetail')) {
				document.getElementById(id).style.display = 'inline';
			}
			else { 
				document.getElementById(id).style.display = 'block';
			}
		}
		catch(e) {
			//element not found
		}
	},
	
	hide : function(id) {
		try {
			document.getElementById(id).style.display = 'none';
		}
		catch(e) {
			//element not found
		}
	},
	
	hideDetailPage : function() {
		utilFaq.display.hide('faqContent');
		utilFaq.display.hide('faqDetail');
		utilFaq.display.hide('faqSearchHeadline');
		utilFaq.display.hide('panelSearchFooter');
		utilFaq.display.hide('voting_positive');
		utilFaq.display.hide('voting_negative');
	},
	
	//hide the detail page and show the faq-list instead
	showFaqList : function(dontUseParentHeadline) {
		utilFaq.display.hideDetailPage();
		
		//change headline
		if(utilFaq.display.parentHeadline && !dontUseParentHeadline) {
			document.getElementById('faqHeadline').innerHTML=utilFaq.display.parentHeadline;
			utilFaq.display.parentHeadline = "";
		}
		
		utilFaq.display.show('faqCategoryList');
		utilFaq.display.show('faqHeadline');
		utilFaq.display.show('faqList');
		utilFaq.display.show('voting');
		utilFaq.display.show('faqOption_level1');
		utilFaq.display.show('faqOption_level2');
		utilFaq.display.show('faqContent');
		
		this.faqMode = "faqlist";
	},
	
	//hide the faq-list and show the detail page instead
	showFaqDetail : function(e, refreshParentHeadline) {
		var obj = (e.srcElement) ? e.srcElement : e.target;
		
		utilFaq.display.hide('faqList');
		utilFaq.display.hide('voting_positive');
		utilFaq.display.hide('voting_negative');
		
		//change headline
		if(refreshParentHeadline) {
			utilFaq.display.parentHeadline = document.getElementById('faqHeadline').innerHTML;
		}
		document.getElementById('faqHeadline').innerHTML=obj.innerHTML;
		try {
			document.getElementById('faqDetailHeadline').innerHTML=obj.innerHTML;
		}
		catch(e) {
			//element not found
		}
		
		//show answer
		document.getElementById('faqAnswer').innerHTML=obj.getAttribute('answer');
		
		//utilFaq.display.show('faqCategoryList');
		utilFaq.display.show('faqHeadline');
		utilFaq.display.show('faqDetailHeadline');
		utilFaq.display.show('faqDetail');
		utilFaq.display.show('voting');
	},
	
	hideFaqDetail : function() {
		if(this.faqMode == "faqlist") {
			this.showFaqList(false);
		}
		else if(this.faqMode == "faqsearch") {
			this.showFaqSearch(this.faqNumResults);
		}
	},
	
	//hide the faq-list and detail page and show the search results instead
	showFaqSearch : function(numResults) {
		utilFaq.display.hide('faqDetail');
		utilFaq.display.hide('faqCategoryList');
		utilFaq.display.hide('voting_positive');
		utilFaq.display.hide('voting_negative');
		
		//change headline
		try {
			document.getElementById('faqHeadline').innerHTML=utilFaq.display.parentHeadline;
			utilFaq.display.parentHeadline = "";
		}
		catch(e) {
		}
		try {
			document.getElementById('faqDetailHeadline').innerHTML=utilFaq.display.parentHeadline;
		}
		catch(e) {
		}
		
		utilFaq.display.show('faqList');
		utilFaq.display.show('panelSearchFooter');
		utilFaq.display.show('voting');
		
		this.faqMode = "faqsearch";
		this.faqNumResults = numResults;
	},
	
	showSearchPaging : function(minPageNum, maxPageNum, maxPageBack, maxPageFwd, maxPages) {
		var pagingLinks, a, aBegin, aEnd, i, count;
		
		pagingLinks = document.getElementById('searchPagingButtons');
		if(pagingLinks == null)
			return;
		
		if(!pagingLinks.getAttribute('linksAppended')) {
			a = document.createElement('A');
			a.innerHTML = '|&lt;';
			a.id = 'searchPaging_begin';
			a.setAttribute("searchResultPage", 1);
			if (env.isIE) {
				a.attachEvent("onclick", utilFaq.events.onClickSearchPaging);
			}
			else {
				a.addEventListener("click", utilFaq.events.onClickSearchPaging, false);
			}
			a.setAttribute("style", "cursor:pointer;");
			pagingLinks.appendChild(a);
			
			a = document.createElement('A');
			a.innerHTML = '&lt;&lt;';
			a.id = 'searchPaging_back';
			if (env.isIE) {
				a.attachEvent("onclick", utilFaq.events.onClickSearchPaging);
			}
			else {
				a.addEventListener("click", utilFaq.events.onClickSearchPaging, false);
			}
			a.setAttribute("style", "cursor:pointer;");
			pagingLinks.appendChild(a);
			
			count = 1;
			for(i = minPageNum; i <= maxPageNum; i++) {
				a = document.createElement('A');
				a.id = 'searchPaging_'+count;
				if (env.isIE) {
					a.attachEvent("onclick", utilFaq.events.onClickSearchPaging);
				}
				else {
					a.addEventListener("click", utilFaq.events.onClickSearchPaging, false);
				}
				a.setAttribute("style", "cursor:pointer;");
				
				pagingLinks.appendChild(a);
				count++;
			}
			a = document.createElement('A');
			a.innerHTML = '&gt;&gt;';
			a.id = 'searchPaging_fwd';
			if (env.isIE) {
				a.attachEvent("onclick", utilFaq.events.onClickSearchPaging);
			}
			else {
				a.addEventListener("click", utilFaq.events.onClickSearchPaging, false);
			}
			a.setAttribute("style", "cursor:pointer;");
			pagingLinks.appendChild(a);
			
			a = document.createElement('A');
			a.innerHTML = '&gt;|';
			a.id = 'searchPaging_end';
			a.setAttribute("searchResultPage", maxPages);
			if (env.isIE) {
				a.attachEvent("onclick", utilFaq.events.onClickSearchPaging);
			}
			else {
				a.addEventListener("click", utilFaq.events.onClickSearchPaging, false);
			}
			a.setAttribute("style", "cursor:pointer;");
			pagingLinks.appendChild(a);
			
			pagingLinks.setAttribute('linksAppended', 1)
		}
		
		a = document.getElementById('searchPaging_back');
		aBegin = document.getElementById('searchPaging_begin');
		if(maxPageBack == minPageNum) {
			a.style.display = 'none';
			aBegin.style.display = 'none';
		}
		else {
			a.setAttribute("searchResultPage", maxPageBack);
			a.style.display = 'inline';
			aBegin.style.display = 'inline';
		}
		a = document.getElementById('searchPaging_fwd');
		aEnd = document.getElementById('searchPaging_end');
		if(maxPageFwd == maxPageNum) {
			a.style.display = 'none';
			aEnd.style.display = 'none';
		}
		else {
			a.setAttribute("searchResultPage", maxPageFwd);
			a.style.display = 'inline';
			aEnd.style.display = 'inline';
		}
		
		
		count = 1;
		for(i = minPageNum; i <= maxPageNum; i++) {
			a = document.getElementById('searchPaging_'+count);
			if(i == utilFaq.events.aktPageNum) {
				a.innerHTML = "<span class=\"act\">"+i+"</span>";
			}
			else {
				a.innerHTML = i;
			}
			a.setAttribute("searchResultPage", i);
			count++;
		}
	}
}

utilFaq = new utilFaq();