var acc = new Image();
acc.src = "http://counter.bosch-hausgeraete.de/cgi-bin/bosch.gif?b=xx&c=xx&l=xx&p=xx&v=xx";


//var maindir = "file:///G:/BOSCH%20HG/WEB/www.bosch-hausgeraete.de";
var maindir = "http://www.bosch-hausgeraete.de";
//var maindir = "http://192.168.35.138";
var maindomain = "http://www.bosch-hausgeraete.de";
var mainlang = "de";
var mainpath = maindir+'/'+mainlang;

var xgif=maindir+"/shared/x.gif";
var arr_b4r='<img src="'+maindir+'/shared/arr_b4r.gif" border="0" height="7" width="8">';
var arr_b_r_box='<img src="'+maindir+'/shared/arr_b_r_box.gif" border="0" height="17" width="8">';
var arr_b_rtl_box='<img src="'+maindir+'/shared/arrowblue2.gif" border="0" height="7" width="12">';
var arr_menu1='<img border="0" src="'+maindir+'/shared/arr_w_r.gif" width="12" height="17">';
var arr_menu2='<img border="0" src="'+maindir+'/shared/arr_w_d.gif" width="12" height="17">';
var arr_back='<img border="0" src="'+maindir+'/shared/arr_back.gif" width="12" height="7">';

var icon_doc = '<img src="'+mainpath+'/shared/icons/icon_doc.gif" border="0" height="8" width="27">';
var icon_pdf = '<img src="'+mainpath+'/shared/icons/icon_pdf.gif" border="0" height="8" width="27">';
var icon_rtf = '<img src="'+mainpath+'/shared/icons/icon_rtf.gif" border="0" height="8" width="27">';
var icon_zip = '<img src="'+mainpath+'/shared/icons/icon_zip.gif" border="0" height="8" width="27">';


var c_md = "menudarkblue";
var c_ml = "menulightblue";
var c_mm = "menumidblue";


/* ------------------------------------------------------------*/
//var param_contact_location = "http://rb-de.bosch.com/contact/user/index.jsp"; 
var param_contact_location = "http://servicefunctions.bosch.com/user/contactdealer/index.asp"; 

/* ------------------------------------------------------------*/
function openPopup(title,content,w,h,scrolling){
	if(!w){var w=438;}
	if(!h){var h=410;} else {h=h+61;}//	51 in der höhe weg
	if(!scrolling){var scrolling="auto";}
	myurl = mainpath+"/apps/popup/frame.html?" + escape(content) + ',' + title + ',' + scrolling;
	openWin(myurl,w,h);
}
function openPopup_wp(title,content,w,h,scrolling,pic){
	if(!w){var w=438;}
	if(!h){var h=410;} else {h=h+37;}//	x in der höhe weg
	if(!scrolling){var scrolling="auto";}
	myurl = mainpath+"/apps/popup/frame_pic.html?" + escape(content) + ',' + title + ',' + scrolling + ',' + pic;
	openWin(myurl,w,h);
}
function openPopup_wh(title,content,w,h,scrolling){
	if(!w){var w=438;}
	if(!h){var h=410;} else {h=h+40;}//	30 in der höhe weg
	if(!scrolling){var scrolling="auto";}
	myurl = mainpath+"/apps/popup/frame_wh.html?" + escape(content) + ',' + title + ',' + scrolling;
	openWin(myurl,w,h);
}
function openPopupPic(title,content,w,h){
	h=h+51;
	myurl = mainpath+"/apps/popup/frame_onlypic.html?" + escape(content) + ',' + title + ',no';
	openWin(myurl,w,h);
}

function openWin(myurl,w,h){
	if(window.pp){window.pp.close();}
	pp = window.open(myurl, "", "width="+w+",height="+h+",toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no");
	if (window.focus){window.pp.focus();}
}
function writePopupHeader(title){
	if(!title){var title='Robert Bosch Hausgeräte GmbH';}
	var tmp = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" height="40">';
    tmp += '<div style="font-family: Arial, Helvetica, sans-serif;padding: 14px 10px 0px 10px;font-size: 16px;font-weight: bold;color: #153B63;float: left;">'+title+'</div></td>';
//    tmp += '<td valign="top" align="right"><div style="padding: 0px 18px 0px 0px"><img src="'+maindir+'/shared/logo_popup.gif" alt="" border="0" width="54" height="30"></div>';
    tmp += '<td valign="top" align="right"><img src="'+maindir+'/shared/popup_logo.gif" alt="" border="0" width="125" height="40">';

	tmp += '</td></tr></table>';
	return tmp;
}

