// JavaScript Document


function fn_Nav_Button_Click (sSection, sDirection){
nInc = 1;
if (sDirection == "pre"){nInc = -1}
sSecStartID = sSection + "_start"; 
sSecItemsID = sSection + "_count"; 
//Get Current Item and Total Items
var ObjCurItemCounter = document.getElementById(sSecStartID )
var ObjItemCount = document.getElementById(sSecItemsID)
CurItem=sSection+"_" + parseInt(ObjCurItemCounter.value);
TotItems= parseInt(ObjItemCount.value);

//Set the Next Item Number
NextItemNo = parseInt(ObjCurItemCounter.value) + nInc; //Add 1 to the item number
if (NextItemNo > TotItems){NextItemNo = 1;} //If this is past the total count start at begining
if (NextItemNo < 1){NextItemNo = TotItems;} //If this is past the begining start at the end
NextItem = sSection + "_" + NextItemNo;  //Set the ID of the Next Item
ObjCurItemCounter.value = NextItemNo; //Change the number for next time 

//Set the Styles
document.getElementById(CurItem).className="DisplayBlock"; //Make sure the item is on so that we can turn it off
document.getElementById(CurItem).className="DisplayNone";
document.getElementById(NextItem).className="DisplayBlock";

}

function fn_Next_Button_Click (){
alert ("Next");
}