﻿$(document).ready(function() {
    $('#bottom-panels a.twitter span.fade').innerfade({
        speed: 'slow', 
        timeout: 4000, 
        containerheight: '48px'
    });
});

function openVideoLeft() {
    $.modal("<iframe frameborder='0' src='/VideoPlayer.aspx' style='width: 935px; height: 540px; border:0px;' />", {
        overlayCss: { backgroundColor: '#000' },
        containerCss: { height: 540, width: 967 },
        containerId: 'volunteer-search'
    });
    $("#volunteer-search").append("<div class='video-left-strap'></div>");
}

function openVideoRight() {
    $.modal("<iframe frameborder='0' src='/VideoPlayer2.aspx' style='width: 935px; height: 540px; border:0px;' />", {
        overlayCss: { backgroundColor: '#000' },
        containerCss: { height: 540, width: 967 },
        containerId: 'volunteer-search'
    });
    $("#volunteer-search").append("<div class='video-right-strap'></div>");
}

$(document).ready(function() {
    if ($.cookie('WRVS-TEXTSIZE')) {
        $('body').addClass($.cookie('WRVS-TEXTSIZE'));
    }
    $('.text-controls a').click(function() {
        var textSize = $(this).attr('class');
        $('body').removeClass('enlarge reset').addClass(textSize);
        $.cookie('WRVS-TEXTSIZE', textSize, { path: '/', expires: 10000 });
        return false;
    });
});