/* ------------------------------------------------------------*/

function open_redition() {
	openPopup('Die redition<sup><font size=-2>&reg;</font></sup> von Bosch',mainpath+'/erleben/specials/redition/popup.html',720,550,'no');
}
function open_vario06() {
	openPopup('VarioSpeed - Doppelt so schnell spülen.',mainpath+'/erleben/specials/vario06/popup.html',720,547,'no');
}
function open_coolkids() {
	openPopup('Cool for Kids-Edition',mainpath+'/erleben/specials/coolkids/popup.html',720,547,'no');
}
function open_sportline() {
	openPopup('Sportline',mainpath+'/erleben/specials/sportline/popup.html',700,580,'no');
}
function open_aktion060228() {
	openPopup('Mehr von Bosch. Mehr vom Leben.',mainpath+'/erleben/specials/aktion060228/popup.html',640,580,'no');
}

function open_mum8() {
	openPopup('MUM 8 professional',mainpath+'/erleben/specials/mum8/popup.html',700,640,'no');
}
function open_sensitive() {
	openPopup('Das neue Sensitive-System',mainpath+'/erleben/specials/sensitive/popup.html',720,530,'no');
}
function open_varioflex() {
	openPopup('VarioFlex- und VarioPlus-Körbe',mainpath+'/erleben/specials/vario/popup.html',595,590,'no');
}
function open_worldwasher() {
	openPopup('Logixx 9 New Dimension',mainpath+'/erleben/specials/worldwasher/popup.html',700,640,'no');
}
function open_induction() {
	openPopup('SpeedInduction',mainpath+'/erleben/specials/induktion/popup.html',720,530,'no');
}
function openPDBPrint(vip) {
	openPopup_wh('Drucken',mainpath+'/apps/pdb_pi/product_print.php?vib='+vip+'&lang=de&ex=&msub=&print=1',570,600);
//	openPopup_wh('Drucken',url,400,600);
}
function openPDBPopup(vip) {
	openPopup_wh('Drucken',mainpath+'/apps/pdb_pi/product_print.php?vib='+vip+'&lang=de&ex=&msub=',570,600);
}
function glossar_pdb(glossar_id) {
//	openPopup('Glossar',maindir+'glossar/glossar.php?lang=de&skin=gl&sr=0&byid='+glossar_id,300,370);
//	openPopup('Glossar','http://www.bosch-hausgeraete.de/glossar/glossar.php?lang=de&skin=gl&sr=0&byid='+glossar_id,400,300);
	openPopup('&nbsp;',maindir+'/glossar/glossar.php?lang=de&skin=gl&sr=0&byid='+glossar_id,400,380);
}
function openKU(who){
	openPopup('Küchen Update',mainpath+'/produkte/update/'+who+'.html',570,420);
}
function openAnleitungen(){
	openWin('https://portal.bsh-partner.com/portal/loginframe.htm?PORTAL_LANGUAGE=DE&PORTAL_LAYOUTINDEX=2&PORTAL_LOGINNAME=consumer_7_2&PORTAL_PASSWORD=password&PORTAL_REGIONINDEX=7',750,600);
//	openPopup('Hausgeräte','http://portal.bsh-partner.com/service2(bD1lbg==)/instruction_manual.htm',600,450);




}
function openAZ(who){
	var tt = new Array ();
	tt['waschen']=1;
	tt['spuelen']=1;
	tt['kuehlen']=1;
	tt['kochen']=1;
	tt['kleine']=1;
	tt['boden']=1;
	tt['wellness']=1;
	tt['klima']=1;

	if (tt[who] == '' || !tt[who]){
		var who="global";
	}
	openPopup('Funktionen von A-Z',mainpath+'/produkte/az/'+who+'.html',544,500,'no');
//	alert('Funktion A-Z: '+who);
}
function openAwards(who){
	openPopup('Qualität und Design','/de/apps/addon/search.php?kat='+who,515,500,'no');
}
function openAwardsFlash(who){
	openPopup('Qualität und Design','/de/apps/qud/popup.php?swKAT='+who,700,635,'no');
}


