var accordian = { 'eventHook': '.accordian li a.accordianTrigger', 'slide': function(element) {
    var checkElement = $(element).parent().next(); if (checkElement.is(':animated'))
    { return false; }
    if ((checkElement.is('div')) && (checkElement.is(':visible')))
    { $(element).removeClass('open'); $(checkElement).slideUp(600); return false; }
    if ((checkElement.is('div')) && (!checkElement.is(':visible')))
    { checkElement.slideDown(600, function() { }).prev().children('a').addClass('open'); return false; } 
}, 'setup': function() { $('.accordian li div').hide(); }, 'init': function() {
    accordian.setup(); $(accordian.eventHook).toggle(function() { accordian.slide(this); return false; }, function() {
        accordian.slide(this)
        return false;
    });
} 
}; function videoControllerHover() { var onState = { 'left': '-87px', 'top': '4px', 'opacity': 1 }; var offState = { 'left': '-80px', 'top': '14px', 'opacity': 0 }; $('.moreStoriesControl li a').hide().css(offState); $('.moreStoriesControl li').hover(function() { $(this).children('a').stop().show().animate(onState, 800); }, function() { $(this).children('a').stop().hide().animate(offState, 800); }); }
function imagePopOpenAnimation(image) {
    var elem = $(image); var imgHeight = elem.height(); var imgWidth = elem.width(); elem
.delay(Math.floor(Math.random() * 50) * 40)
.animate({ 'width': (imgWidth * 1.2) + 'px', 'height': (imgHeight * 1.2) + 'px' }, 500)
.animate({ 'width': (imgWidth * 0.9) + 'px', 'height': (imgHeight * 0.9) + 'px' }, 500)
.animate({ 'width': imgWidth + 'px', 'height': imgHeight + 'px' }, 500)
;
}
function imagePopOpenInit() {
    $(window).load(function() {
        var images = $('img', '.linkBurstWrapper'); for (i = 0; i < images.length; i++)
        { imagePopOpenAnimation(images[i]); } 
    });
}
