You are repeating your braces in your variables (like middle) and your variable declarations are very jumbled up. For instance;
middle = "position: 'relative'";
and then
$(menu).css({+middle +,+left: .... etc.
Why are you trying to do it this way? It seems as if you are creating a lot of work and maintenance issues.