// JavaScript Document

$(document).ready(function(){	
			//ROLL OVER	
			$("#iconbar li .prod-img").hover(
		function(){
			$(this).find("span").attr({
				"style": 'display:inline'
			});
			$(this).find("span").animate({opacity: 1, top: "-160"}, {queue:false, duration:400});
		}, 
		function(){
			$(this).find("span").animate({opacity: 0, top: "-170"}, {queue:false, duration:400}, "linear",
				function(){
					$(this).find("span").attr({"style": 'display:none;visibility:hidden'});			
				}
			);	});
						//References
				var sections = $("div.prod-img a");
				var content = $("div.content_right");
				//Manage click events
				sections.click(function(){


					//load selected section
					switch(this.id){
						case "1":
							content.load("../electric-lift-chairs/1.htm");
							break;
							
						case "2":
							content.load("../electric-lift-chairs/2.htm");
							break;
						case "3":
							content.load("../electric-lift-chairs/3.htm");
							break;
						case "4":
							content.load("../electric-lift-chairs/4.htm");
							break;	
						case "5":
							content.load("../electric-lift-chairs/5.htm");
							break;
							case "lc":
							content.load("../electric-lift-chairs/lc.htm");
							break;
							case "6":
							content.load("../electric-lift-chairs/6.htm");
							break;
							case "7":
							content.load("../electric-lift-chairs/7.htm");
							break;
							case "8":
							content.load("../electric-lift-chairs/8.htm");
							break;
							case "9":
							content.load("../electric-lift-chairs/9.htm");
							break;
							case "10":
							content.load("../electric-lift-chairs/10.htm");
							break;
							case "11":
							content.load("../electric-lift-chairs/11.htm");
							break;
							case "12":
							content.load("../electric-lift-chairs/12.htm");
							break;
							case "13":
							content.load("../electric-lift-chairs/13.htm");
							break;
					}
					
				});	
			
			});


