<div id="selAudioUpload" class="clsExternalVideoAudioUploadPopup">

	<form name="{$submitForm}" id="{$submitForm}">

{include file='../general/information.tpl'}
<div id="selLeftNavigation">

{if $myobj->isShowPageBlock('block_msg_form_success')}
	  {$myobj->populateHidden($myobj->block_msg_form_success.populateHidden)}
	  {if $myobj->getFormField('audio_url')}
		{literal}
		  <script language="javascript" type="text/javascript">
			copyValueToMainForm('Audio');
		  </script>
		{/literal}
	  {/if}
{/if}
{if $myobj->isShowPageBlock('external_audio_option')}
	<div class="clsPopHeading">{$LANG.add_external_audio}</div>
	<div id="selExternalAudioOption" class="clsWidth400">
		<p class="clsVideoFile"><a id="add_audio_file" href="{$upload_file}" onClick="{$myobj->getBrowser('add_audio_file')}">{$LANG.upload_audio_file}</a></p>
		<p class="clsVideoFile"><a id="add_external_url" href="{$upload_external_url}" onClick="{$myobj->getBrowser('add_external_url')}">{$LANG.upload_external_audio_url}</a></p>
		<div class="clsClearBoth"><!----></div>
	</div>
	 {$myobj->populateHidden($myobj->external_audio_option.populateHidden)}
{/if}
{if $myobj->isShowPageBlock('upload_audio_file_form')}
<div class="clsPopHeading">{$LANG.add_external_audio}</div>
		<div class="clsUploadSection" id="selUploadFlash" style="display:{$selUploadFlash_display}">
			<div><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="155" id="fileuploader" align="middle">
			<param name="allowScriptAccess" value="sameDomain" />
			<param name="movie" value="{$swf_path}?config={$config_path}" />
			<param name="quality" value="high" />
			<param name="bgcolor" value="#ffffff" />
			<embed src="{$swf_path}?config={$config_path}" quality="high" bgcolor="#ffffff" width="400" height="155" name="fileuploader" align="middle" allowDomain="always" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
			</object>
			</div>
			<p class="clsExternalVideoUploadButton"><input class="clsSubmitButton clsAudioUploadButton" type="button" Name="Upload" id="Upload" Value="{$LANG.upload_audio_file}" onClick="onClickThis()"/></p>
		</div>
		<script language="JavaScript">
			createJSFCommunicatorObject(thisMovie("fileuploader"));
		</script>
		<p class="clsVideoInFile"><a id="add_external_url" href="{$upload_external_url}" onClick="{$myobj->getBrowser('add_external_url')}">{$LANG.upload_external_audio_url}</a></p>
		 {$myobj->populateHidden($myobj->upload_audio_file_form.populateHidden)}
{/if}
{if $myobj->isShowPageBlock('upload_external_url_form')}
<div class="clsPopHeading">{$LANG.add_external_audio}</div>
	<div class="clsUploadExternalAudio"><div class="clsUploadSection">
		<table summary="{$LANG.audioupload_external_url_tbl}">
			<tr>
         		<td class="{$myobj->getCSSFormLabelCellClass('audio_url')}">{*$myobj->ShowHelpTip('audio_url')*}
					<label for="audio_url">{$LANG.audioupload_audio_url}</label><span class="clsMandatory">*</span>
				</td>
          		<td class="{$myobj->getCSSFormFieldCellClass('audio_url')}">{$myobj->getFormFieldErrorTip('audio_url')}
					<p><input class="clsTextBox" type="text" name="audio_url" id="audio_url"tabindex="{smartyTabIndex}" value="{$myobj->getFormField('audio_url')}" /></p>
					<span id="validReply"></span>
				</td>
        	</tr>
			 <tr><td colspan="2"> <p class="clsFlvInfo">{$LANG.audioupload_video_flv_url_info}</p></td></tr>
			<tr>
				<td colspan="2">
					<input class="clsSubmitButton" type="button" onclick="ajaxSubmitExternalForm('{$upload_external_audio_url}', '{$submitForm}', 'selAudioUpload');" name="upload_external_url" id="upload_external_url" tabindex="{smartyTabIndex}" value="{$LANG.audioupload_upload_external_audio}" />
					<span id="checkingInfo" style="display:none;"><div class ="{$myobj->getCSSFormFieldCellClass('audio_url')}"> {$LANG.checking_for_valid_url} <img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/loader.gif" alt="loading..."/></div></span>
				</td>
			</tr>
		</table></div>
		{$myobj->populateHidden($myobj->upload_external_url_form.populateHidden)}
		<input type="hidden" name="validate_external_url" value="1" />
		<p class="clsVideoInFile"><a id="add_audio_file" href="{$upload_file}" onClick="{$myobj->getBrowser('add_audio_file')}">{$LANG.upload_audio_file}</a></p>
	</div>
{/if}
	</div>
	</form>

</div>