function openKlassenbesten(who){
	openPopup_wp('Unsere Klassenbesten',mainpath+'/produkte/besten/'+who+'.html',500,600,'no','h_k_'+who);
}
function openHerdSpecial(){
	openPopup('CookControl',mainpath+'/erleben/specials/herde/index.html',720,420,'no');
}
function openHerdSpecialFilms(){
	openWin(mainpath+'/erleben/specials/herde/herdanimation/index.html',640,491);
}
function openSolitaireCP(){
	openPopup('Solitaire',mainpath+'/erleben/specials/solitaire_cp/index.html',720,420,'no');
}
function openSolitaire(){
	openPopup('Solitaire',mainpath+'/erleben/specials/solitaire/index.html',780,600);
}
function openQuantumspeed(){
	openPopup('Quantumspeed',mainpath+'/erleben/specials/quantumspeed/index.html',780,550);
}
function openEasyStore(){
	openPopup('EasyStore&reg;',mainpath+'/produkte/easystore/content.html',400,500);
}
function openGas(){
	openPopup('Kompetenz in Gas',mainpath+'/erleben/specials/gas/index.html',720,385,'no');
}
function openGarantie(){
	openPopup_wp('Herstellergarantie',mainpath+'/produkte/garantie.html',400,300,'','h_hersteller');
}
function openExclusiv(){
	openPopup('Das bedeutet Exclusiv für Sie',mainpath+'/exclusiv/exclusiv.html',650,446,'no');
}
function openMovie(mov,title){
	//javascript:openMovie('estore_01','Für Genießer');
	myurl = mainpath+'/movies/fr_main.html?'+mov;
	openPopup(title,myurl,400,300,'no');
}

function opendownloadlink(dfile) {
	//alert(maindir+dfile);
	//openPopup('Prospektdownload',maindir+dfile,800,600,'no');

	if(window.pp){window.pp.close();}
	pp = window.open(maindir+dfile, "", "width=800,height=600,toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=yes");
	if (window.focus){window.pp.focus();}


//	openPopup_wp('Prospektdownload',mainpath+'/apps/download/feedback.html',410,300,'no','h_prospekte');
  //openPopup('Prospektdownload','http://feedback.hausgeraet.de/bosch/eform.php?targeturl='+maindomain+dfile,500,350,'no');
}
function zoom_pdb(id) {
	openPopup('Zoom-Ansicht','http://www.bosch-hausgeraete.de/zoom/zoom.php?lang=de&skin=pdb2&type='+id,646,445,'no');
}

function open_dealerSearch() {
	if (document.dealersearch.plz.value.length < 2){
		alert('Bitte geben Sie Ort oder PLZ ein (mind. 2 Stellen)');
	} else {
		openPopup_wp('Händler Suchergebnis',mainpath+'/apps/dealer/dealer.php?plz='+ document.dealersearch.plz.value + '&lang=de&ref=' + document.dealersearch.ref.value,500,500,'','h_haendler')
	}
}

function open_dealerSearch_cp() {
	if (document.dealersearch.plz.value.length < 2){
		alert('Bitte geben Sie Ort oder PLZ ein (mind. 2 Stellen)');
	} else {
		openPopup_wp('Händler Suchergebnis',mainpath+'/apps/dealer_cp/dealer.php?plz='+ document.dealersearch.plz.value + '&lang=de&ref=' + document.dealersearch.ref.value,500,500,'','h_haendler')
	}
}


