//define target embed codes
//newer video, vimeo
var em_1 = '<object type="application/x-shockwave-flash" width="400" height="300" data="http://www.vimeo.com/moogaloop.swf?clip_id=933583&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color="><param name="quality" value="best" /><param name="allowfullscreen" value="true" /<param name="scale" value="showAll" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=933583&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=" /></object>';
				
//older video, youtube
var em_2 = '<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/hwJRTKF9MkE&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/hwJRTKF9MkE&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>';

// newer vid : vid 1 (formerly vimeo)
var vid_1 = 'intro.flv';
// news clip : vid 2 (local)
var vid_2 = 'news2.flv';
// older vid : vid 3 (formaerly youtube)
var vid_3 = 'whatisashby.flv';

//load the selected thumbail into the video target frame
function load_clip(em_id) {
	//document.getElementById('videoframe').innerHTML = eval('em_'+em_id);
	var s1 = new SWFObject("flash/mediaplayer.swf","mediaplayer","420","320","8");
	s1.addParam("allowfullscreen","true");
	s1.addVariable("width","420");
	s1.addVariable("height","320");
	s1.addVariable("file",eval('vid_'+em_id));
	s1.addVariable("autostart","true");
	s1.write("videoframe");
}
