// Tab Content function initTabMenu(tabContainerID) { var tabContainer = document.getElementById(tabContainerID); var tabAnchor = tabContainer.getElementsByTagName("a"); var i = 0; for(i=0; i-1){ eval(this.href); } else if(this.href == "" || this.href.indexOf("#")>-1){ } else if(this.target == "_blank"){ window.open(this.href); } else { location.href(this.href); } if(state==1){ strSelected.firstChild.nodeValue = this.firstChild.nodeValue; /*alert(strSelected.firstChild.nodeValue);*/ } return false; } } ActionElement[i].onmouseover = function(){ select.elementClass = this; } } SelectElement.onmouseover = function(){ strSelected.onblur = function(){}} SelectElement.onmouseout = function(){ strSelected.onblur = function(){ select.close(ListElement); }} }, close : function(el){ el.style.display = "none"; return false; } } /* gnb navigation*/ function initTopMenu(el,depth1) { topMenuOut(el.getElementsByTagName("img").item(0)); if(el.id == "top-menu" + depth1) { topMenuOver(el.getElementsByTagName("img").item(0)); } } function topMenuOver(img) { //img.src = img.src.replace(".gif", "_on.gif"); } function topMenuOut(img) { //img.src = img.src.replace("_on.gif", ".gif"); } function selectTopmenuByMenuId() { var depth1 = this.id.substring("top-menu-head".length,this.id.length); var menuId = "sub-menu" + depth1; var selectDepth1 = "top-" + depth1 + "-1"; var topnav = document.getElementById("gnb"); if(!topnav) return; var topEl = topnav.getElementsByTagName("ul"); for(i = 0 ; i < topEl.length ; i++){ if(topEl[i].id.substring(0,12) == "top-sub-menu") { topEl[i].style.display = "none"; } } var topEl2 = topnav.getElementsByTagName("li"); for(i = 0 , seq = 1; i < topEl2.length ; i++){ if(topEl2[i].id.substring(0,8) == "top-menu") { initTopMenu(topEl2[i],depth1); } } var nav = document.getElementById("top-" + menuId); if(!nav) return; nav.style.display = "block"; menuEl = nav.getElementsByTagName("li"); for(i = 0; i < menuEl.length; i++) { var imgEl = menuEl.item(i).getElementsByTagName("img") if(imgEl != null && imgEl.length>0) { imgEl.item(0).onmouseover = menuOver; imgEl.item(0).onmouseout = menuOut; imgEl.item(0).onfocus = menuOver; imgEl.item(0).onblur = menuOut; } } } function initTopmenuByMenuId(depth1, depth2, depth3, depth4, menuId) { var selectDepth1 = "top-" + depth1 + "-" + depth2; var selectDepth2 = "top-" + depth1 + "-" + depth2 + "-" + depth3; var selectDepth3 = "top-" + depth1 + "-" + depth2 + "-" + depth3 + "-" + depth4; var topnav = document.getElementById("gnb"); if(!topnav) return; var topEl = topnav.getElementsByTagName("ul"); for(var i = 0 ; i < topEl.length ; i++){ if(topEl[i].id.substring(0,12) == "top-sub-menu") { topEl[i].style.display = "none"; } } var topEl2 = topnav.getElementsByTagName("a"); for(i = 0, seq = 0 ; i < topEl2.length ; i++){ if(topEl2[i].id.substring(0,13) == "top-menu-head") { topEl2[i].onmouseover = selectTopmenuByMenuId; topEl2[i].onfocus = selectTopmenuByMenuId; if ( topEl2[i].id.substring(13) == depth1) { topEl2[i].onmouseover(); } seq++; } } var nav = document.getElementById("top-" + menuId); if(!nav) return; nav.style.display = "block"; menuEl = nav.getElementsByTagName("li"); for(i = 0; i < menuEl.length; i++) { var menuElItm = menuEl.item(i); var imgEl = menuElItm.getElementsByTagName("img"); if(imgEl == null || imgEl.length == 0) { var aEl = menuElItm.getElementsByTagName("a"); var itm = aEl.item(0); if (menuElItm.id == selectDepth1 || menuElItm.id == selectDepth2 || menuElItm.id == selectDepth3 ) { itm.className = "on"; } } else { var itm = imgEl.item(0); if (menuElItm.id == selectDepth1 || menuElItm.id == selectDepth2 || menuElItm.id == selectDepth3 ) { itm.src = itm.src.replace(".gif", "_on.gif"); itm.onmouseover = null; itm.onmouseout = null; itm.onfocus = null; itm.onblur = null; } else { itm.onmouseover = menuOver; itm.onmouseout = menuOut; itm.onfocus = menuOver; itm.onblur = menuOut; } } } } /* IMAGE ON/OFF */ jQuery(function($){ $(function(){ $("img.rollover").hover( function(){this.src = this.src.replace("_off","_on");}, function(){this.src = this.src.replace("_on","_off");}); }); }); jQuery(function($) { $(document).ready(function() { var bodyHeight = $("body").height(); var wrapHeight = $("#wrap").height(); var footHeight = bodyHeight - wrapHeight; $("#blockFooter").height(footHeight); $("#blockFooter .footer").height(footHeight-30); $("#blockFooter").css("top", wrapHeight); }); $(window).resize(function() { var bodyHeight = $("body").height(); var wrapHeight = $("#wrap").height(); var footHeight = bodyHeight - wrapHeight; $("#blockFooter").height(footHeight); $("#blockFooter .footer").height(footHeight-30); }); }); /* flash */ var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("