//load unobtrusively
window.onload=function(){
}

/* insert FLV object code function by Jon
Usage: insertVideo('div id','width in pxls','height in pxls','location of player.swf','location of skin','location of flv.flv','play on load(boolean)','rewind when finished(boolean)')
workds in all broswers thus far
this function also sets the 'targetDiv' s width & height with inline styles
*/
function insertVideo(targetDiv,width,height,playerUrl,skinUrl,flvUrl,autoPlay,autoRewind){
	document.getElementById(targetDiv).innerHTML = '<object style="width:'+width+'px;height:'+height+'px;" type="application/x-shockwave-flash" data="'+playerUrl+'" width="' +width + '" + height="' +width + '"' + 'id=""> <param name="movie" value="'+playerUrl+'" /> <param name="allowScriptAcess" value="sameDomain" /> <param name="quality" value="best" /> <param name="bgcolor" value="#ffffff" /> <param name="scale" value="noScale" /> <param name="salign" value="TL" /> <param name="wmode" value="transparent" /> <param name="FlashVars" value="&MM_ComponentVersion=1&skinName='+skinUrl+'&streamName='+flvUrl+'&autoPlay='+autoPlay+'&autoRewind='+autoRewind+'" /> </object>';
}

//'meet stone' video function
function playMovie() {
var currentPage = location.href;
location.href = currentPage + "#top-of-page";
//play video
                     //orignal value = 510
insertVideo('video','515','346','/f/players/FLVPlayer_Progressive.swf','/f/players/Corona_Skin_3','/images/media/meetstone.flv','true','false');
}
