agt = navigator.userAgent.toLowerCase(); is_ie = (agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1); is_gecko= navigator.product == "Gecko"; function ietruebody(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body; } function showjs(position,unioncode){ if(position=='banner'){ parentobj=document.getElementById('banner'); if(parentobj){ // var banner=document.createElement('div'); // banner.innerHTML=unioncode; // parentobj.appendChild(banner); parentobj.innerHTML=unioncode; } }else if(position=='middle'){ parentobj=document.getElementById('infobox'); if(parentobj){ parentobj.parentNode.innerHTML=parentobj.parentNode.innerHTML.replace(//i,'
'+unioncode+'
'); } return; }else if(position=='footer'){ parentobj=document.getElementById('bottom'); if(parentobj){ // var bottom=document.createElement('div'); // bottom.innerHTML='
' + unioncode + '
'; // parentobj.appendChild(bottom); parentobj.innerHTML='
' + unioncode + '
'; } }else if(position=='atctop'){ parentobj=document.getElementById('read_tpc'); if(parentobj){ parentobj.innerHTML='
' + unioncode + '
' + parentobj.innerHTML; } return; }else if(position=='atcright'){ parentobj=document.getElementById('read_tpc'); if(parentobj){ parentobj.innerHTML='
' + unioncode + '
' + parentobj.innerHTML; } return; }else if(position=='atcbottom'){ parentobj=document.getElementById('read_tpc'); if(parentobj){ parentobj.innerHTML=parentobj.innerHTML + '
' + unioncode + '
'; } return; } }