window.onload=function(){navi_img();if(byid("n_07")){n_07();navi_07();photo_07();td_unline();}memmber();poll();aw2_table();sccore_navi();nominated_table08();img_over_out();if(window.location.href.indexOf("judge")!=-1){judge_in();}press_move();best10_move();best10_top();nominated08_img_big();setTimeout("top_08();", 2000);top_pres();result_year_this();newcar_file_in();}


function newcar_file_in(){	if(!byid("newcar")) return false;		var newcar=byid("newcar");	var tag_a=tag_name(newcar,"a");		for(i=0;i<tag_a.length;i++){	var src_text=tag_a[i].getAttribute("href");	if(src_text.indexOf("http")==-1){		tag_a[i].setAttribute("href","file/"+src_text);		}			}	}


function result_year_this(){
	if(!byid("aw_result")) return false;
	var aw_result=byid("aw_result");
	var tag_tr=tag_name(aw_result,"tr");
	
	for(i=0;i<tag_tr.length;i++){
		if(i%2==0){
			tag_tr[i].style.background="#fff";
			}
		else{
			tag_tr[i].style.background="#eee";
			}		
		}
	
	}




function top_08(){
	if(!byid("top_main_08_1")) return false;
	var top_main_08_1=byid("top_main_08_1");
	var top_main_08_2=byid("top_main_08_2");
	$("#top_main_08_2").fadeIn(2000);	
	}






function top_move_10best(){
	if(!byid("top_main_img")) return false;
	var top_main_img=byid("top_main_img");
	
	$("#top_main_1").fadeOut(1500,function(){
		$("#top_main_2").fadeIn(1500,function(){
		$(this).fadeOut(1500);
		$("#top_main_3").fadeIn(2500,function(){
		for(i=0;i<11;i++){			
			
			var make_span=tag_make("span");
			make_span.setAttribute("id","top_img_span"+i)
			
			if(i<6&&i%2==0){
				make_span.style.top="40px";
				}
			else if(i<6&&i%2==1){
				make_span.style.top="68px";
				}
			else if(i>6&&i%2==1){
				make_span.style.top="147px";
				}
			else if(i>=6&&i%2==0){
				make_span.style.top="122px";
				}
			
			if(i==1||i==3||i==5){
				make_span.style.top="80px";
				}
				
			if(i==7||i==9){
				make_span.style.top="157px";
				}
			
			if(i<6){
			make_span.style.left=i*97
			}
			else{
				make_span.style.left=(i-6)*97
				}
			
			
			
			var make_img=tag_make("img");
			make_img.setAttribute("src","year_this/img/nominated/"+best10_08[i]+".jpg");
			make_img.setAttribute("width","97");
			make_img.setAttribute("height","53");
			
			
			
			make_span.appendChild(make_img);
			top_main_img.appendChild(make_span);
			
			}
			
			
						
			$("#top_img_span0").slideDown(700,function(){
			$("#top_img_span1").slideDown(900);										   
			$("#top_img_span3").slideDown(900);										   
			$("#top_img_span5").show(900);
			$("#top_img_span7").show(900);
			$("#top_img_span10").show(900);
			$("#top_img_span9").show(900,function(){
			$("#top_main_4").fadeIn(900,function(){
			for(i=0;i<11;i++){
			$("#top_img_span"+i).fadeOut(1500);
			$("#top_main_5").fadeIn(1500);
				}
												 
												 });		
			});
				});
			$("#top_img_span2").slideDown(900);
			$("#top_img_span4").slideDown(900);
			$("#top_img_span6").show(900);
			$("#top_img_span8").show(900);
			});			
											  });
		});
	
	

	}




function press_move(){
	if(!byid("press_attention")) return false;
	
	var press_button=byid("press_button");
	var press_table=byid("press_table");
	var press_attention=byid("press_attention");	
	
	var tag_a=tag_name(press_table,"a");
	
	for(i=0;i<tag_a.length;i++){
		click_stop(i)
		}
		
	function click_stop(no){
		tag_a[no].onclick=function(){
		return false;	
			}
			}
			
		function click_go(no){
		tag_a[no].onclick=function(){
		return true;	
			}
			}
	
	press_button.onclick=function(){
		$(this).fadeOut(500);
		for(i=0;i<tag_a.length;i++){
		tag_a[i].style.color="#00f"
		tag_a[i].style.cursor="pointer"
		tag_a[i].style.textDecoration="underline";
		click_go(i)
		}
		
		}
	
	
	}






