// variable handles different domains
urlroot = window.location.host.indexOf('idium.n') !== -1 ? window.location.pathname.substring(0,window.location.pathname.indexOf('/',2)) + "/" : "/";

var gisServer          = "http://ksok.ra.no";
var iconPath           = "{$URLROOT}/filestore";
var maxNumRecordsQuery = 1000;
var articlePageURL     = urlroot + "kulturminnesok/";
var localUrl = urlroot + "?module=Search;action=publicSearch;template=jsonSearch;qtype=Articles.Article;qroot=2083;pagesize=50;";
//var remoteUrl = "http://frink.idium.net:8080/solr/select?rows=100&wt=xslt&tr=json7.xsl&qt=raDismax&";
var remoteUrl = "http://frink.idium.net:8080/solr/select?rows=100&wt=xslt&tr=json7.xsl&";
var fritekstURL        = ((''+window.location).indexOf("old=true") > -1) == true ? localUrl : remoteUrl;
//var articlePageURL     = "http://www.riksantikvaren.no/kulturminnesok/";
//var fritekstURL        = "http://www.riksantikvaren.no/?module=Search;action=publicSearch;template=jsonSearch;qtype=Articles.Article;qroot=2083;pagesize=50;";
var geocacheBasicURL   = gisServer+"/ArcGIS/rest/services/GeocacheBasis/MapServer";
var geocacheImageURL   = gisServer+"/ArcGIS/rest/services/GeocacheBilder/MapServer";
var geocacheToken      = "KQjQvzrg-F9v7AzSbHOL2j_FV64NKmHzwjZxOce3jH5RAl7e1ZaunOVoHQwdbRj_xDJKel2sj1l4un7kH2hR31qd0F4oiepaAyXd7onIAt8.";

var dynamicURL1        = gisServer+"/ArcGIS/rest/services/RA_publikum_klump/MapServer";
var fylkerURL          = gisServer+"/ArcGIS/rest/services/RA_publikum_klump/MapServer/0";
var kommunerURL        = gisServer+"/ArcGIS/rest/services/RA_publikum_klump/MapServer/1";
var lokaliteterURL     = gisServer+"/ArcGIS/rest/services/RA_publikum_klump/MapServer/2";
var matrikkelURL       = gisServer+"/ArcGIS/rest/services/RA_publikum_klump/MapServer/5";
var verdensarvURL      = gisServer+"/ArcGIS/rest/services/RA_Verdensarv/MapServer/0";
