if(!window.Artfolia){window.Artfolia=(function(){var Artfolia={locale:'en_US',layout:null,template:null,skin:null,loader:{host:'http://static.artfolia.net',loaded:{js:[],css:[],widget:[],ckeditor:null},getJsPath:function(alias){return this.host+'/cache/js/'+alias+'/'+Artfolia.locale},getCssPath:function(alias){return this.host+'/cache/css/'+alias+'/'+Artfolia.layout},getTemplatePath:function(layout,skin){return this.host+'/cache/template/'+layout+'/skin/'+skin},getWidgetPath:function(name){return this.host+'/cache/widget/'+name+'/'+Artfolia.template+'/'+Artfolia.skin},getHref:function(type,values){switch(type){case'js':return this.host+'/cache/js/'+values[0]+'/'+Artfolia.locale;break;case'css':return this.host+'/cache/css/'+values[0]+'/'+Artfolia.layout;break;case'template':return this.host+'/cache/template/'+values[0]+'/skin/'+values[1];break;case'widget':return this.host+'/cache/widget/'+values[0]+'/'+Artfolia.template+'/'+Artfolia.skin;break;default:return null}return null},isLoaded:function(alias,type){var found=false,key;for(key in Artfolia.loader.loaded[type]){if(Artfolia.loader.loaded[type][key]==alias){found=true;break}}return found}}};return Artfolia})()};
