//Onair
        var onair = {
                tmpl: jQuery('#onair .template').clone(true).removeAttr('class'),
                xml: '',
                page: 1,
                perpage: 3,
                pages: 0
            },

            showfeed = function() {
                var start = onair.page * onair.perpage - onair.perpage,
                    end = onair.page * onair.perpage;
                //parse xml feed
                $('#onair .feed').empty();
                jQuery(onair.xml).find('item').slice(start, end).each(function(i) {
                    // create clone from template row								 

                    var tmpl = jQuery(onair.tmpl).clone(true).attr({ id: 'row' + i });
                    jQuery('#onair .feed').append(tmpl);

                    // add xml into row template
                    tmpl.find('.pubdate').html(jQuery(this).find('pubdate').text());
                    tmpl.find('.title').html(jQuery(this).find('title').text());
                    tmpl.find('.description').html(jQuery(this).find('description').text());
										
                    tmpl.fadeIn(1500);
                }); //close each(
            };
        
        
        
        jQuery(function() {
        
        	var oaDate = new Date(),
			day = oaDate.getDate(),
			month = oaDate.getMonth() + 1,
			year = oaDate.getFullYear();
			
        
            jQuery.ajax({
                type: 'GET',
                url: 'http://www.cbscollegesports.com/schedule/xml.php?type=calendar&type=calendar&month=' + month + '&day=' + day + '&year=' + year,
                async: true,
                global: false,
                cache: false,
                dataType: 'xml',
    
                success: function(data) {
                    onair.xml = data;
                    onair.pages = Math.ceil(jQuery(onair.xml).find('item').length / onair.perpage);
                    if (onair.pages > 0)
                        jQuery('#onair .next').removeClass('inactive');
                    showfeed();
                },
                
                error: function() {
                    console.log('error');
                    //handle error in here, maybe some default text or something
                }
            }); //close jQuery.ajax(
            
            jQuery('#onair .next').bind('click', function() {
                if (jQuery(this).hasClass('inactive')) return false;
                onair.page++;
                showfeed();
                if (onair.page === onair.pages) jQuery(this).addClass('inactive');
                if (onair.page > 1) jQuery('#onair .prev').removeClass('inactive');
                return false;
            });

            jQuery('#onair .prev').bind('click', function() {
                if (jQuery(this).hasClass('inactive')) return false;
                onair.page--;
                showfeed();
                if (onair.page === 1) jQuery(this).addClass('inactive');
                if (onair.page < onair.pages) jQuery('#onair .next').removeClass('inactive');
                return false;
            });
        }); //close jQuery.()