<!-- hide script from old browsers

	var faqElements = new Array();
	faqElements[0] = "Allgemein";
	faqElements[1] = "Startbox";
	faqElements[2] = "Tarife";
	faqElements[3] = "Aufladung_automatisch";
	faqElements[4] = "Gueltigkeit";
	faqElements[5] = "Roaming";
	faqElements[6] = "Handy";
	faqElements[7] = "Mailbox";
	faqElements[8] = "Dienste";
	faqElements[9] = "Konfiguration";
	faqElements[10] = "Verlust";
	faqElements[11] = "Sonstiges";
	faqElements[12] = "Begriffe";
	faqElements[13] = "Technik";
	faqElements[14] = "Aufladung";
	faqElements[15] = "Aufladung_sofort";
	faqElements[16] = "Aufladung_per_sms";

	var tarifElements = new Array();
	tarifElements[0] = "Telefonieren";
	tarifElements[1] = "SMSversenden";
	tarifElements[2] = "MMSversenden";
	tarifElements[3] = "Daten";
//	tarifElements[4] = "600Paket";
	tarifElements[4] = "Flatrates";
	tarifElements[5] = "Roaming";
	tarifElements[6] = "Servicenr";
	tarifElements[7] = "Servicepauschale";
	tarifElements[8] = "Startboxen";

	var einfachElements = new Array();
	einfachElements[0] = "KeinRisiko";
	einfachElements[1] = "EinfacherStart";
	einfachElements[2] = "Guenstig";
	einfachElements[3] = "Optionen";
	einfachElements[4] = "Aufladen";	
	
	
	
     function moveTo(element){
      // div with auto-overflow
      var container = 'columnMain';
	  Position.prepare();
	  container_y = Position.cumulativeOffset($(container))[1]
	  element_y = Position.cumulativeOffset($(element))[1]
	  new Effect.Scroll(container, {x:0, y:(element_y-container_y)});
	  return false;
	}
		
	function moveIndicator(topMargin) {
	   try {
		arrowDiv = document.getElementById('arrow');
		arrowDiv.style.position="relative";
		arrowDiv.style.top=topMargin;    
	  } catch (error) { error=null; }
	}
	
	function toggleNavLinkColor(id, element) {
	   try {
	   var list;
	   if(id==1) {
	   		list = tarifElements;
	   	} else if(id==2) {
	   		list = faqElements;
	   	} else if(id==3) {
	   		list = einfachElements;
	   	}
		// set all links to inactive except the one which has been selected now	   	
		for(i = 0; i < list.length; i++) {	
			var element2 = document.getElementById('link'+list[i]);
			if(element2) {
				element2.className='subnavigationLevel2';
				if(element2 == element) {
					element.className='subnavigationLevel2Active';
					element.focus();
				}
			}
		}
	  } catch (error) { error=null; }	
	}
