<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GenerateYouTubeObject.aspx.cs" Inherits="GenerateYouTubeObject" %>

function embedObject() {
	document.write('<object width=\"334\" height=\"278\"><param name=\"YouTubePlayer\" id=\"YouTubePlayer\" value=\"http://www.youtube.com/v/<%=Request["YouTubeID"].ToString() %>&rel=0\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/<%=Request["YouTubeID"].ToString() %>&rel=0\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"334\" height=\"278\"></embed></object>');

}

// execute!
embedObject();

