/**
 * This file is part of
 * Kimai - Open Source Time Tracking // http://www.kimai.org
 * (c) 2006-2009 Kimai-Development-Team
 *
 * Kimai is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; Version 3, 29 June 2007
 *
 * Kimai is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Kimai; If not, see <http://www.gnu.org/licenses/>.
 */

/****************************************************************************************************
 *
 *      IMPORTANT NOTE:
 *      
 *      If you like a function to run when your extension is loaded into the extension-frame
 *      you CAN'T use the methods you'd normally use when the dom is ready build! So something like:
 *      
 *
 *      $(document).ready(function(){
 *        [do something stupid...]
 *      });
 *      
 *      
 *      ... won't work here. 
 *     This is because the dom is already finished loading BEFORE the extensions are hooked in!
 *     When You want JavaScript or jQuery to do something when your extension is loaded into its
 *     place in the *existing* DOM, you have to put a function-call *into* the content you load.
 *     You can also use the jQuery ready-funktion there!
 *
 ****************************************************************************************************/

 // set path of extension
 var flexitime_ext_path = "../extensions/ki_flexitime/";

 $(document).ready(function(){

 	var flexitime_ext_resizeTimer = null;

 	$(window).bind('resize', function() {
 	   if (flexitime_ext_resizeTimer) clearTimeout(flexitime_ext_resizeTimer);
 	   flexitime_ext_resizeTimer = setTimeout(flexitime_ext_resize, 500);
 	});

 });