/* ------------------------------------------------------------*/
function openSpecContact(emailAdr,product,optID1,optID2,LL){
	var url 	= location.href;
//	var actions = get_header_actions();
	var params2 = "width=564,height=498,toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no";
//	if (typeof(emailAdr) != "string") emailAdr = "";
//	if (typeof(product) == "undefined") product = actions.source;

	if (LL == "undefined") var LL = "DE";

	path = param_contact_location;
	myurl = path+'?app=contact&gb=BSH&lang=de&country=de&option1='+optID1+'&option2='+optID2+'&email='+emailAdr+'&product='+escape(product)+'&src='+escape(url);
	//alert(myurl);
	window.open(myurl, "contact", params2);
}
function openKundendienst(){
	openPopup('Hausgeräte','http://kundendienst.consultens.de/de/hg_new/d/Frame_popup.htm',680,580,'no');
	
}
function openErsatzteile(){
	openPopup('Hausgeräte','http://kundendienst.consultens.de/de/hg_new/d/zubehoer/start.html',580,580,'yes');
/*	myurl = "http://kundendienst.consultens.de/de/hg_new/d/Frame_popup.htm";
	kundendienst = window.open(myurl, "Kundendienst", "width=680,height=600,toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no");
	window.kundendienst.focus();*/
}
/* ------------------------------------------------------------*/

function writeLinkLine(t,l,w,b,o){
	if(!w){var w=174;}
	if(t == "BACK"){var t='Zurück';var l='javascript:history.back()';var ll = arr_back+t;}
	else {var ll = arr_b_rtl_box+t}
	if(o){var tmp='#" onClick="javascript:top.window.opener.location.href=\''+l+'\';return false;';l=tmp;}
	var tmp = '<table width="'+w+'" border="0" cellspacing="0" cellpadding="0"><tr><td class="format1pxh '+c_mm+'">&nbsp;</td></tr>';
	tmp += '<tr onMouseover="trhighlight(this,1,\'#DEEBF7\',\'#FFFFFF\')" onMouseout="trhighlight(this,0,\'#DEEBF7\',\'#FFFFFF\')" valign="top"><td><p class="linklines"><a href="'+l+'">'+ll+'</a></td></tr>';
	if(!b){tmp += '<tr><td class="format1pxh '+c_mm+'">&nbsp;</td></tr>';}
	tmp += '</table>';
	return tmp;
}

/* ------------------------------------------------------------*/

function writeLinkbox_brochures(){
	var LB = new Array ();
	var headline = "Aktuelle Prospekte";
	LB.push(new Array ('pic', mainpath+'/shared/lb/ib_prospekte.jpg'));
	LB.push(new Array ('LT', 'Die neuesten Prospekte stehen für Sie zum Download bereit.', mainpath+'/service/prospekte/index.html'));
	return makeLinkbox(headline,LB);
}

function writeLinkbox_dealer(ex){
	var LB = new Array ();
	var headline = "Händler vor Ort";
	if(ex == true){var x='<input name="ref" value="ex" type="hidden">';}else{var x='<input name="ref" value="all" type="hidden">';}

	var Linkbox_entry_dealer='<form name="dealersearch" method="post" action="javascript:open_dealerSearch();">Hier finden Sie sekundenschnell alle Bosch Händler in Ihrer Nähe. Bitte geben Sie Ort oder PLZ ein (mind. 2 Stellen).<br><input name="plz" value="" size="10" type="text" id="webass" class="start">'+x+'<br><a href="javascript:open_dealerSearch();">'+arr_b4r+'Händler finden</a></form>';

	LB.push(new Array ('', Linkbox_entry_dealer));
	return makeLinkbox(headline,LB);
}

function writeLinkbox_dealer_cp(ex){
	var LB = new Array ();
	var headline = "Händler vor Ort";
	if(ex == true){var x='<input name="ref" value="ex" type="hidden">';}else{var x='<input name="ref" value="all" type="hidden">';}

	var Linkbox_entry_dealer='<form name="dealersearch" method="post" action="javascript:open_dealerSearch_cp();">Hier finden Sie sekundenschnell alle Bosch Händler in Ihrer Nähe. Bitte geben Sie Ort oder PLZ ein (mind. 2 Stellen).<br><input name="plz" value="" size="10" type="text" id="webass" class="start">'+x+'<br><a href="javascript:open_dealerSearch();">'+arr_b4r+'Händler finden</a></form>';

	LB.push(new Array ('', Linkbox_entry_dealer));
	return makeLinkbox(headline,LB);
}

