jQuery(document).ready(function($) {
    
//Cufon.replace('#panel h1');
Cufon.replace('.cufon, .widgettitle');

$('#tabs').tabs();
var urlArray = $(document).attr('location').pathname.split('/');
//var tab = urlArray[urlArray.length - 2];
$('#tabs').tabs('select' , urlArray[urlArray.length - 2]);
//$('#tabs').bind('tabsshow', function(event, ui){    document.location = $(document).attr('location').pathname + "#" + ui.panel.id;}); // change the url anchor when we click on a tab



    $("#navigation li").hover(
        function(){
            $("ul", this).show();
        },
        function(){
            $("ul", this).hide();
        });



});


