//JQueryJson
var jQueryJson = {};
function AjaxRequet(targetUrl,data){
    $.ajax({
        type: "POST",
        url: targetUrl,
        data: data,
        dataType: "json",
        async: false,
        success: function(json){
            jQueryJson = json;
        },
        error: function(msg){
            jQueryJson = msg;
            alert('通信に失敗しました');
        }
    });
    return jQueryJson;
}

//jQueryAjaxgetHTML
function jQueryAjaxgetHTML(target, targetUrl, data){
    $.ajax({
        type: "POST",
        url: targetUrl,
        data: data,
        dataType: "html",
        success: function(html){
            $(target).html(html);
        },
        error: function(){
            alert('通信に失敗しました');
        }
    });
    return jQueryJson;
}

/**
 * rollOverImages - jQuery plugin 
 *
 * Copyright (c) 2009 Attrise.Inc.
 *  http://attrise.com
 *
 * Dual licensed under the MIT and GPL licenses:
 *  http://www.opensource.org/licenses/mit-license.php
 *  http://www.gnu.org/licenses/gpl.html
 *
 * $Id: $
 */
(function($){
    jQuery.fn.rollOverImages = function(options) {
        // default setting sufix
        var defaults = {
            suffix : '_over'
        };
        var image_cache = new Object();
        settings = jQuery.extend({}, defaults, options);
        
        this.each(function(i){
            var imgsrc    = this.src;
            var dot       = this.src.lastIndexOf('.');
            var imgsrc_on = this.src.substr(0, dot) + settings.suffix + this.src.substr(dot, settings.suffix.length);
            image_cache[this.src]     = new Image();
            image_cache[this.src].src = imgsrc_on;
            var $this = jQuery(this);
            $this.hover(function(){
                    this.src = imgsrc_on;
                },
                function(){
                    this.src = imgsrc;
            });
        });
        return this;
    }
})(jQuery);

$(function(){ $("img.swap").rollOverImages(); });

/**
 * boxSameHeight - jQuery plugin 
 *
 * Copyright (c) 2009 Attrise.Inc.
 *  http://attrise.com
 *
 * Dual licensed under the MIT and GPL licenses:
 *  http://www.opensource.org/licenses/mit-license.php
 *  http://www.gnu.org/licenses/gpl.html
 *
 * $Id: $
 */
(function($){
    jQuery.fn.boxSameHeight = function(options) {
        var defaults = {
            n : 0
        };
        settings = jQuery.extend({}, defaults, options);
        this.each(function(){
            var $this = jQuery(this),
                h     = $this.height();
            settings.n = (settings.n < h) ? h : settings.n;
        });
        jQuery(this).css('height', settings.n);
        return this;
    }
})(jQuery);

$(function(){ $(".BoxUniform").boxSameHeight(); });
