		SubmittingForm=function() {
			alert("The form has been validated.");
		}

		$(document).ready(function() {
	        $("#nav-one li").hover(
		        function(){ $("ul", this).fadeIn("show"); }, 
		        function() { } 
	        );
 	        if (document.all) {
		        $("#nav-one li").hoverClass ("sfHover");
	        }
	        	      
            //Get all the LI from the #tabMenu UL
            $('#tabMenu > li').click(function(){
            //perform the actions when it's not selected
            if (!$(this).hasClass('selected')) {    
            //remove the selected class from all LI    
            $('#tabMenu > li').removeClass('selected');
            //Reassign the LI
            $(this).addClass('selected');
            //Hide all the DIV in .box_abas_body
            $('.box_abas_body div').slideUp('1500');
            //Look for the right DIV in box_abas_body according to the Navigation UL index, therefore, the arrangement is very important.
            $('.box_abas_body div:eq(' + $('#tabMenu > li').index(this) + ')').slideDown('1500');
          }
          }).mouseover(function() {
            //Add and remove class, Personally I dont think this is the right way to do it, anyone please suggest    
            $(this).addClass('mouseover');
            $(this).removeClass('mouseout');   
          }).mouseout(function() {
            //Add and remove class
            $(this).addClass('mouseout');
            $(this).removeClass('mouseover');    
          });
			$(".cntTableEstados div table tr:even").addClass("striped");
			$('.mapa a').click(function(){
				if(!$(this).hasClass('tabSelected')){
					$('.mapa a').removeClass('tabSelected');
					$(this).addClass('tabSelected');
					$('.cntTableEstados div').slideUp('2500');
					$('.cntTableEstados div:eq(' + $('.mapa a').index(this) + ')').slideDown('1500');
				}
			})
			$(".cntTableEstados div a").click(function(){
			    $('.cntTableEstados div a').parent('.cntTableEstados div').css('display','none')
			})	
		});
        $.fn.hoverClass = function(c) {
	        return this.each(function(){
		        $(this).hover( 
			        function() { $(this).addClass(c);  },
			        function() { $(this).removeClass(c); }
		        );
	        });
        };
        function bannerLateral(){
            var flashvars = {};
            var params = {
            wmode: "transparent",
            quality: "high"     
            };
            var attributes = {};
            swfobject.embedSWF("../_swf/banner-cesb-desafio.swf", "bannerDesafio", "218px", "134px", "9.0.0",flashvars, params, attributes);
            
            if(!FlashDetect.installed){
                document.write("<div id='bannerDesafio'>");
                    document.write("<noscript>");
                        document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='220' height='417' id='Object1' align='middle'>");
                            document.write("<param name='allowScriptAccess' value='sameDomain' />");
                            document.write("<param name='allowFullScreen' value='false' />");
                            document.write("<param name='movie' value='_swf/banner-cesb-desafio.swf' /><param name='quality' value='high' />");
                            document.write("<embed src='_swf/banner-cesb-desafio.swf' quality='high' width='220' height='417' name='album' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
                        document.write("</object>");
                    document.write("</noscript>");
                document.write("</div>");
            }else{
                document.write("<a href='http://www.desafiosoja.com.br/' target='_blank'><img src='../_img/banner-desafionacional.gif' alt='' title=''width='218' height='134' /></a>");
            }
        }	
        function bannerHome(){
            var flashvars = {};
            var params = {
            wmode: "transparent",
            quality: "high"     
            };
            var attributes = {};
            swfobject.embedSWF("_swf/syngenta-desafio-maxima-produtividade.swf", "bannerDesafioHome", "220px", "420px", "9.0.0",flashvars, params, attributes);

            if(FlashDetect.installed){
                document.write("<div id='bannerDesafio'>");
                    document.write("<noscript>");
                        document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='220' height='417' id='Object1' align='middle'>");
                            document.write("<param name='allowScriptAccess' value='sameDomain' />");
                            document.write("<param name='allowFullScreen' value='false' />");
                            document.write("<param name='movie' value='_swf/banner-cesb-desafio.swf' /><param name='quality' value='high' />");
                            document.write("<embed src='_swf/banner-cesb-desafio.swf' quality='high' width='220' height='417' name='album' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
                        document.write("</object>");
                    document.write("</noscript>");
                document.write("</div>");
            }else{
                document.write("<a href='http://www.desafiosoja.com.br/' target='_blank'><img src='_img/banner-desafionacional-g.gif' alt='' title=''width='215' height='415' /></a>");
            }
        }	
