// load localization of rialtoEngineFolder
var t0=(new Date()).getTime();

var rialtoConfig =  {	version : 0.85,
						isDebug 		: false,						
						isTestVersion 	: false
				 };

rialtoConfig.t0=t0;


// protocol file: absolute local path for rialtoEngine
if (document.location.protocol ==  "file:"){
	rialtoConfig.isFilePath=true;
	rialtoConfig.pathRialtoE = 'rialtoEngine/';
}
// protocol http: ; (relative path) url for rialtoEngine  
else{
	if (document.location.protocol ==  "http:"){
		rialtoConfig.isFilePath=false;
		rialtoConfig.pathRialtoE = 'rialtoEngine/';
	}	
}
//save the path name	
rialtoConfig.pathName=document.location.pathname;

rialtoConfig.skin = 'standart';

//-----------------------------------------------------------------------------------

if (rialtoConfig.isTestVersion)
	rialtoConfig.skin = 'test';

rialtoConfig.baseIdCssWithSkin 	= 'behavior';
rialtoConfig.skinList 			= ['standart','test'];

rialtoConfig.baseIdCssComposer			= 'composer';
rialtoConfig.extIdCssComposerDesignMode = 'design';
rialtoConfig.extIdCssComposerTryMode 	= 'try';

rialtoConfig.userAgentIsIE = (navigator.appName == "Microsoft Internet Explorer");	
rialtoConfig.userAgentIsGecko = (navigator.userAgent.indexOf('Gecko') != -1);

rialtoConfig.buildImageURL = function(imageName) {
	return rialtoConfig.pathRialtoE + imageName;
}