$(document).ready(function() {

    var original = '';
    $('.home_profile_image').mouseover(function() {
        original = $(this).children().attr('src');
        $(this).children().attr('src', $(this).attr('rel'));
    }).mouseout(function() {
        $(this).children().attr('src', original);
    });

    $('#page').shadowOn( { imageset: '2', imagepath: base_url + '/images/shadow', autoresize: true } );

    //$('.rounded').corner();

    $('a.new-window').click(function(el) {
        window.open(this.href);
        el.preventDefault();
        return false;
    });
});

$.fn.serializeObject = function()
{
    var o = {};
    var a = this.serializeArray();
    $.each(a, function() {
        if (o[this.name]) {
            if (!o[this.name].push) {
                o[this.name] = [o[this.name]];
            }
            o[this.name].push(this.value || '');
        } else {
            o[this.name] = this.value || '';
        }
    });
    return o;
};
