function fontImageLoader(ob) {
    height = ob.offsetParent.clientHeight;
    width = ob.offsetParent.clientWidth;
    var div = ob.width / ob.height;
    if (div < width/height) ob.style.width = "100%";
    else ob.style.height = "100%";
}

function show_font_hidder(id){
    $(id).show();        
}

function hide_font_hidder(id){
    $(id).fadeOut();
}

var background_loop = true;
function showBackground(){
    if (background_loop) {
        $('#background').css("zIndex", "100");
        $('#background_info').show();
         background_loop=false;
    }
    else {
        $('#background').css("zIndex", "-100");
        $('#background_info').hide();
        background_loop=true;
    }
}

function showFontInfo (){
    if ($.fontAvailable('HeaderFont')) {
        $('#font_info').show();
        $('#background').css('zIndex', '30');
    }
}