

function tab(){
	var btn = document.getElementById('newsTab').getElementsByTagName('a');
	var imgs = document.getElementById('newsTab').getElementsByTagName('img');
	var con = document.getElementById('news_cont').getElementsByTagName('div');

	for(i=0;i<btn.length;i++){

		btn[i].num=i;
		btn[i].onclick=function(){

			for(j=0;j<btn.length;j++){
				con[j].style.display = "none"
				imgs[j].src=imgs[j].src.replace('_on','_off')
			}

			con[this.num].style.display = ""
			imgs[this.num].src=imgs[this.num].src.replace('_off','_on')
				return false;
		}
	}
}



function noticePrevNext(){

	var Box = $('#photoListBox > dl');
	var btn = $("#photoListBtn > a");
	var length = Box.length;
	var num = length*10000;
	if(Box.length<=1 ) return false;


	var showCnt = function(i){
		Box.hide();
		Box.eq(i).show();
	}

	Box.each(function(i){
	});
	btn.each(function(i){
		if(i == 0)
			this.onclick = function(){
				num--;
				showCnt(num%length)
				return false;
			}
		else if(i == 1)
			this.onclick = function(){
				num++;
				showCnt(num%length)
				return false;
			}
	});
}

