a1e4130a83655b5c1f322da717c7e85b225c1206c10ee5f7b152a5923fcbf8c3

Source Code:

/**
 * DMM PartsRequest Library
 *
 * Copyright 2012, DMM.com
 */
var dmmUtility = dmmUtility || {};

dmmUtility.replaceHost = function(url) {
    return url.replace("www.dmm.co.jp", location.hostname);
};

var dmmPartsRequest = {};

dmmPartsRequest.loadRecommend = function(target, params) {
    var url = dmmUtility.replaceHost('//www.dmm.co.jp/service/newrecommend/-/recommends_call/');
    $.post(url, params, function(data) {
        $(target).html(data);
    });
}

dmmPartsRequest.loadMutualLink = function(target, params) {
    var url = dmmUtility.replaceHost('//www.dmm.co.jp/misc/-/mutual-link/ajax-index/=/cid=' + encodeURIComponent(params['content_id']) + '/service=' +  encodeURIComponent(params['service']) + '/shop=' + encodeURIComponent(params['shop']) + '/');
    $.get(url, function(data) {
        if (data) {
            $(target).html(data).show();
        }
    });
};

dmmPartsRequest.loadDetailTag = function(target, params) {
    var url = dmmUtility.replaceHost('//www.dmm.co.jp/tag/-/view/ajax-index/');
    $.post(url, params, function(data) {
        $(target).html(data);
    });
};

dmmPartsRequest.loadAlsoBought = function(target, params) {
	var url = dmmUtility.replaceHost('//www.dmm.co.jp/misc/-/recommend/ajax-also-bought/=/cid=' + encodeURIComponent(params['cid']) + '/service=' + encodeURIComponent(params['service']) + '/shop=' + encodeURIComponent(params['shop']) + '/r_tag=i3');
	$.post(url, params, function(data) {
        $(target).html(data),$(".page-detail").addClass("loaded");
        switchOrientation()
        $(window.onorientationchange).bind('load',switchOrientation);
        
        function switchOrientation() {
            var orientation = window.orientation;
            
            var len=$('.item').size()
            
            var cnt = len < 3 ? '2.5' : '2';
            var over = len < 3 ? 'over_off' : 'over_on';
            var dots = len < 3 ? 'dots_off' : 'dots_on';
            
            if (orientation == 0) {
                new Swipe(document.getElementById('also_bought'),cnt,over,dots);
            } else {
                new Swipe(document.getElementById('also_bought'),cnt,over,dots);
            }
        };
    });
};