// Random YouTube Generator
// The following will choose a random YouTube WADA Video on the Sidebar on the pages that are missing items in the sidebar.
// The pages MUST have the <div class="randomYouTube"> in order for it to work.
$(document).ready(function() {
	//Variables
	var youtubeVid = new Array();
	var randomVid = Math.floor(Math.random() * (5))
	
	//YouTube Video ID's (i.e youtube.com/watch?v=Video_id_Here OR youtube.com/v/Video_id_Here&hl=en)
	youtubeVid[0] = "RMLrYM67iIU";
	youtubeVid[1] = "iK9ylIYMroM";
	youtubeVid[2] = "YQfkm_SjQ2o";
	youtubeVid[3] = "wsag87dn1eA";
	youtubeVid[4] = "Dd_xppxnHBY";
	
	//Create YouTube Script
	$(".randomYouTube").append('<object width="369" height="306"><param name="movie" value="http://www.youtube.com/v/'+youtubeVid[randomVid]+'&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/'+youtubeVid[randomVid]+'&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="369" height="309"></embed></object>');
});