/* 12.9.2007 */var statMsg, dArrNrVers=0;function setStatMsg(dieMsg){ window.status = dieMsg; }function onlineOnly() { alert('Sorry!\n\nDiese Funktion kann nur in der Online-Version ("http://www.abet.de") zur Verfügung gestellt werden!') }/* ########### Abschnitt bei Gelegenheit ersetzen ########## */// wird scheinbar nur auf seite "0_contact.html & 1_aussendienst.html" benutztvar cssString = " \n";function styleSheetString(){	if(IE && MAC) x = "ieMac";	else if (NS && MAC) x = "ns6Mac";	else if (IE) x = "ieWin";	else if (NS && !MAC) x = "ns6Win";	if(!NS4) cssString = '<link rel=StyleSheet href="../styles/'+x+'.css" type="text/css">\n';}styleSheetString()/* ########### ENDE Abschnitt bei Gelegenheit ersetzen ########## */function ns4Reload(){ frames.content.location.reload(); }var name_frSetTop = "content"; // allg. framesetfunction swapImgs(frName, layID, imgName, srcHilited, subFrName){	if (frName && !subFrName){ 		if(layID && NS4){ self.frames[name_frSetTop].frames[frName].document.layers[layID].document.images[imgName].src = srcHilited; } 		else {			if (NS4) { self.frames[name_frSetTop].frames[frName].document.images[imgName].src = srcHilited; }			else if(NS6 || IE5) { self.frames[name_frSetTop].frames[frName].document.getElementById(imgName).src = srcHilited; }			else if(IE4) { self.frames[name_frSetTop].frames[frName].document.all[imgName].src = srcHilited; }		}	} 	else if (frName && subFrName){ 		if(layID && NS4){ self.frames[name_frSetTop].frames[frName].frames[subFrName].document.layers[layID].document.images[imgName].src = srcHilited; } 		else {			if (NS4) { self.frames[name_frSetTop].frames[frName].frames[subFrName].document.images[imgName].src = srcHilited; }			else if(NS6 || IE5) { self.frames[name_frSetTop].frames[frName].frames[subFrName].document.getElementById(imgName).src = srcHilited; }			else if(IE4) { self.frames[name_frSetTop].frames[frName].frames[subFrName].document.all[imgName].src = srcHilited; }		}	} else { 		if(layID && NS4){ self.frames[name_frSetTop].document.layers[layID].document.images[imgName].src = srcHilited; } 		else {			if (NS4) { self.frames[name_frSetTop].document.images[imgName].src = srcHilited; }			else if(NS6 || IE5) { self.frames[name_frSetTop].document.getElementById(imgName).src = srcHilited; }			else if(IE4) { self.frames[name_frSetTop].document.all[imgName].src = srcHilited; }		}	}}function writeDocStart(tmSelBtn, onLoadFunc){	closeXWin();	get_tm(tmSelBtn);	onOnLoad = onLoadFunc ? ' onload="'+onLoadFunc+'"' : ''	var topStartHTML = '';	topStartHTML += '\t</HEAD>\n';	topStartHTML += '<BODY BGCOLOR="'+docBgColor+'" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" \n';	topStartHTML += 'TEXT="'+textColor+'" LINK="'+linkColor+'" VLINK="'+vLinkColor+'" ALINK="'+aLinkColor+'"';	topStartHTML += onOnLoad+'>\n\n\n';	topStartHTML += menuHTML;	return topStartHTML;}function setTopImg(imgFileName, titelAlt, hoehe){	var HTML = '';	HTML += '<TABLE cellspacing="0" cellpadding="0" border="0" width="750" height="'+hoehe+'">\n\t<TR width="750" height='+hoehe+'>\n';	HTML += '\t\t<TD width="750" height="'+hoehe+'" background="'+topImgsPath+imgFileName+'"><IMG \n';	HTML += '\t\tSRC="'+colorsPath+'transp.gif" id="topImg" name="topImg" ALT="'+titelAlt+'" TITLE="'+titelAlt+'" \n';	HTML += 'WIDTH="750" HEIGHT="'+hoehe+'" BORDER="0"></TD>\n';	HTML += '\t</TR>\n</TABLE>\n';	return HTML;}function get_tm(tmSelBtn){ getHorizMenu(tmBtns, tmList, tmSelBtn, 1, topMenuFr, "") }var menuHTML;function getHorizMenu(btnArrayBez, menuBtnLabelListe, selMenuItemName, option, frName, layID){	var menuArr = new Array(); var mTableBreite = 0; var maxBtnHoehe = 0; var nr = -1; var btnLabelArr;	btnLabelArr = menuBtnLabelListe.split("|");	for(x = 0; x < btnLabelArr.length; x++) {		for (y = 0; y < btnArrayBez.length; y++){			if(btnArrayBez[y].label){				if(btnArrayBez[y].label.toLowerCase() == btnLabelArr[x].toLowerCase()){					nr++;					menuArr[nr] = btnArrayBez[y];					if(selMenuItemName){						if(menuArr[nr].label.toLowerCase() == selMenuItemName.toLowerCase()){							menuArr[nr].imgDatei1 = menuArr[nr].imgDatei3							menuArr[nr].imgDatei2 = menuArr[nr].imgDatei3						} else {							menuArr[nr].imgDatei1 = btnArrayBez[y].imgDatei + "_0.gif";							menuArr[nr].imgDatei2 = btnArrayBez[y].imgDatei + "_1.gif";						}					}					mTableBreite += menuArr[nr].breite;					if(menuArr[nr].hoehe > maxBtnHoehe) maxBtnHoehe = menuArr[nr].hoehe;				}			}		}	}	menuHTML = '';	var btnVAlign = 'top';	if(option == 1){		menuHTML += '<TABLE cellspacing="0" cellpadding="0" border="0" width="'+mTableBreite+'" height="'+maxBtnHoehe+'">\n';		menuHTML += '\t<TR width="'+mTableBreite+'" height="'+maxBtnHoehe+'" vAlign="top">\n';		for(z = 0; z < menuArr.length; z++){			menuHTML += '\t\t<TD width="'+menuArr[z].breite+'" height="'+maxBtnHoehe+'" \n';			menuHTML += '\t\tnowrap>'+setBtn(menuArr,menuArr[z].label,0,0,0,0,frName,layID)+'</TD>\n';		}		menuHTML += '\t</TR>\n</TABLE>\n';	}	return menuHTML;}function setBtn(btnArray, label, writeThis, urlJSFunc, ziel, dieOverMsg, frName, layID){	btnCnt++;	for(i = 0; i < btnArray.length; i++){		if(btnArray[i].label == label){			var btnNr = i; break;		}	}	var popupMenuDown = ""; var popupMenuUp = "";	if (btnArray[btnNr].popupMenuName != "" ) {		popupMenuDown = 'popDown(\''+btnArray[btnNr].popupMenuName+'\');';		popupMenuUp = 'popUp(\''+btnArray[btnNr].popupMenuName+'\',event);';	}	var btnHTML = ''; var overMsg = '';	if(btnArray[btnNr].url_jsFunc != "") {		var urlOrFunc = btnArray[btnNr].url_jsFunc;		if(urlJSFunc) urlOrFunc = urlJSFunc;		btnHTML += '<A href="' + urlOrFunc + '"  \n';		var targetHTML = "";		if (ziel)  targetHTML = '\t\ttarget="' + ziel + '" \n';		else if (btnArray[btnNr].ziel) targetHTML = '\t\ttarget="' + btnArray[btnNr].ziel + '" \n';		btnHTML += targetHTML;		overMsg = btnArray[btnNr].overMsgAlt;		if (dieOverMsg) overMsg = dieOverMsg;		var btnFr = "";		if (frName) {btnFr = frName}		btnHTML += '\t\tonMouseOut="swapImgs( \''+layID+'\', \'' + btnArray[btnNr].label + '\', \'' + btnArray[btnNr].imgDatei1 + '\');';		btnHTML += popupMenuDown+'window.status=\'' + btnArray[btnNr].outMsg + '\'; return true" \n';		btnHTML += '\t\tonMouseUp="swapImgs( \''+layID+'\', \'' + btnArray[btnNr].label + '\', \'' + btnArray[btnNr].imgDatei1 + '\');';		btnHTML += popupMenuDown+'window.status=\'' + btnArray[btnNr].outMsg + '\'; return true" \n';		btnHTML += '\t\tonMouseOver="swapImgs( \''+layID+'\', \'' + btnArray[btnNr].label + '\', \'' + btnArray[btnNr].imgDatei2 + '\');';		btnHTML += popupMenuUp+'window.status=\'' + overMsg + '\'; return true">';		}	btnHTML += '<IMG \n';	btnHTML += '\t\tid="' + btnArray[btnNr].label + '" name="' + btnArray[btnNr].label + '" \n\t\tsrc="'+ btnArray[btnNr].imgDatei1 + '" \n';	btnHTML += '\t\talt="' + overMsg + '" title="' + overMsg + '" \n';	btnHTML += '\t\tWIDTH="' + btnArray[btnNr].breite + '" HEIGHT="' + btnArray[btnNr].hoehe + '" border="0">';	if(btnArray[btnNr].url_jsFunc != "") btnHTML += '<\/A>';	if(writeThis) document.writeln(btnHTML);	else return(btnHTML);}function set_layText(htmlTxt, layName, frName, winName){	if(winName) frOrDoc = winName[frName].document;	else if(frName) frOrDoc = self[frName].document;	else frOrDoc = document; 	if(NS4) { 		frOrDoc.layers[layName].document.open('text/html'); 		frOrDoc.layers[layName].document.write(htmlTxt); 		frOrDoc.layers[layName].document.close(); 	}	else if(IE) { frOrDoc.all[layName].innerHTML = htmlTxt; }	else if(NS6) { frOrDoc.getElementById(layName).innerHTML = htmlTxt; }	else { frOrDoc.getElementById(layName).innerHTML = htmlTxt; } }var datum = "";var mez = "";function ret_datumZeit(ret_datum, ret_zeit, ret_msTime, msTime){	var jetzt = new Date();	if(msTime) { jetzt.setTime(msTime); }	var Tag = jetzt.getDate();	if (Tag <= 9) Tag = "0" + Tag;	var Monat = (jetzt.getMonth())+1;	if (Monat <= 9) Monat = "0" + Monat;	var Jahr = jetzt.getYear();	if (Jahr <= 999) Jahr = 1900 + Jahr;	var Stunden = jetzt.getHours()+1;	if (Stunden <= 9) Stunden = "0" + Stunden;	var Minuten = jetzt.getMinutes();	if (Minuten <= 9) Minuten = "0" + Minuten;	var Sekunden = jetzt.getSeconds();	//	datum = Tag + "." + Monat + "." + Jahr;	mez = Stunden + ":" + Minuten;	if(ret_datum) return datum	else if(ret_zeit) return mez	else if(ret_msTime) return jetzt.setTime(jetzt)}function getDatum(){ return (ret_datumZeit(1,0,0)); }function getZeit(){ return (ret_datumZeit(0,1,0)); }function ret_timeString(msTime){	var h,m,s,timeStr=""; 	h = (msTime/1000/60/60)>=1 ? parseInt(msTime/1000/60/60) : false;	m = parseInt(msTime/1000/60)%60;	s = (msTime/1000)%60 < 60 ? parseInt((msTime/1000)%60) : 0;	timeStr += h ? len(h,2)+":" : "";	timeStr += m ? len(m,2)+":" : "";	timeStr += s ? len(s,2) : "00";	timeStr = h ? timeStr+" h" : timeStr+" Min."	return timeStr;}function len(itm,cnt,fil){	var fil = fil ? fil : "0"; var l = (""+itm).length; var tmp = itm;	for(x=l; x<cnt; x++){ tmp = fil+tmp; }; return tmp;}function rand(){	// ... akzeptiert obere schranke oder einen von/bis-bereich	var ergebnis; // = undefined;	if (arguments.length == 1) { ergebnis = Math.floor(Math.random()*arguments[0]); } 	else if (arguments.length == 2) { ergebnis = Math.floor(Math.random()*(arguments[1]+1-arguments[0]))+arguments[0]; }	return ergebnis;}function ret1StyleSh(fStyleShName, fSize, fFamilie, fStyle, fColor, fWeight, fLineH, fTxtDekor){	var stHTML = fStyleShName+' {\n';		if(fFamilie) stHTML += 'font-family: '+fFamilie+'; \n';		if(fSize) stHTML += 'font-size: '+fSize+'; \n';		if(fStyle) stHTML += 'font-style: '+fStyle+'; \n';		if(fLineH) stHTML += 'line-height: '+fLineH+'; \n';		if(fWeight) stHTML += 'font-weight: '+fWeight+'; \n';		if(fColor) stHTML += 'color: '+fColor+'; \n';		if(fTxtDekor) stHTML += 'text-decoration:'+fTxtDekor+'; \n';		stHTML += '}\n';			return stHTML;}/* mac-/win-umlaute to html */function replWinChars2HTMLEntis(text_x){	var newText = text_x;	var reg = /[äöüÄÜÖßèé’]/	if(reg.test(newText)) {		newText = newText.replace(/ä/g,'&auml;')		newText = newText.replace(/ö/g,'&ouml;')		newText = newText.replace(/ü/g,'&uuml;')		newText = newText.replace(/Ä/g,'&Auml;')		newText = newText.replace(/Ü/g,'&Ouml;')		newText = newText.replace(/Ö/g,'&Uuml;')		newText = newText.replace(/ß/g,'&szlig;')		newText = newText.replace(/è/g,'&egrave;')		newText = newText.replace(/é/g,'&eacute;')		newText = newText.replace(/’/g,'&rsquo;')	}	return newText;}function replMacChars2HTMLEntis(text_x){	var newText = text_x;	var reg = /[ŠšŸ€…†§ŽÕ]/	if(reg.test(newText)) {		newText = newText.replace(/Š/g,'&auml;')		newText = newText.replace(/š/g,'&ouml;')		newText = newText.replace(/Ÿ/g,'&uuml;')		newText = newText.replace(/€/g,'&Auml;')		newText = newText.replace(/…/g,'&Ouml;')		newText = newText.replace(/†/g,'&Uuml;')		newText = newText.replace(/§/g,'&szlig;')		newText = newText.replace(//g,'&egrave;')		newText = newText.replace(/Ž/g,'&eacute;')		newText = newText.replace(/Õ/g,'&rsquo;')	}	return newText;}/* mac to win-chars */function replMacUmltoWinChars(text_x){	var newText = text_x;	var reg = /[ŠšŸ€…†§ŽÕ]/	if(reg.test(newText)) { // "äöüÄÜÖßèé’"		newText = newText.replace(/Š/g,'ä')		newText = newText.replace(/š/g,'ö')		newText = newText.replace(/Ÿ/g,'ü')		newText = newText.replace(/€/g,'Ä')		newText = newText.replace(/…/g,'Ü')		newText = newText.replace(/†/g,'Ö')		newText = newText.replace(/§/g,'ß')		newText = newText.replace(//g,'è')		newText = newText.replace(/Ž/g,'é')		newText = newText.replace(/Õ/g,'’')	}	return newText;}/* ################# */function encoded(uri) { return MacIE ? escape(uri) : encodeURI(uri) }function shift_(arr) { var newArr = []; for(x=1; x<arr.length; x++){ newArr[newArr.length] = arr[x]; }; return newArr; }function unshift_(val, arr){ var newArr = [val]; for(x=0; x<arr.length; x++){ newArr[newArr.length] = arr[x]; }; return newArr; }/* ############## EXTRA-FENSTER ... ############# */var xWin_;function xWin(datei, b, h, winPos, winProps){ 	/* 			xWin( datei )		xWin( datei, b, h )		xWin( datei, b, h, winPos, winProps )		xWin( datei, b, h, winPos, [winID, resizable, scrollbars, status, menubar, toolbar, location] )		winPos ... 1, 0 oder [links, oben] ... 1 => center, 0 => ohne vorgabe oder z.b. [200,150] => linke, obere position	*/	var args = arguments;	var h = !h ? 600 : h, b = !b ? 720 : b;	var props = ["resizable","scrollbars","status","menubar","toolbar","location"];	if(!winProps) { winProps = [0,0,0,0,0,0]; }	if(typeof(winProps[0]) != "string") { MacIE ? winProps = unshift_("xWin",winProps) : winProps.unshift("xWin"); }	var winID = winProps[0]; MacIE ? winProps = shift_(winProps) : winProps.shift();	for(x in props){ winProps[x] = (props[x] + "=" + (winProps[x] ? "yes" : "no")) }	// 	if(h && b){ 		MacIE ? winProps = unshift_('height='+h,winProps) : winProps.unshift('height='+h); 		MacIE ? winProps = unshift_('width='+b,winProps) : winProps.unshift('width='+b);	}	winProps = winProps.join(", ");	win = window.open(datei, winID,""+winProps);	if(winPos) { 		if(winPos == 1){ 							// zentriert positionieren ...			win.moveTo( ((screen.availWidth - b)/2), ((screen.availHeight - h)/2) );		} else if (winPos.length == 2){ 			// positionieren [links, oben]			var links = winPos[0], oben = winPos[1]; 			win.moveTo( links, oben );		}	}	win.focus();}var xWinBlocker;function ret_xWinBlocker(){	xWinBlocker = true;	if(IE) { setTimeout("check_xWinBlocker()", 3000) }	else setTimeout(check_xWinBlocker, 3000)}function check_xWinBlocker(aus){	var popupBlMsg = IE ? self.data.document.all["popupBl"] : self.data.document.getElementById("popupBl");	if(aus==1) xWinBlocker = false	// xWinBlocker = true;	// alert("nach 3 sec's ... check_xWinBlocker() ... xWinBlocker:"+xWinBlocker)	popupBlMsg.style.visibility = xWinBlocker ? 'visible' : 'hidden';}function ret_isWin(winObj){ // existiert das fenster ?	if(!Safari) { if(window[winObj]) return true; }	else if(Safari) { if(window[winObj].length) return true; }	else return false;}var winNamen = ["tdWin","siteMapWin","RALNCS_dPal","palWin","dSuchWin","xWinDekAbb","MKWin","fWin","imageViewWin"];function closeXWin(){	for(x=0; x<winNamen.length; x++){		if(self[winNamen[x]]) { 			if(Opera){				if(window[winNamen[x]]) window[winNamen[x]].close(); self[winNamen[x]] = 0;				// if(window[winNamen[x]].length) window[winNamen[x]].close(); self[winNamen[x]] = 0;			} else {				if(window[winNamen[x]]) window[winNamen[x]].close(); self[winNamen[x]] = 0;			}		}	}}var tdWin=0, evFromTD=0;function TDWin(dArrNr){	try { tdWin.close() } catch (ev) {}	tdArrNr = dArrNr = dArrNr ? dArrNr : self.data.document.data.dNr.value;	var dID = self.data.document.data.dID.value = dekor[dArrNr].id;	if(top.content.ausw) { self.data.setAusw123(dArrNr); }	var xtra_Prefs  = "height=550,width=605,scrollbars=no,resizable=no,status=no,menubar=no,location=no,toolbar=no";	fName = top.rootPath+'products/dtechnDetails/0_td_fr.html';	tdWin = window.open(fName,'tdWin',xtra_Prefs);	tdWin.focus();	ret_xWinBlocker();}var RALNCS_dPal=0;function RALNCS_dPalette(){	try { RALNCS_dPal.close() } catch (ev) {}	if(!Safari) RALNCS_dPal = window.open(rootPath+'services/1_palette.html','RALNCS_dPal','height=185, width=461,resizable=no,scrollbars=no,status=yes,menubar=no,toolbar=no')	else RALNCS_dPal = window.open(rootPath+'services/1_palette.html','RALNCS_dPal','height=185, width=461, resizable=no, scrollbars=no,status=no,menubar=no,toolbar=no')	RALNCS_dPal.focus();	ret_xWinBlocker();}var siteMapWin=0;function showSiteMap(){	siteMapWin = window.open(rootPath+"sitemap/sitemap.html", "siteMap", "height=405,width=625,scrollbars=no,resizable=no,status=no,menubar=no,location=no,toolbar=no");	siteMapWin.focus();	ret_xWinBlocker();}var xWinDekAbb=0;function xWinDekore(datei,h,b){ 	var datei = rootPath + "products/dSerien/s_abbXwin_fr.html";	xWinDekAbb = window.open(datei,'xWinDekAbb','height='+h+',width='+b+',resizable=no,scrollbars=auto,status=no');	xWinDekAbb.focus();	ret_xWinBlocker();}var dSuchWin=0;function dSuchWindow(){	dSuchWin = window.open(rootPath+'products/dSuche/0_suche_fr.html','dSuchWin','height=446,width=550,resizable=no,scrollbars=no,status=no,menubar=no,toolbar=no,location=no');	dSuchWin.focus();	ret_xWinBlocker();}/* formulare/fenster mit email-output ... */var fPath = rootPath+'forms/';// var fPath = 'http://www.abet.de/forms/';var MKWin=0;function showMKWindow(noMkItems){	if(isOnline){		var b=550; var h=275; var datei="index.html";		if(noMkItems) { b=300; h=125; datei='mk_noMKItems.html'; }		datei = fPath+"f_musterkorb/"+datei;		MKWin = window.open(datei,'MKWin','height='+h+',width='+b+',resizable=no,scrollbars=no,status=no,menubar=no,toolbar=no,location=no');		MKWin.focus();		ret_xWinBlocker(); 	} else onlineOnly()}var imageViewWin=0;function imageViewWindow(param){	theURL = rootPath+"imagesView/index.html?"+param;	imageViewWin = window.open(theURL,'imageViewWin','height=150,width=150,resizable=no,scrollbars=no,status=no,menubar=no,toolbar=no,location=no');	imageViewWin.focus();	ret_xWinBlocker();}/* formular-fenster mit email-versandt ... */var fWin=0; function fWindow(datei,h,b){	if(isOnline){		fWin = window.open(datei,'fWin','height='+h+',width='+b+',resizable=no,scrollbars=no,status=no,menubar=no,toolbar=no,location=no'); 		fWin.focus(); 		ret_xWinBlocker();	} else onlineOnly()}/* 1...5 prinzipiell ident. aufgebaut */function form_prodUnterl(){ fWindow(fPath+'f_prod_unterl/index.html',(WinIE ? 660 : 640),562) }function form_pruefZ_zul(){ fWindow(fPath+'f_pruefz/index.html',510,562) }function form_gkv(){ fWindow(fPath+'f_gkv/index.html',(WinIE ? 640 : 620),562) }function form_ad_termin(){ fWindow(fPath+'f_ad_telefon/index.html',407,562) }function form_tel_kontakt(){ fWindow(fPath+'f_ad_telefon/index.html',407,562) }function form_pral_m_p_unterl(){ fWindow(fPath+'f_pral/index.html',560,562) }function form_kaufm_anfr(){	var contentURL = ""+self.content.document.location;	if((contentURL.indexOf("1_dAusw_index.html"))==-1) { 		self.content.document.location = rootPath+"products/1_dAusw_index.html"; 		var tim = setTimeout("form_kaufm_anfr()", 600);	} else {		fWindow(fPath+'f_angebot/index.html',640,562);	}}