/*
Author: sr©
Name of project: Saint Denis Lodge
*/

$(document).ready(function() {
    $("#galleryContainer a").lightBox();
    //--------------------------------------
    
    pageName = window.document.location.pathname.substr(1);
    if ((pageName != 'index.php')&&(pageName != '')) {
        $('#banners').remove();
        $('#textContainer').attr('id', 'textContainer2');
    }
    
    //fontChanger functionality
    var path;
    var fonts = new Array();
    fonts[1] = '#navtext LI A';
    fonts[2] = '.content';
    fonts[3] = '#footer *:not(#fontChanger A)';
    fonts[4] = '#some_text';
    $('#fontChanger A').bind('click', function() {
        /*
        var type = $(this).attr('class').substr(4);
        switch (parseInt(type)) {
            case 1: { percent = '100%'; } break;
            case 2: { percent = '130%'; } break;
            case 3: { percent = '150%'; } break;
            default: { console.log(type); } break;
        }
        */
        var percent = $(this).attr('value') + '%';
        for (path in fonts) {
            $(fonts[path]).animate( {'font-size':percent}, 500, function() { /*alert('☺: // Animation complete')*/ });    
        }
        return false;        
    });
    
});
