/* beShop JavaScript */

var	_h = location.href;
if (location.hostname == "crypto.ne.jp")
	location.replace(_h.replace("crypto.ne.jp", "www.crypto.ne.jp"));

function sendMail(ac, dom)
{
	location.href = String.fromCharCode(109,97,105,108,116,111,58) + ac + String.fromCharCode(64) + dom;
	return false;
}

function dispMail(ac, dom)
{
	window.status = "mailto:" + ac + String.fromCharCode(64) + dom;
	return true;
}

function dispMenu(st, cl, pg, doc, flg)
{
	document.write('<div style="width:100%">');
	if (pg) {
		document.write('<a class="mn" href="' + _dot + '/' + pg + '" onclick="return onMenuClick(\'' + _dot + '/' + pg + '\'');
		document.write(',' + (doc ? '\'' + doc + '\'' : 'null'));
		document.write(',' + (flg ? '\'' + flg + '\'' : 'null'));
		document.write(')">');
	}
	document.write('<img class="base" style="margin-left:10px;margin-right:2px" border="0" width="9" height="9" src="' + _dot + '/../img/bes/' + (pg ? cl + 'sankaku' : 'pmaru') + '.gif" alt="" />');
	if (!pg)
		document.write('<span style="color:#cd853f">');
	document.write(st);
	document.write(pg ? '</a>' : '</span>');
	document.write('</div>');
}


/* style object */
function ieGetElementById(id)
{
	return document.all(id);
}

if (document.all && !document.getElementById)
	document.getElementById = ieGetElementById;

function getStyleObject(id)
{
	var	styleObject = null;
	if (document.getElementById) {
		var	elm = document.getElementById(id);
		if (elm && elm.style)
			styleObject = elm.style;
	}
	return styleObject;
}
