// Created by iWeb 3.0.1 local-build-20090604

//videoPath parameter should be a string containing the full path to the video file to be played in the site
//also, it should be html-friendly text
function writeMovie(videoPath)
{
	var browser=navigator.appName;
	if(browser == "Microsoft Internet Explorer")
	{
		document.write('<object id="id1" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="647" height="380" style="height: 380px; position: middle; width: 647px; z-index: 1; "><param name="src" value="' + videoPath + '" /><param name="controller" value="true" /><param name="autoplay" value="false" /><param name="scale" value="tofit" /><param name="volume" value="100" /><param name="loop" value="false" /></object>');
	}
	else if(browser == "IPhone")
	{
		document.write('<object id="id1" type="video/quicktime" width="647" height="380" style="height: 380px; left: 176px; position: absolute; top: 118px; width: 647px; z-index: 1; "><param name="src" value="life_video_player_files/Sunday%2011-16-8.jpg"/><param name="target" value="myself"/><param name="href" value="' + videoPath + '"/><param name="controller" value="true"/><param name="scale" value="tofit"/></object>');
	}
	else
	{
		document.write('<object id="id1" type="video/quicktime" width="647" height="380" data="' + videoPath + '" style="height: 380px; position: middle; width: 647px; z-index: 1; "><param name="src" value="' + videoPath + '"/><param name="controller" value="true"/><param name="autoplay" value="false"/><param name="scale" value="tofit"/><param name="volume" value="100"/><param name="loop" value="false"/></object>');
	}
}
