$(document).ready(function() {
  
	/*$(".test").hrzAccordion({eventTrigger				: "mouseover",
							 openOnLoad					: "",
							 cycle						: true,
							 eventAction				: function(i){
								 							$("#eventRunning").html(" Opening - "+(i+1));
								 							},
							 completeAction				: function(i){
								 	                        $("#eventRunning").html(" Completed - "+(i+1));
								 							}
							
							});	

	$(".test4").hrzAccordion({eventTrigger			: "mouseover",
							  openOnLoad			: "2",
							  handlePositionArray	: "left,left,right,right,right"
							 });
	
	$(".test2").hrzAccordion({handlePosition     	: "right",
							  openOnLoad     		: 5,
							  closeOpenAnimation	: 2
							 });
	*/
	$(".test3").hrzAccordion({containerClass     	: "container3",
							  handlePosition     	: "left",
							  openOnLoad     		: 1,
							  listItemClass      	: "listItem3",					
							  contentWrapper     	: "contentWrapper3",
							  contentInnerWrapper	: "contentInnerWrapper3",
						      handleClass        	: "handle3",
							  handleClassOver    	: "handleOver3",
							  handleClassSelected	: "handleSelected3",
							  hashPrefix			: "tab-"
							 });
			$(".handle3").click(function() {
				
				var ttt = $(this).attr("id");
				ttt  = ttt.replace("test3Handle", "");
				ttt = parseInt(ttt);
				var hash;
										switch (ttt)
										{
										case 1:
										  hash = "services";
										  break;
										case 2:
										  hash = "industries";
										  break;
										case 3:
										  hash = "affiliations";
										  break;
										case 4:
										  hash = "contact";
										  break;    
										default:
										  hash = "";
										}			
											 		
								 		window.location.hash = hash;
				var test = $(this).next().children(".contentWrapper3").height();
				//$(".contentContainer").css("opacity","0.1");
				//$(".contentContainer").css("height",test);
				$(".contentContainer").animate({ 
				    height: test
				  }, 1500 );
				
				//alert(test);
				
			//ON MOUSEOUT REMOVE THE OVER CLASS
		});
		
		/*
		$("#ajax2").click(function() {
				$.ajax({
					  url: "test.html",
					  cache: false,
					  success: function(html){
					    $(".handleSelected3").next().children(".contentWrapper3").children(".contentInnerWrapper3").html(html);
					    var test = $(".handleSelected3").next().children(".contentWrapper3").height();
					    $(".contentContainer").animate({ 
						    height: test
						  }, 1500 );
					    //alert(test);
					  }
					});
		});*/
	
							 
});