function best10_top(){
	if(!byid("top_10best")) return false;	
	
		
	for(i=0;i<best10_08.length;i++){
		best10_08[i]=best10_08[i]-1;
		}
	
	
	var top_10best=byid("top_10best");
	
		
	for(i=0;i<11;i++){
	var temp_no=best10_08[i];
	
	var make_span=tag_make("span");
	if(i==1||i==2||i==5||i==6||i==9||i==10){
		make_span.style.background="#800707";
		}
	else{
		make_span.style.background="#AF3636";		
		}
	var make_img=tag_make("img");
	make_img.setAttribute("src","year_this/img/nominated/"+temp_no+".jpg");
	make_img.setAttribute("align","middle");
	make_img.setAttribute("width","50");
	make_img.setAttribute("height","27");
	var text_car=text_make(nominated_08[temp_no][1]);
	var text_make1=text_make(nominated_08[temp_no][3]+" ");
	make_span.appendChild(make_img);
	make_span.appendChild(text_make1);
	make_span.appendChild(text_car);
	top_10best.appendChild(make_span);	
	}
	var make_br=tag_make("br");
	make_br.style.clear="both";
	top_10best.appendChild(make_br);
	
	}




function best10_move(){
	if(!byid("best08")) return false;
	
	
	for(i=0;i<best10_08.length;i++){
		best10_08[i]=best10_08[i]-1;
		}
	
	
	var best08=byid("best08");	
	var tag_img=tag_name(best08,"img");
	var tag_b=tag_name(best08,"b");
	var tag_u=tag_name(best08,"u");
	
	
	for(i=0;i<11;i++){
		var temp_no=best10_08[i];
		
		tag_img[i].setAttribute("src","img/nominated/"+best10_08[i]+".jpg");
		tag_img[i].setAttribute("width","203");
		tag_img[i].setAttribute("height","110");
		
		var text_car=text_make(nominated_08[temp_no][1]);
		var text_make1=text_make(nominated_08[temp_no][3]+" ");
		var make_a=tag_make("a");
		make_a.setAttribute("href",nominated_08[temp_no][5]);
		make_a.appendChild(text_make1);
		make_a.appendChild(text_car);
		tag_b[i].appendChild(make_a);
		
		var text_maker=text_make(nominated_08[temp_no][2]);
		tag_u[i].appendChild(text_maker);
		}
	
	
	
	}







function top_pres(){
	if(!byid("bodycr")) return false;
	
	var bodycr=byid("bodycr");
	var tag_p=tag_name(bodycr,"p")[0]	
	
	for(i=0;i<5;i++){
	var tag_span1=tag_make("span");
	var day_text=text_make(carlist[i][0]);
	tag_span1.appendChild(day_text);
	tag_p.appendChild(tag_span1);	
	var tag_a=tag_make("a");
	if(i%2==1){
		tag_span1.style.background="#DBDACA";
		tag_a.style.background="#DBDACA";		
		}
	tag_a.setAttribute("href","year_this/newcar.html");
	var main_text=text_make(carlist[i][2]);
	tag_a.appendChild(main_text);
	tag_p.appendChild(tag_a);	
		}
	
		
	
	
	}





function img_over_out(){
	if(document.images.length==0) return false;

in_func("1_btn_about.jpg","1_btn_about_ov.jpg");
in_func("1_btn_schedule.jpg","1_btn_schedule_ov.jpg");
	
in_func("1_btn_nominated.jpg","1_btn_nominated_ov.jpg");
in_func("1_btn_10best.jpg","1_btn_10best_ov.jpg");
in_func("1_btn_result.jpg","1_btn_result_ov.jpg");



in_func("1_btn_judge.jpg","1_btn_judge_ov.jpg");

in_func("1_btn_newcar.jpg","1_btn_newcar_ov.jpg");






in_func("2_btn_10best.jpg","2_btn_10best_ov.jpg","http://www.jcoty.org/year_this/10best.html");
in_func("2_btn_result.jpg","2_btn_result_ov.jpg","http://www.jcoty.org/year_this/index.html");
in_func("2_btn_previous.jpg","2_btn_previous_ov.jpg");
	
		
	function in_func(img_name1,img_name2,link_url){	
	var tag_img=document.images;
		
	for(i=0;i<tag_img.length;i++){
	if(!tag_img[i].getAttribute("src")) return true;
	else if(tag_img[i].getAttribute("src").indexOf(img_name1)!=-1){
	var now_src=tag_img[i].getAttribute("src");
	var temp_array=now_src.split("/");
	temp_array.pop();
	temp_array.push(img_name2);
	var change_src=temp_array.join("/");
	
	tag_img[i].onmouseover=function(){
	this.setAttribute("src",change_src);
	this.style.cursor="pointer";
	}
	
	tag_img[i].onmouseout=function(){
	this.setAttribute("src",now_src)
	}
	
	if(link_url){
	tag_img[i].onclick=function(){
	window.location.href=link_url
	}
	}

     }
	 }
	}
	}







