//Home
$(document).ready(function(){


    if(ie6()){
        $('#onbot .b1, #onbot .b3, #onbot .b4')
            .css('cursor','pointer')
            .click(function(){document.location = $('a',this).attr('href');});
    }
    $('#bg').click(function(){Player.close()});

    /*
    $('#onbot .l1 .b1')
        .click(function(){Player.play($('a', this).attr('href').replace('#player:','')); return false;});
        */

    $('#onbot .l1 .b2')
        .mouseenter(function(){$(this).addClass('over2').animate({width:340}, {duration:400, queue:false});})
        .mouseleave(function(){$(this).removeClass('over2').animate({width:140}, {duration:400, queue:false});})
        .click(function(){Player.playLilly($('a', this).attr('href').replace('#player:','')); return false;});
        

    $('#onbot .l2 .b4')
        .mouseenter(function(){ $(this).animate({width:215}, {duration:400, queue:false}) })
        .mouseleave(function(){ $(this).animate({width:108}, {duration:400, queue:false}) })
        .click(function(){Player.playLilly($('a', this).attr('href').replace('#player:','')); return false;});

    /*
    if(ie6()){
        $('#percent').hide();
        $('#onbot .l1 .b1')
            .mouseenter(function(){$('#percent').show(); $(this).css('width',200).animate({width:450}) })
            .mouseleave(function(){$('#percent').hide(); });

    }else{
        $('#percent').css('width',0);
        $('#onbot .l1 .b1')
            .mouseenter(function(){$('#percent').animate({width:330}, {duration:300, queue:false}) })
            .mouseleave(function(){$('#percent').animate({width:0}, {duration:300, queue:false}) });

    }
    */

});


