// 화면 정중앙에 팝업창 띄우기 function popup(url, n, w, h, s) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+s+',resizable' win = window.open(url, n, winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } // 메뉴링크주소 function menulink(num){ switch (num) { case 1 : link_value = "/introduction/index.jsp"; t_val = "s"; break; // 인천방문의해 소개 case 2 : link_value = "/utourpia/01_01/index.jsp"; t_val = "s"; break; // U-Tour-달빛누리 case 3 : link_value = "/travel/index.jsp"; t_val = "s"; break; // 관광정보 case 4 : link_value = "/sightseeing/index.jsp"; t_val = "s"; break; // 음식,숙박,쇼핑정보 case 5 : link_value = "/guidance/index.jsp"; t_val = "s"; break; // 관광안내소 case 6 : link_value = "/"; t_val = "s"; break; // case 7 : link_value = "/"; t_val = "s"; break; // case 8 : link_value = "/"; t_val = "s"; break; // case 9 : link_value = "/"; t_val = "s"; break; // case 10 : link_value = "/utourpia/02_01/index.jsp"; t_val = "s"; break; // U-Tour-시티투어 case 11 : link_value = "/"; t_val = "s"; break; // U-Tour-모노레일 case 12 : link_value = "/utourpia/plan/index.jsp"; t_val = "s"; break; // 추천관광-인천관광20선 case 13 : link_value = "/"; t_val = "s"; break; // 추천관광-인천섬여행 case 14 : link_value = "/"; t_val = "s"; break; // 추천관광-이달의추천코스 case 30 : link_value = "http://china.visitincheon.org/"; t_val = "s"; break; // 홈으로 case 31 : link_value = "/"; t_val = "s"; break; // 사이트맵 case 32 : link_value = "http://itour.visitincheon.org/"; t_val = "t"; break; // 인천투어-한국어 case 33 : link_value = "http://english.visitincheon.org/"; t_val = "t"; break; // 인천투어-중국어 case 34 : link_value = "http://japan.visitincheon.org/"; t_val = "t"; break; // 인천투어-일본어 default : link_value = "/"; } if(t_val == "s"){ location.href = link_value } else if(t_val == "p"){ window.open(link_value,'road','top=0,left=0,width=600,height=400') } else if(t_val == "t"){ window.open(link_value); } } // 관광정보 Tab 이미지 변경 function memu_on(obj_name) { document.getElementById("TabMenu01").src = "/images/t_menu_01.gif"; document.getElementById("TabMenu02").src = "/images/t_menu_02.gif"; document.getElementById("TabMenu03").src = "/images/t_menu_03.gif"; document.getElementById("TabMenu04").src = "/images/t_menu_04.gif"; document.getElementById("TabMenu05").src = "/images/t_menu_05.gif"; if(obj_name == "TabMenu01"){ document.getElementById("TabMenu01").src = "/images/t_menu_01_ov.gif"; }else if(obj_name == "TabMenu02"){ document.getElementById("TabMenu02").src = "/images/t_menu_02_ov.gif"; }else if(obj_name == "TabMenu03"){ document.getElementById("TabMenu03").src = "/images/t_menu_03_ov.gif"; }else if(obj_name == "TabMenu04"){ document.getElementById("TabMenu04").src = "/images/t_menu_04_ov.gif"; }else if(obj_name == "TabMenu05"){ document.getElementById("TabMenu05").src = "/images/t_menu_05_ov.gif"; } } // flash(파일주소, 가로, 세로, 배경색, 윈도우모드, 변수, 경로) function flash(url,w,h,bg,win,vars,base){ var s= ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""; document.write(s); } // flash - swf파일 팝업창 띄우기 function flash_map(url, n, w, h, s) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+s+',resizable'; win = window.open(url, n, winprops); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } // iframe사용시 세로길이 자동 조정되게 하기 function resizeFrame(iframeObj){ /* 아이프레임에서 읽어들인 페이지의 body */ var innerBody = iframeObj.contentWindow.document.body; /* 높이 다시설정 */ var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight); iframeObj.style.height = innerHeight; /* 넓이 다시설정 */ var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth); iframeObj.style.width = innerWidth; this.scrollTo(1,1); } // 다국어 사이트 이미지 크게 보기 function eng_show_img(src) { var imgObj = new Image(); imgObj.src = src; var wopt = "scrollbars=no, status=no, resizable=no"; wopt += ",width=" + imgObj.width; wopt += ",height=" + imgObj.height; var wbody = "Image Viewer"; wbody += "