
//strzalki 
var goleftimage='g/arrow2.gif'
var gorightimage='g/arrow1.gif'
var menuwidth=380
// od 1 do 10 
var scrollspeed=15
//obrazki
var menucontents='<nobr><a href="gal11.html"><img src="foto/tmb_pic11.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal13.html"><img src="foto/tmb_pic13.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal14.html"><img src="foto/tmb_pic14.gif" width=67 height=100 alt="" border="1" hspace="5"></a><a href="gal12.html"><img src="foto/tmb_pic12.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal10.html"><img src="foto/tmb_pic10.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal9.html"><img src="foto/tmb_pic9.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal8.html"><img src="foto/tmb_pic8.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal7.html"><img src="foto/tmb_pic7.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal6.html"><img src="foto/tmb_pic6.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal5.html"><img src="foto/tmb_pic5.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal4.html"><img src="foto/tmb_pic4.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal3.html"><img src="foto/tmb_pic3.gif" width=100 height=67 alt="" border="1" hspace="5"></a><a href="gal2.html"><img src="foto/tmb_pic2.gif" width=67 height=100 alt="" border="1" hspace="5"></a><a href="gal1.html"><img src="foto/tmb_pic1.gif" width=100 height=67 alt="" border="1" hspace="5"></a></nobr>'


////skrypt//////////// 

var actualwidth=''
var ns_scroll
function fillup(){
if (document.all){
test2.innerHTML=menucontents
actualwidth=test2.offsetWidth
}
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
}
}
window.onload=fillup

function moveleft(){
if (document.all&&test2.style.pixelLeft>(menuwidth-actualwidth))
test2.style.pixelLeft-=scrollspeed
else if (document.layers&&ns_scroll.left>(menuwidth-actualwidth))
ns_scroll.left-=scrollspeed
lefttime=setTimeout("moveleft()",50)
}

function moveright(){
if (document.all&&test2.style.pixelLeft<0)
test2.style.pixelLeft+=scrollspeed
else if (document.layers&&ns_scroll.left<0)
ns_scroll.left+=scrollspeed
righttime=setTimeout("moveright()",50)
}

if (document.all||document.layers){
with (document){
write('<table border="0" cellspacing="0" cellpadding="0">')
write('<td valign="middle"><a href=#" onMouseover="moveright()" onMouseout="clearTimeout(righttime)"><img src="'+goleftimage+'"border=0></a> </td>')
write('<td valign="top">')
if (document.all){
write('<span style="position:relative;width:'+menuwidth+';">')
write('<span style="position:absolute;width:'+menuwidth+';clip:rect(0 '+menuwidth+' auto 0)">')
write('<span id="test2" style="position:absolute;left:0;top:0">')
write('</span></span></span>')
}
else if (document.layers){
write('<ilayer width='+menuwidth+' name="ns_scrollmenu">')
write('<layer name="ns_scrollmenu2" left=0 top=0></layer></ilayer>')
}
write('</td>')
write('<td valign="middle"> <a href="#" onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)">')
write('<img src="'+gorightimage+'"border=0></a>')
write('</td></table>')
}
}
