$(document).ready(function() {
    $("head").append($("<link rel='stylesheet' href='/common/fun/fun.css' type='text/css' media='screen' />"));
    $.getScript('/common/fun/jquery.cheatcode.js',function(){
        init_ee();
    });

});     
      
//init example:   $(document).cheatCode(function() {function_name();}, { code: [71,71]});      
       function init_ee(){
        $("body").append('<div id="bobble"><div id="head"></div></div>');
        $(document).cheatCode(function() {golobos();}, {code: [71,79,76,79,66,79,83]});
        $(document).cheatCode(function() {hearts();}, {code: [66,69,77,73,78,69]});
       }
   
function golobos() {
        $("#bobble").addClass('showbobble');
        $('#bobble').click(function() { $(this).removeClass('showbobble');});
         _gaq.push(['unm._trackEvent', 'Easter Egg', 'Bobble Head']);
         _gaq.push(['unm._trackPageview', '/easter-egg/bobble-head']);
}


function hearts() {
        $.getScript('/common/fun/hearts.js');
        _gaq.push(['unm._trackEvent', 'Easter Egg', 'Valentines']);
        _gaq.push(['unm._trackPageview', '/easter-egg/valentines']);
}



/*  other easter eggs 
function barrel_roll(){ 
    $("body").addClass('rotate');
    _gaq.push(['unm._trackEvent', 'Easter Egg', 'Barrel Roll']);
    _gaq.push(['unm._trackPageview', '/easter-egg/barrel-roll']);
}

---  snowing ---
$(document).cheatCode(function() {snow();}, {code: [76,69,84,73,84,83,78,79,87]});
function snow() {
        $.getScript('/common/fun/snow.js');
        _gaq.push(['unm._trackEvent', 'Easter Egg', 'Snow']);
        _gaq.push(['unm._trackPageview', '/easter-egg/snow']);
}




 */       
