var ie4=document.all&&!document.getElementById
var ns4=document.layers
var isIE = document.all ? true : false;
var rotateDelay=5000
var itemNum=0
function janetCarSalesRotate(){
	var browserName=navigator.appName;
	if (browserName=="Microsoft Internet Explorer") {
		document.getElementById("janetCarSales_Rotate").style.filter="blendTrans(duration=2)";
		document.getElementById("janetCarSales_Rotate").style.filter="blendTrans(duration=crossFadeDuration)";
		document.getElementById("janetCarSales_Rotate").filters.blendTrans.Apply();
		document.getElementById("janetCarSales_Rotate").filters.blendTrans.Play();
	}
	if (itemNum>=arJanetCarSalesRotate.length){
		itemNum=0;
	}
	if (document.getElementById){
		document.getElementById("janetCarSales_Rotate").innerHTML="<span>" + arJanetCarSalesRotate[itemNum]+ "</span>";
	}
		itemNum++;
		setTimeout("janetCarSalesRotate()",rotateDelay);

}
//news scroll
function janetCarSales_Scroll(item)
{
	var it = document.getElementById(item);
	it.style.top=it.style.top.replace(/px|pt,*\)*/g,"")-1;
	if((parseInt(it.style.top) + parseInt(it.offsetHeight))<=0)
	{
		it.style.top=it.parentNode.offsetHeight;
	}
}
function janetCarSales_Total(item) {
	if (item.value <= 499.00) document.getElementById(lblTotal).value = "15";
	if (item.value > 499.00 && item.value <=999.00) document.getElementById(lblTotal).value = "20";
	if (item.value > 999.00) document.getElementById(lblTotal).value = "25";
	return true;
}