/**
*   settings.js is a designer-editable file (after the 'edit here' comment)
*	it provides a central place to make settings
*	with the idea that other js files do not get modified unneccesarily
*
*	settings.js should be the first js file called in the head
*
*	where appropriate,settings should be prefixed with the name of the js file
*	in which they are used.
*
*	when a designer needs to define a new setting it should be added to the settings here
*	with a comment describing briefly what its is for
*
*	settings are viewed as constants
*	js files should not modify the settings as other js file may depend on the original setting
*	
*   compatible: all
*	@author: jon halle
*
*	$Id: settings.js,v 2.3 2004/10/20 14:04:08 jonh Exp $
*/

var CTAD_SETTINGS=new Array();

//#####################################
// edit here
//#####################################


//control whether developer error alerts popup
CTAD_SETTINGS["functions_debug"]=true;

//how many times a  question is tried before the actual answer is shown
//if check_answer is called with the "show" flag
CTAD_SETTINGS["question_attempts_before_show"]=3;	

//how many times a test question is tried before the actual answer is shown
//if check_answer is called with the "next" flag
CTAD_SETTINGS["question_attempts_before_next"]=2;	

//how many times a question is tried before the model answer is shown
//if check_answer is called with the "model" flag
CTAD_SETTINGS["question_attempts_before_model"]=1;

//set to true to use frameset for persistence even if cookies are enabled
CTAD_SETTINGS["persist_force_frameset"]=true;	

//Minimum flash version for flash.js
CTAD_SETTINGS["minimum_flash_version"]= 8;

//download page for flash - make sure for CD versions this is available offf the web!
CTAD_SETTINGS["flash_download_page"] = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";

//Level for SCO: activity
CTAD_SETTINGS["SCO_at_activity_level"] = false;

// bookmark url in vle 
CTAD_SETTINGS["persist_bookmark_vle"] = true; 

//clear incorrect checkboxes
CTAD_SETTINGS["clear_incorrect_checkboxes"] = false;

//capture mouse movement (used in floating divs and drag_n_drop)
CTAD_SETTINGS["capture_mouse_movement"]=true;

// -- VALIDATE/FEEDBACK RELATED --

// there are various feedback types specified in validate.js 
// choose namespace of one of the feedback types used in this project
// 
// NOTE THAT graded feedback only works with jscript_window or scrolling controllers
CTAD_SETTINGS["feedback_controller"] = 'document.ctad_feedback.scrolling';
//CTAD_SETTINGS['feedback_controller"] = 'document.ctad_feedback.jscript_window';

// if using jscript window please use the setting below and tell the system what is the 
// object name to be used. 
CTAD_SETTINGS["feedback_object"] = "document.getElementById('feedbackArea')";
//CTAD_SETTINGS['feedback_object"] = 'w';

// show next button in feedback?
CTAD_SETTINGS["feedback_use_next"] = true; 

// text to show in feedback controller when no answer has been provided 
CTAD_SETTINGS["feedback_no_answer"] = "You have not answered the question.";

// text to show when not all questions answered (graded feedback)
CTAD_SETTINGS["feedback_answer_all"] = "Please answer all questions"; 

// text to show when no answer is present. 
CTAD_SETTINGS["feedback_show_answer"] = "Have a look at the answer."; 

// feedback template used for jscript feedback window. 
CTAD_SETTINGS["feedback_template"] = "<div class=\"feedback_padding\"><span class=\"feedbacktext\">%feedback%</span><div class=\"feedback_button\">%button%</div></div>"; 

CTAD_SETTINGS["feedback_template_graded"] = "<div class=\"feedback_padding\">%feedback% %items%<div class=\"feedback_button\">%button%</div></div>";

CTAD_SETTINGS["feedback_graded_item"] = "<p>Question %n%</p>"; 

// try again button to be used by jscript feedback controller or other javascript controllers
CTAD_SETTINGS["button_tryagain"] = "<a href=\"javascript:document.ctad_feedback.feedback_close()\" title=\"\"><img src=\"../images/button_try_again.gif\" alt=\"\"></a>";

// close button to be used by jscript feedback controller or other javascript controllers
CTAD_SETTINGS["button_close"] = "<a href=\"javascript:document.ctad_feedback.feedback_close()\" title=\"\"><img src=\"../images/button_close2.gif\" alt=\"\"></a>";

// show answer button to be used by jscript feedback controller or other javascript controllers
CTAD_SETTINGS["button_show"] = "<a href=\"javascript:document.ctad_feedback.show_answer()\" title=\"\"><img src=\"../images/button_show_answer.gif\" alt=\"\"></a>";

// next button to be used by jscript feedback controller or other javascript controllers
CTAD_SETTINGS["button_next"] = "<a href=\"%next%\" title=\"\"><img src=\"../images/button_next.gif\" alt=\"\"></a>";

/* STICKY FOOTER SETTINGS
Don't set these, or set them to NULL/empty if no sticky footer is involved, 
or if there if you have a css only solution*/

// footer div id, for sizing content.  Should be positioned already as required (absolute/fixed to bottom)
CTAD_SETTINGS["footer_id"]='footer';

// header div id, for sizing content.  Should be positioned already as required (absolute/fixed to top). Optional
CTAD_SETTINGS["header_id"]='';

// the div you will be scrolling, this should have no positioning/sizing/padding css rules at all
CTAD_SETTINGS["scrollable_id"]='container';

// optional - just to remove margin used to prevent content being behind the footer
CTAD_SETTINGS["content_id"]='templateArea';



