//* check browser var isie=navigator.userAgent.toLowerCase().indexOf('msie')!=-1 ? 1 : 0; var isie6=navigator.userAgent.toLowerCase().indexOf('6.0')!=-1 ? 1 : 0; var isie7=navigator.userAgent.toLowerCase().indexOf('7.0')!=-1 ? 1 : 0; var isff=navigator.userAgent.toLowerCase().indexOf('firefox')!=-1 ? 1 : 0; var isopera=navigator.userAgent.toLowerCase().indexOf('opera')!=-1 ? 1 : 0; var issafari=navigator.userAgent.toLowerCase().indexOf('safari')!=-1 ? 1 : 0; var defaultTime = 20; var getBrowser = function() { if(navigator.userAgent.toLowerCase().indexOf("msie")>=0) { return "ie"; }else if (navigator.userAgent.toLowerCase().indexOf("firefox")>=0) { return "ff"; }else if (navigator.userAgent.toLowerCase().indexOf("opera")>=0) { return "op"; }else if (navigator.userAgent.toLowerCase().indexOf("safari")>=0) { return "sf"; } } if(isie6){ try {document.execCommand('BackgroundImageCache', false, true)} catch(e) {} } /* minimum_kr_code. by _Kim kr_ */ function addLoadEvent(func){ var oldonload = window.onload; if(typeof window.onload != 'function'){ window.onload = func; }else{ window.onload = function(){ oldonload(); eval(func)(); } } } var KR = function(obj){ if(obj.constructor==Array){ for(var i=0,max=obj.length,returnvalue=[]; i=0)) returnvalue.push(lib(children[i])); } return lib(returnvalue); }; obj.hide=function(){ var a = this; try{ if(a.length){ for(i=0;i0) return false; this.src = this.src.replace('_off','_on'); this.onmouseout = function(){ this.src = this.src.replace('_on','_off'); } } /* if(o.parentNode.nodeName.toLowerCase() == "a"){ var link = o.parentNode; link.img = o; link.onfocus = function(){ this.img.over() } }*/ } return this; }; obj.even=function(){ var tr = obj.getElementsByTagName('tr') for(i=0;i0) this.className = this.className.replace(val,''); return this; }; obj.checkElem = function(){ var r = [],a = this; if ( a.constructor != Array ) a = [ a ]; for ( var i = 0; i < a.length; i++ ) { if ( a[i].constructor == String ) { var div = document.createElement("div"); div.innerHTML = a[i]; for ( var j = 0; j < div.childNodes.length; j++ ) r[r.length] = div.childNodes[j]; } else if ( a[i].length ) { for ( var j = 0; j < a[i].length; j++ ) r[r.length] = a[i][j]; } else { r[r.length] = a[i]; } } return r; }; obj.evtStop = function() { var event=window.event; try { if (!event.stopPropagation) { event.cancelBubble=true; } else { event.stopPropagation(); } } catch(e) {} }; obj.setPosition=function(left,top){ this.style.left=left+'px'; this.style.top=top+'px'; }; obj.setOpacity=function(value){ if(isie) this.style.filter='alpha(opacity='+value+')'; else this.style.opacity=value/100; }; obj.getOpacity=function(){ if(isie){ if(this.style.filter!='') var returnvalue=parseInt(this.style.filter.match(/alpha\(opacity=([0-9]+)\)/)[1]); }else var returnvalue=this.style.opacity*100; return (returnvalue || returnvalue===0)? returnvalue : 100; }; obj.opacityAni=function(value,speed,afterfunction){ // 투명도 조절 스크립트 ==> $('wrap').opacityani(30) var opacity,speed=(!speed)? 5 : speed,obj=this; clearTimeout(this.opacityact); var action=function(){ clearTimeout(obj.opacityact); opacity=obj.getOpacity(); if(opacity===null || opacity==value){ //'dfdf'.result(); if(afterfunction) eval(afterfunction)(); }else{ obj.setOpacity((opacity