function InsertCollisionSound() {
document.write('<div class="multimedia" style="text-align:center">\n');
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="150" height="20">\n');
document.write('<param name="src" value="../audio/collision.mov" />\n');
document.write('<param name="autoplay" value="false" />\n');
document.write('<param name="height" value="20" />\n');
document.write('<param name="width" value="150" />\n');
document.write('<param name="controller" value="true" />\n');
document.write('<embed src="../audio/collision.mov" title="Requires Quicktime" width="150" height="20" autostart="false" pluginspage="http://www.apple.com/quicktime/download/"></embed>\n');
document.write('</object>\n');
document.write('</div>\n');
};


function InsertWhistleSound() {
document.write('<div class="multimedia" style="text-align:center">\n');
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="150" height="20">\n');
document.write('<param name="src" value="../audio/allhands.mov" />\n');
document.write('<param name="autoplay" value="false" />\n');
document.write('<param name="height" value="20" />\n');
document.write('<param name="width" value="150" />\n');
document.write('<param name="controller" value="true" />\n');
document.write('<embed src="../audio/allhands.mov" title="Requires QuickTime" align="middle" autostart="false" pluginspage="http://www.apple.com/quicktime/download/" height="20" width="150"></embed>\n');
document.write('</object>\n');
document.write('</div>\n');
};

function InsertKamaishiMovie(version) {
if (version.match(/mp4/) && !(version.match(/Large/))) {
	var wide = 640;
	var high = 500;
	var res ="Medium resolution";
	}
	else if (version.match(/mp4/) && version.match(/Large/))
	{
	var wide = 720;
	var high = 500;
	var res ="High resolution";
	}
	else
	{
	var wide = 320;
	var high = 250;
	var res ="Low resolution";
	};
document.write('<div class="multimedia" style="text-align:center">\n');
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' + wide + '" height="' + high + '">\n');
document.write('<param name="src" value="../videos/' + version + '" />\n');
document.write('<param name="autoplay" value="false" />\n');
document.write('<param name="height" value="' + high + '" />\n');
document.write('<param name="width" value="' + wide + '" />\n');
document.write('<param name="controller" value="true" />\n');
document.write('<embed src="../videos/' + version + '" title="Requires QuickTime" align="middle" autostart="false" pluginspage="http://www.apple.com/quicktime/download/" height="' + high + '" width="' + wide + '"></embed>\n');
document.write('</object>\n');
document.write('</div>\n');
document.write('<h4>Version:&nbsp;' + res +'</h4>\n');
};

function InsertSlideShow(version) {
if (version.match(/mov/) && version.match(/lo/))
	{
		var wide = 352;
		var high = 308;
		var res ="Low resolution";
	}
	else if (version.match(/mov/))
	{
		var wide = 640;
		var high = 500;
		var res ="High resolution Quicktime";
	}
	else if (version.match(/mp4/) && version.match(/Large/))
	{
		var wide = 770;
		var high = 590;
		var res ="High resolution";
	}
	else if (version.match(/mp4/))
	{
		var wide = 720;
		var high = 500;
		var res ="Medium resolution";
	}
	else
	{
		var wide = 640;
		var high = 500;
		var res ="iPod/iTunes";
	};
document.write('<div class="multimedia" style="text-align:center">\n');
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' + wide + '" height="' + high + '">\n');
document.write('<param name="src" value="../videos/' + version + '" />\n');
document.write('<param name="autoplay" value="false" />\n');
document.write('<param name="height" value="' + high + '" />\n');
document.write('<param name="width" value="' + wide + '" />\n');
document.write('<param name="controller" value="true" />\n');
document.write('<embed src="../videos/' + version + '" title="Requires QuickTime" align="middle" autostart="false" pluginspage="http://www.apple.com/quicktime/download/" height="' + high + '" width="' + wide + '"></embed>\n');
document.write('</object>\n');
document.write('</div>\n');
document.write('<h4>Version:&nbsp;' + res +'</h4>\n');
};

