<!--
//alert("HELLO v04");
var mFold_style_name = 'display';
var mFold_style_value_show = 'block';
var mFold_style_value_hide = 'none';
var mFold_NOA_container;
var mFold_NOA_command;
var mFold_NOA_command_a;
var numberOfElementsReduced = 4;	
var speed = 25; //25
var speedincrease = 1;
var text;
var label;
var mFold_NOA_trows;
var mFold_NOA_lis;
var mFold_NOA_imgs;
var 			mFold_NOA_td;
var mFold_NOA_img;
var nf ="";
var leng = 0;
var y;
var ctar;
var label1;
var label2;

var test = "est";


//



function aWriteInnerWrap1pi2(label1, label2){
	
	//Diese Funktion wird als ertes augerfufen, falls JS aktiviert ist
	// sie blendet die zusätzlichen handybzeichnungen aus
	
	// im folgenden werden die locallang-befehlsnamen aus t3 an die globale vars in js übergeben:
	
	getlabel1 = label1;
	getlabel2 = label2;
	
	
	
//	text ='<td colspan ="8">Weitere Modelle</td>';
	
	
	
	text = '<tbody><tr><th colspan ="8"  style="text-align:left !important;"><a class="more" onmousedown="hdy_showpi2(this)">';
	text += label1;
		text += '</a></th></tr></tbody><tbody style="display:none">';

	
	document.write(text);
	
	
	
}

function aWriteInnerWrap2pi2(){
	
	
	
	text = '</tbody>';
	
	document.write(text);
	
}


BrowserDetection();

function BrowserDetection(){
  this.appName = "unbekannt";
  this.appVersion = "unbekannt";
  this.isIE = this.isFF = this.isOpera = this.isSafari = false;

  this.UA = navigator.userAgent.toLowerCase();

  // IE
  if(this.UA.search(/msie/) != -1){
    this.appName = "IE";
    this.isIE = true;
    this.appVersion = parseFloat(/(msie[^;]*)/.exec(this.UA)[0].split(" ")[1]);
  // Firefox
  }else if(this.UA.search(/opera/) != -1){
    this.appName = "Opera";
    this.isOpera = true;
    this.appVersion = parseFloat(/(opera[^\s]*)/.exec(this.UA)[0].split("/")[1]);
  // Firefox
  }else if(this.UA.search(/firefox/) != -1){
    this.appName = "Firefox";
    this.isFF = true;
    this.appVersion = parseFloat(/(firefox[^\s]*)/.exec(this.UA)[0].split("/")[1]);
  // Safari
  }else if(this.UA.search(/khtml/) != -1){
    this.appName = "Safari (Win)";
    this.isSafari = true;
    this.appVersion = parseFloat(/(version[^\s]*)/.exec(this.UA)[0].split("/")[1]);
  }
  
  //alert(this.appName);
  
  
  appNameGlob = this.appName;
}




function hdy_showpi2(tar){
//	alert(tar.nextSibling);
//	tar.style['color']='black';
weitere_modelle = tar.parentNode.parentNode.parentNode.nextSibling;
//inner = inner[0];



//alert (weitere_modelle[1].style['display']='none');
//alert(weitere_modelle);
						
						//alert(appNameGlob);
						
						
						// unterscheidung ist notwendig, weil IE die diesplay-tabellen-eigenschaft nicht kennt
						// siehe: http://de.selfhtml.org/css/eigenschaften/positionierung.htm#display
						if(appNameGlob == "IE"){
						
						weitere_modelle.style['display']='block';
						
						} else {
							
							weitere_modelle.style['display']='table-row-group';
						}
					//	
						
				


linktext = tar.firstChild;
	
//	zur benennung werden die globalen vars aus der fn aWriteInnerWrap1 verwendet
	
if (linktext.data ==getlabel2){
	
	//weitere_modelle[0].style['display']='none';
	linktext = tar.firstChild;
	linktext.data =getlabel1;
	
	weitere_modelle.style['display']='none';
	
	
	} 

else{
//linktext.data ='weniger Modelle';
linktext.data = getlabel2;

				
				



}




//weitere_modelle[0].style['display']='inline';
//	
//	linktext = tar.firstChild;
//	
//
//	
//if (linktext.data ==getlabel2){
//	
//	weitere_modelle[0].style['display']='none';
//	linktext = tar.firstChild;
//	linktext.data =getlabel1;
//	
//	
//	} 
//
//else{
//
//linktext.data = getlabel2;
//}




	}