function writeLinkbox_service(){
	var LB = new Array ();
	var headline = "Service";
	LB.push(new Array ('T', 'Wir sind für Sie da!'));
//	LB.push(new Array ('TL', 'Händler vor Ort', mainpath+'/service/vor_ort/index.html'));
	LB.push(new Array ('TL', 'Prospekte', mainpath+'/service/prospekte/index.html'));
	LB.push(new Array ('TL', 'Antworten & Tipps', mainpath+'/service/tipps/index.html'));
	LB.push(new Array ('TL', 'Gebrauchsanleitungen', mainpath+'/service/anleitungen/index.html'));
	return makeLinkbox(headline,LB);
}

function writeLinkbox_pdbsearch(ex){
	var LB = new Array ();
	var headline = "Schnellsuche";
	if(ex == true){var x='<input name="ex" value="1" type="hidden">';}else{var x='';}

	var Linkbox_entry_pdbsearch='<form name="productsearch" method="get" action="'+mainpath+'/apps/pdb_pi/product_list.php">Schnell und unkompliziert zum Wunschgerät. Bitte Produktnummer oder Stichwort eingeben:<br><input name="searchstring" size="10" type="text" id="webass" class="start"><input name="lang" value="de" type="hidden">'+x+'<br><a href="javascript:document.forms.productsearch.submit();" class="bluesmall">'+arr_b4r+'Schnellsuche starten</a></form>';

	LB.push(new Array ('', Linkbox_entry_pdbsearch));
	return makeLinkbox(headline,LB);
}

function writeLinkbox_ifilms(){
	var LB = new Array ();
	var headline = "Film ab!";
	LB.push(new Array ('T', 'Lebensqualität made by Bosch.'));
	LB.push(new Array ('TL', 'Kühlen mit FoodProtec','javascript:openMovie(\'foodprotec\',\'FoodProtec\');'));
	LB.push(new Array ('TL', 'Spülen mit GlassProtec', 'javascript:openMovie(\'glassprotec\',\'GlassProtec\');'));
	LB.push(new Array ('TL', 'Wäschepflege mit TextileProtec', 'javascript:openMovie(\'textileprotec\',\'TextileProtec\');'));
	LB.push(new Array ('TL', 'Kochen mit CookControl', 'javascript:openMovie(\'cookcontrol\',\'CookControl\');'));
	return makeLinkbox(headline,LB);
}

function writeLinkbox_care(){
	var LB = new Array ();
	var headline = "Produkte";
	LB.push(new Array ('T', 'Entdecken Sie unsere Produktwelten.'));
	LB.push(new Array ('TL', 'Kühlen und Gefrieren', mainpath+'/produkte/produkte/kuehlen/index.html'));
	LB.push(new Array ('TL', 'Spülen', mainpath+'/produkte/produkte/spuelen/index.html'));
	LB.push(new Array ('TL', 'Waschen und Trocknen', mainpath+'/produkte/produkte/waschen/index.html'));
	LB.push(new Array ('TL', 'Kochen', mainpath+'/produkte/produkte/kochen/index.html'));
	return makeLinkbox(headline,LB);
}
function writeLinkbox_az(who){
	var LB = new Array ();
	var headline = "Funktionen von A-Z";
	var tt = new Array ();

	tt['waschen']='Was außer Ihrer Wäsche sonst noch in unseren Waschmaschinen und Trocknern steckt.';
	tt['spuelen']='Große Klappe, viel dahinter: Das alles steckt in unseren Geschirrspülern.';
	tt['kuehlen']='Appetit auf mehr? Weitere Informationen frisch serviert.';
	tt['kochen']='Bei guten Zutaten zählen die inneren Werte. Genau wie bei unseren Geräten.';
	tt['kleine']='Mehr als nur "Kleinigkeiten". Die Details unserer durchdachten Technik.';
	tt['boden']='Ob flüsterleise oder extrastark - die kraftvollsten Argumente für unsere Sauger.';
	tt['wellness']='Bei unseren Geräten zählt nicht nur das Aussehen, sondern auch die inneren Werte.';
	tt['klima']='Perfektes Wohlfühl-Klima, einfach erklärt.';

	if (tt[who] == '' || !tt[who]){
		who="global";
	}
	tt['global']='Allgemeine Funktionen unserer Geräte im Überblick.';

	LB.push(new Array ('pic', mainpath+'/shared/lb/ib_'+who+'.jpg'));
	LB.push(new Array ('LT', tt[who], 'javascript:openAZ(\''+who+'\')'));
	return makeLinkbox(headline,LB);
}

