function downloadPDF(name){
    if(!pdf_newsletter){
        document.getElementById('pdfname').value=name;
        document.getElementById('downloadpdf').className='show';
        return false;
    }
}

$(function(){
var speed = 400;
var delay = 1000;
var mheight = $("marquee").attr("height");
var kjoer;
 $("<div></div>").addClass("alternate").height(mheight).css("position", "relative").css("overflow", "hidden").appendTo("body");
 $("<div></div>").addClass("scroller").css({"position": "absolute", "top": "0px"}).appendTo(".alternate");
 $("marquee").hide().children().appendTo("div.scroller");
 var dim = $(".scroller").clone().appendTo(".alternate").height();
 $(".scroller:eq(1)").css("top", dim);
function scroll(){
$(".scroller").each(function(){
 var a = parseInt($(this).css("top"));
 $(this).css("top", a-1);
 if (a<(0-dim)) tick($(this));
});
};
function tick(obj){
 obj.css("top", dim);
};
function wait(){
 kjoer = setInterval(scroll, speed);
}
var go = setTimeout(wait,delay)
 $(".scroller").hover(function(){clearTimeout(go); clearInterval(kjoer);}
 ,function(){kjoer = setInterval(scroll, speed);})
});
