// JavaScript Document
function sj(aa,bb){
  var $ = function(i){ return document.getElementById(i); }
 for (i=1;i<3;i++){
  if(aa=="tit"+i){
   $("tit"+i).style.fontWeight="bold";
    $("tit"+i).style.borderBottomColor = "#ace";
   $("cont"+i).style.display="";
     }
  else{
   $("tit"+i).style.fontWeight="100";
   $("cont"+i).style.display="none";
  }
 }
}

function sj2(aa,bb){
  var $ = function(i){ return document.getElementById(i); }
 for (i=1;i<3;i++){
  if(aa=="tit2"+i){
   $("tit2"+i).style.fontWeight="bold";
    $("tit2"+i).style.borderBottomColor = "#ace";
   $("cont2"+i).style.display="";
     }
  else{
   $("tit2"+i).style.fontWeight="100";
   $("cont2"+i).style.display="none";
  }
 }
}

function sj3(aa,bb){
  var $ = function(i){ return document.getElementById(i); }
 for (i=1;i<3;i++){
  if(aa=="tit3"+i){
   $("tit3"+i).style.fontWeight="bold";
    $("tit3"+i).style.borderBottomColor = "#ace";
   $("cont3"+i).style.display="";
     }
  else{
   $("tit3"+i).style.fontWeight="100";
   $("cont3"+i).style.display="none";
  }
 }
}

function sj4(aa,bb){
  var $ = function(i){ return document.getElementById(i); }
 for (i=1;i<3;i++){
  if(aa=="tit4"+i){
   $("tit4"+i).style.fontWeight="bold";
    $("tit4"+i).style.borderBottomColor = "#ace";
   $("cont4"+i).style.display="";
     }
  else{
   $("tit4"+i).style.fontWeight="100";
   $("cont4"+i).style.display="none";
  }
 }
}

function tabit(btn){
var idname = new String(btn.id);
var s = idname.indexOf("_");
var e = idname.lastIndexOf("_")+1;
var tabName = idname.substr(0, s);
var id = parseInt(idname.substr(e, 1));
//var tabNumber = btn.parentNode.childNodes.length;
//var tabNumber = document.getElementsByTagName("li").length;
//alert(tabNumber);
for(i=0;i<2;i++){
document.getElementById(tabName+"_div_"+i).style.display = "none";
document.getElementById(tabName+"_btn_"+i).style.backgroundColor = "#fdf5df";
document.getElementById(tabName+"_btn_"+i).style.color = "#a53f14";
document.getElementById(tabName+"_btn_"+i).style.borderBottomColor = "#fdcd74";
document.getElementById(tabName+"_btn_"+i).style.cursor = "pointer";
}
document.getElementById(tabName+"_div_"+id).style.display = "block";
//btn.style.display = "block";
btn.style.backgroundColor = "#fff";
btn.style.color = "#000";
btn.style.borderBottomColor = "#fff";
btn.style.cursor = "default";
}

function tabit8(btn){
var idname = new String(btn.id);
var s = idname.indexOf("_");
var e = idname.lastIndexOf("_")+1;
var tabName = idname.substr(0, s);
var id = parseInt(idname.substr(e, 1));
//var tabNumber = btn.parentNode.childNodes.length;
//var tabNumber = document.getElementsByTagName("li").length;
//alert(tabNumber);
for(i=2;i<4;i++){
document.getElementById(tabName+"_div_"+i).style.display = "none";
document.getElementById(tabName+"_btn_"+i).style.backgroundColor = "#fdf5df";
document.getElementById(tabName+"_btn_"+i).style.color = "#a53f14";
document.getElementById(tabName+"_btn_"+i).style.borderBottomColor = "#fdcd74";
document.getElementById(tabName+"_btn_"+i).style.cursor = "pointer";
}
document.getElementById(tabName+"_div_"+id).style.display = "block";
//btn.style.display = "block";
btn.style.backgroundColor = "#fff";
btn.style.color = "#000";
btn.style.borderBottomColor = "#fff";
btn.style.cursor = "default";
}

function tabit9(btn){
var idname = new String(btn.id);
var s = idname.indexOf("_");
var e = idname.lastIndexOf("_")+1;
var tabName = idname.substr(0, s);
var id = parseInt(idname.substr(e, 1));
//var tabNumber = btn.parentNode.childNodes.length;
//var tabNumber = document.getElementsByTagName("li").length;
//alert(tabNumber);
for(i=2;i<4;i++){
document.getElementById(tabName+"_div_"+i).style.display = "none";
document.getElementById(tabName+"_btn_"+i).style.backgroundColor = "#fdf5df";
document.getElementById(tabName+"_btn_"+i).style.color = "#a53f14";
document.getElementById(tabName+"_btn_"+i).style.borderBottomColor = "#fdcd74";
document.getElementById(tabName+"_btn_"+i).style.cursor = "pointer";
}
document.getElementById(tabName+"_div_"+id).style.display = "block";
//btn.style.display = "block";
btn.style.backgroundColor = "#fff";
btn.style.color = "#000";
btn.style.borderBottomColor = "#fff";
btn.style.cursor = "default";
}