
//var liveurl = 'http://omsk.hku.nl:8080/gama-web/json';
var liveurl = 'http://riga.hku.nl:8080/gama-web/json';
//var liveurl = 'http://bintje-01.hku.nl:8080/gama-web/json'; // Internal test URL
//var liveurl = 'http://192.87.216.240:9999/gama-web/json'; // Toon's test url

var iconurl = 'http://vm-gama-core.oasis-archive.eu/www-indexing/V120/'; // last know correct one;
var baseiconurl = 'http://gama-media.hfg.edu/www-indexing/';

var repositoryurl = "http://gama-repository.hku.nl/gama/devel/GamaRepository/"
//var repositoryurl = "http://research.ciant.cz/gama/devel/GamaRepository/"

//var cmsbaseurl = 'http://gamatest.hku.nl/'
var featuredUrl = 'http://www.gama-gateway.eu/'
var cmsbaseurl = 'http://www.gama-gateway.eu/'

var globalconfigurl = "fileadmin/proxy.php?url=" + escape(repositoryurl + "soa/?service=query/Get_Global_Config")

var liveurlSearch = liveurl;
var liveurlWork = liveurl;
var liveurlPerson = liveurl;
var liveurlWorktypes = liveurl;
var liveurlKeywords = liveurl;

var worktype_url = "fileadmin/proxy.php?url=" + escape(liveurlWorktypes + "?service=getworktypes");
var workterm_url = "fileadmin/proxy.php?url=" + escape(liveurlKeywords + "?service=getstatickeywords");
var personCountry_url = "fileadmin/proxy.php?url=" + escape(liveurl + "?service=getartistcountries");

var searchpage = cmsbaseurl + 'index.php?id=search'

var homepage = false;
// localtest()

/*
CBI (193.197.160.45) this machine can be reached now via "vm-gama-cbi.oasis-archive.eu" (193.197.161.6)
and
CORE (193.197.160.47) this machine can be reached now via "vm-gama-core.oasis-archive.eu" (193.197.161.5)
*/

//var imgroot = '/gama/img/';
var imgroot = 'fileadmin/templates/img/'

var upimage = '<img class="up" src="' + imgroot + 'trans.png"/>';
var downimage =  '<img class="down" src="' + imgroot + 'trans.png"/>';


function localtest() {

    liveurlSearch = "http://localhost/gama/data/search.json";
    liveurlWork = "http://localhost/gama/data/work.json";
    liveurlPerson = "http://localhost/gama/data/search.json";
    liveurlWorktypes = "http://localhost/gama/data/worktypes.json";
    
}

var seizure_text = '<img src="/fileadmin/templates/img/warning.png" alt="Epilepsy warning"> Warning: this preview may induce epileptic seizures.';

function dbg(txt) {

//	if(console && console.log) {
//		console.log(txt)
//	}

}