//  ========================================================
//  tlab-beacon.js ---- beacon tag class
//  Copyright 2008 TEAM-LAB
//  ========================================================

/*************************************************************
//sumple
<html>
<head>
<script type="text/javascript" src="http://www.teamlab-recommend.jp/misumi/js/tlab-beacon.js"></script>
</head>
<body>
    <div id="beacon_divid"></div>
    <script>(new TLAB.Beacon("beacon_divid", "item10")).sendRequest();</script>
</body>
</html>
*************************************************************/


if ( typeof(TLAB) == 'undefined' ) TLAB = function() {};

TLAB.Beacon = function (arg1, arg2) {
	this.divtag = arg1;
	this.itemid = escape(arg2);
	this.url = "http://www.teamlab-recommend.jp/misumi/beacon.gif?item=" + this.itemid;
	return this;
}

TLAB.Beacon.prototype.sendRequest = function () {
	document.getElementById(this.divtag).innerHTML = "<img src='" + this.url + "'>";
}

