$().ready(function() {

	

    $("#text_content div:first").show();
    $("ul#countrytabs li a").click(function () {
        $("#countrytabs li a").removeClass('selected'); // remove all selected css tags from the UL
        $(this).addClass('selected'); // add selected to the css tag
        var rel = $(this).attr('rel');
        $("#text_content div").hide(); // hide all divs
        $("#"+rel).show();
       // alert('Rel: '+ rel);
        return false;
    });
    
    //var switcher = $(".a_profile:first"); if(switcher){change_content(switcher);} 
	//$(".profile").click(function(){ var switcher = $(this).attr("rel"); change_content(switcher); return false;  })
//   if (this class) is clicked{ the id is the attribute of "rel";


    
    $('#s3slider').s3Slider({
        timeOut: 5000
    });
});

function change_content(id){
	var html = $(id).html(); 
    $("#attorney_right").html(html);
    };



$(document).ready(function() {
	// This creates the mega drop down

 

});






	
