//  ========================================================
//  tlab-recommend.js ---- recommend view class
//  Copyright 2009 TEAM-LAB
//  ========================================================

if ( typeof(TLAB) == 'undefined' ) TLAB = function() {};

TLAB.BeaconFaq = function (arg1, arg2) {
	this.divtag = arg1;
	this.itemcd = escape(arg2);
	this.imgurl = "http://www2.teamlab-recommend.jp/cl005/beacon.gif?item=" +this.itemcd;
	return this;
}

TLAB.BeaconFaq.prototype.sendRequest = function () {
	document.getElementById(this.divtag).innerHTML = "<img src='" + this.imgurl + "'>";
}

TLAB.BeaconInfo = function (arg1, arg2) {
	this.divtag = arg1;
	this.itemcd = escape(arg2);
	this.imgurl = "http://www2.teamlab-recommend.jp/cl006/beacon.gif?item=" + this.itemcd;
	return this;
}

TLAB.BeaconInfo.prototype.sendRequest = function () {
	document.getElementById(this.divtag).innerHTML = "<img src='" + this.imgurl + "'>";
}

TLAB.BeaconWords = function (arg1, arg2) {
	this.divtag = arg1;
	this.itemcd = escape(arg2);
	this.imgurl = "http://www2.teamlab-recommend.jp/cl007/beacon.gif?item=" + this.itemcd;
	return this;
}

TLAB.BeaconWords.prototype.sendRequest = function () {
	document.getElementById(this.divtag).innerHTML = "<img src='" + this.imgurl + "'>";
}

TLAB.RecommendFaq = function (arg1, arg2) {
	this.divtag = arg1;
	this.itemcd = escape(arg2);
	this.jsurl = "http://www2.teamlab-recommend.jp/cl005/recommend.js?elem=" + this.divtag + "&item=" + this.itemcd;
	return this;
}

TLAB.RecommendFaq.prototype.sendRequest = function () {
	var jsElement=document.createElement("script");
	jsElement.type="text/javascript";
	jsElement.src=this.jsurl;
	jsElement.characterSet="UTF-8";
	document.getElementById(this.divtag).appendChild(jsElement);
}

TLAB.RecommendInfo = function (arg1, arg2) {
	this.divtag = arg1;
	this.itemcd = escape(arg2);
	this.jsurl = "http://www2.teamlab-recommend.jp/cl006/recommend.js?elem=" + this.divtag + "&item=" + this.itemcd;
	return this;
}

TLAB.RecommendInfo.prototype.sendRequest = function () {
	var jsElement=document.createElement("script");
	jsElement.type="text/javascript";
	jsElement.src=this.jsurl;
	jsElement.characterSet="UTF-8";
	document.getElementById(this.divtag).appendChild(jsElement);
}

TLAB.RecommendWords = function (arg1, arg2) {
	this.divtag = arg1;
	this.itemcd = escape(arg2);
	this.jsurl = "http://www2.teamlab-recommend.jp/cl007/recommend.js?elem=" + this.divtag + "&item=" + this.itemcd;
	return this;
}

TLAB.RecommendWords.prototype.sendRequest = function () {
	var jsElement=document.createElement("script");
	jsElement.type="text/javascript";
	jsElement.src=this.jsurl;
	jsElement.characterSet="UTF-8";
	document.getElementById(this.divtag).appendChild(jsElement);
}

TLAB.RankingFaq = function (arg1) {
	this.divtag = arg1;
	this.jsurl = "http://www2.teamlab-recommend.jp/cl005/ranking.js?elem=" + this.divtag;
	return this;
}

TLAB.RankingFaq.prototype.sendRequest = function () {
	var jsElement=document.createElement("script");
	jsElement.type="text/javascript";
	jsElement.src=this.jsurl;
	jsElement.characterSet="UTF-8";
	document.getElementById(this.divtag).appendChild(jsElement);
}

