
// popup
function popup (url,name,h,v,sc,st) {
	var win;
	win = window.open(url,name,'width='+h+',height='+v+',scrollbars='+sc+',resizable=no,resize=no,toolbar=no,status='+st+',directories=no,menubar=no,location=no');
	win.focus();
}

// pulldown navi
var timeout = 0;
var timer;
var top_active = new Array();
function inflate_group () { }
function hide_all () { if (typeof(hide_all_navi) == "function") { hide_all_navi(); } }

function getRealLeft(id) {
	var el = document.all ? document.all(id) : document.getElementById ? document.getElementById(id) : null;
    var xPos = el.offsetLeft;
	var tempEl = el.offsetParent;
    while (tempEl != null) {
        xPos += tempEl.offsetLeft;
        tempEl = tempEl.offsetParent;
    }
    return xPos;
}

function roll_t_o (t_num) {
	if (document.all || document.getElementById) {
		if (document.all) {
			var style_ref = document.all["ta"+t_num].style
		} else if (document.getElementById) {
			var style_ref = document.getElementById("ta"+t_num).style;
		}
		var t_flag = top_active[t_num];
		if (t_flag == "a") {
			style_ref.color = "#000000";
			style_ref.backgroundColor = "#FFFFFF";
		} else {
			style_ref.color = "#F11A29";
			style_ref.backgroundColor = "#FFFFFF";
		}
	}
}

function roll_t_n (t_num) {
	if (document.all || document.getElementById) {
		if (document.all) {
			var style_ref = document.all["ta"+t_num].style
		} else if (document.getElementById) {
			var style_ref = document.getElementById("ta"+t_num).style;
		}
		var t_flag = top_active[t_num];
		if (t_flag == "a") {
			style_ref.color = "#000000";
			style_ref.backgroundColor = "#F11A29";
		} else {
			style_ref.color = "#FFFFFF";
			style_ref.backgroundColor = "#F11A29";
		}
	}
}
