document.ready cannot (or at least, should not!) occur within a function. But you never call the function (unless you call it from some code that you haven't shown us) so the code is never executed.
[Personally, I wouldn't use div
as variable names - it can only lead to confusion, and possible conflict.]