< slideobj[n][div].pos_h = slideobj[n][div].clip.height; slideobj[n][div].cnt = 0; } else chkobj = false; } } else chkobj = false; } if (isN6) { base = document.getElementById(arguments[2]); if (base) { base.pos_x = parseInt(base.style.left); for (var div=0; div < arguments.length-3; div++) { slideobj[n][div] = document.getElementById(arguments[div+3]); if (slideobj[n][div]) { slideobj[n][div].innerH = window.innerHeight; slideobj[n][div].innerW = window.innerWidth; slideobj[n][div].pos_x = parseInt(slideobj[n][div].style.left); slideobj[n][div].pos_y = parseInt(slideobj[n][div].style.top); slideobj[n][div].pos_w = parseInt(slideobj[n][div].style.width); slideobj[n][div].pos_h = parseInt(slideobj[n][div].style.height); slideobj[n][div].cnt = 0; } else chkobj = false; } } else chkobj = false; } if (isIE) { w_str = "document.all.item(\"" + arguments[2] + "\")"; if (eval(w_str)) { w_str = "document.all.item(\"" + arguments[2] + "\").style"; base = eval(w_str); if (base) base.pos_x = base.pixelLeft; else chkobj = false; } else chkobj = false; for (var div=0; div < arguments.length-3; div++) { w_str = "document.all.item(\"" + arguments[div+3] + "\")"; if (eval(w_str)) { w_str = "document.all.item(\"" + arguments[div+3] + "\").style"; slideobj[n][div] = eval(w_str); if (slideobj[n][div]) { slideobj[n][div].innerH = document.body.clientHeight; slideobj[n][div].innerW = document.body.clientWidth; slideobj[n][div].pos_x = slideobj[n][div].pixelLeft; slideobj[n][div].pos_y = slideobj[n][div].pixelTop; slideobj[n][div].pos_w = slideobj[n][div].pixelWidth; slideobj[n][div].pos_h = slideobj[n][div].pixelHeight; slideobj[n][div].cnt = 0; } else chkobj = false; } } } if (!chkobj) return; for (var div = 1; div < slideobj[n].length; div++) { slideobj[n][div].pos_mx = new Array; slideobj[n][div].pos_my = new Array; slideobj[n][div].pos_mx[0] = 0 - ( base.pos_x + slideobj[n][div].pos_w ); var w_sub; w_sub = 320-(base.pos_x+slideobj[n][div].pos_x); if (w_sub > 0) slideobj[n][div].pos_mx[0]-=w_sub; slideobj[n][div].pos_my[0] = slideobj[n][0].pos_y + ( slideobj[n][0].pos_h / 2 ) - ( slideobj[n][div].pos_h / 2 ); for (var p = 1; ; p++) { slideobj[n][div].pos_mx[p] = slideobj[n][div].pos_mx[p - 1] + 20; slideobj[n][div].pos_my[p] = slideobj[n][div].pos_my[0]; if ( slideobj[n][div].pos_mx[p] >= slideobj[n][0].pos_x + ( slideobj[n][0].pos_w / 2 ) - ( slideobj[n][div].pos_w / 2 ) ) { slideobj[n][div].pos_mx[p] = slideobj[n][0].pos_x + ( slideobj[n][0].pos_w / 2 ) - ( slideobj[n][div].pos_w / 2 ); break; } } slideobj[n][div].pos_ox = new Array; slideobj[n][div].pos_oy = new Array; slideobj[n][div].pos_ox[0] = slideobj[n][div].pos_mx[slideobj[n][div].pos_mx.length - 1]; slideobj[n][div].pos_oy[0] = slideobj[n][div].pos_my[0]; for (var p = 1; ; p++) { slideobj[n][div].pos_ox[p] = slideobj[n][div].pos_ox[p - 1] + 20; slideobj[n][div].pos_oy[p] = slideobj[n][div].pos_oy[0]; if ( slideobj[n][div].pos_ox[p] >= slideobj[n][div].innerW ) { break; } } } slideobj[n].idiv = 1; slideobj[n].odiv = slideobj[n].length - 1; slideobj[n].lr = 1; slideobj[n].itm = false; slideobj[n].otm = false; HpbSlideShowObj(slideobj[n][slideobj[n].idiv]); } // // HpbSlideNext // function HpbSlideNext( n ) { if ((isNC||isN6||isIE) && chkobj) { if ( slideobj[n].auto == true ) { if ( slideobj[n].itm == false && slideobj[n].otm == false ) { var p; if ( slideobj[n].lr > 0 ) { slideobj[n].odiv = slideobj[n].idiv; p = 0; } else { slideobj[n].idiv = slideobj[n].odiv; slideobj[n].odiv += 1; if ( slideobj[n].odiv >= slideobj[n].length ) slideobj[n].odiv = 1; p = slideobj[n][slideobj[n].odiv].pos_ox.length - 1; } slideobj[n].otm = true; setTimeout( "HpbSlideTimerOut('" + n + "'," + p + ")", slideobj[n].interval ); if ( slideobj[n].lr > 0 ) { slideobj[n].idiv += 1; if ( slideobj[n].idiv >= slideobj[n].length ) slideobj[n].idiv = 1; p = 0; } else { p = slideobj[n][slideobj[n].idiv].pos_mx.length - 1; } slideobj[n].itm = true; setTimeout( "HpbSlideTimerIn('" + n + "'," + p + ")", slideobj[n].interval ); } } } } // // HpbSlideTimerIn // function HpbSlideTimerIn( n, p ) { if ((isNC||isN6||isIE) && chkobj) { var div; div = slideobj[n].idiv; if (slideobj[n][div]) { var pl; if ( slideobj[n].lr > 0 && p == 0 ) HpbSlideShowObj(slideobj[n][div]); HpbSlideMoveobj(slideobj[n][div],slideobj[n][div].pos_mx[p],slideobj[n][div].pos_my[p]); pl = slideobj[n][div].pos_mx.length; p += slideobj[n].lr; if ( ( p < pl && slideobj[n].lr > 0 ) || ( p >= 0 && slideobj[n].lr < 0 ) ) { setTimeout( "HpbSlideTimerIn('" + n + "'," + p + ")", 100 ); } else { slideobj[n].itm = false; HpbSlideNext( n ); if ( slideobj[n].lr < 0 ) HpbSlideHideObj(slideobj[n][div]); } } } } // // HpbSlideTimerOut // function HpbSlideTimerOut( n, p ) { if ((isNC||isN6||isIE) && chkobj) { var div; div = slideobj[n].odiv; if (slideobj[n][div]) { var pl; if ( slideobj[n].lr < 0 && p == ( slideobj[n][div].pos_ox.length - 1 ) ) HpbSlideShowObj(slideobj[n][div]); HpbSlideMoveobj(slideobj[n][div],slideobj[n][div].pos_ox[p],slideobj[n][div].pos_oy[p]); pl = slideobj[n][div].pos_ox.length; p += slideobj[n].lr; if ( ( p < pl && slideobj[n].lr > 0 ) || ( p >= 0 && slideobj[n].lr < 0 ) ) { setTimeout( "HpbSlideTimerOut('" + n + "'," + p + ")", 100 ); } else { slideobj[n].otm = false; HpbSlideNext( n ); if ( slideobj[n].lr > 0 ) HpbSlideHideObj(slideobj[n][div]); } } } } // // HpbSlideStart // function HpbSlideStart( n, pn, rb, sq, mv ) { if ((isNC||isN6||isIE) && chkobj) { if ( slideobj[n].itm == false && slideobj[n].otm == false ) { var p; if ( slideobj[n].lr == pn ) { if ( pn > 0 ) { slideobj[n].odiv = slideobj[n].idiv; if ( sq > 0 ) { slideobj[n].idiv += 1; if ( slideobj[n].idiv >= slideobj[n].length ) slideobj[n].idiv = 1; } else { slideobj[n].idiv -= 1; if ( slideobj[n].idiv < 1 ) slideobj[n].idiv = slideobj[n].length - 1; } } else { slideobj[n].idiv = slideobj[n].odiv; if ( sq > 0 ) { slideobj[n].odiv += 1; if ( slideobj[n].odiv >= slideobj[n].length ) slideobj[n].odiv = 1; } else { slideobj[n].odiv -= 1; if ( slideobj[n].odiv < 1 ) slideobj[n].odiv = slideobj[n].length - 1; } } } else { slideobj[n].lr = pn; if ( rb == false ) { if ( pn > 0 ) { if ( sq > 0 ) { slideobj[n].idiv = slideobj[n].odiv + 1; if ( slideobj[n].idiv >= slideobj[n].length ) slideobj[n].idiv = 1; } else { slideobj[n].idiv -= 1; if ( slideobj[n].idiv < 1 ) slideobj[n].idiv = slideobj[n].length - 1; } } else { if ( sq > 0 ) { slideobj[n].odiv = slideobj[n].idiv + 1; if ( slideobj[n].odiv >= slideobj[n].length ) slideobj[n].odiv = 1; } } } } if ( mv == true ) { if ( pn > 0 ) { p = 0; } else { p = slideobj[n][slideobj[n].odiv].pos_ox.length - 1; } slideobj[n].otm = true; setTimeout( "HpbSlideTimerOut('" + n + "'," + p + ")", 100 ); } else { if ( pn > 0 ) { HpbSlideShowObj(slideobj[n][slideobj[n].idiv]); } else { HpbSlideShowObj(slideobj[n][slideobj[n].odiv]); } } if ( mv == true ) { if ( pn > 0 ) { p = 0; } else { p = slideobj[n][slideobj[n].idiv].pos_mx.length - 1; } slideobj[n].itm = true; setTimeout( "HpbSlideTimerIn('" + n + "'," + p + ")", 100 ); } else { if ( pn > 0 ) { HpbSlideHideObj(slideobj[n][slideobj[n].odiv]); } else { HpbSlideHideObj(slideobj[n][slideobj[n].idiv]); } } } } } // // HpbSlideShowObj // function HpbSlideShowObj(obj) { if (obj) { if (isNC) obj.visibility = "show"; if (isN6) obj.style.visibility = "visible"; if (isIE) obj.visibility = "visible"; lastobj = obj; } } // // HpbSlideHideObj // function HpbSlideHideObj(obj) { if (obj) { if (isNC) obj.visibility = "hide"; if (isN6) obj.style.visibility = "hidden"; if (isIE) obj.visibility = "hidden"; } } // // HpbSlideMoveobj // function HpbSlideMoveobj(obj,x,y) { if (obj) { if (isNC) {obj.left=x;obj.top=y;} if (isN6) {obj.style.left=x+"px";obj.style.top=y+"px";} if (isIE) {obj.left=x;obj.top=y;} } } // // HpbSlideAutoStart // function HpbSlideAutoStart( n, pn, mv ) { if ((isNC||isN6||isIE) && chkobj) { if ( slideobj[n].itm == false && slideobj[n].otm == false && slideobj[n].auto == false ) { if ( slideobj[n].lr != pn ) { if ( pn > 0 ) { } else { slideobj[n].odiv = slideobj[n].idiv; slideobj[n].idiv += 1; if ( slideobj[n].idiv >= slideobj[n].length ) slideobj[n].idiv = 1; } } slideobj[n].auto = true; slideobj[n].lr = pn; if ( mv == true ) { HpbSlideNext( n ); } else { HpbSlideSwap( n, pn ); } } } } // // HpbSlideAutoStop // function HpbSlideAutoStop( n ) { if ((isNC||isN6||isIE) && chkobj) { slideobj[n].auto = false; } } // // HpbSlideSwap // function HpbSlideSwap( n, pn ) { if ((isNC||isN6||isIE) && chkobj) { if ( slideobj[n].auto == true ) { HpbSlideStart(n,pn,false,pn,false); setTimeout( "HpbSlideSwap('" + n + "'," + pn + ")", slideobj[n].interval ); } } } //-->