Your map object is not formed correctly. Map options follow the map div in curly brackets as pairs.See https://developers.arcgis.com/en/javascript/jsapi/map.html for more on map options.Like this:map = new esri.Map("map", { extent: initExtent } );
P.S. please wrap code and html in tags. Select text in editor and click the appropriate button. See attached.[ATTACH=CONFIG]25729[/ATTACH]