//<![CDATA[
function findAndReplace(searchText, replacement, searchNode) {
    if (!searchText || typeof replacement === 'undefined') {
        // Throw error here if you want...
        return;
    }
    var regex = typeof searchText === 'string' ?
                new RegExp(searchText, 'g') : searchText,
        childNodes = (searchNode || document.body).childNodes,
        cnLength = childNodes.length,
        excludes = 'html,head,style,title,link,meta,script,object,iframe';
    while (cnLength--) {
        var currentNode = childNodes[cnLength];
        if (currentNode.nodeType === 1 &&
            (excludes + ',').indexOf(currentNode.nodeName.toLowerCase() + ',') === -1) {
            arguments.callee(searchText, replacement, currentNode);
        }
        if (currentNode.nodeType !== 3 || !regex.test(currentNode.data) ) {
            continue;
        }
        var parent = currentNode.parentNode,
            frag = (function(){
                var html = currentNode.data.replace(regex, replacement),
                    wrap = document.createElement('div'),
                    frag = document.createDocumentFragment();
                wrap.innerHTML = html;
                while (wrap.firstChild) {
                    frag.appendChild(wrap.firstChild);
                }
                return frag;
            })();
        parent.insertBefore(frag, currentNode);
        parent.removeChild(currentNode);
    }
}
var isMSIE = /*@cc_on!@*/0;
var ver = isMSIE ? parseFloat(navigator.appVersion.split("MSIE")[1]) : 0;

if (isMSIE && ver < 7) {
var hosei= (isMSIE && ver >= 8) ?-50:0;
findAndReplace('(\\(?(808)\\)?\\s*(-?)\\s*(\\d{3,})\\s*(-?)\\s*(\\d{3,}))', '$1<br><img src="http://m.mo-hawaii.com/tools/0570/ico_mobile2_04.gif"> <a href=\'javascript:;\' onclick=\'window.open("http://m.mo-hawaii.com/tools/0570/mocall/mocall.html?1-$2-$4$5$6", "0570", "left=0,top=0,width=440,height=490,status=0,scrollbars=0,menubar=0,location=0,toolbar=0,resizable=0");\'><span style="font-size:11px;font-weight:normal;">国内料金で気軽にCALL!</span></a>');
} else {
var hosei= (isMSIE && ver >= 8) ?-50:0;
findAndReplace('(\\(?(808)\\)?\\s*(-?)\\s*(\\d{3,})\\s*(-?)\\s*(\\d{3,}))', '$1<br><img src="http://m.mo-hawaii.com/tools/0570/ico_mobile2_04.gif"> <a href=\'http://m.mo-hawaii.com/tools/0570/mocall/mocall.html\' onclick="new $pop(this.href+\'?1-$2-$4$5$6\',{type:\'iframe\',title:\'モーハワイ★コール\',width:440,height:'+(490+hosei)+',modal:true,effect:\'normal\'});return false;"><span style="font-size:11px;font-weight:normal;">国内料金で気軽にCALL!</span></a>');
}