function aWriteInnerWrap1(label1, label2){
	//alert("HALLO");
	
	//Diese Funktion wird als ertes augerfufen, falls JS aktiviert ist
	// sie blendet die zusätzlichen handybzeichnungen aus
	
	// im folgenden werden die locallang-befehlsnamen aus t3 an die globale vars in js übergeben:
	
	getlabel1 = label1;
	getlabel2 = label2;
	
	
	//text = '<span><a class="more" onmousedown="hdy_show(this)">weitere Modelle</a><span style="display:none;">';
	text = '<span><a class="more" onmousedown="hdy_show(this)">';
	text += label1;
	text += '</a><span style="display:none;">';
	
	document.write(text);
	
	
	
}

function aWriteInnerWrap2(){
	
	
	
	text = '</span></span>';
	
	document.write(text);
	
}




function hdy_show(tar){
//	alert(tar.nextSibling);
//	tar.style['color']='black';
weitere_modelle = tar.parentNode.getElementsByTagName("span");
//inner = inner[0];
weitere_modelle[0].style['display']='inline';
	
	linktext = tar.firstChild;
	
//	zur benennung werden die globalen vars aus der fn aWriteInnerWrap1 verwendet
	
if (linktext.data ==getlabel2){
	
	weitere_modelle[0].style['display']='none';
	linktext = tar.firstChild;
	linktext.data =getlabel1;
	
	
	} 

else{
//linktext.data ='weniger Modelle';
linktext.data = getlabel2;
}
//style = weitere_modelle[0].attributes;


//alert(style);
	}




// IE needs the follwing, otherwise it keeps the last link state from CSS
function gone (tar){	
//	alert(tar);
//	tar.style['color']='black';

	tar.style['color']='black';
	
	}
	function goneagain (tar){
//	alert(tar);
	//tar.style['color']='#08e';
	tar.style['color']='#08e';
	
	}
function schreibeToptext(id){

		toptext = "<div id='";
		toptext+= id;
		toptext+= "' style='height:auto; overflow:hidden;'>";
//		alert(toptext);
		document.write(toptext);

		delete toptext;
	}
function schreibe(num){
    nf = 'navigationFoldout'; nf+= num;
    //
    mFold_NOA_trows = document.getElementById(nf).getElementsByTagName("tr");
    mFold_NOA_lis = document.getElementById(nf).getElementsByTagName("li");
    mFold_NOA_imgs = document.getElementById(nf).getElementsByTagName("img");
    //
    if (mFold_NOA_trows[0] != null) {
		leng = mFold_NOA_trows.length-1;
		} else {
			leng = mFold_NOA_lis.length-1;
		}
	
	//
	for (leng; leng >= numberOfElementsReduced; leng--) {
		if (mFold_NOA_trows[0] != null) {
			mFold_NOA_trows.item(leng).style['display']='none';
			} else {
			mFold_NOA_lis.item(leng).style['display']='none';
			}
	}
	
	if (num == "01"){
		label = "weitere Kontaktprogramme";
	} else if (num == "02"){
		label = "weitere Handys";
	} else {
		label = "mehr Info";
	}
		
	//
	text =	'</div><div id="command';
	text += num;
	text += '">';
	text += "<p><a class='more'  onmouseover='gone(this)' onmouseout='goneagain(this)' onmousedown=";
	text += '"SAL_mFold_NOA_more(';
	text += "'navigationFoldout";
	text += num;
	text += "','auto','";
	text += num;
	text += "')";
	text += '">';
	text += label;
	text += '</a></p>					';
	//
	text += "<p style='display:none;'><a class='less'  onmouseover='gone(this)' onmouseout='goneagain(this)' onmousedown=";
	text += '"SAL_mFold_NOA_less(			';
	text += "'navigationFoldout";
	text += num;
	text += "','40px','";
	text += num;
	text += "')";
	text += '">weniger</a></p></div>					';
	//
	
	document.write(text);
	
}




