jQuery(function(){
if(pbsize==1024){
    jQuery('#spzBox4').insertAfter('#spzBox1');
    jQuery('#spzBox4').css({
        'float':'none',
        'margin-right':'0'
    })
    jQuery('.fimgsmall').css({
        'float':'right',
        'width':'280px'
    })
    jQuery('.vkbild').css({
	    'float': 'left'
    })
}	
else{
    var winres = {
        imgMargRight:40,
        main:jQuery('#pbShadow'),
        topH2 : jQuery('#pbConSize h2'),
        mover:jQuery('#spzBox4'),
        init:function(){
            this.basicCss();
        },
        posLeft:function(){
            var mainLeft = this.main.position().left;
            var mainWidth= this.main.width();
            jQuery('#spzBox4');
            return mainLeft+mainWidth-this.imgMargRight-267;

        },
        basicCss:function() {
            this.mover.css({
                'float':'none',
                'margin':0,
                'position':'absolute',
                'top':this.topPos(),
                'left':this.posLeft()
            });
            this.moveEvent()
        },
        topPos:function(){
            return this.topH2.position().top - this.topH2.height();
        },
        moveEvent:function(){
            var func = this;
            jQuery(window).resize(function(){
               func.mover.css('left',func.posLeft());
            })
            
        }
    };
winres.init();
}
})

