$(document).ready(function(){
				
				
				var accordian_link = new Array()
				accordian_link["area1"] = "electronics.html";
				accordian_link["area2"] = "aerospace.html";
				accordian_link["area3"] = "military.html";
				accordian_link["area4"] = "customfab.html";
				accordian_link["area5"] = "medical.html";
				
				var config = {    
					 sensitivity: 3,  
					 interval: 50,  
					 over: overandout,
					 timeout: 400,
					 out: overandout_pulse
				};

	
				$(".accordian_wrapper li").hoverIntent(config);
				
				
				$(".accordian_wrapper li").click(function(event){
				
					var activeName = $(this).attr("id");
					var onclass = activeName + "_on";
					
					// only trigger a click even if they are over an active pane
					
					if($("#"+activeName).hasClass(onclass))
					{
						window.location = accordian_link[activeName];
					}
				
				});
				
				
				
				function overandout_pulse(event) {
					
				}
				
				function pausecomp(millis) 
				{
					 var date = new Date();
					 var curDate = null;
					 
					 do { curDate = new Date(); } 
					 while(curDate-date < millis);
				} 
				
				
				
				function overandout(event) {
					
					var activeName = $(this).attr("id");

					var activeNum = activeName.replace("area","");
					var this_offclass = activeName + "_off";
					var	this_onclass = activeName + "_on";
					
					if($(this).hasClass(this_offclass))
					{
						 var nametest = "";
						 var offclass="";
						 var onclass="";
						 
						 for($i=1;$i< 6;$i++)
						 {
							 nametest = "area" + $i;
							 offclass = nametest + "_off";
							 onclass = nametest + "_on";
							
						     if($("#"+nametest).hasClass(onclass))
							 {
							 	/* $("#"+nametest).animate({width:"61px"},100,"linear"); */
							    $("#"+nametest).removeClass(onclass);
							    $("#"+nametest).addClass(offclass);
							 }
						 }
						 /*
						 $(this).animate({width:"419px"},100,"linear");
						 $(this).removeClass(this_offclass);
						 $(this).addClass(this_onclass);		
						 */

						 $(this).hide();
						 $(this).removeClass(this_offclass);
						 $(this).addClass(this_onclass);	
						 $(this).fadeIn("slow");
						 
					}
				}
				

});		
