/*
YouTube Poster Movie Swapper, version 2008-04-17 
Written by David Battino, www.batmosphere.com
Replaces a clicked image with a YouTube movie
OK to use if this notice is included
*/

function viewTube(fuEvent,triggerID,movieURL,movieWth,movieHt) {
	var tempTab = fuEvent.parentNode.parentNode.parentNode;
	// var tempTab = fuEvent.parentNode.parentNode.parentNode;
	var embedcode = "<object width='" + movieWth + "&autostart=1' height='" + movieHt + "'>";
	embedcode += "<param name='movie' value='" + movieURL + "'></param>";
	embedcode += "<param name='wmode' value='transparent'></param>";	
	embedcode += "<embed src='" + movieURL + "&autoplay=1' type='application/x-shockwave-flash' wmode='transparent' width='" + movieWth + "' height='" + movieHt + "'></embed></object>";
    //document.getElementById(triggerID).innerHTML=embedcode;
	//document.getElementById(triggerID).innerHTML=embedcode;
	tempTab.getAttribute('triggerID').innerHTML=embedcode;
  }

/*
function viewTube(triggerID,movieURL,movieWth,movieHt) {
	var embedcode = "<object width='" + movieWth + "&autostart=1' height='" + movieHt + "'>";
	embedcode += "<param name='movie' value='" + movieURL + "'></param>";
	embedcode += "<param name='wmode' value='transparent'></param>";
	embedcode += "<param name='allowFullScreen' value='true'></param>";
	embedcode += "<param name='allowscriptaccess' value='always'></param>";
	embedcode += "<embed src='" + movieURL + "&autoplay=1' type='application/x-shockwave-flash' wmode='transparent' width='" + movieWth + "' height='" + movieHt + "'></embed></object>";
    document.getElementById(triggerID).innerHTML=embedcode;
  }
*/