/* ------------------------------------------------------------*/
/* ------------------------------------------------------------*/

function makeLinkbox(headline,lines){
	var lb='';
	var padsytyle='style="padding-top:2;padding-bottom:2;padding-right:4"';
//	var LinkboxLine='\n<tr><td colspan="2"><img src="'+xgif+'" height="1" width="1"></td></tr>';
	var LinkboxLine='\n<tr><td colspan="2" class="format1pxh">&nbsp;</td></tr>';
	lb+='<div id="linkbox"><table border="0" cellpadding="0" cellspacing="0" width="174">';
	lb+='\n<tr><td class="cellh" colspan="2" height="18">'+headline+'</td></tr>';

	for (var i=0; i<lines.length; i++) {
		if(lines[i][0] == "TL"){
		lb+='\n<tr onMouseover="trhighlight(this,1,\'#A0B7CF\',\'#B4C6D9\')" onMouseout="trhighlight(this,0,\'#A0B7CF\',\'#B4C6D9\')">';
		lb+='<td valign="top" class="'+c_mm+'"><a href="'+lines[i][2]+'" onClick="if(this.blur)this.blur()">'+arr_b_r_box+'</a></td>';
		lb+='<td class="cell"><a href="'+lines[i][2]+'" onClick="if(this.blur)this.blur()">'+lines[i][1]+'</a></td></tr>';
		lb+=LinkboxLine;
		} else if(lines[i][0] == "pic"){
		lb+='\n<tr><td colspan="2"><img src="'+lines[i][1]+'"></td></tr>';
		} else if(lines[i][0] == "LT"){
		lb+='\n<tr><td colspan="2" class="cell" '+padsytyle+'><a href="'+lines[i][2]+'">'+lines[i][1]+arr_b_rtl_box+'</a></td></tr>';
		lb+=LinkboxLine;
		} else if(lines[i][0] == "T"){
		lb+='\n<tr><td colspan="2" class="cellb" height="18">'+lines[i][1]+'</td></tr>';
		lb+=LinkboxLine;
		} else if(lines[i][0] == "-"){
		lb+=LinkboxLine;
		} else {
		lb+='\n<tr><td colspan="2" class="cell" '+padsytyle+'>'+lines[i][1]+'</td></tr>';
		//lb+=LinkboxLine;
		}
	}
	lb+='\n<tr><td><img src="'+xgif+'" border="0" height="6" width="8"></td>';
	lb+='<td><img src="'+xgif+'" border="0" height="6" width="166"></td></tr>';
	lb+='</table></div>';
	return lb;
}

/* ------------------------------------------------------------*/
/* ------------------------------------------------------------*/

