	var scrlcontent;
	var scrlcontainer;
	var table;
	var numCells;
	var maxCellCheck;
	var scrollAmount;
	var contentWidth;
	var containerWidth;
	var scrlWidth;
	var contentPosition;
	var area;


	function initMenuScrollProperties(){
		
		scrlcontent=document.getElementById("scrollContent");		
		scrlcontainer=document.getElementById("scrollContainer");
		
		table=document.getElementById('menuTable');
		numCells=table.rows[0].cells.length;
		maxCellCheck=table.rows[0].cells.length;
		var rowWidths;
		for(i=0;i<maxCellCheck;i++){
			if(isNaN(rowWidths)){
				rowWidths=0;
			}
			rowWidths+=parseInt(table.rows[0].cells[i].offsetWidth);
		}
		//alert(rowWidths);
		scrollAmount=100;
	
		//contentWidth=scrlcontent.offsetWidth;
		
		containerWidth=parseInt(scrlcontainer.style.width.replace(/[^\-0-9]/g,''));
		//scrlcontent.style.right=contentWidth+'px';		
		scrlcontent.style.right=rowWidths+'px';	

		scrlWidth=rowWidths-containerWidth;
		
		if (scrlWidth<=0)
		{
			scrlarrows=document.getElementById("scrollarrows");
			document.getElementById("scrollarrows").style.visibility='hidden';
		}
		
		
		//alert ("Container Width " + containerWidth);

		/*contentPosition=EPCM.loadClientData( "urn:com.holcim.tlnLeftPosition", "leftPos");*/
		
		if(contentPosition==0||contentPosition==null)
		{
			menu.left.disabled=true;
			menu.right.disabled=false;
		}
		else if(contentPosition==scrlWidth)
		{
			menu.left.disabled=false;
			menu.right.disabled=true;			
		}
		else
		{			
			menu.left.disabled=false;
			menu.right.disabled=false;
			scrlcontent.style.left=contentPosition+'px';
		}
	}
	
	function changeImage(img,direction,color){
		img.src="/common/images/arrow_"+direction+"_"+color+".gif";		
	}

	
	function scrlLeft(){
		var scr=document.getElementById("scrollContent");
		var leftpos=scr.style.left.replace(/[^\-0-9]/g,'');
		if(leftpos>=0)
		{
			//document.text.area.value=document.text.area.value+"\n-------Cannot Scroll Further--------";
			numCells=maxCellCheck;
			menu.left.src="/common/images/arrow_left_trans.gif";
			menu.left.disabled=true;
			
		}
		else{
			leftpos=parseInt(leftpos)+scrollAmount;
			menu.left.disabled=false;
			menu.right.src="/common/images/arrow_right_trans.gif";
			menu.right.disabled=false;
			if((leftpos)>0)
			{	leftpos=0;}
			numCells=numCells+1;
			//area=0;
			//area=area+"\n\t"+leftpos+"\t\t"+scrlWidth+"\t\t"+numCells;
			//document.text.area.value=0;
			//document.text.area.value=document.text.area.value+"\n\t"+leftpos+"\t\t"+scrlWidth+"\t\t"+numCells;
			//EPCM.storeClientData( "urn:com.holcim.tlnLeftPosition", "leftPos",leftpos);
			scr.style.left=leftpos+'px';
		}
	}
	
	function scrlRight(){
		var scr=document.getElementById("scrollContent");
		var leftpos=scr.style.left.replace(/[^\-0-9]/g,'');
		if((leftpos*-1)>=scrlWidth)
		{
			//document.text.area.value=document.text.area.value+"\n-------Cannot Scroll Further--------";
			numCells=0;
			menu.right.disabled=true;
			menu.right.src="/common/images/arrow_right_trans.gif";
			
		}
		else{
			leftpos-=scrollAmount;
			menu.left.disabled=false;
			menu.right.disabled=false;
			if((leftpos*-1)>scrlWidth)
			{leftpos=((scrlWidth)*-1);}
			
			numCells=numCells-1;
			//area=0;
			//area=area+"\n\t"+leftpos+"\t\t"+scrlWidth+"\t\t"+numCells;
			//alert ("Area"+area);
			//document.text.area.value=0;
			//document.text.area.value=document.text.area.value+"\n\t"+leftpos+"\t\t"+scrlWidth+"\t\t"+numCells;
			//EPCM.storeClientData( "urn:com.holcim.tlnLeftPosition", "leftPos",leftpos);
			scr.style.left=leftpos+'px';
		}	
	}
