$(window).ready(function(){
//get started UI
	$("#get_Started").click(function(){
		$("#tipsheet").show();
		$("#tipsheet_page").show().each(function(){
				this.style.marginTop=(-1*(this.offsetHeight/2))+"px";
				this.style.marginLeft=(-1*(this.offsetWidth/2))+"px";
			});
	});

	$("#closeTips a").click(function(){
		$("#tipsheet").hide();
		$("#tipsheet_page").hide();
	});

//hero shot UI
	var hero_images=$("#heroShot img");
	if (hero_images.length>1)
	{
		hero_images.each(function(i){
		this.img_index=i;
		if (i>0)
		{
			this.style.display="none";
		}
		this.onclick=function(){
				var imgs=$("#heroShot img");
				var img_length=imgs.length;
				var this_img_index=this.img_index;
				var next_img_index=this_img_index+1;
				if (next_img_index>=img_length)
				{
					next_img_index=0;
				}
				imgs.each(function(j){
					if (j==next_img_index)
					{
						this.style.display="block";
					}
					else
					{
						this.style.display="none";
					}
				});
			};
		});

	}

});
