var notice_top_scrollerwidth=400    //스크롤사이즈 가로크기
var notice_top_scrollerheight=15   //스크롤사이즈 세로크기
var notice_top_scrollerbgcolor='' //스크롤바탕 색상
var notice_top_pausebetweenimages=6800

var notice_top_slideimages=new Array()
notice_top_slideimages[0]='<a href="http://www.octopustravel.co.kr/tmp/octopus_hawaii.html?decorator=rtg&confirm=true"><b>전세계 체인호텔 - Hilton, Accor, IHG호텔 그룹 </b>실시간 온라인 특가행사</a>'
notice_top_slideimages[1]='<a href="http://www.octopustravel.co.kr/tmp/taiwan.html?decorator=rtg&confirm=true"><b>타이페이 온천시즌</b> - 추천호텔 + 관광서비스</a>'
notice_top_slideimages[2]='<a href="http://www.octopustravel.co.kr/tmp/octopus_hawaii.html?decorator=rtg&confirm=true"><b>더 가까이 다가온 하와이!</b> - 추천호텔 + 관광서비스</a>'
notice_top_slideimages[3]='<a href="http://www.octopustravel.co.kr/tmp/free.html?decorator=rtg&confirm=true"><b>옥토퍼스 일박무료 이벤트</b> - 저렴한 요금+1박 추가까지 누리자!</a>'
notice_top_slideimages[4]='<a href="http://www.octopustravel.co.kr/tmp/hongkong_octopus.html?decorator=rtg&confirm=true"><b>홍콩호텔 필 살기</b> - 홍콩 테마 별 추천호텔 보기</a>'
notice_top_slideimages[5]='<a href="http://www.octopustravel.co.kr/tmp/newyork.html?decorator=rtg&confirm=true"><b>USA * CANADA</b> - 추천호텔+1박 무료호텔</a>'
notice_top_slideimages[6]='<a href="http://www.octopustravel.co.kr/tmp/hongkong.html?decorator=rtg&confirm=true"><b>부티크 호텔</b> - 스타일리쉬하고 럭셔리한 디자인호텔에서 하룻밤을!</a>'
notice_top_slideimages[7]='<a href="http://www.jal.co.kr/ko/flight_planning/index08.html" target="_blank"><b>JAL항공 호텔서비스 제휴</b>-  JAL항공 호텔예약고객 전원 JMB100마일 적립가능!! </a>'


if (notice_top_slideimages.length>1)
notice_top_no=2
else
notice_top_no=0

function notice_top_move1(whichlayer){
notice_top_tlayer=eval(whichlayer)
if (notice_top_tlayer.top>0&&notice_top_tlayer.top<=4){
notice_top_tlayer.top=0
setTimeout("notice_top_move1(notice_top_tlayer)",notice_top_pausebetweenimages)
setTimeout("notice_top_move2(document.notice_top_main.document.notice_top_second)",notice_top_pausebetweenimages)
return
}
if (notice_top_tlayer.top>=notice_top_tlayer.document.height*-1){
notice_top_tlayer.top-=4
setTimeout("notice_top_move1(notice_top_tlayer)",100)
}
else{
notice_top_tlayer.top=notice_top_scrollerheight
notice_top_tlayer.document.write(notice_top_slideimages[notice_top_no])
notice_top_tlayer.document.close()
if (notice_top_no==notice_top_slideimages.length-1)
notice_top_no=0
else
notice_top_no++
}
}

function notice_top_move2(whichlayer){
notice_top_tlayer2=eval(whichlayer)
if (notice_top_tlayer2.top>0&&notice_top_tlayer2.top<=5){
notice_top_tlayer2.top=0
setTimeout("notice_top_move2(notice_top_tlayer2)",notice_top_pausebetweenimages)
setTimeout("notice_top_move1(document.notice_top_main.document.notice_top_first)",notice_top_pausebetweenimages)
return
}
if (notice_top_tlayer2.top>=notice_top_tlayer2.document.height*-1){
notice_top_tlayer2.top-=4
setTimeout("notice_top_move2(notice_top_tlayer2)",100)
}
else{
notice_top_tlayer2.top=notice_top_scrollerheight
notice_top_tlayer2.document.write(notice_top_slideimages[notice_top_no])
notice_top_tlayer2.document.close()
if (notice_top_no==notice_top_slideimages.length-1)
notice_top_no=0
else
notice_top_no++
}
}

function notice_top_move3(whichdiv){
notice_top_tdiv=eval(whichdiv)
if (notice_top_tdiv.style.pixelTop>0&&notice_top_tdiv.style.pixelTop<=4){
notice_top_tdiv.style.pixelTop=0
setTimeout("notice_top_move3(notice_top_tdiv)",notice_top_pausebetweenimages)
setTimeout("notice_top_move4(notice_top_second2)",notice_top_pausebetweenimages)
return
}
if (notice_top_tdiv.style.pixelTop>=notice_top_tdiv.offsetHeight*-1){
notice_top_tdiv.style.pixelTop-=4
setTimeout("notice_top_move3(notice_top_tdiv)",100)
}
else{
notice_top_tdiv.style.pixelTop=notice_top_scrollerheight
notice_top_tdiv.innerHTML=notice_top_slideimages[notice_top_no]
if (notice_top_no==notice_top_slideimages.length-1)
notice_top_no=0
else
notice_top_no++
}
}

function notice_top_move4(whichdiv){
notice_top_tdiv2=eval(whichdiv)
if (notice_top_tdiv2.style.pixelTop>0&&notice_top_tdiv2.style.pixelTop<=4){
notice_top_tdiv2.style.pixelTop=0
setTimeout("notice_top_move4(notice_top_tdiv2)",notice_top_pausebetweenimages)
setTimeout("notice_top_move3(notice_top_first2)",notice_top_pausebetweenimages)
return
}
if (notice_top_tdiv2.style.pixelTop>=notice_top_tdiv2.offsetHeight*-1){
notice_top_tdiv2.style.pixelTop-=4
setTimeout("notice_top_move4(notice_top_second2)",100)
}
else{
notice_top_tdiv2.style.pixelTop=notice_top_scrollerheight
notice_top_tdiv2.innerHTML=notice_top_slideimages[notice_top_no]
if (notice_top_no==notice_top_slideimages.length-1)
notice_top_no=0
else
notice_top_no++
}
}

function notice_top_startscroll(){
if (document.all){
notice_top_move3(notice_top_first2)
notice_top_second2.style.top=notice_top_scrollerheight
}
else if (document.layers){
document.notice_top_main.visibility='show'
move1(document.notice_top_main.document.notice_top_first)
document.notice_top_main.document.notice_top_second.top=notice_top_scrollerheight+5
document.notice_top_main.document.notice_top_second.visibility='show'
}
}
