$(document).ready(function(){
    var acstyle='background-position:0 -43px; font-weight:bold';
    $('.tabs').hide();
    $('.tabs:first').show();
    $('#tabnav li a').click(function(e){
        e.preventDefault();
        var elem=$(this).attr('href').slice(1);
        if(elem){
            $('#tabnav ul li a').removeAttr('style');
            $(this).attr('style',acstyle);
            $('.tabs').hide();
            $('#'+elem).show();
        }

    })
    $('iframe').load(function(){
        var h=$('body > div',frames[0].document).height();
        //$('iframe').height(h+30);
        $('iframe').each(function(){
            if($(this).attr('id')!="facebook"){
                $(this).height(h+30)
            }
        })
    })

})

