/************************************************
*  Name              :  ptv.bottom.js
*  Current Version   :  0.0.0.1
*  Create by Date    :  2008.04.01
*  Create by         :  jake.jee
*  Last Update Date  :  2008.04.01
*  Last Update By    :  jake.jee
*  Description       :
*************************************************/

ptvBottom = {
	_html : '',
	_bottomLang : null,
	_bottomLink : '',
	_setLang : function () {
		switch (chInfoJson.clientLang) {
			case "ko" :
				this._bottomLang = ["판도라TV 소개", "개인정보취급방침", "청소년보호정책", "권리침해신고", "이용약관", "제휴문의", "광고문의", "도움말", "OPEN API","브랜드채널"];
			break;
			case "cn" :
				this._bottomLang = ["潘多拉TV介绍", "信息保护协议", "侵权投诉", "使用协议", "提问合作", "广告", "帮助", "OPEN API"];
			break;
			case "jp" :
				this._bottomLang = ["パンドラTVの紹介", "個人情報保護規約", "権利侵害届出", "利用規約", "提携", "広告掲載", "ヘルプ", "OPEN API"];
			break;
			default :
				this._bottomLang = ["About Us", "Privacy Policy", "Copyright Notices", "User Agreement", "Partners", "Advertise with Us", "Help", "OPEN API"];
			break;
		}
	},

	draw : function (target) {
		if (chInfoJson.clientLang == "ko") {
			this._bottomLink = [
				variable.getChild('infoHost') + '?m=pandoratv_introduce',
				variable.getChild('infoHost') + '?m=service_use_2',
				variable.getChild('infoHost') + '?m=service_use_4',
				variable.getChild('infoHost') + '?m=state_right',
				variable.getChild('infoHost') + '?m=service_use_1',
				variable.getChild('infoHost') + '?m=1by1#code1=Q08&code2=03',
				variable.getChild('infoHost') + '?m=1by1&cs1=1#code1=Q08&code2=01', // http://info.pandora.tv/?cs1=1&m=1by1#code1=Q08&code2=01
				variable.getChild('infoHost') + '?m=faq',
				variable.getChild('apiHost'),
				'http://brand.pandora.tv/Information/'
			];
		} else {
			this._bottomLink = [
				variable.getChild('infoHost') + '?m=pandoratv_introduce',
				variable.getChild('infoHost') + '?m=service_use_2',
				variable.getChild('infoHost') + '?m=state_right',
				variable.getChild('infoHost') + '?m=service_use_1',
				variable.getChild('infoHost') + '?m=1by1#code1=Q08&code2=02',
				variable.getChild('infoHost') + '?m=1by1&cs1=1#code1=Q08&code2=01',
				variable.getChild('infoHost') + '?m=faq',
				variable.getChild('apiHost')
			];
		}
		this._setLang();

		for (var i=0; i < this._bottomLang.length; i++) {
			if (i>0) {
				this._html+= " <span class=top_bar>l</span> ";
			}
			if (i==6 && chInfoJson.clientLang=="ko") {
				this._bottomLink[i] = variable.getChild('eventHost') + "service/adver";
			}
			this._html+= '<a href="' + this._bottomLink[i] + '">' + this._bottomLang[i] + '</a>';
		}

		this._html+= '<br >Copyright ⓒ <a class="bold" href="' + variable.getChild('mainHost') + '"> PANDORATV</a> Inc. All Rights Reserved';

		try {
			$(target).update(this._html);
		}
		catch (e) {}
	}
}


