var headerTxt = '<table border="0" cellpadding="0" cellspacing="0" width="738"><tbody><tr><td colspan="17" ><table border="0" cellpadding="0" cellspacing="0" width="738"><tbody><tr><td valign="bottom" class="top_left_pic"><a name="top"></a></td><td class="top_pic_m" width="8"></td><!--Chinese normal BEGIN--><td><a href="TOPPATH/html/dspstl_Chinese.html" onMouseOver="swapPic(\'top_button_Chinese\',\'TOPPATH/common_images/top_button_Chinese_h.gif\');" onMouseOut="restorePic()"><img src="TOPPATH/common_images/top_button_Chinese.gif" name="top_button_Chinese" border="0" hspace="0"   height="30"  width="72"  alt=""></a></td><!--END normal Chinese--><!--Chinese active BEGIN--><!--<td><a href="TOPPATH/html/dspstl_Chinese.html"><img src="TOPPATH/common_images/top_button_Chinese_h.gif" name="top_button_Chinese_h" border="0" hspace="0"   height="30"  width="72" alt=""></a></td>--><!--END active Chinese--><td class="top_pic_m" width="15"></td><td><a href="http://cuforum.cuhk.edu.hk" alt="DSP-STL forum" title="DSP-STL forum"><img src="TOPPATH/common_images/top_button_forum.gif" border="0" hspace="0"   height="30"    width="16" alt="DSP-STL forum"></a></td><td class="top_pic_m" width="10"></td><td ><a href="http://137.189.35.114/" alt="Intranet" title="Intranet"><img src="TOPPATH/common_images/top_button_intranet.gif" border="0" hspace="0"   height="30"     width="17" alt="Intranet"></a></td><td class="top_pic_m" width="9"></td><td><a href="mailto:koluk@ee.cuhk.edu.hk" alt="Email us" title="Email us"><img src="TOPPATH/common_images/top_button_email.gif" border="0" hspace="0"   height="30"    width="18" alt="Email us"></a></td><td class="top_pic_m" width="5"></td><td><img src="TOPPATH/common_images/top_right.gif" border="0" hspace="0"   height="30"   width="24" alt=""></td></tr></tbody></table></td></tr><tr><td colspan="17" class="title_pic_8btn"></td></tr><tr><td><img src="TOPPATH/common_images/button_left.gif" alt="" border="0" height="28" width="6"></td><!--about normal BEGIN--><td><a href="TOPPATH/welcome.html" onMouseOver="changePic(\'about\',\'TOPPATH/common_images/about8_h.gif\');" onMouseOut="changePic(\'about\',\'TOPPATH/common_images/about8.gif\')"><img name="about" src="TOPPATH/common_images/about8.gif" alt="" border="0" height="28" width="75"></a></td> <!--END normal about--><!--about active BEGIN--><!--<td><a href="TOPPATH/welcome.html"><img name="about_h" src="TOPPATH/common_images/about8_h.gif" alt="" border="0" height="28" width="75"></a></td>--><!--END active about--><td><img src="TOPPATH/common_images/button_sep.gif" alt="" border="0" height="28" width="3"></td><!--people normal BEGIN--><td><a href="TOPPATH/html/people.html" onMouseOver="swapPic(\'people\',\'TOPPATH/common_images/people8_h.gif\');" onMouseOut="restorePic()"><img name="people" src="TOPPATH/common_images/people8.gif" alt="" border="0" height="28" width="77"></a></td><!--END normal people--><!--people active BEGIN--><!--<td><a href="TOPPATH/html/people.html"><img name="people_h" src="TOPPATH/common_images/people8_h.gif" alt="" border="0" height="28" width="77"></a></td>--><!--END active people--><td><img src="TOPPATH/common_images/button_sep.gif" alt="" border="0" height="28" width="3"></td><!--research normal BEGIN--><td class="lmenu"><ul><li><a href="TOPPATH/html/research.html" onMouseOver="swapPic(\'research\',\'TOPPATH/common_images/research8_h.gif\');" onMouseOut="restorePic()"><img name="research" src="TOPPATH/common_images/research8.gif" alt="" border="0" height="28" width="97"></a><ul><li><a href="TOPPATH/html/research.html#speech" title="speech processing">&middot; Speech Processing </a></li><li><a href="TOPPATH/html/research.html#sp" title="Signal Processing For Communications">&middot; Signal Processing For Communications </a></li><li><a href="TOPPATH/html/research.html#lel" title="language engineering">&middot; Language Engineering</a></li></ul></li></ul></td><!--END normal research--><!--research active BEGIN--><!--<td class="lmenu"><ul><li><a href="TOPPATH/html/research.html"><img name="research_h" src="TOPPATH/common_images/research8_h.gif" alt="" border="0" height="28" width="97"></a><ul><li><a href="TOPPATH/html/research.html#speech" title="speech processing">&middot; Speech Processing </a></li><li><a href="TOPPATH/html/research.html#sp" title="Signal Processing For Communications">&middot; Signal Processing For Communications </a></li><li><a href="TOPPATH/html/research.html#lel" title="language engineering">&middot; Language Engineering</a></li></ul></li></ul></td>--><!--END active research--><td><img src="TOPPATH/common_images/button_sep.gif" alt="" border="0" height="28" width="3"></td><!--events normal BEGIN--><td class="menu" width="84" height="28" ><ul><li><a href="TOPPATH/html/events_is.html" onMouseOver="swapPic(\'events\',\'TOPPATH/common_images/events8_h.gif\');" onMouseOut="restorePic()"><img name="events" src="TOPPATH/common_images/events8.gif" alt="" border="0" height="28" width="84"></a><ul><li><a href="TOPPATH/html/events_is.html" title="Important seminars">&middot; Seminars</a></li><li><a href="TOPPATH/html/events_hc.html" title="Hosted conferences">&middot; Conferences &amp; Workshops</a></li></ul></li></ul></td><!--END normal events--><!--events active BEGIN--><!--<td class="menu" width="84" height="28" ><ul><li><a href="TOPPATH/html/events_is.html"><img name="events_h" src="TOPPATH/common_images/events8_h.gif" alt="" border="0" height="28" width="84"></a><ul><li><a href="TOPPATH/html/events_is.html" title="Important Seminars">&middot; Seminars</a></li><li><a href="TOPPATH/html/events_hc.html" title="Conferences &amp; Workshops">&middot; Conferences &amp; Workshops</a></li></ul></li></ul></td>--><!--END active events--><td><img src="TOPPATH/common_images/button_sep.gif" alt="" border="0" height="28" width="3"></td><!--community normal BEGIN--><td class="menu" width="110" height="28"><ul><li><a href="TOPPATH/html/community_study_groups.html" onMouseOver="swapPic(\'community\',\'TOPPATH/common_images/activities8_h.gif\');" onMouseOut="restorePic()"><img name="community" src="TOPPATH/common_images/activities8.gif" alt="" border="0" height="28" width="110"></a><ul><li><a href="TOPPATH/html/community_study_groups.html" title="Study Groups">&middot; Study Groups</a></li><li ><a href="TOPPATH/html/community_group_seminars.html" title="Research Senimars">&middot; DSP-STL Senimars</a></li><li><a href="TOPPATH/html/community_facilities.html" title="Tools">&middot; Facilities</a></li></ul></li></ul></td><!--END normal community--><!--community active BEGIN--><!--<td class="menu" width="110" height="28"><ul><li><a href="TOPPATH/html/community_study_groups.html"><img name="community_h" src="TOPPATH/common_images/activities8_h.gif" alt="" border="0" height="28" width="110"></a><ul><li><a href="TOPPATH/html/community_study_groups.html" title="Study Groups">&middot; Study Groups</a></li><li ><a href="TOPPATH/html/community_group_seminars.html" title="Research Senimars">&middot; DSP-STL Seminars</a></li><li><a href="TOPPATH/html/community_facilities.html" title="Tools">&middot; Facilities</a></li></ul></li></ul></td>--><!--END active community--><td><img src="TOPPATH/common_images/button_sep.gif" alt="" border="0" height="28" width="3"></td><!--licensing normal BEGIN--><td><a href="TOPPATH/html/licensing.html" onMouseOver="swapPic(\'licensing\',\'TOPPATH/common_images/tec_lic8_h.gif\');" onMouseOut="restorePic()"><img name="licensing" src="TOPPATH/common_images/tec_lic8.gif" alt="" border="0" height="28" width="97"></a></td><!--END normal licensing--><!--licensing active BEGIN--><!--<td><a href="TOPPATH/html/licensing.html"><img name="licensing_h" src="TOPPATH/common_images/tec_lic8_h.gif" alt="" border="0" height="28" width="97"></a></td>--><!--END active licensing--><td><img src="TOPPATH/common_images/button_sep.gif" alt="" border="0" height="28" width="3"></td><!--vacancy normal BEGIN--><td><a href="TOPPATH/html/vacancies.html" onMouseOver="swapPic(\'vacancy\',\'TOPPATH/common_images/job_vac8_h.gif\');" onMouseOut="restorePic()"><img name="vacancy" src="TOPPATH/common_images/job_vac8.gif" alt="" border="0" height="28" width="81"></a></td><!--END normal vacancy--><!--vacancy active BEGIN--><!--<td><a href="TOPPATH/html/vacancies.html"><img name="vacancy_h" src="TOPPATH/common_images/job_vac8_h.gif" alt="" border="0" height="28" width="81"></a></td>--><!--END active vacancy--><td><img src="TOPPATH/common_images/button_sep.gif" alt="" border="0" height="28" width="3"></td><!--contact normal BEGIN--><td><a href="TOPPATH/html/contact.html" onMouseOver="swapPic(\'contact\',\'TOPPATH/common_images/contact8_h.gif\');" onMouseOut="restorePic()"><img name="contact" src="TOPPATH/common_images/contact8.gif" alt="" border="0" height="28" width="85"></a></td><!--END normal contact--><!--contact active BEGIN--><!--<td><a href="TOPPATH/html/contact.html"><img name="contact_h" src="TOPPATH/common_images/contact8_h.gif" alt="" border="0" height="28" width="85"></a></td>--><!--END active contact--><td><img src="TOPPATH/common_images/button_right.gif" alt="" border="0" height="28" width="5"></td></tr><tr><td colspan="17" class="title_btn_bottom"></td></tr></tbody></table></td></tr>';


headerTxt=headerTxt.replace(/TOPPATH/g,TopPath);
headerTxt=headerTxt.replace('<!--'+BTN+' normal BEGIN-->', '<!--'+BTN+' normal BEGIN--><!--' );
headerTxt=headerTxt.replace('<!--END normal '+BTN+'-->','--><!--END normal '+BTN+'-->');

headerTxt=headerTxt.replace('<!--'+BTN+' active BEGIN--><!--', '<!--'+BTN+' active BEGIN-->' );
headerTxt=headerTxt.replace('--><!--END active '+BTN+'-->','<!--END active '+BTN+'-->');

document.write(headerTxt);

preloadPics(TopPath+'/common_images/about8_h.gif',TopPath+'/common_images/people8_h.gif',TopPath+'/common_images/research8_h.gif',TopPath+'/common_images/events8_h.gif',TopPath+'/common_images/tec_lic8_h.gif',TopPath+'/common_images/activities8_h.gif',TopPath+'/common_images/contact8_h.gif',TopPath+'/common_images/job_vac8_h.gif');