var goleftimage='img/leftarrow_small.png'
var gorightimage='img/rightarrow_small.png'
var menuwidth=100
var menuheight=95
var scrolldir="normal"
var scrollspeed=6

var iedom=document.all||document.getElementById
var a01="MM_swapImage('Image1','','img/leftarrow_small.png',1);"
var a02="MM_swapImage('Image2','','img/rightarrow_small.png',1);"
var leftdircode='onMouseover="moveleft();" onMouseout="clearTimeout(lefttime);" onclick="return false;"'
var rightdircode='onMouseover="moveright();" onMouseout="clearTimeout(righttime);" onclick="return false;"'
if (scrolldir=="reverse"){
var tempswap=leftdircode
leftdircode=rightdircode
rightdircode=tempswap
}
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-5000">'+menucontents+'</span>')
var actualwidth=''
var cross_scroll, ns_scroll
var loadedyes=0
function fillup(){
if (iedom){
cross_scroll=document.getElementById? document.getElementById("test2") : document.all.test2
cross_scroll.innerHTML=menucontents
actualwidth=document.all? cross_scroll.offsetWidth : document.getElementById("temp").offsetWidth;
actualwidth = (pictures.length * 150);
}
else if (document.layers){
ns_scroll=document.ns_scrollmenu.document.ns_scrollmenu2
ns_scroll.document.write(menucontents)
ns_scroll.document.close()
actualwidth=ns_scroll.document.width
}
loadedyes=1
}
window.onload=fillup

function moveright(){
if (loadedyes){
if (iedom&&parseInt(cross_scroll.style.left)>(menuwidth-actualwidth)){
cross_scroll.style.left=parseInt(cross_scroll.style.left)-scrollspeed+"px"
}
else if (document.layers&&ns_scroll.left>(menuwidth-actualwidth))
ns_scroll.left-=scrollspeed
}
righttime=setTimeout("moveright()",50)
}

function moveleft(){
if (loadedyes){
if (iedom&&parseInt(cross_scroll.style.left)<0)
cross_scroll.style.left=parseInt(cross_scroll.style.left)+scrollspeed+"px"
else if (document.layers&&ns_scroll.left<0)
ns_scroll.left+=scrollspeed
}
lefttime=setTimeout("moveleft()",50)
}


if (iedom||document.layers){
with (document){
write('<div class="navbar_arrow">')
write('<a href="#" '+leftdircode+'><img src="'+goleftimage+'" name="Image1" width="31" height="28" alt="balra" /></a></div><div id="navbar_center">')
if (iedom){
write('<div style="position:relative;width:844px;height:'+menuheight+'px;overflow:hidden;">')
write('<div id="test2" style="position:absolute;left:0px;top:0px">')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width=844 height='+menuheight+' name="ns_scrollmenu">')
write('<layer name="ns_scrollmenu2" style="position:absolute;left:0px;top:0px"></layer></ilayer>')
}
write('</div>')
write('<div class="navbar_arrow"><a href="#" '+rightdircode+'>')
write('<img src="'+gorightimage+'" name="Image2" width="31" height="28" alt="jobbra" /></a>')
write('</div>')
}
}

function click(e) {
  if (document.all) {
  if (event.button == 2 || event.button == 3) { oncontextmenu = "return false"; } }
  if (document.layers) {
   if (e.which == 3) { oncontextmenu = "return false"; } } }
if (document.layers) { document.captureEvents(Event.MOUSEDOWN); }
document.onmousedown = click;
document.oncontextmenu = new Function("return false;");
