function load_viewer(vid)
{
	var d = document.getElementById(vid);

	if(bActiveX)
	{
		d.innerHTML = 
		'<div id="ID_PreMsg" style="width:100%;height:100%;"><table width=100% height=100%><tr><td align=center>接続しています。<BR>しばらくお待ちください。<BR><marquee width=100px direction=right BEHAVIOR=scroll SCROLLDELAY=60 SCROLLAMOUNT=3 style="font-size:15px;"><font color="#808080">●</font></marquee></td></tr></table></div>' +
		'<table id="MyTable" border=0 cellpadding=0 cellspacing=0>' +
		'	<tr>' +
		'		<td>' +
		'			<object classid="clsid:D74527B1-D405-4673-8A30-1A9B346AADF2" id="ZoomaPP1" codebase="http://viewer.zooma.jp/viewer/mamoViewer.cab#version=1,0,0,5" width=0 height=0></object>' +
		'			<object classid="CLSID:48B35AC2-CFCE-4DF7-8B39-C3EB6F5DD111" id="CMiViewer1" codebase="http://viewer.zooma.jp/viewer/mamoViewer.cab#version=3,0,0,7" width="100%" height="100%">' +
		'			<param name="DMode"		value="0">' +
		'			<param name="ImageURL"		value="./">' +
		'			<param name="ScaleFactor"	value="0.0">' +
		'			<param name="BackStyle"		value="/background-color=#'+ mbc +' /logo-color=default /logo-visible=true">' +
		'			<param name="ProgressStyle"	value="/background-color=default /progress-color=default /alpha=default">' +
		'			<param name="TextStyle"		value="/text-color=default /dot-color=default">' +
		'			<param name="ZoomBarStyle"	value="/background-color=default /border-color=default /tick-color=default /tick2-color=default /mb-back-color=default /mb-fore-color=default /thumb-color=default /shaft-color=default /thumb-size=9 /size=20 /visible=true /mb-visible=true">' +
		'			<param name="RmStyle"		value="/cp-frame-color=white /cp-fill-color=black /cp-frame-size=3 /cp-frame-width=1 /cp-type=box /frame-color=red /frame-width=2">' +
		'			<param name="NaStyle"		value="/cp-frame-color=red /cp-frame-size=3 /cp-frame-width=2 /cp-type=hollowbox /frame-color=red /frame-width=2">' +
		'			<param name="MinViewLevel"	value="3">' +
		'			<param name="MaxViewLevel"	value="6">' +
		'			</object>' +
		'		</td>' +
		'	</tr>' +
		'</table>' +
		'<scr'+'ipt language="javascript" event="Initialized(sender)" for="CMiViewer1" type="text/javascript" src="polygon.js"></scr'+'ipt>';

		ID_PreMsg.outerHTML = "";
	}
	else
	{
		var mh	= (bExplorer ? document.body.clientHeight : window.innerHeight);
		var mw	= (bExplorer ? document.body.clientWidth  : window.innerWidth );

		d.innerHTML = 
		'<table cellpadding=0 cellspacing=0 width=100% height='+ hh +' bgcolor='+ hbc +'></table>' +
		'<applet' +
		' name="mainApplet"' +
		' code="mivj.MivjApplet.class" ' +
		' codebase= "./"' +
		' archive="MivjApplet2.jar" ' +
		' bkcolor= ' + mbc +
		' width= ' + mw +
		' height=' + mh  +
		' viewlevel="0"' +
		' oncontextmenu="return false"' +
		' userAgent=' + navigator.userAgent  +
		' >' +
		' <param name=highlight value=on>' +
		' <param name=target value=1>' +
		' <param name=slidercolor value=black2>' +
		' <param name=nonclickableWarning value=off>' +
		' </applet>';
	}
}
