// JavaScript Document
function bg(){
	if(!document.getElementById("title")) return false;	
	document.getElementById("title").className="title";
	document.getElementById('indexlist1').style.display = 'block';
	document.getElementById('indexlist2').style.display = 'none';
}
function bg2(){
	if(!document.getElementById("title")) return false;	
	document.getElementById("title").className="title2";
	document.getElementById('indexlist1').style.display = 'none';
	document.getElementById('indexlist2').style.display = 'block';
}
function proDownImage(ImgD, proMaxWidth, proMaxHeight){
    var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0){
		var rate = (proMaxWidth/image.width < proMaxHeight/image.height)?proMaxWidth/image.width:proMaxHeight/image.height;
		if(rate <= 1){
			ImgD.width = image.width*rate;
			ImgD.height =image.height*rate;
		} else {
				ImgD.width = image.width;
				ImgD.height =image.height;
		}
	}
}