
initLogger = new Log4Js.Logger("Catalog.Congfig"); //----------------------------------------------------------------------------

try{ 
	Claim.isObject(GameCatalog.AvatarStudio, "the script that defines GameCatalog.AvatarStudio must be called before the call to the script that configs catalog utils"); 
	Claim.isObject(GameCatalog.AvatarStudio.defaultSettings,"the script that defines GameCatalog.AvatarStudio.defaultSettings must be called before the call to the script that configs catalog utils"); 
	Object.extend( 
		GameCatalog.AvatarStudio.defaultSettings
		, {FVAR_ColorsXML : "http://userassets.apizone.betaregion.oberon-media.com/CatalogConfig/2000/App/ConfigXML.ashx?type=colors&code=colors"
		,FVAR_LayoutXML : "http://userassets.apizone.betaregion.oberon-media.com/CatalogConfig/2000/App/ConfigXML.ashx?type=layout&code=layout"
		,FVAR_LocalizationXML : "http://userassets.apizone.betaregion.oberon-media.com/CatalogConfig/2000/App/ConfigXML.ashx?type=dictionary&code=dictionary"
		,FVAR_ItemLibraryXML : "http://userassets.apizone.betaregion.oberon-media.com/CatalogConfig/2000/App/ConfigXML.ashx?type=itemLibrary&code=itemLibrary"
		,FVAR_OmnitureXML : "http://userassets.apizone.betaregion.oberon-media.com/CatalogConfig/2000/App/ConfigXML.ashx?type=omniture&code=omniture"
		,FVAR_PromotionsXML : "http://userassets.apizone.betaregion.oberon-media.com/CatalogConfig/2000/App/ConfigXML.ashx?type=promotions&code=promotions"
		
		,FVAR_LoadingSceneURL : "/community/avatars/skins/IPlayGC//config/preloader.swf"
		,FVAR_ProgressURL : "/community/avatars/skins/IPlayGC//config/progress.swf" 
		
		,genericErrorMsg : "AVATAR_STUDIO_GENERIC_ERROR_MESSAGE" 
		,defaultLanguageCode : "en" 
		,base : "/community/avatars/2.2/" 
		,studioSWF : "/community/avatars/2.2/as.swf" 
		
		,FVAR_DEBUG : "1"
		,FVAR_LogLevel : "3" 
		,FVAR_showMyTypes: "~glasses~hair~face~skull~shirt~beard~background~body~jewelry~hats~" 
		,FVAR_AvatarSaveURL: UA.User.prototype.SAVE_AVATAR_URL 
		,channel : UA.CHANNEL 
		,fullAvatarBaseURL : Url.appendParamValue(UA.User.prototype.GET_AVATAR_URL,"type", "full") 
		,tinyAvatarBaseURL : Url.appendParamValue(UA.User.prototype.GET_AVATAR_URL,"type", "tiny") 
		} 
	); 
	
	GameCatalog.AvatarStudio.initated = true; 
}
catch(e){ 
	initLogger.warn("Failed initiating GameCatalog.AvatarStudio: " + Serialize(e) )} 
	
	//----------------------------------------------------------------------------

try{ 
	Claim.isObject(GameCatalog.AvatarViewer, "the script that defines GameCatalog.AvatarStudio must be initiated before the call to the script that configs catalog utils"); 
	Claim.isObject(GameCatalog.AvatarViewer.defaultSettings,"the script that defines GameCatalog.AvatarStudio.defaultSettings must be initiated before the call to the script that configs catalog utils"); 
	Object.extend
	( 
		GameCatalog.AvatarViewer.defaultSettings , 
		{
			tinyAvatarLiveURL : Url.appendParamValue(UA.User.prototype.GET_AVATAR_URL , "type","tiny") 
			,tinyAvatarCashedURL: Url.appendParamValue(UA.User.prototype.GET_CACHED_AVATAR_URL, "type", "tiny") 
			,guestAvatarXML : "/community/avatars/skins/IPlayGC//config/NoAvatar.xml"
			,showTypes : "~glasses~hair~face~skull~shirt~beard~background~body~jewelry~hats~"
			,movie : "/community/avatars/2.2/FAV.swf" ,channel : UA.CHANNEL 
		} 
	);

	GameCatalog.AvatarViewer.initiated = true; 
	}
	catch(e){ initLogger.warn("Failed initiating GameCatalog.AvatarViewer: " + Serialize(e) )
} 
//----------------------------------------------------------------------------
