(function ($) {
$.fn.hAlign = function() {
	return this.each(function(i){
	var w = $(this).width();
	var ow = $(this).outerWidth();	
	var ml = (w + (ow - w)) / 2;	
	$(this).css("margin-left", "-" + ml + "px");
	$(this).css("left", "50%");
	$(this).css("position", "absolute");
	});
};
})(jQuery);


$(document).ready(function() {
    
        if ($.browser.msie && $.browser.msie < 8) {
            var zIndexNumber = 1000;
           
            $('div').each(function() {
                $(this).css('zIndex', zIndexNumber);
                zIndexNumber -= 10;
            });
                    
        }
});



$(document).ready(function() {

	$("#navigation").hAlign();
	
	$(".clearField").clearField();
	
	$("#slider").easySlider({
		auto: false, 
		continuous: true
	});	
	
	
	$("#navigation ul.children").each(function() {
		$(this).children('li:first').addClass('first');
	});
});



