App.rewrite.mod = function (mod, otherGets) {
	if(this.enabled) {
		var url = this.rootUrl+'/';
		if(mod !== null && mod !== '') url += mod + '/';
		if(otherGets !== null && otherGets !== '') url += '?' + otherGets;
		return url;
	}
	else {
		var url = 'index.php?mod=' + mod;
		if(otherGets !== null && otherGets !== '') url += '&amp;' + otherGets;
		return url;
	}
}
App.rewrite.image = function (filename) {
	if(this.enabled) {
		return this.rootUrl + '/images/' + App.style + '/' + filename;
	}
	else {
		return 'images/' + filename;
	}
}