$(document).ready(function(){  $('a.lightbox').lightBox(); });
$(window).load(function(){
						 
var bottom_interval=0;
var top_interval=0;
var speed=5;
var text_inner=$(".text .scroll_content");
var max_height=text_inner.height();
var margintop=0;
if(max_height>847) $(".arrow_bottom").removeClass("hide");
$(".arrow_bottom").bind("mousedown",function(e){
e.preventDefault();								

$(".arrow_top").fadeIn();
bottom_interval=setInterval(function(){
if(847-parseInt(margintop)<max_height){
	margintop-=speed;
text_inner.css("margin-top",parseInt(margintop)+"px");
}
else{clearInterval(bottom_interval);

$(".arrow_bottom").fadeOut();}

},1);});
$(".arrow_bottom").bind("mouseup",function(e){
clearInterval(bottom_interval);
e.preventDefault();
});
$(".arrow_bottom,.arrow_top").click(function(e){e.preventDefault();});

$(".arrow_top").bind("mousedown",function(e){
										  $(".arrow_bottom").fadeIn();
e.preventDefault();
clearInterval(top_interval);
top_interval=setInterval(function(){
if(parseInt(margintop)<=0){
	margintop+=speed;
text_inner.css("margin-top",parseInt(margintop)+"px");

}else{clearInterval(top_interval);

$(".arrow_top").fadeOut();}},1);});
$(".arrow_top").bind("mouseup",function(e){
clearInterval(top_interval);
e.preventDefault();
});
						   });
