/***
 * How to use this bundle file: define your own bundle object AFTER the definition of LLDL.bundle, 
 * then go to the end of the file and create a shortcut variable that doesn't already exist!!!
 * 
 */
//define th base namespace
if (typeof LLDL == "undefined"){
  var LLDL = {};
}
LLDL.bundle = {
  DEBUG: false,    
  activity_footer_text : "",	
  activity_ok : "OK",
  activity_yes : "Yes",
  activity_no : "No", 
  activity_login : "Enter",  
  activity_logout : "Logout",
  activity_send: "Send",
  activity_username: "Your name: ", 
  activity_words: "Words ",
  activity_searchgo: "Go",
  activity_searchreturn: "return",
  activity_score: "Score: ",
  activity_showscore: "Show Score",
  activity_hidescore: "Hide Score",
  activity_username_warning: "user name is empty",  
  activity_back : "Back",
  activity_error_message:"The session has expired, please re-enter this page.",
  activity_type_message:"type your message here",
  activity_list_messages: "the list of messages",
  chat_instruction : "To chat to your partner, type a message into the box below and click \"Send\"",
  flax_login_heading : "Flax Activity Login",  
  flax_registration_heading : "Flax Activity Registration",  
   
  /** DOM element ids used in LLDL.js */
  gst_login_btn: "guestloginbutton",
  signupflax_btn: "signupbutton",
  login_btn: "loginbutton",
  reg_btn: "registerbutton",
  portal_panel: "portal_panel",
  reg_fm: "registerform",
  login_fm: "loginform",
  login_uname: "loginusername",
  reg_uname: "regusername",
  login_passwd: "loginpassword",
  reg_passwd: "regpassword",
  reg_re_passwd: "regreenterpasswd",
  invalid_login: "invalidlogin",
  invalid_reg: "invalidregister",
  captcha_response: "captcha_response",
  admin_panel: "adminpanel_",
  login_link: "loginlink_",
  //session cookie names
  login_username: "logingusername_"
};
/********************** DEFINE YOUR OWN BUNDLE OBJECTS BELOW THIS LINE **********************************/
LLDL.bundle.BuildCollection = {
//category types: 
//c0. flaxcoll: FLAX standard collections + contributed collections
//c1. publicshare: shared(collections shared within an institution - only availabe in Moodle)
//c2. public: finished(collections only belongs to a particular user - not shared with others)
//c3. private: built - can be used and in the same time can also be edited
//c4. tobuild: incomplete (cannot be used, ie, needs to build)
    c0:'flaxcoll',
    c1:'publicshare',
    c2:'public',//in flax-library.xsl, keyword 'public' is used to filter registered-user-created collections
    c3:'private',
    c4:'tobuild',

   // Collection list label names
   label_c0: 'Collections distributed with FLAX',
   label_c1: 'Collections shared within your institution',
   label_c2: 'My finished collections',
   label_c2_mdl : 'Collections available to your students',
   label_c3: 'My collections under construction',
   choosecoll : 'Choose collection',
   chooseactivity: 'Choose activity type',
	separate_paragraph_instruction: '(Use blank lines to separate paragraphs)',
	
	newcollname:'newcollname',
	newcolltitle:'newcolltitle',
	newcollcategory:'newcollcategory',
	
	collnamelist:'collnamelist',
	copyright_notice: 'Before you include any document in your collection, please ensure that you have copyright permission to do so.',
	move_coll_notice: 'To make this collection available to students, drag it into the area above.',
    move_coll_notice_mdl: 'To make this collection available to students, drag it into the area above.<br/>' +
    		'Collections in the "Your finished collections" section are available to your students only,<br/>' +
    		'while those in "Collections shared within your institution" are shared with other teachers.<br/>' +
    		'When the collection is drag-droped in either of the section, close the window, <br/>' +
    		'go back to the course page. Click the button "Select a FLAX collection" or "Design exercise", <br/>' +
    		'you will see the collection you just built.<br/>',
    fail_build_notice: 'Collection didn\'t build properly.<br/>Try to re-build it. If it still fails, contact your system administrator.<br/>',
	none_coll_notice: 'There are no collections in this category',
	managemycoll: 'Manage my collections'
};

/******* All global shortcut variables MUST be defined here to ensure conflicts free!!! ************/
var lb = LLDL.bundle,
yud = YAHOO.util.Dom,
yue = YAHOO.util.Event,
yuc = YAHOO.util.Connect,
yug = YAHOO.util.Get,
logger = YAHOO.log;

var lbb = LLDL.bundle.BuildCollection;
LLDL.Bean = {};//used by BeanObjects.js