function nominated_table08(){
	if(!byid("nominated_table08")) return false;
	var base_table08=byid("nominated_table08");
	
	
	
	for(i=0;i<nominated_08.length;i++){
		var make_tr=tag_make("tr");
		for(q=0;q<5;q++){
			var make_td=tag_make("td");
			
			if(q==0){
			var make_text=text_make(nominated_08[i][3]);
			make_td.appendChild(make_text);
			make_tr.appendChild(make_td);
			}
			
			if(q==1){
			var make_text=text_make(nominated_08[i][1]);
			var make_a=tag_make("a");
			make_a.appendChild(make_text);
			make_a.setAttribute("href",nominated_08[i][5]);
			make_a.setAttribute("target","_blank");
			make_td.appendChild(make_a);
			make_tr.appendChild(make_td);
			make_td.style.fontSize="13px";
			}
			
			if(q==2){
				var make_img=tag_make("img");
				make_img.setAttribute("src","img/nominated/"+i+".jpg");
				make_img.setAttribute("width","100");
				make_img.setAttribute("height","54");
				make_td.appendChild(make_img);
				make_tr.appendChild(make_td);
				}
						
			if(q==3){
			var make_text=text_make(nominated_08[i][2]);
			make_td.appendChild(make_text);
			make_tr.appendChild(make_td);
			}
			
			if(q==4){
			var make_text=text_make(nominated_08[i][4]);
			make_td.appendChild(make_text);
			make_tr.appendChild(make_td);
			}
		
		
			}
		base_table08.appendChild(make_tr);
		}
	
	
	
	var tag_tr=tag_name(base_table08,"tr");
	for(i=1;i<tag_tr.length;i++){
		if(i%2==0){
			tag_tr[i].style.background="#eee";
			}
			else{
				tag_tr[i].style.background="#E0E0E0";
				}
		
		}	
	
	
	

	}





