function GFX_SetRandBG( iid, imageList, position )
/* Sets the background image for the divider/element to a
 * random image in <imageList> and sets the position value
 * of that background to <position>.
 */
{
    if( ARR_Empty( imageList ) )
        return;
    
    var randImg="url('"+imageList[Math.floor(Math.random() * imageList.length)]+"')";
    document.getElementById(iid).style.backgroundImage = randImg;
    document.getElementById(iid).style.backgroundPosition = position;
}
function GFX_SetBG( iid, imgPath, position )
{
    document.getElementById(iid).style.backgroundImage = "url('"+imgPath+"')";
    document.getElementById(iid).style.backgroundPosition = position;
}
function GFX_SetImage( iid, imgPath )
{
    document[iid].src = imgPath;
}
function GFX_SetAlpha( iid, blend )
{
    document.getElementById(iid).style.opacity = ""+blend;
    document.getElementById(iid).style.filter = "alpha(opacity="+(blend*100)+")";
}
