/**
 * 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_menu';
var CONF_sIDContent_submenu		= 'content_submenu';
var CONF_sIDContent_footer		= 'content_footer';

var CONF_sWebURL				= 'http://www.drymate.nl/';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Set the paths of some source directories.
CONF_setDir('dir_media'					,'/content_media/');

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'			,'/saillantie/donkervoort/javascripts/');
CONF_setDir('dir_javascripts'			,'/app_javascripts/');

CONF_setDir('dir_css'					,'/gui_css/');

CONF_setDir('dir_php_pages'				,'/content_pages/');

CONF_setDir('dir_app_objects'			,'/app_objects/');
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Booleans used for including javascript files.
var CONF_bIncPNGFix				= true;		// Boolean to enable the PNG fix for IE 5.5 and 6.
var CONF_bIncSWF				= false;	// Boolean to enable SWF.
var CONF_bIncSWFac				= true;		// Boolean to enable SWF AC.

var CONF_bLoader				= true;	// Boolean to show the loader on an AJAX event.
var CONF_bSWF					= false; // Check the source if there are flash items in AJAX events.
var CONF_bPreloadImage			= true; // Boolean to preload images or not.

// Path to the flash player
var CONF_sSWFplayer				= CONF_getDir('dir_app_objects')+'flvplayer/flvplayer.swf';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
*	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.");
	}
}

function CONF_getURL() {
	return CONF_sWebURL;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////