// JavaScript Document


var x = 0;

        var dest = 0;

        var distance = 0;

        var step = 0;

        var destination = 0;

        var dest2 = 0;

        var dest3 = 0;

<!--

function scrollit(destination) {



                step = 2;

                dest = destination;

                dest2 = dest - 2;

                dest3 = dest + 2;

                

                if (x<dest) {

                         while(x<dest) {

                                step += (step / 7);

                                x += step;

                                top.rising.scroll(x,0);   

                        }

                        while(x>dest2) {

                                x -= 3;

                                top.rising.scroll(x,0);

                        }

                        if(dest <= 3600) { top.rising.scroll(dest,0); }

                        x = dest;

                        }



                if (x > dest)  {

                        while (x>dest) {

                                step += (step / 7);

                        if(x >= (0+step)) {

                                    x -= step; 

                                        top.rising.scroll(x,0);

                        }

                        else { break;  }

                        } 

                        while(x<dest3) {

                                x += 3;

                                top.rising.scroll(x,0);

                        }

                        if(dest >= 0) { top.rising.scroll(x,0); }

                        x = dest;

                }

                if (x<1) {x=0}

                if (x>3600) {x=3600}

}

		