function InsertAlfordMovie(version) {
if (version.match(/mov/))
	{
		var wide = 950;
		var high = 560;
		var res ="High resolution";
	}
	else
	{
		var wide = 480;
		var high = 292;
		var res ="iPod/iTunes";
	};
document.write('<div class="multimedia" style="text-align:center">\n');
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' + wide + '" height="' + high + '">\n');
document.write('<param name="src" value="../videos/' + version + '" />\n');
document.write('<param name="autoplay" value="false" />\n');
document.write('<param name="height" value="' + high + '" />\n');
document.write('<param name="width" value="' + wide + '" />\n');
document.write('<param name="controller" value="true" />\n');
document.write('<embed src="../videos/' + version + '" title="Requires QuickTime" align="middle" autostart="false" pluginspage="http://www.apple.com/quicktime/download/" height="' + high + '" width="' + wide + '"></embed>\n');
document.write('</object>\n');
document.write('</div>\n');
document.write('<h4>Version:&nbsp;' + res +'</h4>\n');
};


function InsertCollisionMovie(version) {
if (version.match(/mp4/))
	{
		var wide = 720;
		var high = 500;
		var res ="High resolution";
	}
	else
	{
		var wide = 320;
		var high = 250;
		var res ="iPod/iTunes";
	};
document.write('<div class="multimedia" style="text-align:center">\n');
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' + wide + '" height="' + high + '">\n');
document.write('<param name="src" value="../videos/' + version + '" />\n');
document.write('<param name="autoplay" value="false" />\n');
document.write('<param name="height" value="' + high + '" />\n');
document.write('<param name="width" value="' + wide + '" />\n');
document.write('<param name="controller" value="true" />\n');
document.write('<embed src="../videos/' + version + '" title="Requires QuickTime" align="middle" autostart="false" pluginspage="http://www.apple.com/quicktime/download/" height="' + high + '" width="' + wide + '"></embed>\n');
document.write('</object>\n');
document.write('</div>\n');
document.write('<h4>Version:&nbsp;' + res +'</h4>\n');
};

function InsertKiddMovie(version) {
if (version.match(/mov/) && version.match(/mini/))
	{
		var wide = 320;
		var high = 260;
		var res ="Low resolution";
	}
	else if (version.match(/mp4/) && version.match(/Large/))
	{
		var wide = 720;
		var high = 500;
		var res ="High resolution";
	}
	else
	{
		var wide = 640;
		var high = 450;
		var res ="iPod/iTunes";
	};
document.write('<div class="multimedia" style="text-align:center">\n');
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' + wide + '" height="' + high + '">\n');
document.write('<param name="src" value="../videos/' + version + '" />\n');
document.write('<param name="autoplay" value="false" />\n');
document.write('<param name="height" value="' + high + '" />\n');
document.write('<param name="width" value="' + wide + '" />\n');
document.write('<param name="controller" value="true" />\n');
document.write('<embed src="../videos/' + version + '" title="Requires QuickTime" align="middle" autostart="false" pluginspage="http://www.apple.com/quicktime/download/" height="' + high + '" width="' + wide + '"></embed>\n');
document.write('</object>\n');
document.write('</div>\n');
document.write('<h4>Version:&nbsp;' + res +'</h4>\n');
};

function InsertSavageMovie(version) {
if (version.match(/mp4/) && version.match(/Medium/))
	{
		var wide = 640;
		var high = 500;
		var res ="Medium resolution";
	}
	else if (version.match(/mp4/) && version.match(/Large/))
	{
		var wide = 768;
		var high = 600;
		var res ="High resolution";
	}
	else if (version.match(/mp4/) && version.match(/Complete/))
	{
		var wide = 640;
		var high = 500;
		var res ="Medium resolution";
	}
	else if (version.match(/m4v/) && version.match(/Complete/))
	{
		var wide = 473;
		var high = 400;
		var res ="iPod/iTunes";
	}
	else
	{
		var wide = 474;
		var high = 400;
		var res ="iPod/iTunes";
	};
document.write('<div class="multimedia" style="text-align:center">\n');
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' + wide + '" height="' + high + '">\n');
document.write('<param name="src" value="../videos/' + version + '" />\n');
document.write('<param name="autoplay" value="false" />\n');
document.write('<param name="height" value="' + high + '" />\n');
document.write('<param name="width" value="' + wide + '" />\n');
document.write('<param name="controller" value="true" />\n');
document.write('<embed src="../videos/' + version + '" title="Requires QuickTime" align="middle" autostart="false" pluginspage="http://www.apple.com/quicktime/download/" height="' + high + '" width="' + wide + '"></embed>\n');
document.write('</object>\n');
document.write('</div>\n');
document.write('<h4>Version:&nbsp;' + res +'</h4>\n');
};

