﻿function toggleCheckBox()
{
    if($("#ctl00_extraContent_txtCheckBox").attr("value") != "checked")
    {  
        $("#ctl00_extraContent_txtCheckBox").attr("value","checked");
        $("#additionalContent").css("display","block");  
    }
    else
    { 
        $("#ctl00_extraContent_txtCheckBox").attr("value","");  
        $("#additionalContent").css("display","none");            
    }
}
function popInput(srcInput,tarInput)
{
    $("#" + tarInput).attr("value",$(srcInput).attr("value"));
}
function popSpan(srcInput,tarSpan)
{
    $("#" + tarSpan).text($(srcInput).attr("value"));
}

$(document).ready(function() {
    var videoWidth = 768;
    var videoHeight = 602;

    var playerMargin = 27;
    vidHeight = (videoHeight + playerMargin);

    var cssVidWidth = videoWidth - 80;
    var cssVidHeight = vidHeight + 50;
    $("#videoDescription").css("width", cssVidWidth + "px");
    $("#videoDescriptionWrapper").css("width", videoWidth + "px");
    $(".white_content").css("width", videoWidth + "px");
    $(".white_content").css("height", cssVidHeight + "px");

    $("#fade").css("height", $(document).height() + "px");

    var popTop = (($(window).height() / 2) - ($("#light").height() / 2));
    var popLeft = (($(window).width() / 2) - ($("#light").width() / 2));
    $("#light").css("left", popLeft + document.body.scrollLeft + "px");
    $("#light").css("top", "50px");

    if ($('#lightboxForm').length > 0) {
        $("#showForm").fancybox({
            'titleShow': false,
            'transitionIn': 'none',
            'transitionOut': 'none',
            'scrolling': 'no'
        });
    }
});
