function clickVideo (theId,theVideo) {

	var theZoom = theSide = theFullUrl = '';
	var theWidth = '240';
	var theHeight = '205';
	var autoPlay = 'true';

	var theUrl = 'video.swf?video=videos/'+theVideo+'.swf&amp;zoom='+theZoom+'&amp;width='+theWidth+
		'&amp;height='+theHeight+'&amp;side='+theSide+'&amp;fullurl='+theFullUrl+'&amp;autoplay='+autoPlay+
		'&amp;videoid='+theId+'&amp;resetimage='+theVideo;
	
	var theHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
	theHTML += 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ';
	theHTML += 'width="'+theWidth+'" height="'+theHeight+'" id="video-object">';
	theHTML += '	<param name="allowScriptAccess" value="sameDomain" />';
	theHTML += '	<param name="movie" value="'+theUrl+'" />';
	theHTML += '	<param name="loop" value="false" />';
	theHTML += '	<param name="menu" value="false" />';
	theHTML += '	<param name="quality" value="autohigh" />';
	theHTML += '	<param name="scale" value="noscale" />';
	theHTML += '	<param name="salign" value="lt" />';
	theHTML += '	<param name="wmode" value="transparent" />';
	theHTML += '	<embed src="'+theUrl+'" loop="false" menu="false" quality="autohigh" ';
	theHTML += 'scale="noscale" salign="lt" wmode="transparent" width="'+theWidth+'" height="'+theHeight+'" ';
	theHTML += 'id="video-embed" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" ';
	theHTML += 'pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	theHTML += '</object>';

	document.getElementById(theId).innerHTML = theHTML;

}

function resetVideo(theId,theImage) {
	document.getElementById(theId).innerHTML = '<a href="#" onclick="clickVideo(\''+theId+'\',\''+theImage+'\');return false;"><img src="videos/'+theImage+'.jpg\" /></a>';
}
