	var intProductNumber = 1;
	var intContentHeight = 0;
	var intFeaturedProductCount = 0;
	var blnInitialised = false;
	
	function rotateFeaturedProduct()
	{
		var intNewPosition;
		var intSectionPadding = 0;
		
		if (!blnInitialised) {
			intContentHeight = getContentHeight();
			intFeaturedProductCount = getCount();
			blnInitialised = true;		
		}
		if (intProductNumber >= intFeaturedProductCount) {
			intProductNumber = 0;
			intPadding = 0;
		} else {
			intPadding = intSectionPadding;
		}
		intNewPosition = (intProductNumber * intContentHeight) + (1 *intProductNumber);

		//alert(intProductNumber + ":" + intContentHeight + "=" + intNewPosition); 
		document.getElementById("fcmover").style.top = "-" + intNewPosition +"px";
		intProductNumber++;
		
		return;
	}
	
	function getCount()
	{
		var intCount = 1;
		
		intCount = document.getElementById("fpcount").value;
		return intCount;
	}
	
	function getContentHeight()
	{
		var intHeight = 215;
		
		var oContainer = document.getElementById("fccontainer");
		if (oContainer != null){
		    if (oContainer.style.height != ""){
		        intHeight = parseInt(oContainer.style.height);
		    }
		    else{
		        if (oContainer.clientHeight != ""){
		            intHeight = parseInt(oContainer.clientHeight); 
		        }
		    }
		    
		}
		
		
		return intHeight;
	}

