/**
 * This file contains config variables and functions that will be used in most scripts.
 *
 * @author Herman Bredewoud
 * @version 1.00
 * @name Config Script
 */
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Array filled with the paths of every type.
var CONF_aDir					= Array();

// Strings of the layout content id's
var CONF_sIDContent_content		= 'content_content';
var CONF_sIDContent_header		= 'content_header';
var CONF_sIDContent_menu		= 'content_headermenu';
var CONF_sIDContent_submenu		= 'content_menu';
var CONF_sIDContent_footer		= 'content_footer';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Set the paths of some source directories.
CONF_setDir('dir_items'					,'content_items/');

CONF_setDir('dir_img'					,'content_images');
CONF_setDir('dir_img_logos'				,'content_images/logos/');
CONF_setDir('dir_img_backgrounds'		,'content_images/backgrounds/');
CONF_setDir('dir_img_menu'				,'content_images/menu/');

CONF_setDir('dir_javascripts'			,'javascripts/');

CONF_setDir('dir_css'					,'gui_css/');

CONF_setDir('dir_php_pages'				,'content_pages/');
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Boolean to enable Dropdown menu
var CONF_bIncMenuDrop			= true;

// Boolean to enable the PNG fix for IE 5.5 and 6.
var CONF_bIncPNGFix				= true;

// Boolean for allowing preloading of images.
var CONF_bIncPreloadImage		= false;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
*	This function will return the directorty requested.
*
*	@param string a_sDir
*/
function CONF_setDir(a_sDir, a_sPath){
	CONF_aDir[a_sDir] = a_sPath;
}

/**
*	This function will return the directorty requested.
*
*	@param string a_sDir
*/
function CONF_getDir(a_sDir){
	if(CONF_aDir[a_sDir]!=""){
		return CONF_aDir[a_sDir];
	}else{
		alert("Source directory returned empty using index: "+a_sDir+".\nPlease contact your administrator to correct this problem.");
	}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
