/*  Author: Conrad Muan
    Sup Son?
*/

$(document).ready(function(){
    // Fancybox
    $("a.fancy:has(img)").fancybox();
    
    //  Addition of unnecessary brackets for decoration
    $('.html-text').prepend('&lt; ').append(' &gt;');
    $('.css-text, .js-text').prepend('{ ').append(' }');
    $('.php-text').prepend(' $');
    
    // Yay Hovers
    $('.html-text').hover(
        function(){
            $('body').addClass('html-background');
        } ,
        function() {
            $('body').removeClass('html-background');
        }
    );
    
    $('.css-text').hover(
        function(){
            $('body').addClass('css-background');
        } ,
        function() {
            $('body').removeClass('css-background');
        }
    );
    
    $('.js-text').hover(
        function(){
            $('body').addClass('js-background');
        } ,
        function() {
            $('body').removeClass('js-background');
        }
    );
    
    $('.php-text').hover(
        function(){
            $('body').addClass('php-background');
        } ,
        function() {
            $('body').removeClass('php-background');
        }
    );
    
});
