function clickPageTab(id) {
  $('div.page_tab_bg > div').each(
     function() {
       if(this.id.match('tab')) {
         if(this.id == id) {
           $(this).attr('class', 'page_tab_sel');
           $('#page_'+this.id.replace('tab_', '')).attr('class', '');
         } else {
           $(this).attr('class', 'page_tab');
           $('#page_'+this.id.replace('tab_', '')).attr('class', 'invisible');
         }
       }
     }
  )
}
