// 상단 내비게이션 function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0) return true; else if(d=="up" && c.coordY < 0 ) return true; else if(d=="down" && c.coordY > 0) return true; return false }; //롤링 방향에 따른 두번째 이미지 위치 좌표 설정 function setPosition(c){ var d = c.direction; if(d=="left") c.imageList[c.nextImg].style.left = c.listArea.offsetWidth+"px"; else if(d=="right") c.imageList[c.nextImg].style.left = (-1 * c.listArea.offsetWidth) + "px"; else if(d=="up") c.imageList[c.nextImg].style.top = c.listArea.offsetHeight + "px"; else if(d=="down") c.imageList[c.nextImg].style.top = (-1 * c.listArea.offsetHeight) + "px"; //alert(c.imageList[c.nextImg].style.left); }; //onmouseover 시 움직임 멈춤 function rollPause(c){ //alert(c.listArea.onmouseover); c.listArea.onmouseover = function(){ clearTimeout(c.rollTimer); } c.listArea.onmouseout = function(){ //alert("c.listArea.onmouseout"); setRoll(c); } }; //라벨과 바인드 function labelBind(c){ if(c.label == null) return; var labels = c.label.getElementsByTagName(c.labelType); c.label.onmouseover = function(){ for(n in labels){ if(labels[n] == event.srcElement){ //c.imageList[c.currentImg].style.display = "none"; c.currentImg = parseInt(n); c.nextImg = parseInt(n)+1; if(c.currentImg == c.imgCnt) c.nextImg = 0; clearTimeout(c.rollTimer); viewImg(c); rollOver(c); break; } } //alert(event.srcElement) } c.label.onmouseout = function(){ for(n in labels){ if(labels[n]==event.srcElement){ setRoll(c); break; } } } }; //라벨 onmouseover 시 클래스 적용 function rollOver(c){ if(c.label == null) return; var els = c.label.getElementsByTagName(c.labelType); if(c.labelType == "img"){ for(n in els){ if(typeof els[n] == "object"){ if(n == c.currentImg){ els[n].src = els[n].getAttribute("oversrc"); }else{ els[n].src = els[n].getAttribute("outsrc"); } } } }else{ for(n in els){ if(typeof els[n] == "object"){ if(n == c.currentImg){ var ocss = els[n].className; els[n].className = ocss+" "+els[n].getAttribute("overcss"); }else{ els[n].className = els[n].getAttribute("outcss"); } } } } } //라벨에서 선택된 이미지 보이기 function viewImg(c){ //alert(c.currentImg); for(n=0; n"; } //id값으로 객체 반환 function e(id){ var o = document.getElementById(id); if(typeof o == undefined || o == null) { alert(id+" 이름을 가진 객체가 없습니다."); return null;} return o; }