function slideshowInit() {
	if($.browser.msie && parseInt($.browser.version) == 6) {
		gridWidth = Number($('#slideshow').parents($('div[class |= grid]')).css('width').replace('px', ''));
	}
	var margin = Number($('.box').css('padding-right').replace('px', ''));
	var teaserWidth = gridWidth - margin*2;

	$('#teaserContainer').addClass('teaserContainerjs');
	$('#teaserContainer .teaser').addClass('teaserjs');

	$('.teaserjs').css('width', teaserWidth+'px');

	$(".links").show();

    placeAndShowArrows();
	showArticle();
	
	if(automaticTransform && animationType != 'none' && !($.browser.msie && parseInt($.browser.version) == 6))	{
		transform(delay);
	}
}

function placeAndShowArrows() {
    $(function() {
        var height = $('#teaserContainer>.teaser:first>img').height();
        if (height != null) {
            var arrowHeigth = $(".leftArrow").height();
            var newTop = (height / 2 - arrowHeigth / 2 ) + 15;
            $(".leftArrow").css({top:newTop + 'px'});
            $(".rightArrow").css({top:newTop + 'px'});
        }
        $(".leftArrow").show();
        $(".rightArrow").show();
    });
}

