
function initSideBar(){
window.$sidebar =
    {
        main : jQuery("#sidebar"),
        child : jQuery("#sidebar .ch")
    }
$sidebar.main.hover(function(){
    jQuery(this).stop().animate({
        width:'312px'
    },500)
}, function(){
    jQuery(this).stop().animate({
        width:'60px'
    },1000)
});
$sidebar.child.hover(function(){
    jQuery(this).stop().animate({
        height:'300px'
    },500)
}, function(e){
    jQuery(this).stop().animate({
        height:'18px'
    },1000)
});
}


function disableFlash(){
    document.cookie = 'noflash=true;';
    window.location.reload();
}
function enableFlash(){
    document.cookie = 'noflash=false;';
    window.location.reload();
}
function isFlashEnabled(){
    if (document.cookie){
        var a = document.cookie.split('; ');
        for (var i = 0; i< a.length; i++){
            var b = a[i].split('=');
            if (b[0] == 'noflash'){
                if (b[1] == 'true'){
                    return false;
                }
            }
        }

    }
    return true;
}
