// JavaScript Document
function checkToolBar_CNYgreeting() {
	var isPcWindow = (navigator.userAgent.indexOf("Windows") != -1) && (navigator.userAgent.indexOf("Windows CE") == -1);
	var isIE = (navigator.userAgent.indexOf("MSIE") != -1);
	var isFF = (navigator.userAgent.indexOf("Firefox") != -1);
	var installed = false;
	try {
		if (isIE) {
			installed = (window.external.hktbar_Action(0) > 0);
		} else if (isFF) {
			installed = isToolbar();
		}
	} catch (e) {}	
	
	if (installed && isPcWindow) {
		try {
			gotoPlayer_CNYgreeting();
		} catch (e) {}
	} else if (isPcWindow) {
		top.location.href = 'http://apps.881903.com/main/event/ads/CRCNYgreetings2010/hktb_r.html';
	} else {
		var tbReqMsg = 	'\u5C0D\u4E0D\u8D77\uFF0C\u66AB\u4E0D\u652F\u63F4\u95A3\u4E0B\u7684\u7CFB\u7D71\u53CA\u700F\u89BD\u5668\n\n' +
						'HKTB Player \u7CFB\u7D71\u8981\u6C42:\n' +
						'Hong Kong Toolbar PC\u7248\u672C\u652F\u63F4\u4E0B\u5217\u64CD\u4F5C\u7CFB\u7D71\u53CA\u700F\u89BD\u5668\n' +
						'Windows 7 / Vista / XP / 2003 / 2000 32\u4F4D\u7CFB\u7D71\n' +
						'MS Internet Explorer 6.x / 7.x / 8.x\n' +
						'FireFox 2.0 / 3.0 / 3.5\n' +
						'\u8ACB\u78BA\u5B9A\u95A3\u4E0B\u7684\u96FB\u8166\u5DF2\u914D\u5099\u4EE5\u4E0A\u4EFB\u4F55\u4E00\u7D44\u7CFB\u7D71\u53CA\u700F\u89BD\u5668\uFF0C\u8B1D\u8B1D!!';
		alert(tbReqMsg);
	}
}

function popCNYplayer( _clickthru_url_cnygreeting ) {
	if (_clickthru_url_cnygreeting!=null && _clickthru_url_cnygreeting!='null' && _clickthru_url_cnygreeting!='undefined') {
		var temp_img = new Image();
		temp_img.src = _clickthru_url_cnygreeting;
	}
	checkToolBar_CNYgreeting();
}
