﻿//(function() 
//{                        
    var _docHead = document.getElementsByTagName("head")[0];
    
    function loadCss(href) 
    {
        var link = document.createElement("link");
        link.rel = "stylesheet";
        link.type = "text/css";
        link.href = href;
        _docHead.appendChild(link);
    };
    
    function loadJavaScript(src) 
    {
      var script = document.createElement("script");
      script.type = "text/javascript";
      script.src = src;
      _docHead.appendChild(script);
    };
                
    window.esriGeowConfig = 
    {
          baseUrl: location.protocol + '//' + location.host + '/home/',      
	      proxyUrl: '',
          webmapViewerPath: 'webmap/viewer.html',
          veGeocodingService: 'http://serverapi.arcgisonline.com/veadaptor/production/services',
          dojoBaseUrl: 'http://serverapi.arcgisonline.com/jsapi/arcgis/1.3/js/dojo/',          
	      restBaseUrl: 'http://'+location.host+'/sharing/',
		  printUrl: 'http://'+location.host+'/sharing/print',
		  veTokenUrl: 'http://'+location.host+'/sharing/vetoken.jsp',
          geomSvcUrl: 'http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer',
          userInfo : "",
          tokenExpiration : 120,
		  longTokenExpiration : 20160,
		  allowIE6 : false
    };
    
    loadCss(esriGeowConfig.baseUrl + 'css/esri/esri.css');
    
//})();
    
