try { document.execCommand("BackgroundImageCache", false, true);} catch(err) {}
//탑메뉴
function top2menuView(a) //2차메뉴보기
{
if(this.id){
eidStr = this.id;
eidNum=eidStr.substring(eidStr.lastIndexOf("m",eidStr.length)+1,eidStr.length);
a = parseInt(eidNum);
}
top2menuHideAll();
top1Menu = document.getElementById("top1m"+a);
top2Menu = document.getElementById("top2m"+a);
if(a<10){ann='0'+a;} else {ann=''+a;}
if (a==0) { //메인은2차메뉴활성화안함
} else {
if (top1Menu) {
top1Menu.getElementsByTagName("img")[0].src=top1Menu.getElementsByTagName("img")[0].src.replace("_off.gif","_on.gif");
if (top2Menu) {
top2Menu.style.display = 'inline';
}
}
}
}
function top2menuHide(a) //2차메뉴감추기
{
if(this.id){
eidStr = this.id;
eidNum=eidStr.substring(eidStr.lastIndexOf("m",eidStr.length)+1,eidStr.length);
a = parseInt(eidNum);
}
//top2menuHideAll();
top1Menu = document.getElementById("top1m"+a);
top2Menu = document.getElementById("top2m"+a);
top1MenuCurr = document.getElementById("top1m"+d1n);
top2MenuCurr = document.getElementById("top2m"+d1n);
if(a<10){ann='0'+a;} else {ann=''+a;}
if (top1Menu) {
top1Menu.getElementsByTagName("img")[0].src=top1Menu.getElementsByTagName("img")[0].src.replace("_on.gif","_off.gif");
if (top2Menu) { top2Menu.style.display = 'none'; }
if (top1MenuCurr) {
top1MenuCurr.getElementsByTagName("img")[0].src = top1MenuCurr.getElementsByTagName("img")[0].src.replace("_off.gif","_on.gif");
}
if (top2MenuCurr) {
top2MenuCurr.style.display = 'inline';
}
}
}
function top2menuHideAll() //2차메뉴모두감추기
{
top1menuEl = document.getElementById("top1menu").childNodes;
for (i=1;i<=top1menuEl.length;i++)
{
top1Menu = document.getElementById("top1m"+i);
top2Menu = document.getElementById("top2m"+i);
if(i<10){inn='0'+i;} else {inn=''+i;}
if (top1Menu) {
top1Menu.getElementsByTagName("img")[0].src=top1Menu.getElementsByTagName("img")[0].src.replace("_on.gif","_off.gif");
if (top2Menu) { top2Menu.style.display = 'none'; }
}
}
}
function initTopMenu(d1,d2) {
d1n = d1;
d2n = d2;
d1nn = (d1n<10) ? '0'+d1n : d1n;
d2nn = (d2n<10) ? '0'+d2n : d2n;
var topmenu = document.getElementById("topmenu");
//if(topmenu) topmenu.style.background = "url(../images/top_menu_"+d1nn+"_menubg.gif) no-repeat";
top1menuEl = document.getElementById("top1menu").childNodes;
for (i=1;i<=top1menuEl.length;i++)
{
top1Menu = document.getElementById("top1m"+i);
top2Menu = document.getElementById("top2m"+i);
if (top1Menu) {
top1Menu.onmouseover = top1Menu.onfocus = top2menuView;
//top1Menu.onmouseout = top2menuHide;
if (top2Menu) {
top2Menu.onmouseover = top2Menu.onfocus = top2menuView;
top2Menu.onmouseout = top2menuHide;
}
}
}
top2MenuCurrAct = document.getElementById("top2m"+d1n+"m"+d2n);
if (top2MenuCurrAct) {
//top2MenuCurrAct.getElementsByTagName('a')[0].className = "active";
top2MenuCurrAct.getElementsByTagName("a")[0].style.color="#496dd1";
top2MenuCurrAct.getElementsByTagName("a")[0].style.fontWeight="bold";
}
top2menuHide(d1);
}
function displayOver() {
this.style.display = 'block';
}
function displayOut() {
this.style.display = 'none';
}
/* 이미지 오버 아웃 */
function imageOver(imgEl) {
imgEl.src = imgEl.src.replace("_off.gif", "_on.gif");
}
function imageOut(imgEl) {
imgEl.src = imgEl.src.replace("_on.gif", "_off.gif");
}
//------------------- SWF 제어함수 시작
function SWFLoader() {
var obj = new String;
var parameter = new String;
var embed = new String;
var classId = new String;
var codeBase = new String;
var pluginSpage = new String;
var embedType = new String;
var allParameter = new String;
var src = new String;
var width = new String;
var height = new String;
var id = new String;
var layer = new String;
var arg = new String;
var altText = new String;
var wmode = new String;
this.init = function ( w, h, s, a,wm) {
width = w; //넓이
height = h; //높이
src = s; //파일경로
arg = a; // 매개변수
if(!wm){
wmode = 'transparent'; //모드설정
}
classId = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';
codeBase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0';
pluginSpage = 'http://www.macromedia.com/go/getflashplayer';
embedType = 'application/x-shockwave-flash';
parameter += "\n";
parameter += "";
parameter += "\n";
parameter += "\n";
parameter += "\n";
parameter += "\n";
}
//플래시 오브젝트 옵션설정
this.parameter = function ( param, value ) {
parameter += "\n";
}
// 플래시 wmode 설정 setFlash.wmode('window')
this.wmode = function ( value ) {
wmode = value;
}
// 플래시 아이디 설정
this.id = function ( value ) {
id = value;
}
// 플래시 대체텍스트 설정
this.alt = function ( value ) {
altText = value;
}
// 플래시 삽입 레이어 설정
this.layer = function ( value ) {
if(value == undefined) {
layer = "";
} else {
layer = value;
}
}
this.show = function () {
obj = '';
if(layer == "") {
document.write(obj);
}else{
var div = document.getElementById( layer);
div.style.display = "";
div.innerHTML = obj;
}
}
}
function hideSWFLayer( div) {
var div = document.getElementById( div);
div.style.display = "";
div.innerHTML = "";
}
function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
}
else {
return document[movieName];
}
}
function callExternalInterface(movieId) {
thisMovie(movieId).moveMc();
}
//------------------- SWF 제어함수 끝
// 탭메뉴 공통적으로 사용
//ex) tabOn(1,1);
function tabOn(tabid,a) {
for (i=1;i<=100;i++) {
if(i<100){inn="0"+i;} else {inn=""+i;}
tabMenu = document.getElementById("tab"+tabid+"m"+i);
tabContent = document.getElementById("tab"+tabid+"c"+i);
tabMore = document.getElementById("tab"+tabid+"more"+i);
if (tabMenu) { //객체가존재하면
if (tabMenu.tagName=="IMG") { tabMenu.src = tabMenu.src.replace("on.gif", ".gif"); } //이미지일때
if (tabMenu.tagName=="A") { tabMenu.className=""; } //앵커일때
}
if (tabContent) { tabContent.style.display="none"; }
if (tabMore) { tabMore.style.display="none"; }
}
if(a<100){ann="0"+a;} else {ann=""+a;}
tabMenu = document.getElementById("tab"+tabid+"m"+a);
tabContent = document.getElementById("tab"+tabid+"c"+a);
tabMore = document.getElementById("tab"+tabid+"more"+a);
// alert(tabMenu.tagName);
if (tabMenu) { //객체가존재하면
if (tabMenu.tagName=="IMG") { tabMenu.src = tabMenu.src.replace(".gif", "on.gif"); } //이미지일때
if (tabMenu.tagName=="A") { tabMenu.className="on"; } //앵커일때
}
if (tabContent) { tabContent.style.display="block"; }
if (tabMore) { tabMore.style.display="block"; }
}
// 서브메뉴
function imgMenuOver(containderID) {
var objwrap = document.getElementById(containderID);
var imgMenu = objwrap.getElementsByTagName("a");
for (i=0; i popObjCnt) poploop = 1;
}
}
function goPage(url) {
parent.top.location.href = url;
}
function popoverImage(imgNum) {
var objName = "popbt" + imgNum;
var viewObjName = "mainpop" + imgNum;
var scrollNum = parseInt(imgNum) - 1;
var obj = document.getElementById(objName);
var viewObj = document.getElementById(viewObjName);
obj.src = "images/main/number_on_" + imgNum + ".gif";
if(imgNum == "08") {
poploop = 8;
} else if(imgNum == "09") {
poploop = 9;
} else {
poploop = parseInt(imgNum);
}
viewObj.style.visibility = "visible";
for(var i = 1; i <= popObjCnt; i++) {
if(i == poploop) continue;
imgNum = "";
if(i < 10) imgNum = "0";
imgNum = imgNum + i;
var tmpobjName = "popbt" + imgNum;
var tmpviewObjName = "mainpop" + imgNum;
var tmpobj = document.getElementById(tmpobjName);
var tmpviewObj = document.getElementById(tmpviewObjName);
tmpviewObj.style.visibility = "hidden";
tmpobj.src = "images/main/number_off_" + imgNum + ".gif";
}
pMouseOver = true;
}
function popoutImage(imgNum) {
if(pWait) {
var objName = "popbt" + imgNum;
var viewObjName = "mainpop" + imgNum;
var obj = document.getElementById(objName);
var viewObj = document.getElementById(viewObjName);
var movingObj = document.getElementById("mainpop00");
obj.src = "images/main/number_off_" + imgNum + ".gif";
viewObj.style.visibility = "hidden";
movingObj.style.visibility = "visible";
// poploop = 1;
pMouseOver = false;
popchanging();
}
}
function startpopchanging() { // 스크롤 재시작
pWait = true;
popoutImage("01");
}
function stopscroll() { // 스크롤 정지
pWait = false;
}
/* 관련사이트 새창 */
function getSiteGo (num) {
var obj = document.getElementById ("connect"+num);
if (obj.value != '') {window.open (obj.value);}
}
/* 롤오버 이미지 변경 */
function menuOn(imgEl) {
imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}
function menuOut(imgEl) {
imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}
function GoSiteMove(id){
var obj = document.getElementById('url'+id);
if(!Trim(obj.value)){
alert('이동하실 사이트를 선택해 주세요');
return false;
}
return true;
}
// 오른쪽 공백제거
function Rtrim( str ) {
var src = new String(str);
var tmp = new String();
var i,lastnum, len = src.length;
for(i = len;i >= 0;i--) {
tmp = src.substring(i,i-1);
if (tmp != ' ' ) {
lastnum = i;
break;
}
}
tmp = src.substring(0,lastnum);
return tmp;
}
// 왼쪽 공백제거
function Ltrim( str ) {
var src = new String( str );
var tmp = new String();
var i,firstnum, len = src.length;
for(i = 0;i < len ;i++) {
tmp = src.substring(i,i+1);
if (tmp != ' ' ) {
firstnum = i;
break;
}
}
tmp = src.substring(firstnum);
return tmp;
}
// 양쪽 공백제거
function Trim( str ) {
var src = new String(str);
var tmp = new String();
tmp = Ltrim(Rtrim(str));
return tmp;
}
function TotalSearch(){
var obj = document.getElementById('TotalSearchForm');
if(!Trim(obj.tsearch.value)){
alert('검색어를 입력해 주세요');
return false;
}
return true;
}
function TotalSearch2(){
var obj = document.getElementById('TotalSearchForm2');
if(!Trim(obj.tsearch.value)){
alert('검색어를 입력해 주세요');
return false;
}
return true;
}
function LoginSubmit(){
var obj = document.getElementById('loginForm');
if(!Trim(obj.userid.value)){
alert('아이디를 입력해 주세요');
return false;
}
if(!Trim(obj.password.value)){
alert('비밀번호를 입력해 주세요');
return false;
}
return true;
}
function PartCheck(idx){
var obj = document.getElementById('UserForm');
for(jj=0;jj0 && msxp >0 && msxpsp2 >0){
alert("※ MSN,야후,구글 팝업 차단 툴바가 설치된 경우 팝업허용을 해주셔야만 가상식별 실명확인서비스 이용이 가능합니다. \n\n※ 윈도우 XP SP2 사용자일 경우에는 화면 상단에 있는 팝업 차단 알림줄을 클릭하여 팝업을 \n 허용해 주시기 바랍니다.");
}else{
alert("※ MSN,야후,구글 팝업 차단 툴바가 설치된 경우 팝업허용을 해주셔야만 가상식별 실명확인서비스 이용이 가능합니다.");
}
}
document.reqCBAForm.target = 'CbaWindow';
return true;
}
//팝업관련시작
function popup_win(popupzone_url) {
var popupzone_url;
window.open(popupzone_url,'popupzone_win','width = 556, height=352, status=no, scrollbars=no');
}
function closeLayer(timeChk) {
var obj = document.getElementById('divpop'+timeChk);
var name = escape("popup_time"+timeChk);
SaveCookie2(name, "done" , 1 );
obj.style.visibility = "hidden";
}
function SaveCookie2(name, value, expire){
var eDate = new Date();
eDate.setDate(eDate.getDate() + expire);
eDate.setHours(0,0,0);
document.cookie = name + "=" + escape(value) + "; expires=" + eDate.toGMTString()+ "; path=/;";
}
//팝업관련끝
//쿠키값 가져오기
function GetCookie (name) {
var nameOfCookie = name + "=";
var x = 0;
while ( x <= document.cookie.length ){
var y = (x+nameOfCookie.length);
if ( document.cookie.substring( x, y ) == nameOfCookie ) {
if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) {
endOfCookie = document.cookie.length;
}
return unescape( document.cookie.substring( y, endOfCookie ) );
}
x = document.cookie.indexOf( " ", x ) + 1;
if ( x == 0 )
break;
}
return "";
}
//쿠키값 가져오기