// JavaScript Document

// setup AU contents
	var sectionheight;
	var curSecHeight;
	var curContent="" ;
	var divideval
	var prevContentNo =0;
	var curContentNo = 1;
	var totalSlide = 4;
function setupAUcontents(contentID){
	
	prevContentNo = curContentNo;
	
	if(prevContentNo!=0){
		document.getElementById("curItem"+prevContentNo).className = "runBlack";
	}
		
		curContentNo = contentID;
		document.getElementById("curItem"+curContentNo).className = "runOrange";
		jQuery(".auRightContents").animate({marginTop:-(415*(curContentNo-1))+"px"},500);
		
}

function slideAUcontents(contentID){
	prevContentNo = curContentNo;
	if(prevContentNo!=0){
		document.getElementById("curItem"+prevContentNo).className = "runBlack";
	}
		
		document.getElementById("curItem"+curContentNo).className = "runOrange";
		jQuery(".auRightContents").animate({marginTop:-(415*(contentID-1))+"px"},500);
		
}

jQuery(document).ready(function(){
								
	jQuery(".auRightContents").css("height",(totalSlide*415)+"px");
	slideAUcontents('1')

// This for Top Arrow Function 

jQuery("#auTopArr").click(function(){
		
		prevContentNo = curContentNo;
		contentID = curContentNo-1
		if(contentID<1){
			contentID = totalSlide;
		}
		setupAUcontents(contentID);
	
});

// This for Bottom Arrow Function 

jQuery("#auBotArr").click(function(){
		contentID = curContentNo+1
		if(contentID>totalSlide){
			contentID = 1;
		}
		setupAUcontents(contentID);
	
});

});

// For Arrows mouse over Event

function swapImage(thisID,ttrue){
	if(ttrue){
		newimg = jQuery(thisID).attr("src").replace("Off.png","On.png");
		jQuery(thisID).attr("src",newimg);
	}
	else{
		
		newimg = jQuery(thisID).attr("src").replace("On.png","Off.png");
		
		jQuery(thisID).attr("src",newimg);
	}
	//
}



