function whiteMenu() {
    /*if ( document.getElementById('imageMenu').complete == false )
    {
        alert("rter");
        document.timer = window.setTimeout('whiteMenu', 3000);
        return 0;
    }   */
    var targetLI = null;
    //targetLI = $("#menu ul li:first a").eq(0);
    if ($("#menu ul li.selected").size() > 0)
    {
        targetLI = $("#menu ul li.selected").eq(0);
    }




    if (targetLI)
    {
        var targetTop = -9999;
        if($(targetLI).offset()) {
            targetTop = $(targetLI).offset().top;
        }
         if ($("#menu ul li.selected").size() == 0)   {
              targetTop=-9999;
         }
        var heightDivWhite = 0;
        var customValues = [];

        //mozilla
        customValues[customValues.length] = [-206, 0, -235, 0];
        //ie6
        customValues[customValues.length] = [-204, -2, -198,  -2];
        //ie7
        customValues[customValues.length] = [-204, -2, -50,  -2];
        //ie8
        customValues[customValues.length] = [-206, -2, -50,  -2];

        var customValuesSet = customValues[0];


        if (jQuery.browser.msie) {
            if(parseInt(jQuery.browser.version)<=6){
                    customValuesSet = customValues[1];
            } else if(parseInt(jQuery.browser.version)<=7){
                    customValuesSet = customValues[2];
            } else if(parseInt(jQuery.browser.version)<=8){
                    customValuesSet = customValues[3];
            }
        }





        if (targetTop > customValuesSet[0]) {
           // alert('targetTop est plus grand')  ;
            heightDivWhite = targetTop + customValuesSet[0];
            $("#divWhite").css("top", customValuesSet[1]+'px');
        } else {
            //alert('targetTop NOT plus grand')  ;

            //heightDivWhite = targetTop + customValuesSet[2];
            heightDivWhite = customValuesSet[3]+'px';
            $("#divWhite").css("top", customValuesSet[3]+'px');
        }

        $("#divWhite").css("display","block");
        if(parseInt(heightDivWhite)>0){
            $("#divWhite").height(heightDivWhite);
        } else{
            $("#divWhite").css("display","none");

        }

        $("#menu ul:first div:last").css("padding-bottom","10px");
    }
    else {
        //alert('target is null');
    }




}

/*function columnResizer() {
            document.getElementById("content").style.height = $("#page").height() - $("#header").height() - $("#title").height()+ $("#footer").height() + 40 + "px";
            document.getElementById("rightColumn").style.height = $("#content").height() - $("#footer").height()+ 20 + "px";
            document.getElementById("leftColumn").style.height = $("#rightColumn").height() +"px";
    }

   */


/**
 *
 * Copyright (c) 2007 Tom Deater (http://www.tomdeater.com)
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */

(function($) {
	/**
	 * equalizes the heights of all elements in a jQuery collection
	 * thanks to John Resig for optimizing this!
	 * usage: $("#col1, #col2, #col3").equalizeCols();
	 */

	$.fn.equalizeCols = function(){
		var height = 0;

		return this
			.css("height", "auto")
			.each(function() {
				height = Math.max(height, this.offsetHeight);
			})
			.css("height", height)
			.each(function() {
				var h = this.offsetHeight;
				if (h > height) {
					$(this).css("height", height - (h - height));
				};
			});

	};

})(jQuery);





