// JavaScript Document
//http://www.dynamicdrive.com/dynamicindex1/scrollerlink.htm
//configure path for left and right arrows
var imagedir='/corpsite/template/img/'
var goleftimage=imagedir+'arr_l.gif'
var gorightimage=imagedir+'arr_r.gif'
//configure menu width (in px):
var menuwidth=730
//configure menu height (in px):
var menuheight=60
//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>'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=2&scid=22&child=0&ccid=22&curCatName=Coffee%20Mix&catName=&puid=42" class="imgLink" target="_self"><img src="'+imagedir+'bl_nescafe.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=2&scid=23&child=0&ccid=23&curCatName=Coffee-Mate&catName=Coffee%2DMate&puid=46" class="imgLink" target="_self"><img src="'+imagedir+'bl_coffeemate.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=3&scid=25&child=0&ccid=25&curCatName=MILO&catName=&puid=74" class="imgLink" target="_self"><img src="'+imagedir+'bl_milo.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=3&scid=24&child=0&ccid=24&curCatName=NESTEA&catName=&puid=49" class="imgLink" target="_self"><img src="'+imagedir+'bl_nestea.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=1&scid=12&child=1&ccid=14&curCatName=Milks%20for%20Kids&catName=Powdered&puid=3" class="imgLink" target="_self"><img src="'+imagedir+'bl_nido.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=1&scid=12&child=1&ccid=14&curCatName=Milks%20for%20Kids&catName=Powdered&puid=4" class="imgLink" target="_self"><img src="'+imagedir+'bl_bearbrand.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=1&scid=13&child=1&ccid=17&curCatName=Milks%20for%20Adults&catName=Powdered&puid=8" class="imgLink" target="_self"><img src="'+imagedir+'bl_nesvita.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	////menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=4&scid=29&child=0&ccid=29&curCatName=Cooking%20Milks&catName=&puid=19" class="imgLink" target="_self"><img src="'+imagedir+'bl_carnation.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=4&scid=26&child=0&ccid=26&curCatName=Flavorings&catName=&puid=59" class="imgLink" target="_self"><img src="'+imagedir+'bl_maggi.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=10&scid=&curCatName=&child=0&puid=54" class="imgLink" target="_self"><img src="'+imagedir+'bl_waters.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=5&scid=20&child=0&ccid=20&curCatName=Nutren%20Solutions&catName=&puid=38" class="imgLink" target="_self"><img src="'+imagedir+'bl_nutren.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=8&scid=31&child=1&ccid=34&curCatName=Breakfast%20Cereals&catName=For+Kids&puid=176" class="imgLink" target="_self"><img src="'+imagedir+'bl_koko.gif" height="60" border="0"></a>&nbsp;&nbsp;'	
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=8&scid=30&child=0&ccid=30&curCatName=Infant%20Cereals&catName=&puid=76" class="imgLink" target="_self"><img src="'+imagedir+'bl_baby.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=7&scid=61&child=0&ccid=61&curCatName=Chilled%20Foods&catName=&puid=26" class="imgLink" target="_self"><img src="'+imagedir+'bl_dairy.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=6&scid=37&child=1&ccid=39&curCatName=Take%20Home&catName=Classic&puid=81" class="imgLink" target="_self"><img src="'+imagedir+'bl_icecream.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=9&scid=54&child=0&ccid=54&curCatName=Enrobed&catName=&puid=153" class="imgLink" target="_self"><img src="'+imagedir+'bl_kitkat.gif" height="60" border="0"></a>&nbsp;&nbsp;'
	//menucontents=menucontents+'<a href="/corpsite/content/view.asp?pcid=11&scid=58&child=0&ccid=58&curCatName=For%20Dogs&catName=&puid=147" class="imgLink" target="_self"><img src="'+imagedir+'bl_purina.gif" height="60" border="0"></a>'

	menucontents=menucontents+'<img src="'+imagedir+'bl_nescafe.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_coffeemate.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_milo.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_nestea.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_nido.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_bearbrand.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_nesvita.gif" height="60" border="0">&nbsp;&nbsp;'
	//menucontents=menucontents+'<img src="'+imagedir+'bl_carnation.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_maggi.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_waters.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_nutren.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_koko.gif" height="60" border="0">&nbsp;&nbsp;'	
	menucontents=menucontents+'<img src="'+imagedir+'bl_baby.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_dairy.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_icecream.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_kitkat.gif" height="60" border="0">&nbsp;&nbsp;'
	menucontents=menucontents+'<img src="'+imagedir+'bl_purina.gif" height="60" border="0">'
	menucontents=menucontents+'</nobr>'


////NO NEED TO EDIT BELOW THIS LINE////////////

var iedom=document.all||document.getElementById
var leftdircode='onMouseover="moveright()" onMouseout="clearTimeout(righttime)"'
var rightdircode='onMouseover="moveleft()" onMouseout="clearTimeout(lefttime)"'
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
var tmp1
function fillup(){
if (iedom){
cross_scroll=document.getElementById? document.getElementById("test2") : document.all.test2
tmp1=document.getElementById? document.getElementById("temp") : document.all.temp
cross_scroll.innerHTML=menucontents
actualwidth=document.all? cross_scroll.offsetWidth : document.getElementById("temp").offsetWidth
tmp1.style.display='none'
}
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="0" align="center" class="box1">')
write('<td valign="middle" bgcolor="#cccccc"><a href="#" '+leftdircode+' class="imgLink" onclick="return false;" title="Scroll to see more brands"><img src="'+goleftimage+'" width="15" height="70" border=0></a></td>')
write('<td width="'+menuwidth+'px" valign="center" align="center">')
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" bgcolor="#cccccc"> <a href="#" '+rightdircode+' class="imgLink" onclick="return false;" title="Scroll to see more brands">')
write('<img src="'+gorightimage+'" width="15" height="70" border=0></a>')
write('</td></table>')
}
}