function animateTabInterior(tab) {
	switch(tab) {
		
		// Easy Tab
		case "easy":
			$("#easyTab h2").clearQueue();
			$("#easyTab h2").stop(true, false);
			$("#easyTab h3").clearQueue();
			$("#easyTab h3").stop(true, false);
			$("#easyTab .pos1 img").clearQueue();
			$("#easyTab .pos1 img").stop(true, false);
			$("#easyTab .pos2 img").clearQueue();
			$("#easyTab .pos2 img").stop(true, false);
			$("#easyTab .pos3 img").clearQueue();
			$("#easyTab .pos3 img").stop(true, false);
			$("#easyTab .pos4 img").clearQueue();
			$("#easyTab .pos4 img").stop(true, false);
			$("#easyTab .pos5 img").clearQueue();
			$("#easyTab .pos5 img").stop(true, false);
			$("#easyTab #easyTabPic").clearQueue();
			$("#easyTab #easyTabPic").stop(true, false);
			
			$("#easyTab h2")
				.css({
					left: "-210px",
					display: "block"
				});
			$("#easyTab h3")	
				.css({
					left: "-155px",
					display: "block"
				});
			$("#easyTab .pos1 img")
				.attr("src","assets/images/easyTabPos1Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "478px",
					height: "32px",
					display: "none"
				});
			$("#easyTab .pos2 img")
				.attr("src","assets/images/easyTabPos2Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "478px",
					height: "32px",
					display: "none"
				});
			$("#easyTab .pos3 img")
				.attr("src","assets/images/easyTabPos3Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "478px",
					height: "32px",
					display: "none"
				});														
			$("#easyTab .pos4 img")
				.attr("src","assets/images/easyTabPos4Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "478px",
					height: "32px",
					display: "none"
				});
			$("#easyTab .pos5 img")
				.attr("src","assets/images/easyTabPos5Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "478px",
					height: "32px",
					display: "none"
				});
			$("#easyTab #easyTabPic")
				.css({
				     	top: "200px",
					right: "-405px",
					display: "block"
				})
				.animate({
					top: "0",
					right: "0"
				},2500,"easeOutCubic");
			
			// Start h2 first
			$("#easyTab h2")
				.animate({
					left: "25px"
				},1300,"easeOutCubic",function() {
					
					// Start h3 after h2 is done
					$("#easyTab h3")
						.animate({
							left: "25px"
						},1000,"easeOutCubic",function() {
							
							// Start bullets after h3 is done
							/*$("#easyTab .bulletPoint").css({display: "none"});*/
							$("#easyTab .pos1 img")
								.animate({
									left: "-=15",
									top: "-=2",
									width: "577px",
									height: "36px"
								},220)
								.delay(2200)
								.animate({
									left: 0,
									top: 0,
									width: "478px",
									height: "32px"
								},310,function() {
									$("#easyTab .pos1 img").attr("src","assets/images/easyTabPos1.gif");
									$("#easyTab .pos2 img")
										.animate({
											left: "-=15",
											top: "-=2",
											width: "577px",
											height: "36px"
										},220)
										.delay(2200)
										.animate({
											left: 0,
											top: 0,
											width: "478px",
											height: "32px"
										},310,function() {
											$("#easyTab .pos2 img").attr("src","assets/images/easyTabPos2.gif");
											$("#easyTab .pos3 img")
												.animate({
													left: "-=15",
													top: "-=1",
													width: "577px",
													height: "36px"
												},220)
												.delay(2200)
												.animate({
													left: 0,
													top: 0,
													width: "478px",
													height: "32px"
												},310,function() {
													$("#easyTab .pos3 img").attr("src","assets/images/easyTabPos3.gif");
													$("#easyTab .pos4 img")
														.animate({
															left: "-=15",
															top: "-=1",
															width: "577px",
															height: "36px"
														},220)
														.delay(2200)
														.animate({
															left: 0,
															top: 0,
															width: "478px",
															height: "32px"
														},310,function() {
															$("#easyTab .pos4 img").attr("src","assets/images/easyTabPos4.gif");
															$("#easyTab .pos5 img")
																.animate({
																	left: "-=15",
																	top: "-=1",
																	width: "577px",
																	height: "36px"
																},220)
																.delay(2200)
																.animate({
																	left: 0,
																	top: 0,
																	width: "478px",
																	height: "32px"
																},310,function() {
																	$("#easyTab .pos5 img").attr("src","assets/images/easyTabPos5.gif")
																});
														});
												});
										});
								});
						});
				});
		break;
		case "sched":
			$("#schedTab h2").clearQueue();
			$("#schedTab h2").stop(true, false);
			$("#schedTab h3").clearQueue();
			$("#schedTab h3").stop(true, false);
			$("#schedTab .pos1 img").clearQueue();
			$("#schedTab .pos1 img").stop(true, false);
			$("#schedTab .pos2 img").clearQueue();
			$("#schedTab .pos2 img").stop(true, false);
			$("#schedTab .pos3 img").clearQueue();
			$("#schedTab .pos3 img").stop(true, false);
			$("#schedTab .pos4 img").clearQueue();
			$("#schedTab .pos4 img").stop(true, false);
			$("#schedTab .pos5 img").clearQueue();
			$("#schedTab .pos5 img").stop(true, false);
			$("#schedTab .pos6 img").clearQueue();
			$("#schedTab .pos6 img").stop(true, false);
			$("#schedTab #schedTabPic").clearQueue();
			$("#schedTab #schedTabPic").stop(true, false);
			
			$("#schedTab h2")
				.css({
					left: "-661px",
					display: "block"
				});
			$("#schedTab h3")	
				.css({
					left: "-155px",
					display: "block"
				});
			$("#schedTab .pos1 img")
				.attr("src","assets/images/schedTabPos1Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "393px",
					height: "32px",
					display: "none"
				});
			$("#schedTab .pos2 img")
				.attr("src","assets/images/schedTabPos2Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "476px",
					height: "13px",
					display: "none"
				});
			$("#schedTab .pos3 img")
				.attr("src","assets/images/schedTabPos3Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "379px",
					height: "13px",
					display: "none"
				});														
			$("#schedTab .pos4 img")
				.attr("src","assets/images/schedTabPos4Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "513px",
					height: "11px",
					display: "none"
				});
			$("#schedTab .pos5 img")
				.attr("src","assets/images/schedTabPos5Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "292px",
					height: "11px",
					display: "none"
				});
			$("#schedTab .pos6 img")
				.attr("src","assets/images/schedTabPos6Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "238px",
					height: "13px",
					display: "none"
				});
			$("#schedTab #schedTabPic")
				.css({
				     	top: "0px",
					right: "-420px",
					display: "block"
				})
				.animate({
					top: "0",
					right: "0"
				},2500,"easeOutCubic");
			
			// Start h2 first
			$("#schedTab h2")
				.animate({
					left: "25px"
				},1300,"easeOutCubic",function() {
					
					// Start h3 after h2 is done
					$("#schedTab h3")
						.animate({
							left: "25px"
						},1000,"easeOutCubic",function() {
							
							// Start bullets after h3 is done
							/*$("#schedTab .bulletPoint").css({display: "none"});*/
							$("#schedTab .pos1 img")
								.animate({
									left: "-=15",
									top: "-=2",
									width: "449px",
									height: "36px"
								},220)
								.delay(2200)
								.animate({
									left: 0,
									top: 0,
									width: "393px",
									height: "32px"
								},310,function() {
									$("#schedTab .pos1 img").attr("src","assets/images/schedTabPos1.gif");
									$("#schedTab .pos2 img")
										.animate({
											left: "-=15",
											top: "-=1",
											width: "539px",
											height: "15px"
										},220)
										.delay(2200)
										.animate({
											left: 0,
											top: 0,
											width: "476px",
											height: "13px"
										},310,function() {
											$("#schedTab .pos2 img").attr("src","assets/images/schedTabPos2.gif");
											$("#schedTab .pos3 img")
												.animate({
													left: "-=15",
													top: "-=1",
													width: "434px",
													height: "15px"
												},220)
												.delay(2200)
												.animate({
													left: 0,
													top: 0,
													width: "379px",
													height: "13px"
												},310,function() {
													$("#schedTab .pos3 img").attr("src","assets/images/schedTabPos3.gif");
													$("#schedTab .pos4 img")
														.animate({
															left: "-=15",
															top: "-=1",
															width: "578px",
															height: "13px"
														},220)
														.delay(2200)
														.animate({
															left: 0,
															top: 0,
															width: "513px",
															height: "11px"
														},310,function() {
															$("#schedTab .pos4 img").attr("src","assets/images/schedTabPos4.gif");
															$("#schedTab .pos5 img")
																.animate({
																	left: "-=15",
																	top: "-=1",
																	width: "333px",
																	height: "13px"
																},220)
																.delay(2200)
																.animate({
																	left: 0,
																	top: 0,
																	width: "292px",
																	height: "11px"
																},310,function() {
																	$("#schedTab .pos5 img").attr("src","assets/images/schedTabPos5.gif");
																	$("#schedTab .pos6 img")
																		.animate({
																			left: "-=15",
																			top: "-=1",
																			width: "275px",
																			height: "15px"
																		},220)
																		.delay(2200)
																		.animate({
																			left: 0,
																			top: 0,
																			width: "238px",
																			height: "13px"
																		},310,function() {
																			$("#schedTab .pos6 img").attr("src","assets/images/schedTabPos6.gif")
																		});
																});
														});
												});
										});
								});
						});
				});
		break;
		case "stress":
			$("#stressTab h2").clearQueue();
			$("#stressTab h2").stop(true, false);
			$("#stressTab h3").clearQueue();
			$("#stressTab h3").stop(true, false);
			$("#stressTab .pos1 img").clearQueue();
			$("#stressTab .pos1 img").stop(true, false);
			$("#stressTab .pos2 img").clearQueue();
			$("#stressTab .pos2 img").stop(true, false);
			$("#stressTab .pos3 img").clearQueue();
			$("#stressTab .pos3 img").stop(true, false);
			$("#stressTab .pos4 img").clearQueue();
			$("#stressTab .pos4 img").stop(true, false);
			$("#stressTab .pos5 img").clearQueue();
			$("#stressTab .pos5 img").stop(true, false);
			$("#stressTab .pos6 img").clearQueue();
			$("#stressTab .pos6 img").stop(true, false);
			$("#stressTab #stressTabPic").clearQueue();
			$("#stressTab #stressTabPic").stop(true, false);
			
			$("#stressTab h2")
				.css({
					left: "-252px",
					display: "block"
				});
			$("#stressTab h3")	
				.css({
					left: "-155px",
					display: "block"
				});
			$("#stressTab .pos1 img")
				.attr("src","assets/images/stressTabPos1Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "317px",
					height: "13px",
					display: "none"
				});
			$("#stressTab .pos2 img")
				.attr("src","assets/images/stressTabPos2Bold.png")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "422px",
					height: "13px",
					display: "none"
				});
			$("#stressTab .pos3 img")
				.attr("src","assets/images/stressTabPos3Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "416px",
					height: "32px",
					display: "none"
				});														
			$("#stressTab .pos4 img")
				.attr("src","assets/images/stressTabPos4Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "393px",
					height: "32px",
					display: "none"
				});
			$("#stressTab .pos5 img")
				.attr("src","assets/images/stressTabPos5Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "421px",
					height: "30px",
					display: "none"
				});
			$("#stressTab .pos6 img")
				.attr("src","assets/images/stressTabPos6Bold.gif")
				.css({
					zIndex: 100,
					top: 0,
					left: 0,
					width: "369px",
					height: "13px",
					display: "none"
				});
			$("#stressTab #stressTabPic")
				.css({
				     	top: "351px",
					right: "0",
					display: "block"
				})
				.animate({
					top: "0",
					right: "0"
				},2500,"easeOutCubic");
			
			// Start h2 first
			$("#stressTab h2")
				.animate({
					left: "25px"
				},1300,"easeOutCubic",function() {
					
					// Start h3 after h2 is done
					$("#stressTab h3")
						.animate({
							left: "25px"
						},1000,"easeOutCubic",function() {
							
							// Start bullets after h3 is done
							/*$("#stressTab .bulletPoint").css({display: "none"});*/
							$("#stressTab .pos1 img")
								.animate({
									left: "-=15",
									top: "-=1",
									width: "362px",
									height: "15px"
								},220)
								.delay(2200)
								.animate({
									left: 0,
									top: 0,
									width: "317px",
									height: "13px"
								},310,function() {
									$("#stressTab .pos1 img").attr("src","assets/images/stressTabPos1.gif");
									$("#stressTab .pos2 img")
										.animate({
											left: "-=15",
											top: "-=1",
											width: "503px",
											height: "15px"
										},220)
										.delay(2200)
										.animate({
											left: 0,
											top: 0,
											width: "422px",
											height: "13px"
										},310,function() {
											$("#stressTab .pos2 img").attr("src","assets/images/stressTabPos2.gif");
											$("#stressTab .pos3 img")
												.animate({
													left: "-=15",
													top: "-=2",
													width: "461px",
													height: "36px"
												},220)
												.delay(2200)
												.animate({
													left: 0,
													top: 0,
													width: "416px",
													height: "32px"
												},310,function() {
													$("#stressTab .pos3 img").attr("src","assets/images/stressTabPos3.gif");
													$("#stressTab .pos4 img")
														.animate({
															left: "-=15",
															top: "-=2",
															width: "443px",
															height: "36px"
														},220)
														.delay(2200)
														.animate({
															left: 0,
															top: 0,
															width: "393px",
															height: "32px"
														},310,function() {
															$("#stressTab .pos4 img").attr("src","assets/images/stressTabPos4.gif");
															$("#stressTab .pos5 img")
																.animate({
																	left: "-=15",
																	top: "-=2",
																	width: "471px",
																	height: "34px"
																},220)
																.delay(2200)
																.animate({
																	left: 0,
																	top: 0,
																	width: "421px",
																	height: "30px"
																},310,function() {
																	$("#stressTab .pos5 img").attr("src","assets/images/stressTabPos5.gif");
																	$("#stressTab .pos6 img")
																		.animate({
																			left: "-=15",
																			top: "-=1",
																			width: "424px",
																			height: "15px"
																		},220)
																		.delay(2200)
																		.animate({
																			left: 0,
																			top: 0,
																			width: "369px",
																			height: "13px"
																		},310,function() {
																			$("#stressTab .pos6 img").attr("src","assets/images/stressTabPos6.gif")
																		});
																});
														});
												});
										});
								});
						});
				});
		break;
		case "home":
			$("#homeTab .mainTextOne").clearQueue();
			$("#homeTab .mainTextOne").stop(true, false);
			$("#homeTab .mainTextTwo").clearQueue();
			$("#homeTab .mainTextTwo").stop(true, false);
			$("#homeTab .mainTextLarge").clearQueue();
			$("#homeTab .mainTextLarge").stop(true, false);
			$("#homeTab #homeTabPic").clearQueue();
			$("#homeTab #homeTabPic").stop(true, false);
			
			$("#homeTab .mainTextOne")
				.css({
					left: "-490px",
					display: "block"
				});
			$("#homeTab .mainTextTwo")	
				.css({
					right: "-490px",
					display: "block"
				});
			$("#homeTab .mainTextLarge")	
				.css({
					left: "-490px",
					display: "block"
				});
			$("#homeTab .mainTextOne")
				.delay(500)
				.animate({
					left: "24px"
				},1300,"easeOutCubic",function() {
					
					// Start h3 after h2 is done
					$("#homeTab .mainTextTwo")
						.delay(500)
						.animate({
							right: "266px"
						},1000,"easeOutCubic",function() {
					
							// Start h3 after h2 is done
							$("#homeTab .mainTextLarge")
								.delay(500)
								.animate({
									left: "-20px"
								},1000,"easeOutCubic");
						});
				});
		break;
	}
}
$(document).ready(function() {
	$(".accordion").hrzAccordion({
		eventTrigger:"mouseover",
		closeSpeed:900,
		openSpeed:900,
		openOnLoad:"4",
		handlePositionArray: "right,right,right,right,right",
		eventAction: function(i){
			if (i == 0) {
				animateTabInterior('easy');
			}
			if (i == 1) {
				animateTabInterior('sched');
			}
			if (i == 2) {
				animateTabInterior('stress');
			}
			if (i == 3) {
				animateTabInterior('home');
			}
		}
	});

 });
