// JavaScript Document


$(document).ready(function(){
						   
	//$(function() {
		//$("#productListUL li").removeAttr("style");
		$("#product_contentx").css("color", "fff").fadeOut(500, function(){																		
			$(this).load("products/tents/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
 					}
				);						 
			});	
			$("#product_content").css("color", "000");
		});
		$("#partyTents").attr("style","color: red;");
		$(".productSubList").html("Tent Types");
			   
	//}
	
	$("#partyTents").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#productListUL a").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){																		
			$(this).load("products/tents/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();
 					}
				);						 
			});	
			$("#product_content").css("color", "000");
		});
		$(this).attr("style","color: red;");
		$(".productSubList").html("Tent Types");
		return false;

	});
	
	
	
	$("#tablesChairs").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#productListUL a").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).load("products/tableschairs/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();
 					}
				);												 
			});	
			$("#product_content").css("color", "000");
		},initialize);
		$(this).attr("style","color: red;");
		$(".productSubList").html("Tables and Chairs");
		return false;
	});
	
	$("#viewTentSizing1").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#productListUL a").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).load("products/sizing/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
						initialize();
 					}
				);												 
			});	
			$("#product_content").css("color", "000");
		});
		$(this).attr("style","color: red;");
		$(".productSubList").html("Tent Sizes");
		return false;
	});	
	
	$("#tableCovers1").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#productListUL a").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).load("products/tablecovers/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();
 					}
				);												 
			});		
			$("#product_content").css("color", "000");
		});
		$(this).attr("style","color: red;");
		$(".productSubList").html("Tent Sizes");
		return false;
	});	
	
	$("#poleTents").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#productListUL a").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).load("products/poletents/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();
 					}
				);												 
			});		
			$("#product_content").css("color", "000");
		});
		$(this).attr("style","color: red;");
		$(".productSubList").html("Pole Tents");
		return false;
	});	
	
	$("#frameTents").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#productListUL a").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).load("products/frametents/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();
 					}
				);												 
			});		
			$("#product_content").css("color", "000");
		});
		$(this).attr("style","color: red;");
		$(".productSubList").html("Frame Tents");
		return false;
	});	
	
	$("#sidewallLighting").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#productListUL a").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).load("products/sidewall/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();
 					}
				);												 
			});		
			$("#product_content").css("color", "000");
		});
		$(this).attr("style","color: red;");
		$(".productSubList").html("Lighting &amp; Sidewall");
		return false;
	});	
	
	$("#heatingFlooring").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#productListUL a").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).load("products/heatingflooring/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();
 					}
				);												 
			});		
			$("#product_content").css("color", "000");
		});
		$(this).attr("style","color: red;");
		$(".productSubList").html("Heating &amp; Flooring");
		return false;
	});		
	
	$("#accessories").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#productListUL a").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).load("products/accessories/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();
 					}
				);												 
			});		
			$("#product_content").css("color", "000");
		});

		$(this).attr("style","color: red;");
		$(".productSubList").html("Accessories");
		return false;
	});		

	$("#dishglassware").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#productListUL a").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).load("products/glassware/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();
 					}
				);												 
			});		
			$("#product_content").css("color", "000");
		});

		$(this).attr("style","color: red;");
		return false;
		//$(".productSubList").html("Accessories");

	});	
	
	
initialize();
	
});
	
	
function initialize()
{

	$("#viewTentStyles").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).html("&nbsp;");
			$(this).load("products/sizing/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();	
 					}
				);												 
			});	
			$("#product_content").css("color", "000");
		});
		$("#viewTentSizing1").attr("style","color: red;");
		$(".productSubList").html("Tent Sizes");

	});	
	
	$(".viewPoleTents").click(function(){
		
		$("#productListUL li").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).html("&nbsp;");
			$(this).load("products/poletents/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();	
 					}
				);												 
			});	
			$("#product_content").css("color", "000");
		});
		$("#poleTents").attr("style","color: red;");
		$(".productSubList").html("Pole Tents");

	});		
	
	$(".viewFrameTents").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).html("&nbsp;");
			$(this).load("products/frametents/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();	
 					}
				);												 
			});	
			$("#product_content").css("color", "000");
		});
		$("#frameTents").attr("style","color: red;");
		$(".productSubList").html("Frame Tents");

	});		
	
	$("#viewTableCovers").click(function(){
		$("#productListUL li").removeAttr("style");
		$("#product_content").css("color", "fff").fadeOut(500, function(){
			$(this).html("&nbsp;");
			$(this).load("products/tablecovers/?ajax=1", function(){
				$(this).fadeIn(1700,function() {
     				if ($.browser.msie)
         				this.style.removeAttribute('filter');
					initialize();	
 					}
				);												 
			});		
			$("#product_content").css("color", "000");
		});
		$("#tableCovers1").attr("style","color: red;");
		$(".productSubList").html("Tent Sizes");

	});	
}
	
