/*A little function to include the core scripts only when it's not already loaded.  We do this by checking to see the core function names are defined. 
Written by Ari Koinuma, Sept 2008.  Thanks to Dickens Nyabuti in IT Dev for tips.  Similar code is used for Flash mp3 player embed js. 

Modeled after http://www.publicradio.org/columns/feed_widget/widget_core_include.js (Ari Koinuma, Sept 2008
A little function to include the core scripts only when it's not already loaded.  We do this by checking to see the core function names are defined. 
Adapted for Vimeo widget by Anne Breckbill November 2008
*/

function include_js(js_url) {
  document.write("\<script type=\"text/javascript\" ");
  document.write("src='" + js_url + "'");
  document.write("\>");
  document.write("\</script\>");
}

if(typeof(window["jQuery"]) == "undefined"){
  include_js("http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js");
}

if(typeof(window["VWidget"]) == "undefined"){
  include_js("http://americanpublicmedia.publicradio.org/standard/js/all_domains/jquery/custom/vimeo_widget/vimeo_widget_class.js");
}