/*
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
code language:          javascript
folder name:            files/js
class name:             project
class type:             static
version:                1.0
date:                   20120108
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(){this.f_construct();}

///*    class versioning /////////////////////////////////////////////////////////////////////////////////////
	Project.__s_classVersion = '5.00';
	Project.__s_className = 'DCJS';
	Project.__s_classType = 'class';

///*    class properties /////////////////////////////////////////////////////////////////////////////////////
	Project.__b_info = false;

///*    class system init ////////////////////////////////////////////////////////////////////////////////////
	Project.f_initSystem = function()
		{
///*		wait for document
		jQuery(window).bind('load', {}, function(){});

///*		unload function used for reload back button problem
		jQuery(window).bind('unload', {}, function(){});

///*		wait for dom
		Project.f_init();
		}

///*    class constructor ////////////////////////////////////////////////////////////////////////////////////
	Project.prototype.f_construct = function()
		{
		}

///*    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 : init display
		Project.f_initDisplay();

		///h : init resize
		//Project.f_initResize();

		///h : page template system
		//DCJS_pageTemplateSystem.f_initPageTemplate();

		///h : init menu
		//Project.f_initMenu();

		///h : check scrollbar
		Project.f_addEffects();
		
		///h : fade in
		jQuery(window).bind('load', {}, function(){Project.f_fadeIn();});
		}

///*	------------------------------------------------------------------------------------------------------
	/**
	 * 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_fadeIn_complete = function()
		{
		jQuery('#fader').css({'display':'none'});
		}

///*	------------------------------------------------------------------------------------------------------
	/**
	 * 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_fadeIn = function()
		{
		jQuery('#fader').delay(500).fadeTo(500, 0, 'easeInQuad', function(){Project.f_fadeIn_complete();});
		//jQuery('#fader').css({'opacity':0});
		}

///*	------------------------------------------------------------------------------------------------------
	/**
	 * 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_initMenu = function()
		{
		jQuery('#content_navi_menu_info').bind('click', {}, function(){Project.f_showInfo();});
		}

///*	------------------------------------------------------------------------------------------------------
	/**
	 * 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_addEffects = function()
		{
		///h : hover fx
		jQuery('a').css({'-moz-transition':'all 0.3s ease-in', '-webkit-transition':'all 0.3s ease-in', '-o-transition':'all 0.3s ease-in'});
		}


///*	------------------------------------------------------------------------------------------------------
	/**
	 * 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_initResize = function()
		{
		///h : center content
		jQuery(window).bind('resize', {}, function($o_event){Project.f_resize();});
		Project.f_resize();
		}

///*	------------------------------------------------------------------------------------------------------
	/**
	 * 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()
		{
		jQuery('html, body').animate({scrollTop:0, scrollLeft:0}, 0);
		}

///*	------------------------------------------------------------------------------------------------------
	/**
	 * 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_resize = function()
		{
		}

///*    private functions ////////////////////////////////////////////////////////////////////////////////////

///*    class init ///////////////////////////////////////////////////////////////////////////////////////////
jQuery(document).bind('ready', 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:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
*/
