
function writeHeaderBar()
{
 	document.write('<table  border="0" cellpadding="0" style="border-collapse: collapse; border-width: 1; " width="100%" height="480" bordercolor="#333333">');
	return;
}
function writeHeaderBarInner()
{
 	document.write('<table  border="0" cellpadding="0" class="main" style="border-collapse: collapse; border-width: 1; " width="100%" height="480" bordercolor="#333333">');
	return;
}
function writeMenuBar()
{
      document.write('<td width="30%" height="20" bgcolor="#dcdcdc" align="center"></td>');
      document.write('<td width="70%" height="20" bgcolor="#dcdcdc" align="center">');
      		document.write('<ul id="sddm">');
				document.write('<li><a href="index.html">Home</a>');
				document.write('</li>');
				document.write('<li><a href="Wedding_Galleries.html" onmouseover="mopen(\'m2\')" onmouseout="mclosetime()">Galleries</a>');
					document.write('<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">');
					document.write('<a href="Wedding_Galleries.html">Weddings</a>');
					document.write('<a href="Design_Galleries.html">Album Designs</a>');
					document.write('<a href="Engagement_Galleries.html">Engagements</a>');
					document.write('</div>');
				document.write('</li>');
				document.write('<li><a href="Videos.html" onmouseover="mopen(\'m3\')" onmouseout="mclosetime()">Videos</a>');
				document.write('</li>');
				document.write('<li><a href="http://www.tuanhostudio.com/blog">Blog</a>');
				document.write('</li>');
				document.write('<li><a href="About.html">About us</a>');
				document.write('</li>');
				document.write('<li><a href="Contact.html">Contact</a>');
				document.write('</li>');
			document.write('</ul>');
      document.write('</td>');
      document.write('<td  width="1%" height="20" bgcolor="#dcdcdc" align="center"></td>');
 
}
function writeMenuBarInner()
{
        document.write('<td width="30%" height="20" bgcolor="#dcdcdc" align="center"></td>');
      document.write('<td width="70%" height="20" bgcolor="#dcdcdc" align="center">');
      		document.write('<ul id="sddm">');
				document.write('<li><a href="../../index.html">Home</a>');
				document.write('</li>');
				document.write('<li><a href="../../Wedding_Galleries.html" onmouseover="mopen(\'m2\')" onmouseout="mclosetime()">Galleries</a>');
					document.write('<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">');
					document.write('<a href="../../Wedding_Galleries.html">Weddings</a>');
					document.write('<a href="../../Design_Galleries.html">Album Designs</a>');
					document.write('<a href="../../Engagement_Galleries.html">Engagements</a>');
					document.write('</div>');
				document.write('</li>');
				document.write('<li><a href="../../Videos.html" onmouseover="mopen(\'m3\')" onmouseout="mclosetime()">Videos</a>');
				document.write('</li>');
				document.write('<li><a href="http://www.tuanhostudio.com/blog">Blog</a>');
				document.write('</li>');
				document.write('<li><a href="../../About.html">About us</a>');
				document.write('</li>');
				document.write('<li><a href="../../Contact.html">Contact</a>');
				document.write('</li>');
			document.write('</ul>');
      document.write('</td>');
      document.write('<td width="0%" height="20" bgcolor="#dcdcdc" align="center"></td>');
}
function writeContainerShellBegin()
{
 document.write('<td width="100%" height="480" colspan="3" align="center">');
}
function writeContainerShellEnd()
{
 document.write('</td>');
}

function writeTrailer()
{
	document.write('<p align="center"><font size="2">Tuan Ho Video &amp; StudioŠ Production. Cell(English): 714.722.8736. Cell(VietNamese): 714.721.5138</font></p>');

}
function writeTrailerInner()
{
	document.write('<p align="center"><font size="2">Tuan Ho Video &amp; StudioŠ Production. Cell(English): 714.722.8736. Cell(VietNamese): 714.721.5138</font></p>');

}
function writeBanner()
{
	document.write('<div alig="center">');
  	document.write('<table  border="0" cellpadding="2" height="3" width="100%" style="border-collapse: collapse; border-width: 1;">');
    	document.write('<tr>');
      	document.write('<td height="3" width="318"><h1>');
      	document.write('<a href="index.html">');
      	document.write('<img border="0" src="images/logo.bmp" width="318" height="100"></a></h1></td>');
    	document.write('</tr>');
  	document.write('</table>');
	document.write('</div>');
}
function writeBannerInner()
{
	document.write('<div alig="center">');
  	document.write('<table  border="0" cellpadding="2" height="3" width="100%" style="border-collapse: collapse; border-width: 1;">');
    	document.write('<tr>');
      	document.write('<td height="3"><h1>');
      	document.write('<a href="../../index.html">');
      	document.write('<img border="0" src="../../images/logo.bmp" width="318" height="100"></a></h1></td>');
    	document.write('</tr>');
  	document.write('</table>');
	document.write('</div>');
}

function setVideo(file)
{

	if (navigator.platform == "Win32")
	{
		TRAILER_VIDEO.filename=file + ".wmv";
		TRAILER_MOVIE.src = file + ".wmv";
	}
	else
	{
		var v1 = document.getElementById("TRAILER_VIDEO");
		var v2 = document.getElementById("TRAILER_MOVIE");
		if ( v1 != null )
		{
			v1.SetURL(file + ".mov");
		}
		if ( v2 != null )
		{
			v2.SetURL(file + ".mov");
		}
	}
	
}
function writeVideo()
{
	if (navigator.platform == "Win32")
	{
	  document.write('<OBJECT id="TRAILER_VIDEO" width="320" height="285" name="TRAILER_VIDEO"'); 
      document.write('classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'); 
      document.write('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');
      document.write('standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">')
      document.write('<param name="fileName" value="http://www.tuanhostudio.com/videos/v1.wmv">');
      document.write('<param name="animationatStart" value="true">');
	  document.write('<param name="transparentatStart" value="true">');
      document.write('<param name="autoStart" value="true">');
      document.write('<param name="showControls" value="true">');
      document.write('<param name="loop" value="true">');
      document.write('<EMBED type="application/x-mplayer2"');
      document.write('pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"');
      document.write('id="TRAILER_MOVIE" name="TRAILER_MOVIE" displaysize="4" autosize="-1"'); 
      document.write('bgcolor="darkblue" showcontrols="true" showtracker="-1"'); 
      document.write('showdisplay="0" showstatusbar="-1" videoborder3d="-1" width="320" height="285"');
      document.write('src="http://www.tuanhostudio.com/videos/v1.wmv" autostart="true" designtimesp="5311" loop="true">');
      document.write('</EMBED>');
	  document.write('</OBJECT>');
	
	}
	else
	{
 		QT_WriteOBJECT('videos/v1.mov','320','250','','obj#id','TRAILER_VIDEO','emb#id','TRAILER_MOVIE','obj#name','TRAILER_VIDEO','emb#name','TRAILER_MOVIE','autoplay','true','enablejavascript','true');
	}
}
