var videoServer="202.85.26.99";

function showVideo2(a, vname,caption){
switch(a){
	case 1: lang="mandarine";break;
	case 2: lang="cantonese";break;
	case 3: lang="english";break;
}
m1=window.open('','Movie',"height=210,width=220,status=no,toolbar=no, memubar=no,location=no");
m1.document.writeln('<html><head><title>Movie</title><head>');
m1.document.writeln('<script LANGUAGE="JavaScript1.2">');
m1.document.writeln('function showDIV(divName){');
m1.document.writeln('if (document.layers) {');
m1.document.writeln('document.layers[divName].visibility = "show";');
m1.document.writeln('} else {');
m1.document.writeln('document.all[divName].style.visibility = "visible";');
m1.document.writeln('}');
m1.document.writeln('}');
m1.document.writeln('</script>');
m1.document.writeln('<body bgcolor="#12257a" onLoad="window.focus();showDIV(\'sam\');" onBlur="window.focus();">');

m1.document.writeln('<DIV ID="sam" STYLE="POSITION: absolute; Z-INDEX: 21; VISIBILITY: show; TOP: 4px; LEFT: 10px;">');
m1.document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="200" height="200" bgcolor="#ffcc66">');
m1.document.writeln('  <tr><!-- spacing row, 0 height. --> ');
m1.document.writeln('    <td colspan=4 background="/common/frame/upper.gif" width=200 height=14><img src=/common/space.gif width=2 height=2></td>');
m1.document.writeln('  </tr>');
m1.document.writeln('  <tr><!-- row 02 --> ');
m1.document.writeln('    <td rowspan=2 background="/common/frame/left.gif" width="13" height="186" border="0"><br></td>');
m1.document.write('    <td colspan=2 bgcolor="#000000" height="142" width="170">');
m1.document.writeln("<Embed TYPE='application/x-mplayer2'");
m1.document.writeln('pluginspage= "http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp"');
m1.document.writeln("	SRC='/common/adv/asx.asp?lang="+lang+"&vid="+vname+"'");
//m1.document.writeln("	SRC='http://"+videoServer+"/asx/10k/"+vname+".asx'");
m1.document.writeln("	Name=MediaPlayer");
m1.document.writeln("	DisplaySize='4'");
m1.document.writeln("	AutoSize='0'");
m1.document.writeln("	BgColor='black'");
m1.document.writeln("	ShowControls='0'"); 
m1.document.writeln("	ShowTracker='0'");
m1.document.writeln("	ShowDisplay='0'");
m1.document.writeln("	DisplayBackColor='black'");
m1.document.writeln("	ShowStatusBar='-1'");
m1.document.writeln("	VideoBorder3D='-1'"); 
m1.document.writeln("	VideoBorderColor='black'");
m1.document.writeln("	width=174");
m1.document.writeln("	height=139");
m1.document.writeln(">");
m1.document.write("</embed>");
m1.document.writeln('</td>');
m1.document.writeln('    <td rowspan=2 background="/common/frame/right.gif" width="13" height="186"><br></td>');
m1.document.writeln('  </tr>');
m1.document.writeln('  <tr><!-- row 03 --> ');

if (document.layers){
	m1.document.writeln('    <td width=131 height=42 background="/common/frame/lower.gif"><form name=a><input size=14 value="'+caption+'"></form></td>');
}else{
	m1.document.writeln('    <td width=131 height=42 background="/common/frame/lower.gif"><input size=14 value="'+caption+'"></td>');
}
m1.document.writeln('	<td height=42 background="/common/frame/lower.gif"><a href="javascript://" onClick="self.close();"><img name="Ntv_03_03" src="/common/frame/china10k.gif" width="43" height="42" border="0" alt="close"></a></td>');
m1.document.writeln('  </tr>');
m1.document.writeln('</table>');
m1.document.writeln('</DIV>');

	m1.document.writeln('<br>\n</center></body></html>');
	m1.document.close();

}


function addMandarineVideo(vname,caption){
	document.writeln('<a href="#" onClick="showVideo2(1,\''+vname+'\',\''+caption+'\');"><img src="/common/icon/mandarineTV.gif" border="0" align="texttop"></a>');
}

function addCantoneseVideo(vname,caption){
	document.writeln('<a href="#" onClick="showVideo2(2,\''+vname+'\',\''+caption+'\');"><img src="/common/icon/cantoneseTV.gif" border="0" align="texttop"></a>');
}

function addEnglishVideo(vname,caption){
	document.writeln('<a href="#" onClick="showVideo2(3,\''+vname+'\',\''+caption+'\');"><img src="/common/icon/englishTV.gif" border="0" align="texttop"></a>');
}
