//configure path for left and right arrows
var goleftimage='./images/top_scroll_bar_left.gif'
var gorightimage='./images/top_scroll_bar_right.gif'
//configure menu width (in px):
var menuwidth=200
//configure menu height (in px):
var menuheight=38 //78
//Specify scroll buttons directions ("normal" or "reverse"):
var scrolldir="normal"
//configure scroll speed (1-10), where larger is faster
var scrollspeed=6
//specify menu content
var menucontents='<nobr><table border="0" cellspacing="0" cellpadding="0"><tr><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic21.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic21TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic20.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic20TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic19.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic19TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic18.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic18TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic17.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic17TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic16.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic16TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic1.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic1TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic2.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic2TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic3.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic3TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic4.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic4TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic5.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic5TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic6.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic6TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic7.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic7TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic8.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic8TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic9.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic9TN.jpg" width="50" height="38" border="0"></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic10.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic10TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic11.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic11TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic12.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic12TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic13.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic13TN.jpg" width="50" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic14.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic14TN.jpg" width="51" height="38" border="0"></a></td><td width="0%"><img src="images/spacer.gif" width="5" height="20"></td><td width="5%"><a href="#" onClick="MM_openBrWindow1(\'./gallery/pic15.html\',\'gallery\',\'width=640,height=470,left=200,top=100\')"><img src="images/gallery/pic15TN.jpg" width="50" height="38" border="0"></td><td width="25%">&nbsp;</td></tr></table></nobr>'
////------------////------------////------------

var iedom=document.all||document.getElementById
var leftdircode='onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)"'
var rightdircode='onMouseover="moveright()" onMouseout="clearTimeout(righttime)"'
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
}
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 moveleft(){
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
}
lefttime=setTimeout("moveleft()",50)
}

function moveright(){
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
}
righttime=setTimeout("moveright()",50)
}


if (iedom||document.layers){
with (document){
write('<table border="0" cellspacing="0" cellpadding="2">')
write('<td valign="middle"><a href="#" '+leftdircode+'><img src="'+goleftimage+'"border=0></a></td>')
write('<td valign="middle" width="'+menuwidth+'px">')
if (iedom){
write('<div style="position:relative;width:'+menuwidth+'px;height:'+menuheight+'px;overflow:hidden;">')
write('<div id="test2" style="position:absolute;left:0;top:0">')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+menuwidth+' height='+menuheight+' name="ns_scrollmenu">')
write('<layer name="ns_scrollmenu2" left=0 top=0></layer></ilayer>')
}
write('</td>')
write('<td valign="middle"> <a href="#" '+rightdircode+'>')
write('<img src="'+gorightimage+'"border=0></a>')
write('</td></table>')
}
}



