(function() { 
 if (window.addEventListener) window.addEventListener("load", f_init, false); 
 else if ( window.attachEvent) window.attachEvent("onload", f_init); 
 function f_init(){ 
 var v_lists=document.getElementsByTagName('ul'); 
 var cnt=0; 
 for (var i=0; i<v_lists.length; i++ ) 
 { 
 var v_list=v_lists[i]; 
 if (v_list.className=='c_tabList') 
 { 
 var v_items=v_list.getElementsByTagName('li'); 
 for (var j=0; j<v_items.length; j++) 
 { 
 f_attach_listener(v_items[j]); 
 } 
 } 
 } 
 var v_currId=document.getElementById('thd_curr').firstChild.data; 
 var v_currItem=document.getElementById('thd_li_'+v_currId); 
 f_gen_page_list(1,10); 
 function f_attach_listener(v_item){ 
 var v_cid=v_item.getAttribute('cid'); 
 var v_lk=v_item.getAttribute('lk'); 
 var v_fpurl=v_item.getAttribute('fpurl'); 
 var v_lm=v_item.getAttribute('lm'); 
 if (!v_cid || !v_lk || !v_lm || !v_fpurl) 
 return false; 
 v_item.onclick=f_display_content; 
 } 
 } 
 function f_display_content() 
 { 
 var v_prevId=document.getElementById('thd_curr').firstChild.data; 
 var v_cid=this.getAttribute('cid'); 
 if ( v_cid!=v_prevId ) document.getElementById('thd_curr').innerHTML=v_cid; 
 var v_lk=this.getAttribute('lk'); 
 var v_fpurl=this.getAttribute('fpurl'); 
 var v_lm=this.getAttribute('lm'); 
 document.getElementById('thd_li_'+v_cid).className='focus'; 
 document.getElementById('thd_supp_'+v_cid).className='accio'; 
 if (v_cid!=v_prevId) { 
 document.getElementById('thd_li_'+v_prevId).className=''; 
 document.getElementById('thd_supp_'+v_prevId).className='deaccio'; 
 } 
 f_get_cont('thd_body', v_fpurl, 'News Streams', 'lm='+v_lm); 
 setTimeout("f_0207('thd_body')", 500); 
 setTimeout("f_0207('tn_inline_theme')", 500); 
 } 
 function f_gen_page_list(v_b_pg, v_e_pg) 
 { 
 var v_ul=document.getElementById('ulPages'); 
 while (v_ul.hasChildNodes()) v_ul.removeChild(v_ul.firstChild); 
 for (var i=v_b_pg; i<=v_e_pg;i++) 
 { 
 v_li=document.createElement('li'); 
 v_li.setAttribute('p',i); 
 v_li.appendChild(document.createTextNode(i)); 
 v_li.onclick=f_goto_page; 
 v_ul.appendChild(v_li); 
 } 
 } 
 function f_goto_page() 
 { 
 var v_pg=this.getAttribute('p'); 
 if (!v_pg) return false; 
 var v_cid=document.getElementById('thd_curr').firstChild.data; 
 if (!v_cid) return false; 
 var v_tab=document.getElementById('thd_li_'+v_cid); 
 var v_lk=v_tab.getAttribute('lk'); 
 var v_fpurl=v_tab.getAttribute('fpurl'); 
 if (!v_lk) return false; 
 var v_lm=v_tab.getAttribute('lm'); 
 f_get_cont('thd_body',v_lk,'News Streams','lm='+v_lm+'&p='+v_pg); 
 setTimeout("f_0207('thd_body')", 500); 
 } 
})(); 
