
(function(container){

	var self = {

		show:	function(containerID, jsonString, options)	{
		
			if (typeof(options) == 'undefined'){
				options = {};
			}
		
			// check if we have swfobject here
			if (typeof(swfobject) == 'undefined')	return false;
			
			// check if data is set
			// or if we maybe get it from options
			var data = {};
			if (options.data)	{
				data = options.data
			} else if (jsonString == false || jsonString == '')	{
				return false;
			} else {
				data = $.secureEvalJSON(jsonString);
			}

			var goldenGloves = data.goldenGloves;
			if(options.hideGoldenGloves == true) {
				goldenGloves = 0;
			}
		
			// show flash in container
			var swfparams = {wmode: 'opaque', width: 250, height: 350};
			var fileVersion = 2;
			var flashVars = {
				firstName:	data.firstName,
				lastName: 	data.lastName,
				fightName:	data.fightName,
				styleID:	data.styleID,
				goldenGloves: goldenGloves,
				worldChampion: data.worldChampion,
				showFlagID:	   data.showFlagID,
				animatedTitles: data.animatedTitle,
				animatedBoxer:  data.animatedBoxer,
				playAnthemID:	data.playAnthemID,
				sessionID: 'xxxxx',
				fileVersion: fileVersion
			};
			
			if (options['noSound'])	flashVars.playAnthemID = '';
			if (options['noAnimatedTitle'])	flashVars.animatedTitles = 0;
			
			var host = '';
			if (SERVER_ID < 0)	host = 'http://smashdown.devel.mindvent.de';
			swfobject.embedSWF(host + '/flash/boxerProfile/boxerProfile.swf?ver=' + fileVersion, containerID, '250', '350', "9.0.0", null, flashVars, swfparams);


		}
		
			
			

	};

	container.game.extendedProfile = self;
})(_meef);

