Cufon.replace("#highlights_title h3,#highlights h3,#banner h2,#banner p, #internal-banner h1, h4.titulo", {
    fontFamily: "Myriad Pro"
});

$(function(){
	
	//$(("#highlights h3,#banner h2,#banner p, #internal-banner h1, #sidebar h3, h4.titulo")

    $("#link-produtos a:last, #link-servicos a:last").css("border-bottom", "0 none");
	
	$("#link-produtos a:first, #link-servicos a:first").removeAttr("title");
	    
    $(".sections:last, .sections-footer:last").css("margin-right", "0");
    
    $("#link-produtos, #link-servicos").hover(
		function(){
	        $("ul", this).slideDown(100).fadeI("fast");
	        $(this).addClass("marked")
    	}
		, 
		function(){
	        $("ul", this).slideUp(100).fadeOut("fast");
	        $(this).removeClass("marked")
    	}
	)
    
	$("#link-produtos a:first, #link-servicos a:first").click(function(){
		return false;
	});

		
    $(".social a, a#tw, a#fb, a#in").click(function(){
    
        window.open(this.href);
        
        return false;
    })
    
    $("#submenu a").removeAttr("title")
    
    $(".sections:last, .sections-footer:last").css("margin-right", "0");
    
	$(".list-jobs h4").hover(
		function(){
			$(this).css("background-color","#c1c1c1")
		},
		function(){
			$(this).css("background-color","#ccc")
		}
		
	)

     $(".list-jobs h4").click(function(){
 
         if ($(this).next("div").is(":hidden")) {
             $(this).attr("title", "Esconder detalhes dessa vaga").css("background-position", "10px -21px")
         }
         else 
             if ($(this).next("div").is(":visible")) {
                 $(this).attr("title", "Mostrar detalhes dessa vaga").css("background-position", "10px 8px")
             }
		
		$(this).next("div").slideToggle("fast");
	
     })
	 
	 $("#link-produtos a:first, #link-servicos a:first, .seed a:first, .energy a:first, .wam a:first").removeAttr("title");
	 
	 
	var lang = "<div id='lang'>"+
					"<ul>"+
						"<li class='current-lang'>"+
							"<a href='#' title='SYDLE International English' class='en'><span>International</span> EN</a>"+
							"<ul>"+
								"<li><a href='http://www.sydle.com/br/' title='SYDLE Brasil' class='pt'><span>Brasil</span> PT </a></li>"+
								"<li><a href='http://www.sydle.com/es/' title='SYDLE Internacional Espanhol' class='es'><span>Internacional</span> ES</a></li>"+
							"</ul>"+
						"</li>"+
					"</ul>"+
				"</div>";
	
	$("body").prepend(lang);

	$(".current-lang").hover(
		function(){
			$("ul", this).toggle();
		}
	)
})

