function changeBgPos(divId, xPos, yPos, c) {
    if( document.getElementById(divId) ) {
        aktDiv = document.getElementById(divId);
        aktDiv.style.backgroundPosition = xPos + 'px ' + yPos + 'px';
    }
}

$(function(){
    $('.rect').bind('mouseenter mouseleave',function(){
        $(this).find('.bg').toggleClass('over');
    });
    $('#linksInLinks').mouseover(function(){
        $('.rect .bg:eq(3)').addClass('over');
    }).mouseout(function(){
        $('.rect .bg:eq(3)').removeClass('over');
    });
})
