

function writeObjectEmbed(){

	objectWritten = true;

	/////

	elsObj.video_container.style.height = sizeObj.videoHeight + clientObj.controlsHeight;
	
	/////

	var atts = (clientObj.AX)? {ui_mode: 'none', id: 'AX_video'}: {ui_mode: 'full', id: 'non_AX'};

	var object_embed_string = '<object id="' + atts.id  + '"  width="100%" height="100%" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">';
	object_embed_string += '<param name="URL" value="' + movieObj.URL + '">';
	object_embed_string += '<param name="autoStart" value="true">';
	object_embed_string += '<param name="uiMode" value="' + atts.ui_mode + '">';
	object_embed_string += '<param name="volume" value="80">';
	object_embed_string += '<param name="stretchToFit" value="true">';
	object_embed_string += '<embed src="' + movieObj.URL + '" width="100%" height="100%" autoplay="1" controller="1" showstatusbar="1"><\/embed>';
	object_embed_string += '<\/object>';

	elsObj.video_container.innerHTML = object_embed_string;

	/////

	if(items.length > 1){
		QLT.determineSteps();
		elsObj.controls_quality.style.visibility = 'visible';
	}

	/////

	elsObj.now_playing_name_mini_player.innerHTML = '<img src="/system/videoplayer/images/filmstrip.png" width="10" height="10" />&nbsp;' + movieObj.name;
	
	/////

	if(clientObj.AX){

		AX.vid = getID('AX_video');

		elsObj.now_playing_name.innerHTML = movieObj.name;

		elsObj.controls_fullscreen.style.visibility = 'visible';
		elsObj.player_controls.style.visibility = 'visible';

		elsObj.now_playing_name_mini_player.style.top = 95 + 'px';
		
		var new_left = Math.round((Number(settingsObj.volume) / 100) * 51);

		elsObj.volume_slide_bar_expanding.style.width = new_left + 'px';
		elsObj.volume_slide.style.left = new_left + 'px';
		AX.vid.settings.volume = Number(settingsObj.volume);

		AX.getMovieDetails();
	}
}



