    var player = null;
	function loadplayer(file) 
	{  
	   if (player==null) {
	     player = 1;
			player = flashembed("preview", 
				{
						src:'http://static.titanmedia.com/unlocked/includes/swf/FlowPlayerDark.swf',
						width: 640, 
						height: 360,
						version: [9,115],
						
                        onFinish: function () { alert("Hey!"); },
                        onBegin: function () { alert("Hey!"); },
						onFail: function(flashVersion, flowplayerConfig) 
						{ 
							this.version = null; 
							this.onFail = null; 
							document.getElementById('upgrade').innerHTML="<span id='flash'>Upgrade Flash</span>";												
							flowplayerConfig.config.videoFile = 'flv:' + file;
							//note we use the non-encrypted protocol here for the FLV versions
							flowplayerConfig.config.baseURL = 'rtmp://iogroup.fcod.llnwd.net/a395/o16/unlocked/tour';
							flowplayerConfig.config.streamingServerURL = 'rtmp://iogroup.fcod.llnwd.net/a395/o16/unlocked/tour';
							player = flashembed("preview", this, flowplayerConfig);
						}
				},
				{
				  config: { 
					baseURL: 'rtmpe://iogroup.fcod.llnwd.net/a395/o16/unlocked/tour',
					initialScale: 'orig',
					controlsOverVideo: 'ease',
					controlBarGloss: 'none',
					controlBarBackgroundColor: 'black',
					autoPlay: true,
					loop: false,
					showMenu: false,
					videoFile: 'mp4:' + file,
					streamingServerURL: 'rtmpe://iogroup.fcod.llnwd.net/a395/o16/unlocked/tour',
					streamingServer: 'fms'
				  }
				}				
			); player = null;
		} else {
	     var config;
		}
	}
	
	function onClipDone(clip){
	 document.getElementById('preview').innerHTML ="<a href='http://www.titanmen.com/accounts/join.asp'><img id='splash' src='http://static.titanmedia.com/unlocked/images/tour/tour_screen_a.gif' /></a>";

	}