function nominated08_img_big(){
	
if(byid("year_this_body"))	{
common_func("year_this_body","img/",40,eval(nominated_08[0][0]-1),"nominated_table08")	;
}

if(byid("best08"))	{
common_func("best08","img/",10,eval(best10_08[0]),"best08")	;
}

if(byid("top_10best"))	{
common_func("top_10best","year_this/img/",10,eval(best10_08[0]),"top_10best")	;
}

	
function common_func(first_id,img_pass,max_no,img_no_value,click_id){	
if(!byid(first_id)) return false;
var year_this_body=tag_name(document,"body")[0]
var img_no=img_no_value;


var div_black_back=tag_make("div");
div_black_back.setAttribute("id","part_window");
year_this_body.insertBefore(div_black_back,year_this_body.firstChild);






var div_img_space=tag_make("div");
div_img_space.setAttribute("id","part_cont");
year_this_body.insertBefore(div_img_space,year_this_body.firstChild);

var part_cont=byid("part_cont");
part_cont.style.left=(screen.width-710)/2


var big_img=tag_make("img");
var img_span=tag_make("span");
img_span.style.display="block";
img_span.style.height="390"
img_span.appendChild(big_img);
part_cont.appendChild(img_span);
big_img.style.margin="5px 0 0"


var big_car_name=tag_make("h2");
part_cont.appendChild(big_car_name);



var button_div=tag_make("div");
for(i=0;i<3;i++){
	var button_img=tag_make("img");
	button_div.appendChild(button_img);
	$(button_img).css("opacity","0.7");	
	button_img.onmouseover=function(){
		$(this).animate({opacity:1},700);
		}
	button_img.onmouseout=function(){
		$(this).animate({opacity:0.7},700);
		}	
	}
part_cont.appendChild(button_div);

var button_pre=tag_name(button_div,"img")[0];
button_pre.setAttribute("src",img_pass+"button/pre.gif");

var button_next=tag_name(button_div,"img")[1];
button_next.setAttribute("src",img_pass+"button/next.gif");

var button_close=tag_name(button_div,"img")[2];
button_close.setAttribute("src",img_pass+"button/close.gif");



button_close.onclick=function(){
	$("#part_window").fadeOut(700);
	$("#part_cont").fadeOut(700,function(){
	none_big_car_name();
	});	
	}

	

button_next.onclick=function(){
$(big_img).fadeOut(700,function(){

if(img_no<max_no){
	img_no++
	}
none_big_car_name();

if(click_id!="nominated_table08"){
var h2_text=text_make(nominated_08[best10_08[img_no]][3]+" y "+nominated_08[best10_08[img_no]][1]+" z");
big_img.setAttribute("src",img_pass+"nominated/"+best10_08[img_no]+".jpg");
}
else{
var h2_text=text_make(nominated_08[img_no][3]+" y "+nominated_08[img_no][1]+" z");
big_img.setAttribute("src",img_pass+"nominated/"+img_no+".jpg");
}

big_car_name.appendChild(h2_text);								
$(big_img).fadeIn(700);	

if(img_no==max_no){
	$(button_next).fadeOut(700);
	}
	if(img_no!=0){
	$(button_pre).fadeIn(700);
	}
});

}



button_pre.onclick=function(){
$(big_img).fadeOut(700,function(){
if(img_no<max_no+1){
	img_no--
	}
none_big_car_name();

if(click_id!="nominated_table08"){
var h2_text=text_make(nominated_08[best10_08[img_no]][3]+" y "+nominated_08[best10_08[img_no]][1]+" z");
big_img.setAttribute("src",img_pass+"nominated/"+best10_08[img_no]+".jpg");
	}
else{
var h2_text=text_make(nominated_08[img_no][3]+" y "+nominated_08[img_no][1]+" z");
big_img.setAttribute("src",img_pass+"nominated/"+img_no+".jpg");
}


big_car_name.appendChild(h2_text);						
$(big_img).fadeIn(700);	

if(img_no==0){
	$(button_pre).fadeOut(700);
	}
	if(img_no!=max_no+1){
	$(button_next).fadeIn(700);
	}

});
}







function none_big_car_name(){
	for(i=0;i<big_car_name.childNodes.length;i++){
	big_car_name.removeChild(big_car_name.firstChild);
	}
	}



var base_table08=byid(click_id);
var tag_img=tag_name(base_table08,"img");
var tag_a=tag_name(base_table08,"a");

for(i=0;i<max_no+1;i++){
click_func(tag_img,i)
	}




function click_func(var_name,no){
	var_name[no].onclick=function(){
		img_no=no
		
		if(no==0){
		button_pre.style.display="none";
		button_next.style.display="inline";		
		}
		else if(no==max_no){
			button_next.style.display="none";
			button_pre.style.display="inline";
			}
		else{
			button_pre.style.display="inline";
			button_next.style.display="inline";
			}
		var height_all=$(document).height();
div_black_back.style.height=height_all;
		$("#part_window").fadeIn(700,function(){
		$(this).css("opacity","0.7");		
		});
		var temp_no;
		if(no<35){
			temp_no=200
			}
			else{
				temp_no=600
				}
		
		if(click_id=="top_10best"){
		part_cont.style.top=150;
		}
		else if(click_id=="best08"&&no>7){
			part_cont.style.top=$(this).offset().top-300
			}
		else{
		part_cont.style.top=$(this).offset().top-temp_no;
		}
		
		
		$("#part_cont").fadeIn(700);		
		
		if(click_id!="nominated_table08"){
		big_img.setAttribute("src",img_pass+"nominated/"+best10_08[no]+".jpg");
		var h2_text=text_make(nominated_08[best10_08[no]][3]+" y "+nominated_08[best10_08[no]][1]+" z");
		}
		else{
		big_img.setAttribute("src",img_pass+"nominated/"+no+".jpg");
		var h2_text=text_make(nominated_08[no][3]+" y "+nominated_08[no][1]+" z");
			}
		
		
		
		
		big_car_name.appendChild(h2_text);		
		
		return false;
		}


}


}






}



