function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function getElement(o) {	return MM_findObj(o);	if (document.getElementById)		return document.getElementById(o);	else if (document.all)		return document.all[o];}function setVisibility(o, b) {	v = getElement(o);	if ( v == null )		return;	v = v.style	var s = (b)?"block":"none";	if (v.display != s)		v.display = s;}function setCurrss(o, b) {	wb = getElement(o);	if ( wb == null )		return;	wb = wb.style	var tb = (b)?"#06f":"#555";	if (wb.backgroundColor != tb)		wb.backgroundColor = tb;}function qssshow(c) {	setVisibility("qss1", false);	setVisibility("qss2", false);	setVisibility("qssa", false);	setCurrss("qss1t", false);	setCurrss("qss2t", false);	setCurrss("qssat", false);	setVisibility(c, true);	var cc = (c + 't');	setCurrss(cc, true);}function qsvshow(c) {	setVisibility("qss1v", false);	setVisibility("qss2v", false);	setVisibility("qsspp", false);	setCurrss("qss1vt", false);	setCurrss("qss2vt", false);	setCurrss("qssppt", false);	setVisibility(c, true);	var cc = (c + 't');	setCurrss(cc, true);}//	予選結果セッション SELECTfunction qschk() {	qURL = location.toString();	qs1 = qURL.indexOf("qone",0);	if ( qs1 > -1 ) { qssshow('qss1'); }	qs2 = qURL.indexOf("qtwo",0);	if ( qs2 > -1 ) { qssshow('qss2'); }	qsa = qURL.indexOf("qall",0);	if ( qsa > -1 ) { qssshow('qssa'); }	else { return; }}//	予選レビューセッション SELECTfunction qvchk() {	qURL = location.toString();	qv1 = qURL.indexOf("qone",0);	if ( qv1 > -1 ) { qsvshow('qss1v'); }	qv2 = qURL.indexOf("qtwo",0);	if ( qv2 > -1 ) { qsvshow('qss2v'); }	qpp = qURL.indexOf("qcpp",0);	if ( qpp > -1 ) { qsvshow('qsspp'); }	else { return; }}// ランキングタブfunction rnkshow(c) {	setVisibility("driver1", false);	setVisibility("driver2", false);	setVisibility("team1", false);	setVisibility("team2", false);	setVisibility("cr_d1", false);	setVisibility("cr_d2", false);	setVisibility("cr_t1", false);	setVisibility("cr_t2", false);	setVisibility("ln_d1", true);	setVisibility("ln_d2", true);	setVisibility("ln_t1", true);	setVisibility("ln_t2", true);	setVisibility("ptsys_d", false);	setVisibility("ptsys_t", false);	if ( c == "rkd1") {		setVisibility("driver1", true);		setVisibility("ln_d1", false);		setVisibility("cr_d1", true);		setVisibility("ptsys_d", true);	}			if ( c == "rkd2") {		setVisibility("driver2", true);		setVisibility("ln_d2", false);		setVisibility("cr_d2", true);		setVisibility("ptsys_d", true);	}			if ( c == "rkt1") {		setVisibility("team1", true);		setVisibility("ln_t1", false);		setVisibility("cr_t1", true);		setVisibility("ptsys_t", true);	}			if ( c == "rkt2") {		setVisibility("team2", true);		setVisibility("ln_t2", false);		setVisibility("cr_t2", true);		setVisibility("ptsys_t", true);	}}// チームページfunction setCurrtm(o, b) {	wb = getElement(o);	if ( wb == null )		return;	wb = wb.style	var tb = (b)?"#222":"#666";	if (wb.backgroundColor != tb)		wb.backgroundColor = tb;}function tmdshow(c) {	setVisibility("tmdt", false);	setVisibility("tmd1", false);	setVisibility("tmd2", false);	setCurrtm("tmdtt", false);	setCurrtm("tmd1t", false);	setCurrtm("tmd2t", false);	setVisibility(c, true);	var cc = (c + 't');	setCurrtm(cc, true);}function tmchk() {	qURL = location.toString();	tmm = qURL.indexOf("dt",0);	if ( tmm > -1 ) { tmdshow('tmdt'); }	dr1 = qURL.indexOf("d1",0);	if ( dr1 > -1 ) { tmdshow('tmd1'); }	dr2 = qURL.indexOf("d2",0);	if ( dr2 > -1 ) { tmdshow('tmd2'); }	else { return; }}