// JavaScript Document
/* -------------------------------------------------------------------------- */
/** 
 *    @fileoverview
 *       behaviors of the toppage.
 *
 *    @version rev002.2007-06-11
 *    @requires common.js
 *    @requires objectGenerator.js
 *    @requires effects.js
 *    @requires tabView.js
 */
/* -------------------------------------------------------------------------- */

var ITV_TOPICS_TABVIEW;

/* -------------------- Settings for BANATopicsTabViewSetup -------------------- */

var ITV_TOPICS_TABVIEW_BASENODE_ID   = 'local_navigation';
var ITV_TOPICS_TABVIEW_ADJUST_HEIGHT = false;

/* -------------------- Function : ITVNATopicsTabViewSetup -------------------- */

function ITVTopicsTabViewSetup() {
	if (typeof ITVTabView == 'function') {
		var node = document.getElementByIdITV(ITV_TOPICS_TABVIEW_BASENODE_ID);
		if (node) {
			ITV_TOPICS_TABVIEW = new ITVTabView(node, ITV_TOPICS_TABVIEW_ADJUST_HEIGHT);
		}
	}
}






/* -------------------- Main : register start-up -------------------- */

if (typeof ITV == 'object' && ITV.ua.DOMok) {
	ITVAddOnload(ITVTopicsTabViewSetup);
/*
	// for expansion and contraction test
	ITVAddOnload(function() {
		var btn = document.createElementITV('button');
		btn.appendChildITV('\u4F38\u7E2E\u30C6\u30B9\u30C8');
		btn.style.position = 'absolute';
		btn.style.top      = '510px';
		btn.style.left     = '920px';
		btn.style.zIndex   = '10000';
		btn.style.width    = '6em';
		btn.__TOGGLEFLAG__ = false;
		btn.addEventListenerITV('click', function(e) {
			ITVNA_HEADER_FLASH.resizeTo((this.__TOGGLEFLAG__ ? 320 : 420), 200);
			this.__TOGGLEFLAG__ = !this.__TOGGLEFLAG__;
		});
		document.body.appendChildITV(btn);
	});
*/
}