
var handy = function(arr){
   
           
           var counter = 0;
 
           var max = arr.length -1;
        	var img = document.createElement('img');
            img.src = arr[counter];
			img.className = "HandyBild";
            
   
           var next = document.createElement('img');
            next.src = '/img/forward.gif';
           var prev = document.createElement('img');
            prev.src = '/img/back.gif';
			
           next.className = "WeiterButton";
           next.onclick = function(){
                   if(counter < max) counter++;else counter = 0;
                   img.src = arr[counter];
				   

           }

		   prev.className = "ZurueckButton";		
           prev.onclick = function(){
                   if(counter > 0) 
				   counter--;
				   else counter = max;
                   img.src = arr[counter];

           }
   
   
           this.create = function(id){
   			var root = document.getElementById(id);
                root.appendChild(img);
                root.appendChild(prev);
                root.appendChild(next);
                
   
           }
   
   
   }
   
function Mauskontrolle()
{
	document.getElementById('InfoTextTarif').className = "Sichtbar";
	document.getElementById('InfoTextTarif').style.position = "absolute";
	document.getElementById('InfoTextTarif').style.top = "200px";
	document.getElementById('InfoTextTarif').style.left = "400px";
}

function VersteckeInfotext()
{
document.getElementById('InfoTextTarif').className = "Unsichtbar";
}

//<!--
/*
 * Positioniert die Hilfetexte anhand der Event-Position
 */
function showHelp(elm, divId) {
    var positionFixId = divId + "Master";
    document.getElementById(divId).style.display='block';
    var x = document.getElementById(positionFixId).offsetLeft + 15;
    var y = document.getElementById(positionFixId).offsetTop - 50;
    document.getElementById(divId).style.left = x + "px";
    document.getElementById(divId).style.top = y + "px";
}
function showHelpCancelTimeout(divId) {
     window.clearTimeout(helpLayerTimeout);
}
function closeDivAfterTimeout(divId) {
     document.getElementById(divId).style.display='none';
     return false;
}
function closeHelp(divId) {
    var methodStr = "closeDivAfterTimeout('"+divId+"')";
    helpLayerTimeout = window.setTimeout(methodStr, 200);
}
//-->
	

    var toggleDSL = function(inp)
    {
        if(!inp.checked)
        {
            var cb = $('dsl_zusatz').select('input[type=checkbox]');
            cb.each(function(el){
                el.checked = false; 
            });
            $('DSLZusatz').hide();
        }
        $('dsl_zusatz').toggle();
    }
