// 상단 메뉴를 디스플레이 한다. // page 의 이름을 끄집어 낸다. function extractPageName( page ) { var mark1 = page.indexOf("?"); if ( mark1 == -1 ) mark1 = page.length; var page_name = page.substring(page.lastIndexOf("/", mark1)+1, mark1); return page_name; } function openFWindow(target_url,target_name) { var myFWin = window.open(target_url, target_name,"scrollbars=no,width=150,height=480"); myFWin.focus(); } var urls = new Array("user_home.html", "javascript:openFWindow('friends.html', 'friend_win')", "diary_list.html", "guest_list.html", "friend_list.html", "intro_change.html", "bye.html"); var td_w = new Array("77", "71", "54", "59", "69", "93", "71"); var s_titles = new Array("", "", "", "", "", "", ""); var titles = new Array("", "", "", "", "", "", ""); var cur = document.location.toString(); var page_name = extractPageName( cur ); if ( page_name == 'diary_read.html' || page_name == 'diary_write_form.html') { page_name = 'diary_list.html'; } //var page_name = extractPageName( urls[1] ); document.write('\n'); document.write(' \n'); for ( i=0; i < urls.length; i++ ) { if ( page_name == urls[i] ) { document.write(' \n'); } else { document.write(' \n'); } // if ( i != urls.length-1 ) { // document.write(' \n'); // } } document.write(' \n'); document.write(' \n'); document.write(' \n'); document.write(' \n'); document.write('
' + s_titles[i] + '
' + titles[i] + '
 
\n');