$(document).ready( function(){ //var mylinks[1] = "link one"; //Attach top links to the div "minnavcontainer" $("#minnavcontainer").append( '' );//End links //Attach main nav to the ul that is in the div "navcontainer" $("#navcontainer").append( '' );//End menu JSON_linksarray = { "one" : "myfirst"};});//End doc ready