function hideDecrGroup () {
	

  
		
		
		
		// chekcing if a list or a table is affected
		if (mFold_NOA_trows[0] != null) {
			mFold_NOA_trows.item(leng--).style['display']='none';
				if (leng > numberOfElementsReduced){
					
					
			// firefox needs the following, otherwise it looses the witdth of table-cells		
			mFold_NOA_td = 	mFold_NOA_trows.item(leng).getElementsByTagName("td");
			mFold_NOA_td[1].style['width']='196px';
			mFold_NOA_td[0].style['width']='28px';
			 
			
			//padding:0;
//			mFold_NOA_td[0].style['padding']='4px 0 4px 0';
//			mFold_NOA_td[1].style['padding']='4px 0 4px 0';
					
					
						mFold_NOA_trows.item(leng--).style['display']='none';}
						} else {
				
				
							mFold_NOA_lis.item(leng--).style['display']='none';
							
					if (leng > numberOfElementsReduced){		
			mFold_NOA_lis.item(leng--).style['display']='none';
					}
			}
}

function hide(){
		// hide decreasing groups of rows
		
		hideDecrGroup();
		// end hiding at a certain amount
		if (leng < numberOfElementsReduced)
			{
			window.clearInterval(hiding);
				
				
	//window.scrollTo(0, 0);
	
	
		//mFold_NOA_command_a[1].style['color']='green';


			
			
		}

}

function SAL_mFold_NOA_less(what,value,num) {
	
	



		// switch the command links
		ctar = 'command';
		ctar+= num;
		
	
					
						mFold_NOA_command = document.getElementById(ctar).getElementsByTagName("p");
		
		mFold_NOA_command[0].style[mFold_style_name]=mFold_style_value_show;
		mFold_NOA_command[1].style[mFold_style_name]=mFold_style_value_hide;
					
	/*								mFold_NOA_command_a = document.getElementById(ctar).getElementsByTagName("a");
		
		mFold_NOA_command_a[0].style['color']='#08e';
		mFold_NOA_command_a[1].style['color']='#08e';*/
	
		
		delete ctar;
			
		// get all rows and images	
		mFold_NOA_trows = document.getElementById(what).getElementsByTagName("tr");
		
		
		mFold_NOA_lis = document.getElementById(what).getElementsByTagName("li");
		
		mFold_NOA_imgs = document.getElementById(what).getElementsByTagName("img");//getElementsByTagName("p");
		
		// get the numbers to count down from
		// chekcing if a list or a table is affected
		if (mFold_NOA_trows[0] != null) {
			leng = mFold_NOA_trows.length-1;
		} else {
				leng = mFold_NOA_lis.length-1;
		}
		
		
		// hide all imgs at first to speed ab display-performance in case images are found
/*		if (mFold_NOA_imgs[0] != null) {
		for (var i = leng; i >numberOfElementsReduced ; i--) {
			mFold_NOA_imgs.item(i).style['display']='none';
			}
		}
			*/	
		
		// hide decreasing groups of rows on click without waiting, t.i. before intervall
		hideDecrGroup();
		
		// set intervall
		hiding = window.setInterval("hide()", speed);

}

///////////////////////////////////////////

