/**
 * JavaScript behaviors for content elements.
 *
 * @copyright  Copyright (c) 2005-2009 Found Line, Inc. (http://www.foundline.com/)
 * @version    $Id: content.js 5 2009-05-30 22:21:15Z bradley.holt $
 */

$("document").ready(function() {
    
    $("body.index form#tag-aggregate input.tag").focus();
    
    $("body.index ul.tag-example li a").mouseover(function () {
        $(this).animate({
            backgroundColor: "#D1EDF8",
            color: "black"
        }, 100);
    });
    $("body.index ul.tag-example li a").mouseout(function () {
        $(this).animate({
            backgroundColor: "white",
            color: "#17A6DB"
        }, 100);
    });
    
    $("body.index ul.tag-example li a").click(function () {
        $("body.index form#tag-aggregate input.button").focus();
        var text = $(this).text();
        $("body.index form#tag-aggregate input.tag").val(text);
        return false;
    });
    
});