/***********************************************
* Scrollable Menu Links- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/


var previousToggle=null
function toggleMe(a){
  var e=document.getElementById(a)
  if(!e)return true
  if(e.style.display=="none"){
    e.style.display="block"
    if(previousToggle)previousToggle.style.display="none"
    previousToggle=e
  }
  return true
}

//configure path for left and right arrows
var goleftimage='images/pointer_lt.jpg'
var gorightimage='images/pointer_rt.jpg'
//configure menu width (in px):
var menuwidth=718
//configure menu height (in px):
var menuheight=330
//Specify scroll buttons directions ("normal" or "reverse"):
var scrolldir="reverse"
//configure scroll speed (1-10), where larger is faster
var scrollspeed=6
//specify menu content
var menucontents='<nobr><a href="images/march/march_1b.jpg" rel="lightbox[march]"><img src="images/march/march_1.png" alt="" height="330"></a><a href="images/march/march_2b.jpg" rel="lightbox[march]"><img src="images/march/march_2.png" height="330" alt="" onMouseover="this.src=\'images/march/march_22.png\'" onMouseout="this.src=\'images/march/march_2.png\'"></a><a href="images/march/march_3b.jpg" rel="lightbox[march]"><img src="images/march/march_3.png"  height="330" alt="" onMouseover="this.src=\'images/march/march_32.png\'" onMouseout="this.src=\'images/march/march_3.png\'"></a><a href="images/march/march_4b.jpg" rel="lightbox[march]"><img src="images/march/march_4.png"  height="330" alt=""></a><a href="images/march/march_5b.jpg" rel="lightbox[march]"><img src="images/march/march_5.png"  height="330" alt=""></a><a href="images/march/march_6b.jpg" rel="lightbox[march]"><img src="images/march/march_6.png"  height="330" alt=""></a><a href="images/march/march_7b.jpg" rel="lightbox[march]"><img src="images/march/march_7.png"  height="330" alt="" onMouseover="this.src=\'images/march/march_72.png\'" onMouseout="this.src=\'images/march/march_7.png\'"></a><a href="images/march/march_8b.jpg" rel="lightbox[march]"><img src="images/march/march_8.png"  height="330" alt="" onMouseover="this.src=\'images/march/march_82.png\'" onMouseout="this.src=\'images/march/march_8.png\'"></a></nobr>'


////NO NEED TO EDIT BELOW THIS LINE////////////

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
}

if ( typeof window.addEventListener != "undefined" )
    window.addEventListener( "load", fillup, false );
else if ( typeof window.attachEvent != "undefined" )
    window.attachEvent( "onload", fillup );
else {
    if ( window.onload != null ) {
        var oldOnload = window.onload;
        window.onload = function ( e ) {
            oldOnload( e );
            fillup();
        };
    }
    else
        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="0">')
write('<td valign="middle"><a href="#" '+leftdircode+'><img src="'+goleftimage+'"border=0 style="display:block;"></a></td>')
write('<td width="'+menuwidth+'px" valign="top">')
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 style="display:block;"></a></td></table>')
}
}