function showDecrGroup () {
	
	
	
	
	
		// hide decreasing groups of rows
		
//mFold_NOA_table = mFold_NOA_trows.item(i).parentNode.parentNode;
//alert(mFold_NOA_table);

//mFold_NOA_table.style['line-height']='0.9em';
		
		// chekcing if a list or a table is affected
		if (mFold_NOA_trows[0] != null) {
			
			//			// firefox needs the following, otherwise it looses the witdth of table-cells
			mFold_NOA_td = 	mFold_NOA_trows.item(i).getElementsByTagName("td");
			mFold_NOA_td[1].style['width']='196px';
			mFold_NOA_td[0].style['width']='28px';
			
			//padding:0;
//			mFold_NOA_td[0].style['padding']='4px 0 4px 0';
//			mFold_NOA_td[1].style['padding']='4px 0 4px 0';




			
//			mFold_NOA_img = mFold_NOA_trows.item(i).getElementsByTagName("img");
			//mFold_NOA_img[0].style['margin']='4px';
			//mFold_NOA_img[0].style['border']='1px solid red';

			
			
			
			
			mFold_NOA_trows.item(i++).style['display']='block';
			
				
			if (leng > 10){
				// firefox needs the following, otherwise it looses the witdth of table-cells
			mFold_NOA_td = 	mFold_NOA_trows.item(i).getElementsByTagName("td");
					mFold_NOA_td[1].style['width']='196px';
					mFold_NOA_td[0].style['width']='28px';
	
			//padding:0;
//			mFold_NOA_td[0].style['padding']='4px 0 4px 0';
//			mFold_NOA_td[1].style['padding']='4px 0 4px 0';

			//mFold_NOA_img = mFold_NOA_trows.item(i).getElementsByTagName("img");
			//mFold_NOA_img[0].style['margin']='4px';
			//mFold_NOA_img[0].style['border']='1px solid red';		
			//mFold_NOA_img = mFold_NOA_trows.item(i).getElementsByTagName("img");
//			mFold_NOA_img[0].style['margin']='5px 5px 5px 5px';
						//mFold_NOA_img[0].style['border']='1px solid red';
					
					
					
					mFold_NOA_trows.item(i++).style['display']='block';
						
							
							

						
						
						
			}
			
			} else {
			mFold_NOA_lis.item(i++).style['display']='block';
						if (leng > 10){
						mFold_NOA_lis.item(i++).style['display']='block';
						}
			}
		
		//i++;
		
}

function show(){
		// hide decreasing groups of rows
		showDecrGroup();
		// end hiding at a certain amount
		if (i == leng+1)
			{
			window. clearInterval(showing);
			
			
			
	
			
			
			
		}

}

function SAL_mFold_NOA_more(what,value,num) {
	
	
	// speichert den vertiaklen versatz der seite im moment da aufgeklappt wird

//  pageYOff = pageYOff*-1;
//  alert(y);
	

		// switch the command links
		ctar = 'command';
		ctar+= num;
		
				mFold_NOA_command = document.getElementById(ctar).getElementsByTagName("p");
		
		mFold_NOA_command[0].style[mFold_style_name]=mFold_style_value_hide;
		mFold_NOA_command[1].style[mFold_style_name]=mFold_style_value_show;
		
	/*									mFold_NOA_command_a = document.getElementById(ctar).getElementsByTagName("a");
		
		mFold_NOA_command_a[0].style['color']='#08e';
		mFold_NOA_command_a[1].style['color']='#08e';*/
		
		delete ctar;
			
		// get all rows and images	
		mFold_NOA_trows = document.getElementById(what).getElementsByTagName("tr");
		mFold_NOA_tds = document.getElementById(what).getElementsByTagName("td");
		
		mFold_NOA_lis = document.getElementById(what).getElementsByTagName("li");
		
		mFold_NOA_imgs = document.getElementById(what).getElementsByTagName("img");//getElementsByTagName("p");
		
		// get the numbers to count down from
		// chekcing if a list or a table is affected
		if (mFold_NOA_trows[0] != null) {
			leng = mFold_NOA_trows.length-1;
		} else {
				leng = mFold_NOA_lis.length-1;
		}
		
		
	
		
		
		// hide all imgs at first to speed ab display-performance in case images are found
/*		if (mFold_NOA_imgs[0] != null) {
		for (var k = numberOfElementsReduced+1; k <=leng ; k++) {
			mFold_NOA_imgs.item(k).style['display']='block';
			}
		}*/
//		i=numberOfElementsReduced+1;
		i=0;
		
		// hide decreasing groups of rows on click without waiting, t.i. before intervall
		showDecrGroup();
		
		// set intervall
		showing = window.setInterval("show()", speed);

}


//-->
