
var tmpimg = "";
function changeImgL(img, obj){
   if(tmpimg==""){
      tmpimg = $('imgL').src;
   }
   if(img==''){
      img=tmpimg;
   }
   $('imgL').src=img;
}
var temp_y = 0
var up = false
var down =true
function scrollUp(){
    if(up==true){
        var coFx = new Fx.Scroll('content-content',{duration: 1500,transition: Fx.Transitions.Quad.easeInOut});
        temp_y-=300;
       coFx.start(0,temp_y);
        scrollcheck();
    }
}
function scrollDown(){
    var coFx = new Fx.Scroll('content-content',{duration: 1500,transition: Fx.Transitions.Quad.easeInOut});
    if(down==true){
        temp_y+=300
        coFx.start(0,temp_y);
        scrollcheck();
    }
}

function scrollcheck(){
    pos  = $('content-content').getPosition();
    scrollsize = $('content-content').getScrollSize();
    size=$('content-content').getSize()
    down=true
    up=true
    if(temp_y+ size.y>scrollsize.y){
        down=false;
    }
    if(temp_y<=0){
         up =false;
    }
}
