function Main_ARTICLE_board(b_name) {
	this.page = 0 ;
	this.mode = 'image' ;
	this.style_1 = '' ;
	this.pages = new Array ;
	this.p_name = b_name ;
	this.prev = function() {
		this.page = this.page - 1 ;
		if ( this.page < 0 ) this.page = this.pages.length - 1 ;
		this.view();
	}
	this.next = function() {
		this.page = this.page + 1 ;
		if ( this.page >= this.pages.length ) this.page = 0 ;
		this.view();
	}
	this.view = function() {
		var pages = this.pages , page = this.page , p_name = this.p_name ;
		if ( pages.length < 1 ) return ;
		var at = document.getElementById(p_name+'_title') ;
		var ac = document.getElementById(p_name+'_contents') ;
		if ( this.mode == 'image' )
			var ai = document.getElementById(p_name+'_image');
		if ( this.p_name == 'article' ) {
			at.innerHTML = '<a href="/article/sub0' + pages[page][0] + '.html?mode=view&numid=' + pages[page][1] + '" class="sf" ' + this.style_1 + '>' + pages[page][2] + '</a>' ;
			ac.innerHTML = '<a href="/article/sub0' + pages[page][0] + '.html?mode=view&numid=' + pages[page][1] + '" ' + this.style_1 + '>' + pages[page][3] + '</a>' ;
			if ( this.mode == 'image' )
				ai.innerHTML = '<a href="/article/sub0' + pages[page][0] + '.html?mode=view&numid=' + pages[page][1] + '">' + pages[page][4] + '</a>' ;
		//*/
		} else {
		//	at.innerHTML = '<a href="/article/sub0' + pages[page][0] + '.html?mode=view&numid=' + pages[page][1] + '" class="sf" ' + this.style_1 + '>' + pages[page][2] + '</a>' ;
			ac.innerHTML = '<a href="/article/sub0' + pages[page][0] + '.html?mode=view&numid=' + pages[page][1] + '" ' + this.style_1 + '>' + pages[page][3] + '</a>' ;
			if ( this.mode == 'image' )
				ai.innerHTML = '<a href="/article/sub0' + pages[page][0] + '.html?mode=view&numid=' + pages[page][1] + '">' + pages[page][4] + '</a>' ;
		}
	}
}
var now_view_article_board = -1 ;
var now_view_score_board = -1 ;
var auto_slide = true ;
var auto_slide3 = true ;
function prev(tbl) {
	var objTbl = document.all(tbl);
	now_view_article_board-- ;
	if ( now_view_article_board < 0 ) {
		now_view_article_board = objTbl.length - 1 ;
	}
	swapMenu(document.all['imagegroup02'][now_view_article_board],tbl);
}
function next(tbl) {
	var objTbl = document.all(tbl);
	now_view_article_board++ ;
	if ( now_view_article_board >= objTbl.length  ) {
		now_view_article_board = 0 ;
	}
	swapMenu(document.all['imagegroup02'][now_view_article_board],tbl);
}
function view(obj , tbl , id ) {
	now_view_article_board = id ;
	swapMenu(obj,tbl);
}
function autoSlide() {
	if ( auto_slide ) {
		next('tablegroup02') ;
	}
	tid = setTimeout ( "autoSlide()" , 5000 ) ;
}
function autoSlide2() {
	now_view_score_board++ ;
	if ( now_view_score_board >= 3  ) {
		now_view_score_board = 0 ;
	}
	swapMenu(document.all['imagegroup01'][now_view_score_board],'tablegroup01');
	tid = setTimeout ( "autoSlide2()" , 4000 ) ;
}
function autoSlide3() {
	if ( auto_slide3 ) {
		article1.next();
	}
	tid = setTimeout ( "autoSlide3()" , 3000 ) ;
}
function init() {
	autoSlide();
	//autoSlide2();
	//autoSlide3();
}

window.attachEvent('onload' , init ) ;