// This function is for the upload points
// ======================================

function set_upload_point(id) {
   // make the upload point visible   
   form = document.getElementById('upload_point_form');
   Element.show(form)
   // form.style.visibility = 'visible';
   // set the id of the upload point
   upload_id = document.getElementById('upload[upload_point_id]');
   upload_id.value = id;
   //
   return true;
}

// this is for embedding a movie in a page
function embed_video(file_name, width, height) {
   var myQTObject = new QTObject(file_name, "", width, height);
   myQTObject.addParam("autostart", "false");
   myQTObject.addParam("controller", "true");
   myQTObject.write();
   return true;
}

function embed_flash(file_name, div_id) {
   var fo = new SWFObject(file_name, "", "200", "100", "6.0.65");
   fo.write(div_id);
   return true;
}

function jump_to_anchor(anchor) {
   location.href = "#" + anchor;
   return false
}