act_scrollBar = new Object();
act_scrollBar = null;
var last_scroll_mouse_top_position = null;

function mouse_down_scrollBar(scrollBarObjId) {               
   scrollBarObjId = document.getElementById(scrollBarObjId);
   act_scrollBar = scrollBarObjId;
}

function mouse_up_scrollBar(scrollBarObjId) {
   scrollBarObjId = document.getElementById(scrollBarObjId);
   act_scrollBar = null;
}

function mouse_move_over_possible_scrollField(e) {
   if(act_scrollBar != null) {
      act_scrollBar.style.top = (e.clientY - 170);
      
      if(last_scroll_mouse_top_position < e.clientY) srolldown('blog_element_1_txt');
      else if(last_scroll_mouse_top_position > e.clientY) srollup('blog_element_1_txt');
      
      last_scroll_mouse_top_position = e.clientY 
   }
}








function srolldown(divId) {                 
   elem = document.getElementById(divId);
   if(elem.style.marginTop == false) elem.style.marginTop = 0+"px";
   
   elem.style.marginTop = (parseInt(elem.style.marginTop) - 10) +"px";
}

function srollup(divId) {         
   elem = document.getElementById(divId);
   if(elem.style.marginTop == false) elem.style.marginTop = 0+"px"; 
   
   elem.style.marginTop = (parseInt(elem.style.marginTop) + 10) +"px";
}
