/*-----------------------------------------------------------------------------
	*
	*	@copyright:_________2009, Rewe Touristik
	*	@link:______________http://www.its.de
	*	@author:____________Jung v. Matt/Neckar
	*	@function:__________fire functions / custom functions
	*
	*	@version:___________V0010
	* 	@revision:__________$Revision: 51 $
	* 	@lastmodified:______$Date: 2009-06-15 08:45:49 +0200 (Mo, 15 Jun 2009) $
	*
----------------------------------------------------------------------------------------*/
/*------------------------------------------------
	*	Adding class to html-tag to hide sections 
		on page load without flickering
--------------------------------------------------*/
document.documentElement.className += " jsLoad";

/*------------------------------------------------
	*	Fire all Functions which need to be 
		executed or initialized if DOM is loaded
--------------------------------------------------*/
// Provides conflicts between jQuery and other libs which uses the '$' function
//jQuery.noConflict();

jQuery(document).ready(function($){
	
	/*-----------------------------------------------------------------------------------*/
	/*-----|| Browser sniffing ||--------------------------------------------------------*/
	/*-----------------------------------------------------------------------------------*/
	// Internet Explorer sniffing
	var gpIESniff = $.browser.msie;
	var gpIEVersionSniff = $.browser.version;
	// IE6
	if(gpIESniff && gpIEVersionSniff < 7)var gpIE6Sniff = true;

	/**
     * Create private namespace
     * 
     */
	if ( typeof RD == 'undefined' ) var RD = {};
	
	
	/**
	 * Toggle content elements
	 * 
	 * @alias tgContentEls
	 * @namespace RD
	 */
	RD.tgContentEls = function () {
		if ($('.RD_ctToggle').length) {
			$('.RD_ctToggle .RD_lnIconToggle').each(function(){
				$(this).replaceClass({
					old_class:"RD_toggleDown", 
					new_class:"RD_toggleUp",
					event_type:"click"
				});
			})
			$('.RD_ctToggle .RD_lnIconToggle').bind('click', function(e){
				var el = $(this);
				el.parent().next().slideToggle('fast');
			})
		}
	}()

	
});
