function showDiv(divId){
var div=$(divId),arrow=null;
if(arguments[1]){
arrow=$(arguments[1]);
}
if(div.style.display=='' ||div.style.display=='block'){
div.style.display='none';
if(arrow) arrow.innerText="►";
}else{
div.style.display='';
if(arrow) arrow.innerText="▼";
}
}
/*-----------------tab页效果---------------------------------*/
var CurComId=1,widthed=0;
function switchComment(Id,tabbar){
var tab=$("tab");
for(var i=0;i<tab.childNodes.length;i++) {
if(tab.childNodes[i].className!="horizontalSpace")
tab.childNodes[i].className="unitOff"
}//alert(tabbar.outerHTML);
tabbar.className="unitOn"
if (Id!=CurComId){
eval("document.getElementById('tab" + Id.toString() + "').style.display='block';");
eval("document.getElementById('tab" + CurComId.toString() + "').style.display='none';");
CurComId=Id;
}
}
function switchComment2(Id,tabbar){
var tab=$("tab"), imgBg=tab.style.backgroundImage; //alert(imgBg.substring(imgBg.indexOf("."),imgBg.length));
var imgNumPos=imgBg.lastIndexOf("."); //alert(imgBg.substring(imgNumPos-1,imgNumPos)); return;
tab.style.backgroundImage=imgBg.replace(imgBg.substring(imgNumPos-1,imgNumPos),Id);
//tab.style.backgroundImage=imgBg.replace(imgBg.substr(imgBg.length),Id);
if (Id!=CurComId){
eval("document.getElementById('tab" + Id.toString() + "').style.display='block';");
eval("document.getElementById('tab" + CurComId.toString() + "').style.display='none';");
CurComId=Id;
}
}
function showFAQlist(curObj){
var oprObj=curObj.nextSibling;
while(oprObj.nodeType!=1){
oprObj=oprObj.nextSibling;
}//alert(oprObj.nodeType); return;//.parentNode.childNodes[1] word_bold cursorHand
if(oprObj.style.display==""){
oprObj.style.display="none";
curObj.className="word_bold cursorHand";
}else{
oprObj.style.display="";
curObj.className="word_666 word_bold cursorHand"; //word_black
}
}
//兼容的取年方法: getFullYear 代替 getYear !!
// main 中方法end
function showMark(oInstance){ //ie6 解决select挡住div问题。
if(getIEVersion()=="IE6"){
var CalendarDiv=$(oInstance.sDIVID);
var maskDiv=document.getElementById("bottom_"+ oInstance.sDIVID);
if(CalendarDiv.style.display=="none")
maskDiv.style.visibility="hidden";
else
maskDiv.style.visibility="visible";
}
}
var div=$(divId),arrow=null;
if(arguments[1]){
arrow=$(arguments[1]);
}
if(div.style.display=='' ||div.style.display=='block'){
div.style.display='none';
if(arrow) arrow.innerText="►";
}else{
div.style.display='';
if(arrow) arrow.innerText="▼";
}
}
/*-----------------tab页效果---------------------------------*/
var CurComId=1,widthed=0;
function switchComment(Id,tabbar){
var tab=$("tab");
for(var i=0;i<tab.childNodes.length;i++) {
if(tab.childNodes[i].className!="horizontalSpace")
tab.childNodes[i].className="unitOff"
}//alert(tabbar.outerHTML);
tabbar.className="unitOn"
if (Id!=CurComId){
eval("document.getElementById('tab" + Id.toString() + "').style.display='block';");
eval("document.getElementById('tab" + CurComId.toString() + "').style.display='none';");
CurComId=Id;
}
}
function switchComment2(Id,tabbar){
var tab=$("tab"), imgBg=tab.style.backgroundImage; //alert(imgBg.substring(imgBg.indexOf("."),imgBg.length));
var imgNumPos=imgBg.lastIndexOf("."); //alert(imgBg.substring(imgNumPos-1,imgNumPos)); return;
tab.style.backgroundImage=imgBg.replace(imgBg.substring(imgNumPos-1,imgNumPos),Id);
//tab.style.backgroundImage=imgBg.replace(imgBg.substr(imgBg.length),Id);
if (Id!=CurComId){
eval("document.getElementById('tab" + Id.toString() + "').style.display='block';");
eval("document.getElementById('tab" + CurComId.toString() + "').style.display='none';");
CurComId=Id;
}
}
function showFAQlist(curObj){
var oprObj=curObj.nextSibling;
while(oprObj.nodeType!=1){
oprObj=oprObj.nextSibling;
}//alert(oprObj.nodeType); return;//.parentNode.childNodes[1] word_bold cursorHand
if(oprObj.style.display==""){
oprObj.style.display="none";
curObj.className="word_bold cursorHand";
}else{
oprObj.style.display="";
curObj.className="word_666 word_bold cursorHand"; //word_black
}
}
//兼容的取年方法: getFullYear 代替 getYear !!
// main 中方法end
function showMark(oInstance){ //ie6 解决select挡住div问题。
if(getIEVersion()=="IE6"){
var CalendarDiv=$(oInstance.sDIVID);
var maskDiv=document.getElementById("bottom_"+ oInstance.sDIVID);
if(CalendarDiv.style.display=="none")
maskDiv.style.visibility="hidden";
else
maskDiv.style.visibility="visible";
}
}