function sccore_navi(){
	if(!byid("aw2")) return false;
	var aw2=byid("aw2");
	var tag_ul=aw2.getElementsByTagName("ul");
	var tag_h2=aw2.getElementsByTagName("h2");
	var tag_table=aw2.getElementsByTagName("table");
	
	var tag_a=tag_ul[0].getElementsByTagName("a");
	var tag_i=tag_ul[0].getElementsByTagName("i");
	
	
	tag_a[3].style.display="inline";
	tag_a[3].onclick=function(){
		aw2.style.display="none";
		}
	
	tag_a[0].style.display="inline";
	tag_i[0].style.display="none";
	tag_a[1].style.display="inline";
	tag_i[1].style.display="none";
	tag_a[2].style.display="none";
	tag_i[2].style.display="inline";
	
	
	tag_a[0].onclick=function(){
	tag_a[0].style.display="none";
	tag_i[0].style.display="inline";
	tag_a[1].style.display="inline";
	tag_i[1].style.display="none";
	tag_a[2].style.display="inline";
	tag_i[2].style.display="none";
	
	tag_h2[0].style.display="block";
	tag_table[0].style.display="block";
	tag_h2[1].style.display="none";
	tag_table[1].style.display="none";
			}
	
	
	tag_a[1].onclick=function(){
	tag_a[0].style.display="inline";
	tag_i[0].style.display="none";
	tag_a[1].style.display="none";
	tag_i[1].style.display="inline";
	tag_a[2].style.display="inline";
	tag_i[2].style.display="none";
	
	tag_h2[0].style.display="none";
	tag_table[0].style.display="none";
	tag_h2[1].style.display="block";
	tag_table[1].style.display="block";
			}
	
	
	tag_a[2].onclick=function(){
	tag_a[0].style.display="inline";
	tag_i[0].style.display="none";
	tag_a[1].style.display="inline";
	tag_i[1].style.display="none";
	tag_a[2].style.display="none";
	tag_i[2].style.display="inline";
	
	tag_h2[0].style.display="block";
	tag_table[0].style.display="block";
	tag_h2[1].style.display="block";
	tag_table[1].style.display="block";
			}
			
	
	var aw_navi1=byid("aw_navi1");
	var aw_navi2=byid("aw_navi2");
	aw_navi1.onclick=function(){
		aw2.style.display="block";
	}
	aw_navi2.onclick=function(){
		aw2.style.display="block";
	}
	}



function aw2_table(){
	if(!byid("aw2")) return false;
	var aw2=byid("aw2");
	var tag_table=aw2.getElementsByTagName("table");
	var tag_tr=aw2.getElementsByTagName("tr");
	var tag_td=aw2.getElementsByTagName("td");
	
	var tag_tr1=tag_table[0].getElementsByTagName("tr");
	var tag_tr2=tag_table[1].getElementsByTagName("tr");
	
	for(i=2;i<tag_tr.length;i++){
		if(i%2==1){
		tag_tr[i].style.background="#eeeeee";
		}
	}
	

	tag_tr1[63].style.fontWeight="bold";
	tag_tr1[63].style.fontSize="14px";
	
	for(i=2;i<tag_tr1.length-2;i++){
		tag_tr1[i].onmouseover=function(){
		this.style.fontWeight="bold"
		this.style.fontSize="12px";
		this.style.cursor="pointer";
		}
		tag_tr1[i].onmouseout=function(){
		this.style.fontWeight="normal";
		this.style.fontSize="11px";
				}

	}
	
	
	for(i=0;i<tag_tr2.length;i++){
		tag_tr2[i].onmouseover=function(){
		this.style.fontSize="12px";
		this.style.color="#aa0000";
		this.style.cursor="pointer";
		}
		tag_tr2[i].onmouseout=function(){
		this.style.fontSize="11px";
		this.style.color="#333333";
				}

	}
	
	}

	
	



function byid(id){
return document.getElementById(id);
}


function tag_make(tag){
return document.createElement(tag);
}


function tag_name(name1,tag){
return name1.getElementsByTagName(tag);
}


function text_make(text){
return document.createTextNode(text);
}




function randnum_no(min_no,max_no){
var randnum = min_no + Math.floor( Math.random() * max_no );
return randnum;
}


var now_url=window.location.href;



var now=new Date();
var year=now.getFullYear();
var month=now.getMonth()+1;
var date=now.getDate();




