// JavaScript Document


/***********************************************
* 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
***********************************************/

//configure path for left and right arrows
var goleftimage='pointer2.gif'
var gorightimage='pointer.gif'
//configure menu width (in px):
var menuwidth=169
//configure menu height (in px):
var menuheight=25

var menuwidth1=100
//configure menu height (in px):
var menuheight1=25
//Specify scroll buttons directions ("normal" or "reverse"):
var scrolldir="normal"
//configure scroll speed (1-10), where larger is faster
var scrollspeed=6
////NO NEED TO EDIT BELOW THIS LINE////////////

var iedom=document.all||document.getElementById

var iedom2=document.all||document.getElementById

var leftdircode2='onMouseover="moveleft2()" onMouseout="clearTimeout(lefttime)"'
var rightdircode2='onMouseover="moveright2()" onMouseout="clearTimeout(righttime)"'

var leftdircode='onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)"'
var rightdircode='onMouseover="moveright()" onMouseout="clearTimeout(righttime)"'



if (scrolldir=="reverse"){
		var tempswap=leftdircode
		leftdircode=rightdircode
		rightdircode=tempswap
}//end if.

if (scrolldir=="reverse2"){
		var tempswap2=leftdircode2
		leftdircode2=rightdircode2
		rightdircode2=tempswap2
}//end if.


		if (iedom){
				document.write('<div style="border:0px solid green;"><span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-5000">'+menucontents+'</span></div>')
		}//end if.

		if (iedom2){
				document.write('<div style="border:0px solid green;"><span id="temp2" style="visibility:hidden;position:absolute;top:-80;left:-2000">'+menucontents2+'</span></div>')
		}//end if.


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
	}//end if.


	if (iedom2){
	
		cross_scroll2=document.getElementById?document.getElementById("test22") : document.all.test22
		cross_scroll2.innerHTML=menucontents2
		actualwidth2=document.all? cross_scroll2.offsetWidth : document.getElementById("temp2").offsetWidth
		
	}
	else if (document.layers){
	
		ns_scroll2=document.ns_scrollmenu.document.ns_scrollmenu2
		ns_scroll2.document.write(menucontents2)
		ns_scroll2.document.close()
		actualwidth2=ns_scroll2.document.width
	
	}
   loadedyes=1
}//end function

window.onload=fillup
///window.onload=fillup2
function moveleft2(){

	if (loadedyes){
				if (iedom2&&parseInt(cross_scroll2.style.left)>(menuwidth-actualwidth)){
					cross_scroll2.style.left=parseInt(cross_scroll2.style.left)-scrollspeed+"px"
				}
				else if (document.layers&&ns_scroll2.left>(menuwidth-actualwidth))
					ns_scroll2.left-=scrollspeed
				}
			lefttime=setTimeout("moveleft2()",50)
	}

function moveright2(){

			if (loadedyes){
						if (iedom2&&parseInt(cross_scroll2.style.left)<0)
							cross_scroll2.style.left=parseInt(cross_scroll2.style.left)+scrollspeed+"px"
						else if (document.layers&&ns_scroll2.left<0)
							ns_scroll2.left+=scrollspeed
						}
						righttime=setTimeout("moveright2()",50)
			}//end if


			if (iedom2||document.layers){
						with (document){
						write('<table  border="0"> <tr><td><strong class="titleheaderSmall">Browse by Company Name:</strong></td></tr></table>')
						write('<table border="0" cellspacing="0" cellpadding="2">')
						write('<td valign="middle"><a href="#" '+rightdircode2+'><img src="images/icon_arrow.rev.gif" alt="back" width="12" height="16" border=0 /></a> </td>')
						write('<td width="'+menuwidth+'px" valign="top" >')

									if (iedom2){
									write('<div style="border:0px solid blue;position:relative;width:'+menuwidth+'px;height:'+menuheight+'px;overflow:hidden;">')

									write('<div id="test22" style="border:1px soild red;position:absolute;left:0;top:0">')
									write('</div></div>')
									}//end if

			else if (document.layers){
						write('<ilayer width='+menuwidth+' height='+menuheight+' name="ns_scrollmenu">')
						write('<layer name="ns_scrollmenu" left=0 top=0></layer></ilayer>')
			}//end if

		write('</td>')
		write('<td valign="middle"> <a href="#" '+leftdircode2+'>')
		write('<img src="images/icon_arrow.gif" alt="left" width="12" height="16" border=0/>')
		write('</td></table>')
}

/*Browse By Indvidual Name*/

}//end function move right2

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)
			}//end if


			if (iedom||document.layers){
						with (document){

						write('<table  border="0"> <tr><td><strong class="titleheaderSmall">Browse by Individuals Name:</strong></td></tr></table>')
						write('<table border="0" cellspacing="0" cellpadding="2">')
						write('<td valign="middle"><a href="#" '+rightdircode+'><img src="images/icon_arrow.rev.gif" alt="back" width="12" height="16" border=0 /></a> </td>')
						write('<td width="'+menuwidth+'px" valign="top">')

									if (iedom){
									write('<div style="border:0px solid red;position:relative;width:'+menuwidth+'px;height:'+menuheight+'px;overflow:hidden;">')

									write('<div id="test2" style="position:absolute;left:0;top:0">')
									write('</div></div>')
									}//end if

			else if (document.layers){
						write('<ilayer width='+menuwidth+' height='+menuheight+' name="ns_scrollmenu">')
						write('<layer name="ns_scrollmenu2" left=0 top=0></layer></ilayer>')
			}//end if

		write('</td>')
		write('<td valign="middle"> <a href="#" '+leftdircode+'>')
		write('<img src="images/icon_arrow.gif" alt="left" width="12" height="16" border=0/>')
		write('</td></table>')
}

/*Browse By Indvidual Name*/

}//end finction

