<!--
//alert("HELLO");
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 mFold_NOA_xmlns;
//


// 2008.04.24 ST
//
// translation switch via xmlns:
//
// ruft das attribut lang im xmlns ab, welches von typo3 per langugae-switch erzeugt wird.
// weiter unten werden dann die labels für die aus- und einklapplinks entsrpechend gesetzt
// und zwar so, daß der standard englisch ist und das deutsche label nur bei "de" angezeigt wird.
//

	mFold_NOA_xmlns = document.getElementsByTagName("html")[0].getAttribute("lang", 0);//[0];//.getAttributeNode("lang");
	

//alert(mFold_NOA_xmlns);


// 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"){
		
		
		if(mFold_NOA_xmlns =="de"){
			label = "weitere Kontaktprogramme";
		} else {
			label = "more clients";	
		}
		
		
	} else if (num == "02"){
		
		
		if(mFold_NOA_xmlns =="de"){
			label = "weitere Handys";
		} else {
			label = "more mobile phones";
		}
		
		
	} else {
		
		
		if(mFold_NOA_xmlns =="de"){
			label = "mehr Info";
		} else {	
			label = "more info";
		}
		
		
	}
	//alert(label);
		
	//
	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 += "')";
	
	if(mFold_NOA_xmlns =="de"){
		
		text += '">weniger</a></p></div>					';
	} else {
		text += '">less</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);

}



//-->