/*
 * jQuery AddOns for TWProfiling
 * Using jquery, jquery-ui, cycle (Plugin)
 * Copyright (c) 2008 TWprofiling.com
 * Version 0.1
 */
function tw_animate() {
    $('#tw').animate({
        left: '100px'
        }, 1500);
    clearInterval(animate);
}

$(document).ready(function() {
    $('#ref').cycle({
        fx: 'turnDown',
        pause: 1,
        timeout: 4000,
        random: 1
    });
    animate = setInterval(tw_animate,4000);
    $("#tw").mouseover(function () {
        $('#tw').stop();
        $('#tw').animate({
            left: '0px'
        }, 1500);
    });
    $("#tw").mouseout(function () {
        $('#tw').stop();
        $('#tw').animate({
            left: '100px'
        }, 1500);
    });
});

$(function () {
    $('ul.drawers').accordion({
        header: '.drawer-handle',
        selectedClass: 'open',
        event: 'mouseover',
        autoHeight: false,
        active: '.open'
    });
});

