
function show(s){
	var e = document.getElementById(s);
	if(!e) return;
	e.style.display="block";
}

function hide(s){
	var e = document.getElementById(s);
	if(!e) return;
	e.style.display="none";
}

function setText(a,b){
	var e = document.getElementById(a);
	if(!e) return;
	e.innerHTML=b;
}

function setLink(a,b){
	var e = document.getElementById(a);
	if(!e) return;
	e.setAttribute("href",b);
}

function setStyle(a,b){
	var e = document.getElementById(a);
	if(!e) return;
	e.className=b;
}

function showDetail(x){
	var e = document.getElementById("mainb_TRED");
	if(!e) return;
	
	switch(x){
		case 0:	
			e.style.backgroundPosition="53px 0";
			show("detailinfo1");
			hide("detailinfo2");
			hide("detailinfo3");
			break;
			
		case 1:	
			e.style.backgroundPosition="53px -155px";
			hide("detailinfo1");
			show("detailinfo2");
			hide("detailinfo3");
			break;
			
		case 2:	e.style.backgroundPosition="53px -310px";
			hide("detailinfo1");
			hide("detailinfo2");
			show("detailinfo3");
			break;
	}
}

var openQuestion=null;
function faqclick(a){
	if(a.className=="on"){
		a.className="off"
		openQuestion=null;
	}
	else{
		if(openQuestion) openQuestion.className="off";
		a.className="on";
		openQuestion=a;
	}
}

