$(document).ready(dataViewSlider);
function dataViewSlider(){


//////////////////////////////////////////////////////////////////////
//  L A R G E - & - M E D I U M - V I E W S  /////////////////////////
//////////////////////////////////////////////////////////////////////

    // Drop down the extra information for the LARGE and MEDIUM views.
    $('#ajax td.bottlebest, #ajax td.bottle, #ajax td.casebest, #ajax td.case').livequery(function(){
      $(this).hoverIntent(
        function(){ // HOVER OVER //
            $(this).children('.infoicons').slideToggle(425);
            parentHeight=$(this).parent().height();parentTop=$(this).parent().position().top;newTop=parentTop+parentHeight;
            $(this).children('.infoicons').css({top:newTop+'px'});
            $(this).children('.infoicons').css({  width:  $(this).outerWidth()  });
            },
            function(){ // HOVER OUT //
            $(this).children('.infoicons').slideToggle(200);
            }
      )
    })

    // DIM THE EMPTY TD BOXES AND THEIR DROPSHAD COUSINS //
    $('#contentframe #ajax').livequery(function(){
        $('#ajax td.bottlebest, #ajax td.bottle, #ajax td.casebest, #ajax td.case').each(function(intIndex){
            if ($(this).html()==''){
                $(this).css({opacity:'.25'});
                $('#contentframe .browseresults td.dropshad:eq('+intIndex+')').css({opacity:'.25'});
            };
        })
    });

////////////////////////////////////////////////////////////////////////////////
//  S M A L L - L I S T - V I E W  /////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////*/

    // Set variables...
    var overSelect=0;

	$('tr.borderframe').livequery(function(){
	        $(this).hover(
            function(){  $(this).addClass('hover'); },
            function(){  $(this).removeClass('hover'); }
        );
    });


    $('tr.borderframe').livequery(function(){
	        $(this).hover(
            function(){  $(this).css({background:'#ff0000'});  },
            function(){  $(this).css({background:'#0000ff'}); }
        );
    });



}

/*var liftoffTime = new Date();
liftoffTime = new Date(2008, 12 - 1, 18, 0, 0, 0);

$(document).ready(function() {
	$('#defaultCountdown').countdown({until: liftoffTime, compact: true, layout: '<div class="countdown-container"><span>%D%n</span> %l%Days&#160;&#160;<span>%H%nn%H:%M%nn%M:%S%nn%S</span></div>'});
});*/