function navi_onoff(dot_id,var_id,ch_img,ch_url){
if(byid(dot_id)){ 
var id=byid(dot_id);
var_id.onmouseover=function(){
	this.setAttribute("src","../images_2nd/"+ch_img+"_ov.jpg");
	this.style.cursor="pointer";
	}
var_id.onmouseout=function(){
	this.setAttribute("src","../images_2nd/"+ch_img+".jpg")
	}
var_id.onclick=function(){
	location.href="http://www.jcoty.org/"+ch_url
	}

}
	
	
	}




function poll(){
	if(!byid("poll")) return false;
	var poll=byid("poll");
	tag_td=poll.getElementsByTagName("td");
		for(i=11;i<tag_td.length;i++){
			if(i%2==0){
				tag_td[i].style.background="#eeeeee";
				}
		}
		
	
	}





function navi_img(){
	
"MM_preloadImages('../images_2nd/2_btn_schedule_ov.jpg','../images_2nd/2_btn_nominated_ov.jpg','../images_2nd/2_btn_judge_ov.jpg','../images_2nd/2_btn_about_ov.jpg','../images_2nd/2_btn_member_ov.jpg','../images_2nd/2_btn_previous_ov2.jpg','../images_2nd/2_btn_home_ov.jpg','../images_2nd/2_btn_10best_ov.jpg','../images_2nd/2_btn_result_ov.jpg','../images_2nd/2_btn_newcar_ov.jpg','../images_2nd/2_btn_history_ov.jpg')"
	
	}
	




function n_07(){
	var n_07=byid("n_07");
	var tag_tr=n_07.getElementsByTagName("tr");
	var tag_td=n_07.getElementsByTagName("td");
	var tag_tt=n_07.getElementsByTagName("tt");
	var tag_img=n_07.getElementsByTagName("img");
	
	for(i=0;i<tag_tr.length;i++){
		if(i%2==0){
			tag_tr[i].style.background="#eeeeee";
			}
		}

	}
	
function navi_07(){
	var mavi_n=byid("mavi_n");
	var list_07=byid("list_07");
	var at=byid("at");
	var pcont=byid("pcont");
	var tag_img=mavi_n.getElementsByTagName("img");
	var tag_tt=mavi_n.getElementsByTagName("tt");
	
	tag_img[0].onmouseover=function(){
		tag_img[0].setAttribute("src","img/navi1_2.gif");
		tag_img[1].setAttribute("src","img/navi2_1.gif");
		list_07.style.display="block";
		pcont.style.display="none";
		at.style.display="none";
		this.style.cursor="pointer";
		}
		tag_img[1].onmouseover=function(){
		tag_img[0].setAttribute("src","img/navi1_1.gif");
		tag_img[1].setAttribute("src","img/navi2_2.gif");
		list_07.style.display="none";
		pcont.style.display="block";
		at.style.display="block";
		this.style.cursor="pointer";
		}

	
	}
	


	
function photo_07(){
	var pcont=byid("pcont");	
	var tag_img=pcont.getElementsByTagName("img");
	var tag_p=pcont.getElementsByTagName("p");
	
	
	
	for(i=1;i<tag_img.length;i++){
		tag_img[i].onmouseover=function(){
			this.style.cursor="pointer";
			}
      img_ch(tag_img,i,tag_p);

		
		}
	
	
	}
	

function img_ch(tag,no,tag2){
			tag[no].onclick=function(){
			tag[0].setAttribute("src","img/"+no+".jpg");
			photo_pnone();
			tag2[no-1].style.display="block";
	
	
	}
}

function photo_pnone(){
	var pcont=byid("pcont");	
	var tag_p=pcont.getElementsByTagName("p");
	for(i=0;i<tag_p.length;i++){
	tag_p[i].style.display="none";
	}
	
	
	}
	
function td_unline(){
	var n_07=byid("n_07");
	var tag_td=n_07.getElementsByTagName("td");
		for(i=0;i<tag_td.length;i++){
		if(0<=i&&i<=3||13<i&&i<17||20<i&&i<24||53<=i&&i<=55||108<=i&&i<=110||142<=i&&i<=144||146<=i&&i<=148||220<=i&&i<=222||224<=i&&i<=226){
			tag_td[i].style.borderBottomColor="#cccccc";
			tag_td[i].style.borderBottomWidth="1px";
			}
		}
	
	
	}






function memmber(){
if(!byid("memmber")) return false;
var memmber=byid("memmber");
var tag_td=memmber.getElementsByTagName("td");
for(i=24;i<tag_td.length;i++){
	if(i%4==2||i%4==3){
		tag_td[i].style.background="#f6f6f6";
		
		}
	
	
	}

	}
