function cacheSet(){try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}}
function toggle(o){var e=o.parentNode;var lis=e.parentNode.childNodes;for(var i in lis){if(lis[i].nodeName&&lis[i].nodeName.toUpperCase()=="LI"){lis[i].className=(e==lis[i])?"log-top log-on":"log-top";lis[i].getElementsByTagName("ul")[0].className=(e==lis[i])?"log-sub disa":"log-sub disb";}}}
function toggle1(obj){var p=obj.parentNode;p.className=(p.className=="plus")?"minus":"plus";var e=p.getElementsByTagName("ul")[0];e.className=(e.className=="sub")?"sub_on":"sub";}
function showUL(o){var e=o.getElementsByTagName("ul")[0];o.className="emrel";e.className="elist unfold";}
function hideUL(o){var e=o.getElementsByTagName("ul")[0];o.className="emsta";e.className="elist fold";}
function toggle2(str){var e=document.getElementById(str);var divs=e.parentNode.parentNode.getElementsByTagName("div");e.className=e.className=="event disa"?"event disb":"event disa";for(var i=0;i<divs.length;i++){if(e!=divs[i]){divs[i].className="event disb";}}}
function chkURL(o){if(o.value.length>0){window.location.href=o.value;}}
function togg(i,j){document.getElementById("fp-t"+i).className="fp-t-on";document.getElementById("fp-b"+i).className="disa";document.getElementById("fp-t"+j).className="";document.getElementById("fp-b"+j).className="disb";}
function mouseOver(obj){obj.style.backgroundColor='#dfdfdc';}
function mouseOut(obj){obj.style.backgroundColor='#D4E0FF';}
function loginWin(url,name,operator){if(operator){var win=window.open(url,name,'menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width='+(window.screen.availWidth-8)+',height='+(window.screen.availHeight-50)+',top=0,left=0');}else{window.open(url,name);}}
function openWin(url,name,widthpar,heightpar){window.open(url,name,'menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width='+widthpar+',height='+heightpar+',top=20,left=40');}
function Marquee(){if(document.getElementById("demo2").offsetWidth-document.getElementById("demo").scrollLeft<=0){document.getElementById("demo").scrollLeft-=document.getElementById("demo1").offsetWidth;}else{document.getElementById("demo").scrollLeft++;}}
function flashFun(){var speed=50;document.getElementById("demo2").innerHTML=document.getElementById("demo1").innerHTML;var MyMar=setInterval(Marquee,speed);document.getElementById("demo").onmouseover=function(){clearInterval(MyMar);}
document.getElementById("demo").onmouseout=function(){MyMar=setInterval(Marquee,speed);}}
function firstmodifycolor(obj){obj.style.color='#a90003';}
function childmodifycolor(children,child,icon,path){children.style.display='';child.style.color='#a90003';icon.src=path;}
function coltitle(isd,titleobj,spobj){if(isd=="1"){titleobj.style.display="none";spobj.style.display="block";}}
function toBrach1(internalobj){if(internalobj.selectedIndex>0){if(internalobj.options.value!=""){window.open(internal.options[internal.selectedIndex].value,'','');internal.selectedIndex=0;}}}
function readCookie(name)
{var cookieValue="";var search=name+"=";if(document.cookie.length>0)
{offset=document.cookie.indexOf(search);if(offset!=-1)
{offset+=search.length;end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;cookieValue=document.cookie.substring(offset,end);}}
return cookieValue;}
function persBankCertLogin(){var cibPersLogin="";cibPersLogin=readCookie('cibPersLogin');if(cibPersLogin=='0')
loginWin('https://www.cib.com.cn/indexCert.jsp','pers1',true);else
window.open('./persbankalert.html');}
function firmBankCertLogin(){var cibFirmLogin="";cibFirmLogin=readCookie('cibFirmLogin');if(cibFirmLogin=='0')
loginWin('https://corporatebank.cib.com.cn','firm1',true);else
window.open('./firmbankalert.html');}
function openFixWin(url,name,widthpar,heightpar){window.open(url,name,'menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=no,width='+widthpar+',height='+heightpar+',top=20,left=40');}
