        function tickerstart() {
        	
        //        if (document.all) iemarquee(ticker);
        //        else if (document.getElementById)
        //                ns6marquee(document.getElementById('ticker'));
        	if (navigator.userAgent.indexOf('Firefox') > 0) ns6marquee(document.getElementById('ticker'));
        	else iemarquee(ticker);
        }
        
        function iemarquee(whichdiv){
                iediv=eval(whichdiv)
                sheight += 40;
                iediv.style.pixelTop=sheight
                iediv.innerHTML=msg 
                sizeup=iediv.offsetHeight
                ieslide()
        }
        
        function ieslide(){
                if (iediv.style.pixelTop>=sizeup*(-1)){
                        iediv.style.pixelTop-=sspeed
                        setTimeout("ieslide()",40)
                }
                else{
                        iediv.style.pixelTop=sheight
                        ieslide()
                }
        }
        
        function ns6marquee(whichdiv){
                ns6div=eval(whichdiv)
                sheight += 40;
                ns6div.style.top=sheight + "px";
                ns6div.innerHTML=msg
                sizeup=ns6div.offsetHeight
                ns6slide()
        }
        function ns6slide(){
                if (parseInt(ns6div.style.top)>=sizeup*(-1)){
                        theTop = parseInt(ns6div.style.top)-sspeed
                        ns6div.style.top = theTop + "px";
                        setTimeout("ns6slide()",700)
                	sspeed = 7;
}
                else {
                        ns6div.style.top = sheight + "px";
                        ns6slide()
                }
        }


function initTicker() {
 	var d = new Date();
	var rev = (d.getFullYear()+'-'+(d.getMonth()+1)+'-'+d.getDate());
	var oScript = document.createElement("script");
	oScript.src = "http://jobb.lakartidningen.se/jobtickerdata.js?rev="+rev;
	document.body.appendChild(oScript);
}
	  