function makeMenuTeaser(h,t,l,p){
	var mm='';
	mm+='<img src="'+xgif+'" width="12" height="12">';
	mm+='<table width="174" border="0" cellspacing="1" cellpadding="0" class="menudarkblue">';
	mm+='<tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="menumidblue">';
	mm+='<tr><td><img src="'+p+'"></td></tr>';
	mm+='<tr><td style="padding-left: 12px; padding-top: 2px; padding-bottom: 2px; padding-right: 4px;">';
	mm+='<b>'+h+'</b><br><a href="'+l+'" onClick="if(this.blur)this.blur()">'+t+arr_b_rtl_box+'</a></td></tr></table></td></tr></table>';
	mm+='<img src="../../../../shared/x.gif" width="12" height="6">';
	return mm;
}
function makeMenu(headline,lines,menuHL){
	var mm='';
	var M_over=' onMouseover="trhighlight(this,1)" onMouseout="trhighlight(this,0)"';
	var M_isOver='';
	var MLine1='\n<tr><td colspan="3"><img src="'+maindir+'/shared/nav_line_sub1.gif" width="174" height="1"></td></tr>';
	var MLine2='\n<tr><td colspan="3"><img src="'+maindir+'/shared/nav_line_sub2.gif" width="174" height="1"></td></tr>';

	mm+='<table border="0" cellspacing="0" cellpadding="0" width="174">';
	mm+='\n<tr><td colspan="3" class="'+c_md+'" style="vertical-align: bottom;" height="37"><p class="menuheading">'+headline+'</p></td></tr>';

	for (var i=0; i < lines.length; i++) {

	if ((lines[i][3] && lines[i][2] == menuHL[0])){
		if (lines[i][2] == menuHL[0] && (menuHL[1] == '' || !menuHL[1])){M_color="menuactive";M_isOver="";}
		else {M_color=c_md;M_isOver=M_over;}
		if(i > 0){mm+=MLine1;}
		mm+='\n<tr'+M_isOver+'>';
		mm+='\n<td align="right" valign="top" class="'+M_color+'"><a href="'+lines[i][1]+'">'+arr_menu2+'</a></td>';
		mm+='\n<td colspan="2" class="'+M_color+'"><a href="'+lines[i][1]+'" class="whitesmall">'+lines[i][0]+'</a></td></tr>';

		for (var j=0; j < lines[i][3].length; j++) { // generate submenu
			if (lines[i][3][j][2] == menuHL[1]){M_color="menuactive";M_isOver="";}
			else {M_color=c_md;M_isOver=M_over;}
			mm+=MLine2;
			mm+='\n<tr'+M_isOver+'>';
			mm+='<td colspan="2" align="right" valign="top" class="'+M_color+'"><a href="'+lines[i][3][j][1]+'">'+arr_menu1+'</a></td>';
			mm+='<td class="'+M_color+'"><a href="'+lines[i][3][j][1]+'" class="whitesmall">'+lines[i][3][j][0]+'</a></td></tr>';
		}
	} else {
		if (lines[i][2] == menuHL[0]){M_color="menuactive";M_isOver="";}
		else {M_color=c_md;M_isOver=M_over;}
		if(i > 0){mm+=MLine1;}
		mm+='\n<tr'+M_isOver+'>';
		mm+='<td align="right" valign="top" class="'+M_color+'"><a href="'+lines[i][1]+'">'+arr_menu1+'</a></td>';
		mm+='<td colspan="2" class="'+M_color+'"><a href="'+lines[i][1]+'" class="whitesmall">'+lines[i][0]+'</a></td></tr>';
	}

	}
	mm+='<tr><td colspan="3" class="'+c_md+'"><img src="'+xgif+'" width="174" height="1"></td></tr>';
	mm+='<tr><td class=""><img src="'+xgif+'" width="18" height="6"></td><td class=""><img src="'+xgif+'" width="8" height="6"></td><td class=""><img src="'+xgif+'" width="148" height="6"></td></tr>\n</table>';

	return mm;
}

/* ------------------------------------------------------------*/
function trhighlight(obj,on,colhl,col){
	if(!colhl && !col){
		var colhl="#1B528C";
		var col="#153B63";
	}
	var color=(on==true)?colhl : col;
	for (var i=0; i < obj.cells.length; i++) {
		var theCell=obj.cells[i];
		if(theCell){theCell.style.backgroundColor=color;}
	}
}
function tdhighlight(obj,on,colhl,col){
	if(!colhl && !col){
		var colhl="#1B528C";
		var col="#153B63";
	}
	var color=(on==true)?colhl : col;
	var theCell=obj;
	if(theCell){theCell.style.backgroundColor=color;}
}
/* ------------------------------------------------------------*/
function writeFooter(){
	var footer = "";
	footer+='<table cellpadding="0" cellspacing="0">';
	footer+='<tr><td><img src="'+xgif+'" height="6" width="6"></td><td class="'+c_ml+'"><img src="'+xgif+'" height="6" width="174"></td><td rowspan="2">&nbsp;</td></tr>';
	footer+='<tr><td><img src="'+xgif+'" height="11" width="6"></td><td class="'+c_mm+'" rowspan="2"><a href="#"><img src="'+maindir+'/shared/arr_down.gif" width="7" height="4" border="0" alt="zum Seitenanfang" title="zum Seitenanfang" hspace="4">zum Seitenanfang</a></td></tr>';
	footer+='<tr><td><img src="'+xgif+'" height="6" width="6"></td><td class="'+c_mm+'"><img src="'+xgif+'" height="6" width="540"></td></tr></table>';
	return footer;
}

