I've been working on some javsscript at work to keep a menu centered in a page no matter what the screen-res is...it's hard to explain but css is not viable in this case.

I've been looking at the newish chat bar at the bottom facebook pages tonight and am thinking it does a similar thing using javascript to look at the screen height and calculate the position of the chat bar.

Do you think they're using javascript to do this and if so how do they get it adjusting it's size real time....my code for my navbar doesn't do that you re-size and it jumps afer you've finsihed re-sizing....do i need a timeout or something