function doFieldTitle(elementID, titleText, action)
{
	if (action=='SET')
	{
		if (document.getElementById(elementID).value=='')
		{
			document.getElementById(elementID).value=titleText;
		}	
	}
	else
	if (action=='CLEAR')
	{
		if (document.getElementById(elementID).value==titleText)
		{
			document.getElementById(elementID).value='';
		}	
	}
}




$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500,
		pauseTime:10000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:true, //1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
    controlNavThumbsFromRel:false, //Use image rel for thumbs
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
		keyboardNav:true, //Use left & right arrows
		pauseOnHover:false, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0.8, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
});




$(document).ready(function() {
	$("#wpButton1").click(function() {
		$("#wpForm1").slideToggle("slow");
	});
});

$(document).ready(function() {
	$("#wpButton2").click(function() {
		$("#wpForm2").slideToggle("slow");
	});
});

$(document).ready(function() {
	$("#wpButton3").click(function() {
		$("#wpForm3").slideToggle("slow");
	});
});

$(document).ready(function() {
	$("#wpButton4").click(function() {
		$("#wpForm4").slideToggle("slow");
	});
});

$(document).ready(function() {
	$("#wpButton5").click(function() {
		$("#wpForm5").slideToggle("slow");
	});
});

$(document).ready(function() {
	$("#wpButton6").click(function() {
		$("#wpForm6").slideToggle("slow");
	});
});



function doROICalc()
{
	document.getElementById("roiCalcTotalSavings").value=
	parseFloat(document.getElementById("roiCalcITCosts").value)+
	parseFloat(document.getElementById("roiCalcBackupCosts").value)+
	parseFloat(document.getElementById("roiCalcProductivityCosts").value)+
	parseFloat(document.getElementById("roiCalcHWCosts").value)+
	parseFloat(document.getElementById("roiCalcSupportCosts").value);
	
	document.getElementById("roiCalcTotalSavings2").value=
	parseFloat(document.getElementById("roiCalcTotalSavings").value);
	
	document.getElementById("roiCalcAdjSubscription").value=
	parseFloat(document.getElementById("roiCalcCurveCosts").value)-
	parseFloat(document.getElementById("roiCalcTotalSavings").value);
}
	
	
