///////////////////////////////////
// 슬라이더 설정 시작
///////////////////////////////////
//슬라이더 넓이
var sliderwidth="940px";
//슬라이더 높이
var sliderheight="50px";
//슬라이더 속도 (숫자사용) 큰숫자일수록 빠름 ( 1 - 10)
var slidespeed=1;
//슬라이더 배경색상
slidebgcolor="#FFF";
var leftrightslide=new Array();
var finalslide='36';
//링크 이미지 등록 시작
leftrightslide[1]='';
leftrightslide[2]='';
leftrightslide[3]='';
leftrightslide[4]='';
leftrightslide[5]='';
leftrightslide[6]='';
leftrightslide[7]='';
function bannerPop(urls){
window.open(urls, 'banner05', 'width=300,height=300,scrollbars=0,toolbar=0,status=0');
}
// 링크 이미지 등록 종료
//이미지 사이의 간격 (HTML)가능
var imagegap=" ";
//슬라이드의 간격간의 거리 (숫자사용):
var slideshowgap=5;
//
var actualwidth='';
var cross_slide, ns_slide;
var righttime,lefttime;
///////////////////////////////////
// 슬라이더 설정 끝
///////////////////////////////////
var copyspeed=slidespeed;
leftrightslide=''+leftrightslide.join(imagegap)+'';
var iedom=document.all||document.getElementById;
if (iedom)
document.write(''+leftrightslide+'');
var actualwidth='';
var cross_slide, ns_slide;
function fillup()
{
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2;
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3;
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide;
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth;
cross_slide2.style.left=actualwidth+slideshowgap+"px";
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2;
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3;
ns_slide.document.write(leftrightslide);
ns_slide.document.close();
actualwidth=ns_slide.document.width;
ns_slide2.left=actualwidth+slideshowgap;
ns_slide2.document.write(leftrightslide);
ns_slide2.document.close();
}
//lefttime=setInterval("slideleft()",30);
}
window.onload=fillup;
function slideright(){
if (iedom){
if (parseInt(cross_slide.style.left)<(actualwidth+8))
cross_slide.style.left=parseInt(cross_slide.style.left)+copyspeed+"px";
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth*(-1)+slideshowgap+"px";
if (parseInt(cross_slide2.style.left)<(actualwidth+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)+copyspeed+"px";
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth*(-1)+slideshowgap+"px";
}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+9))
ns_slide.left-=copyspeed;
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap;
if (ns_slide2.left>(actualwidth*(-1)+9))
ns_slide2.left-=copyspeed;
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap;
}
}
function right(){
if (copyspeed == 0){
copyspeed=slidespeed;
}
//if(lefttime){
clearInterval(lefttime);
clearInterval(righttime);
righttime=setInterval("slideright()",45);
//}
}
function left(){
if (copyspeed == 0){
copyspeed=slidespeed;
}
//if(righttime){
clearInterval(lefttime);
clearInterval(righttime);
lefttime=setInterval("slideleft()",45);
//}
}
function stop(){
if (copyspeed == 0){
copyspeed=slidespeed;
}
clearInterval(lefttime);
clearInterval(righttime);
}
function slideleft()
{
if (iedom)
{
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px";
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px";
if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px";
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px";
}
else if (document.layers)
{
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed;
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap;
if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed;
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap;
}
}
if (iedom||document.layers)
{
with (document)
{
document.write('
');
if (iedom){
write('
');
//write('
');
write('
');
write('
');
write('
');
write('
');
}
else if (document.layers)
{
write('
');
write('');
write('');
write('');
}
document.write('');
}
}