
 function atlasTracking(source) {
	var image = new Image();
	image.src = "http://switch.atdmt.com/action/" + source;
}

function rotateText(){
	// gether collection of rotating divs and rotate
	var rotating = document.getElementById("heroLeft");
	var args = new Array();
	var divs;
	if (rotating) {
		divs = rotating.getElementsByTagName("div");
		for (i=0; i < divs.length; i++){
			if (divs[i].className == "rotate"){
				args[args.length] = divs[i];
			}
		}
		var count = 0;
		args[0].style.display = "block";
		window.setInterval(function(){
			args[count++].style.display = "none";
			
			if (count >= args.length) count =0;
			args[count].style.display = "block";
			
		},4000);
		
	}
}

// new function to display promo on homepage (single promo only)
function LoadPromo(){
	
	var sqlComponent = document.getElementById("SQLPromo");
	if (sqlComponent)
		document.write(sqlComponent.innerHTML);
}