//
// S c u l p t u r e   V i e w e r   L i b r a r y
//

function PositionRsLabelandBBGround( RObj, MyHeight, MyWidth, BBYoffset, teilung )
{
        var MyObj, Inatwidth, Inatheight, 
            Iwidth, Iheight, fact;
        
        
        MyObj = document.getElementById( "RSLabel" );

        Inatwidth =  UBC.getNativeWidth( MyObj );
        Inatheight = UBC.getNativeHeight( MyObj );

        fact =  .5 * (MyHeight) / Inatheight;

        Iwidth = Inatwidth * fact;
        UBC.setImageWidth( MyObj, Iwidth );
        Iheight = Inatheight * fact;
        UBC.setImageHeight( MyObj, Iheight );
        
        MyObj = RObj.RSLabelContainer;
        MyObj.style.width = Iwidth + "px";
        MyObj.style.height = Iheight + "px";
        MyObj.style.left = 0 + "px";
        MyObj.style.top = 0 + "px";

        MyObj = RObj.RSHeadline;
        MyObj.style.width = Iwidth + "px";
        MyObj.style.height = Iheight + "px";
        MyObj.style.left = ((teilung - Iwidth)/2 + 11)  + "px";
        MyObj.style.top = (MyHeight - (50 + Iheight)) + "px";
        
        MyObj = document.getElementById( "BlackBackgroundBG" );

        Inatwidth =  UBC.getNativeWidth( MyObj );
        Inatheight = UBC.getNativeHeight( MyObj );

        fact =  (MyHeight) / Inatheight;

        RObj.Iwidth = Inatwidth * fact;
        UBC.setImageWidth( MyObj, RObj.Iwidth );
        RObj.Iheight = Inatheight * fact;
        UBC.setImageHeight( MyObj, RObj.Iheight );
        
        MyObj = RObj.BlackBackground;
        MyObj.style.width = RObj.Iwidth + "px";
        MyObj.style.height = RObj.Iheight + "px";
        MyObj.style.left = teilung  + "px";
        MyObj.style.top =0 + "px";
        RObj.BlackBackgroundHeight = RObj.Iheight;
        
        MyObj = RObj.BBackgroundCover;
        MyObj.style.left = 0 + "px";
        MyObj.style.top = BBYoffset + "px";
        MyObj.style.width = (teilung + RObj.Iwidth -10) + "px";
        MyObj.style.height = (MyHeight - BBYoffset) + "px";
        
}




