addLoadEvent(RedimensionarMenu);

$(document).ready(function(){ $(document).pngFix(); });

$(function() { setInterval("slideSwitch()", 6000); });

Shadowbox.init({ overlayOpacity	: '0.75' });

$(document).ready(function() {

    $(".dropdown dt a").click(function() {
	$(".dropdown dd ul").toggle();
    });

    $(".dropdown dd ul li a").click(function() {
	var text = $(this).html();
	var ant = $(".dropdown dt a").html();
	$(".dropdown dt a").html(text);
	$(this).html(ant);
	$(".dropdown dd ul").hide();
	$("#tld").val(getSelectedValue("lista"));
    });

    function getSelectedValue(id) {
	return $("#" + id).find("dt a span.value").html();
    }

    $(document).bind('click', function(e) {
	var $clicked = $(e.target);
	if (! $clicked.parents().hasClass("dropdown"))
	    $(".dropdown dd ul").hide();
    });

});
