            function ddConfigure( language )
            {
                ddName = 'country_selector';

                selected = $('#'+ddName+' dd ul li a[class='+language+']').parent().html();
 
                $('#'+ddName+' dt').html(selected);

                $(".dropdown dt a").click(function() {
                    $(".dropdown dd ul").toggle();
                    return false;
                });
                        
                $(".dropdown dd ul li a").click(function() {
                    var text = $(this).html();

                    path = $(this).attr('href');
                    
                    if(path == "/uk"){
                        path = "";
                    }

                    if(path.indexOf("http://") != -1){
                        redir = path;
                    }
                    else {
                        redir = 'http://'+document.location.host+path;
                    }
                    window.location=redir;
                    
                    return false;
                });

                $(document).bind('click', function(e) {
                    var $clicked = $(e.target);
                    if (! $clicked.parents().hasClass("dropdown"))
                        $(".dropdown dd ul").hide();
                });
            }
                        
            function ddGetSelected(id) {
                return $("#" + id).find("dt a").attr('href');
            }