/*
	function toggleIndicatorDiv(id, element) {
	   try {
	   var list;
	   if(id==1) {
	   		list = tarifElements;
	   	} else if(id==2) {
	   		list = faqElements;
	   	} else if(id==3) {
	   		list = einfachElements;
	   	}
	   	
		// toggle all nav items to blue
		for(i = 0; i < list.length; i++) {	
			//alert("----> 1: " + 'ind'+list[i]);
			var strelem = 'ind'+list[i];		
			if(document.getElementById(strelem)) {
				document.getElementById(strelem).style.display='none';
			}
			//if(i==14) { exit;}
		}

		if(document.getElementById(element)) {
			document.getElementById(element).style.display='block';
		}
		Effect.toggle(element, 'blind', { duration: 0.6 });

	  } catch (error) { error=null; }	
	}
*/
	function toggleIndicatorDiv(id, element) {
	   try {
	   var list;
	   if(id==1) {
	   		list = tarifElements;
	   	} else if(id==2) {
	   		list = faqElements;
	   	} else if(id==3) {
	   		list = einfachElements;
	   	}
	   	
		// toggle all nav items to blue
		for(i = 0; i < list.length; i++) {	
			//alert("----> 1: " + 'ind'+list[i]);
			var strelem = 'ind'+list[i];
			//$(strelem).hide();	
			if(document.getElementById(strelem)) {
				document.getElementById(strelem).style.display='none';
			}
		}		
		if(document.getElementById(element)) {
			//document.getElementById(element).toggle("slow");
		    jQuery(document).ready(function(){
		       jQuery("#"+element).show('slow');
		    });

		}
	  } catch (error) { 
		  console.log(error); 
		  error=null; 
	  }	
	}





		
	function disableImage(divId, locale, element, msg) {						
  	// first set the image to be invisible  
	
	if (element) {
		element.style.visibility='hidden';
	}
	
  	var newMsgDiv = document.createElement('div');
  	var newMsg    = document.createTextNode(msg);
  	newMsgDiv.style.color='red';
  	newMsgDiv.style.fontWeight='bold';
  	newMsgDiv.appendChild(newMsg);
 	if (document.getElementById(divId)!=null) {
  		var div = document.getElementById(divId);
  		try{
  			div.insertBefore(newMsgDiv, element); 	
  		}
  		catch(error){error=null;}
 	}				
	}

	function disableImage2(divId, divId2, locale, element, msg) {						
  	// first set the image to be invisible  
	
	if (element) {
		element.style.visibility='hidden';
	}
	
  	var newMsgDiv = document.createElement('div');
  	var newMsg    = document.createTextNode(msg);
  	newMsgDiv.style.color='red';
  	newMsgDiv.style.fontWeight='bold';
  	newMsgDiv.appendChild(newMsg);
  	if (document.getElementById(divId2)!=null) {
  		var div2 = document.getElementById(divId2);
  		div2.style.display='none';
  	}
 	if (document.getElementById(divId)!=null) {
  		var div = document.getElementById(divId);
  		div.insertBefore(newMsgDiv, element); 	
 	}				
	}
	
	function disableButton(divId, button) {						
  	// first set the button to be invisible  
  	button.style.display='none';
 
  	// now create a new disabled button with the same attributes as the existing button			  	
  	var newButton = document.createElement('input');
  	
  	newButton.setAttribute('type', 'button');
  	newButton.setAttribute('id', button.getAttribute('id') + 'Disabled');
  	newButton.setAttribute('name', button.getAttribute('name') + 'Disabled');
  	//newButton.setAttribute('value', button.getAttribute('value'));
  	newButton.setAttribute('value', '');
  	newButton.setAttribute('class', 'disabled_' + button.getAttribute('class'));
  	newButton.setAttribute('disabled', 'false');
 
 	if (document.getElementById(divId)!=null) {
  		var div = document.getElementById(divId);
  		div.insertBefore(newButton, button); 	
 	}
		
	}			
			
	function disableButtons(divId) {					
	  	var args = arguments;	
	  	var argCount = args.length;
		
	  	if(argCount > 1) {
	    	for(i = 1; i<argCount; i++){
	      		var button = document.getElementById(args[i]);
				
	      		if(button != null) {
	        		disableButton(divId, button);		  		
	      		}
	    	}
	  	}
	}
	
function preventDoubleClick(element, extraIds) {
	window.setTimeout='100';
	if (element) {
		element.style.visibility='hidden';
	}
	if (extraIds) {
		var form = document.getElementById(element.form.id);
		for (var i=0; i <= extraIds.length; i++) {
			var elem = document.getElementById(form.id + ':' + extraIds[i]);
			if (elem) {
				elem.style.visibility='hidden';
			}
		}
	}
}


	<!-- TOOLTIP ONMOUSEOVER -->
  	tooltip     = null;
  	tooltipDiv  = null;
  	document.onmousemove = updateTooltip;

	function updateTooltip(e) {
	  try {
	    x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	    y = (document.all) ? window.event.y + document.body.scrollTop : e.pageY;
	    if (tooltip != null) {
	      tooltip.style.left = (x + 20) + "px";
	      tooltip.style.top = (y + -20) + "px";
	    }
	    if (tooltipDiv != null) {
	      tooltipDiv.style.left = (x + 20) + "px";
	      tooltipDiv.style.top = (y + -20) + "px";
	    }
	  } catch (error) { error=null; }
	}

	function showTooltip(id) {
	  try {
	    tooltip = document.getElementById(id);
	    tooltip.style.display = "block"
	  } catch (error) { error=null; }
	}

	function hideTooltip() {
	  try {
	    if (tooltip != null){  tooltip.style.display = "none"; }
	    if (tooltipDiv != null){ tooltipDiv.style.display = "none"; }
	  } catch (error) { error=null; }
	}
	
	function showTooltipDiv(id,value){
	   try {
		tooltipDiv = document.createElement('div');
		tooltipDiv.setAttribute('id',id+'TT');
		tooltipDiv.setAttribute('forceId','true');
		tooltipDiv.style.position="absolute";
		tooltipDiv.style.width="280px"
		tooltipDiv.style.fontSize="small";
		tooltipDiv.style.lineHeight="1";
		tooltipDiv.style.textAlign="left";
		tooltipDiv.style.padding="2px";
		tooltipDiv.style.backgroundColor="#40BDD6";
  	    tooltipDiv.style.border="1px solid #265AA3";
		tooltipDiv.style.zIndex="5000";
		
		var content = document.createTextNode(value);
		tooltipDiv.appendChild(content);
		
		document.body.appendChild(tooltipDiv);
	    tooltipDiv.style.display="block";
	    setTimeout('hideTooltip()',7000);
	    
	  } catch (error) { error=null; }
	}
	
	// Diese Funktion oeffnet neues Browserfenster fuer die Online-Hilfe mit speziellen Bedinungen
function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
  winName.focus();
}
// end hiding -->
