function void_function(){
				return false;
			}
function initBS(){
    //noscript_bs = document.getElementById("bild1");
    //document.getElementById("bilderstrecke").removeChild(noscript_bs);
    $("#bsNr").html("1 von " + img_arr.length);
 
    window.current_img = 0;
 
    var total_width = img_arr.length * 170;
    
    var slide_wrapper = $('<div />', {
        id: 'slideWrapper',
        style: 'position:absolute; left:0px; height:400px; width:'+total_width+'px'
    });
    
    for(i = 0; i < img_arr.length; i++){
        var temp_img = $('<img />', {
            src: img_arr[i].src,
            style:'margin-left:'+((170 - img_arr[i].width)/2)+'px; margin-right:'+((170 - img_arr[i].width)/2)+'px;'
        });
        
        var temp_href = $('<a />', {
        		href: href_arr[i],
        		target: '_blank'
        });
 
        
        var img_wrapper = $('<div />', {
            id: "img" + i,
            className: "img_wrap",
           style: 'float: left; width:170px;'
        });
        temp_href.append(temp_img);
        img_wrapper.append(temp_href);
 
        slide_wrapper.append(img_wrapper);
    }
 
    $('#bilderstrecke').append(slide_wrapper);
    window.control_int = setInterval("testRight()",5000);
}
function testLeft(){
	clearInterval(window.control_int);
    var slide_wrap = $("#slideWrapper");
    switch(window.current_img){
        case 0:
        	$(slide_wrap).animate({'left': '+=170px'},500, function(){
        		$(slide_wrap).css('left','-' + img_arr.length * 170 + 'px');
        	});
		$(slide_wrap).animate({left: '+=170px'},500, function(){
		
		});
            window.current_img = img_arr.length - 1;
            break;
        default:
        	slide_wrap.animate({'left': '+=170px'},500, function(){
            });
            window.current_img = window.current_img - 1;
            break;
    }
    $("#bsNr").html((window.current_img + 1) + " von " + img_arr.length);
    window.control_int = setInterval("testRight()",5000);
}
 		
function testRight(){
	clearInterval(window.control_int);
    var slide_wrap = $("#slideWrapper");
    
    var maxAmount = img_arr.length - 1;
 
    switch(window.current_img){
        case maxAmount:
        	slide_wrap.animate({'left': '-=170px'},500, function(){
        		slide_wrap.css('left','170px');
        	});
		$(slide_wrap).animate({left:'-=170px'},500, function(){
	
		});
		window.current_img = 0;
            break;
        default:
        	slide_wrap.animate({'left': '-=170px'},500, function(){
            });
            window.current_img = window.current_img + 1
            break;
    }
    $("#bsNr").html((window.current_img + 1) + " von " + img_arr.length);
    window.control_int = setInterval("testRight()",5000);
}
