/*
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
code language:          javascript
folder name:            files/js
class name:             project
class type:             static
version:                1.0
date:                   20110518
copyright:              massimo cardascia
url:                    www.plustic.de / www.dot-control.com
code style:		whitesmiths style variant - 8 spaces tab - http://en.wikipedia.org/wiki/indent_style
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
*/

///*	class definition /////////////////////////////////////////////////////////////////////////////////////
function Project()
	{
///*    class versioning /////////////////////////////////////////////////////////////////////////////////////
	Project.__s_classVersion = "5.00";
	Project.__s_className = "DCJS";
	Project.__s_classType = "class";

///*    class properties /////////////////////////////////////////////////////////////////////////////////////
	Project.o_mediaLoader;			///h : stores media loader

///*    class system init ////////////////////////////////////////////////////////////////////////////////////
	Project.f_initSystem = function()
		{
///*		wait for dom
		jQuery(document).bind("ready", Project.f_init);

///*		unload function used for reload back button problem
		jQuery(window).unload(function(){});
		}

///*    class constructor ////////////////////////////////////////////////////////////////////////////////////
	this.f_construct = function()
		{
		}
	this.f_construct();

///*    public static functions //////////////////////////////////////////////////////////////////////////////

///*    public functions /////////////////////////////////////////////////////////////////////////////////////

///*    pivate static functions //////////////////////////////////////////////////////////////////////////////

///*	------------------------------------------------------------------------------------------------------
	/**
	 * init all data later used in project. putting all data and easy to acces vars, arrays or
	 * data storages. interface to project backend if existing.
	 *
	 * @access private
	 * @return void
	 *
	*/
	Project.f_init = function()
		{
		///h : clean url
		Project.f_cleanURL();

		///h : init loading of images
		Project.f_initDisplay();

		///h : init loading of images
		Project.f_initMediaLoader();

		///h : page template system
		DCJS_pageTemplateSystem.f_initPageTemplate();
		}

///*	------------------------------------------------------------------------------------------------------
	/**
	 * init all data later used in project. putting all data and easy to acces vars, arrays or
	 * data storages. interface to project backend if existing.
	 *
	 * @access private
	 * @return void
	 *
	*/
	Project.f_initDisplay = function()
		{
		}


///*	------------------------------------------------------------------------------------------------------
	/**
	 * init all data later used in project. putting all data and easy to acces vars, arrays or
	 * data storages. interface to project backend if existing.
	 *
	 * @access private
	 * @return void
	 *
	*/
	Project.f_cleanURL = function()
		{
		///h : hide all initially
		DCJS_request.f_cleanURL();
		}

///*	------------------------------------------------------------------------------------------------------
	/**
	 * init all data later used in project. putting all data and easy to acces vars, arrays or
	 * data storages. interface to project backend if existing.
	 *
	 * @access private
	 * @return void
	 *
	*/
	Project.f_updateStatus = function()
		{
		///h : update menu hilite
		Project.f_hiliteMenu();
		}

///*	------------------------------------------------------------------------------------------------------
	/**
	 * init all data later used in project. putting all data and easy to acces vars, arrays or
	 * data storages. interface to project backend if existing.
	 *
	 * @access private
	 * @return void
	 *
	*/
	Project.f_hiliteMenu = function()
		{
		///h : properties
		var $s_status;
		var $s_path;
		var $a_dom;
		var $jqo_element;

		///h : remove underline
		$a_dom = jQuery("#content_menu li");
		jQuery.each($a_dom, function($i_index, $o_value)
			{
			$jqo_element = jQuery($o_value);
			$jqo_element.css("text-decoration", "none");
			});

		///h : add specific underline
		$jqo_element = null;
		$s_status = DCJS_request.f_getStatus();
		$s_path = DCJS_request.f_getPath();
		if($s_status == "boys")
			{
			$jqo_element = jQuery($a_dom[0]);
			}
		else if($s_status == "girls")
			{
			$jqo_element = jQuery($a_dom[1]);
			}
		else if($s_path == "references")
			{
			$jqo_element = jQuery($a_dom[2]);
			}
		else if($s_path == "contact")
			{
			$jqo_element = jQuery($a_dom[3]);
			}
		if($jqo_element != null)
			{
			$jqo_element.css("text-decoration", "underline");
			}
		}

///*	------------------------------------------------------------------------------------------------------
	/**
	 * init all data later used in project. putting all data and easy to acces vars, arrays or
	 * data storages. interface to project backend if existing.
	 *
	 * @access private
	 * @return void
	 *
	*/
	Project.f_initMediaLoader = function()
		{
		///h : hide content
		//jQuery('#content_data').css('display', 'none');

		///h : create media loader object
		Project.o_mediaLoader = new DCJS_mediaLoader();
		Project.o_mediaLoader.f_addMedia(jQuery("#content_data img"));
		Project.o_mediaLoader.f_start();

		//h : show content
		//jQuery('#content_data').css('display', 'block');
		}

///*    private functions ////////////////////////////////////////////////////////////////////////////////////

        }

///*    direct execution /////////////////////////////////////////////////////////////////////////////////////
Project();
Project.f_initSystem();


/*
--------------------------------------------------------------------------------------------------------------
description:
--------------------------------------------------------------------------------------------------------------
project is the main class of the dclib php framework.
project store all the main functions and is used as global wrappert to hold important functions and vars.
--------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------
events:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------
getter properties:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------
usage:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
*/
