/* -------------------------------------------------------------------------- */
/*
 * @fileoverview
 * Toggle Elements Configuration
 * @version rev 1.2, 2009-06-17
 */
/* -------------------------------------------------------------------------- */

$(function(options) {
	var c = $.extend({
		currentBodyClass: '.solution, .global, .technology',
		toggleSector: '.localNav ul li .toggle',
		defaultPostfix: '',
		rolloverPostfix: '_on',
		activePostfix: '_active',
		activeRolloverPostfix: '_active_on'
	}, options);

	if ($('body').attr('class')!=$('body'+c.currentBodyClass).attr('class')) {
		$(c.toggleSector).next().hide();
		$(c.toggleSector).prev().hide();
	} else {
		$(c.toggleSector).prev().show();
	}

$(c.toggleSector).click(function() {
	//alert(this.activeSrc);
	$(this).next().slideToggle('fast',function() {
		if ($(this).is(":visible")) {
			$(c.toggleSector).prev().show();
		} else {
			$(c.toggleSector).prev().hide();
		}
	});
});

	/*$(c.toggleSector).toggle(function(){
	},function(){
	});*/


	/*$(c.toggleSector).click(function() {
		$(this).next().slideToggle('fast');
	});*/
});
