/*
*************************************************************************
* 
* CAPTUAL TECHNOLOGIES CONFIDENTIAL
* _________________________________
* 
*  2008 - 2011 Captual Technologies Inc. 
*  All Rights Reserved.
* 
* NOTICE:  All information contained herein is, and remains
* the property of Captual Technologies Incorporated and its suppliers,
* if any.  Dissemination of this information or reproduction of this 
* material is strictly forbidden unless prior written permission is 
* obtained from Captual Technologies Incorporated.
*
*************************************************************************
*/

/// <reference path="~/Content/js/lib/jquery/jquery.min.js" />

$(document).ready(function() {
    $('.event').hoverIntent(function() {
        $(this).find('.moreinfo').show("fast");
    },
    function() {
        $(this).find('.moreinfo').hide("fast");
    });
    
    $('.c_liveeventschedule_calendar_day .calendar .c_rounded').each(function() {
        var td_height = $(this).parent("td").height();
        $(this).height($(this).parent("td").height());
        $(this).find(".rounded_area").height(td_height);
        //$(this).corner();
    });
    
    $('.c_liveeventschedule_calendar_day .calendar tr').each(function() {
    
    });
    
    $('#calendar_date_selector').datepicker({onSelect: function(date) { updateLinked(date); }});
    //$('.legend .item').corner({autoPad: true});
   // $('.c_liveeventschedule_calendar .event').corner({radius:2, autoPad:true});
    $('.c_liveeventschedule_calendar .event').tooltip({showURL: false});
    
   // $('.date_changer .go_left').corner({br:false, tr:false, autoPad:true});
   // $('.date_changer .go_right').corner({bl:false, tl:false, autoPad:true});
});

// Update three select controls to match a date picker selection 
function updateLinked(date) { 
    $('#MonthSelector').val(date.substring(0, 2)); 
    $('#DaySelector').val(date.substring(3, 5)); 
    $('#YearSelector').val(date.substring(6, 10)); 
    $('#DateSelector').submit();
} 
 
