document.write(''); document.write(''); document.write(''); window.hosts = window.location.host.split('.'); // window.domain = hosts[(hosts.length-2)]+'.'+hosts[(hosts.length-1)]; window.domain = hosts[(hosts.length-3)]+'.'+hosts[(hosts.length-2)]+'.'+hosts[(hosts.length-1)]; if ( window.location.hostname == 'www.'+domain ) { window._langphp = '/php/lang.php'; window._tmenuphp = '/php/tmenu.php'; window._elang = 'LANG'; // window._langphp = '/php/solution/lang.php'; // window._tmenuphp = '/php/solution/tmenu.php'; // window._elang = 'eLANG'; } else { window._langphp = '/php/lang.php'; window._tmenuphp = '/php/tmenu.php'; window._elang = 'LANG'; } $(document).ready(function(){ window._sid = unescape(window.location.pathname.split('/')[1]); // 다국어 SELECT DOM 생성. var chglang = $('#v-wdg-multilingual-chglanguage').multilingual(); // 선택된 언어로 내용 변경 var selectedlang = $.cookie(_elang) ? $.cookie(_elang) : ( typeof optimumlang != typeof _undefined_ ? optimumlang : 'en' ) ; if ( typeof selectedlang != typeof _undefined_ ) { $.cookie(_elang, selectedlang, {'expires':10,'path':window.location.pathname.split('lang')[0]}); if ( chglang.length > 0 ) { var chglangdom = chglang.get(0); chglangdom.chgLang(selectedlang); $('option[@value="'+selectedlang+'"]', chglangdom).attr({'selected':true}); } } // 기본 매뉴 생성. $('.jmenustyle').jmenuStyle(); //$('.jmenustyle').jmenuStyle({parent: '
', children: '
'}); /** * $('jmenustyle').jmenuStyle({ parent: '
', children: '
TEXT
' }); * 메뉴 이름을 넣고 싶은 부분에 TEXT (대문자)라고 쓴다. * parent와 children을 쓰지 않을 경우, 기본값 구조로 적용된다. */ }); function Resize_Frame(name) { if(navigator.appName.indexOf("Microsoft Internet Explorer") != 0) { var objBody = parent.document.getElementById('ifrm').contentWindow.document.body; var objFrame = parent.document.getElementById('ifrm'); if (objFrame) { var H = objBody.scrollHeight; H = H+"px"; objFrame.style.height = H; objFrame.style.width = '99%'; } } else { var objBody = document.documentElement; var objFrame = eval("parent.document.getElementById('"+name+"')"); if (objFrame) { var theHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight); var parentHeight = parent.document.documentElement.clientHeight; if (theHeight < parentHeight) theHeight = parentHeight; //alert(theHeight+'/'+objBody.scrollHeight+'/'+objBody.offsetHeight+'/'+objBody.clientHeight); //objFrame.style.height = '210px'; objFrame.style.height = theHeight+'px'; //objFrame.style.width = parent.document.getElementById('FrameBoxDiv').style.width; objFrame.style.width = '850px' //alert(objFrame.style.width); } } }