/**
 * @author damir
 */

	WEB_SITE = 'http://www.continuum.hr/';
	WEB_SITE_HR = 'http://www.continuum.hr/hr/';
	WEB_SITE_EN = 'http://www.continuum.hr/en/';

	IMAGES_DIRECTORY = 'images/';

	EXPANDED_NODE_IMAGE = 'expanded_node.gif';
	
	COLLAPSED_NODE_IMAGE = 'collapsed_node.gif';
	
	EMPTY_NODE_IMAGE = 'empty_node.gif';
	
	CHECKBOX_IMAGE_WIDTH = 18;
	
	CHECKBOX_IMAGE_HEIGHT = 18;
	
	VSCROLLBAR_WIDTH = 20;
	
	HSCROLLBAR_HEIGHT = 18;
	
	CONTROL_BORDER_COLOR = 'magenta';
	
	FONT = 'normal 8pt Verdana';
	
	//************************************
	//
	// SystemColor class
	//
	//************************************

	function SystemColor()
	{
	}

	SystemColor.ControlBorder = '#000000';
	SystemColor.ScrollBarBackgroundColor = '#FFFFFF';
	SystemColor.ScrollBarColor = '#F4F2FF';
	SystemColor.ScrollBarBorderColor = '#BBB2FF';
	SystemColor.ScrollBarMarkerColor = '#E8E5FF';

	//************************************
	//
	// Collection class
	//
	//************************************

	//************************************
	//
	// SelectionMode class
	//
	//************************************
	
	function SelectionMode()
	{
	}
		
	SelectionMode.None = 0;
	
	SelectionMode.One = 1;
	
	SelectionMode.Multiple = 2;
	
	//************************************
	//
	// Collection class
	//
	//************************************
	
	function Collection()
	{
	}
		
	Collection.DeleteElement = function(array, i)
    {
	    var j;
    	
	    try {delete array[i]} catch(e) { }
    	
	    for (j = i + 1; j < array.length; j ++) array[j - 1] = array[j];

	    array.length = array.length - 1;
    }

   Collection.AddElement = function(array, element)
    {
	    array.length = array.length + 1;

	    array[array.length - 1] = element;
    }
	
	Collection.InsertElement = function(array, i, element)
    {
	    var j;
    	
	    array.length = array.length + 1;
    	
	    for (j = array.length - 2; j >= i; i --) array[j + 1] = array[j];

	    array[i] = element;
    }
