  // Wall of Strength Overlay
	var woslightBoxVar = 0;
	var wos_overlay_interval;
	// The Wall of Strength Overlay uses the same functionality as the profile overlay
	// Some functions used by this overlay are also in the main overlay js file
	
	// Show the Wall of Strength Overlay
	function wosOverlay() 
	{
		//set the overlay opacity
		$("#wos_overlay").fadeTo("fast",.7);
		
		if(woslightBoxVar == 0) 
		{
			woslightBoxVar = 1; // WOS Lightbox is open variable
			$("#wos_overlay").slideDown(1000, function() 
			{ 
				//$("#wos_profile_content").html(" ");
				// Fade in the overlay
				$("#wos_overlay_profile").show(); // Show and animate profile shadow
				wos_overlay_interval = setInterval ( "overlaySize()", 33 ); // Incase they resize the browser the overlay width will resize
				// Animate the overlay
				$("#wos_overlay_profile_right").show();
				$("#wos_overlay_profile_left").show();
				$("#wos_overlay_profile_top").show();
				$("#wos_overlay_profile_bottom").show();
				$("#wos_overlay_profile_wrap").fadeIn(1500);
				// Fix IE flickering issue, Flash was flickering through the overlay div
				//shows a blank div behind to block the flickering
				setTimeout('$("#wos_overlay_ie_wrap").show()', 1000);
				setTimeout('$("#wos_overlay_ie_fix").show()', 1000);
				//
				$("#wos_overlay_profile_right").animate({width: "710px", height:"583px"}, 1200, "easeOutCirc");
				$("#wos_overlay_profile_left").animate({width: "717px", height:"583px"}, 1200, "easeOutCirc");
				$("#wos_overlay_profile").animate({width: "710px", height:"583px"}, 1200, "easeOutCirc");
				$("#wos_overlay_profile_top").animate({width: "733px"}, 1200, "easeOutCirc");
				$("#wos_overlay_profile_bottom").animate({width: "733px"}, 1200, "easeOutCirc", function() 
				{
					// Show Loader, preload content with visibility, fade loader in and fade content out
					$("#wos_profile_loader").fadeIn(function() 
					{
						$("#wos_profile_content").show(1500, function()
						{
							$("#wos_profile_loader").fadeOut(2000);
							
							$.ajax({
								type: "GET",
								url: "/StrongerTogether/wos-overlay.php",
								dataType: "html",
								cache: true,
								success: function(data){
									document.getElementById('wos_profile_content').innerHTML = data;
									
									$("#wos_profile_content").fadeIn();
									
									var so = new SWFObject("http://www.youtube.com/v/mr6DrB6riLw&hl=en_US&fs=1&", "curvescommercial", "398", "239", "8", "#ffffff");
									so.addParam('wmode','transparent');
									so.addVariable("search", "0");
									so.write('wos_featured_video');
								},
								error: function (XMLHttpRequest, textStatus, errorThrown) 
								{
									alert("error " + textStatus);
								}
							
							});
						});
					});
				});
			});
		}
	}
		
	function closewosOverlay() 
	{		
		$("#wos_overlay").fadeOut();
		$("#wos_profile_content").css({visibility:"hidden"});
		$("#wos_overlay_profile").hide();
		clearInterval(wos_overlay_interval);
		$("#wos_overlay_profile_right").hide();
		$("#wos_overlay_profile_left").hide();
		$("#wos_overlay_profile_top").hide();
		$("#wos_overlay_profile_bottom").hide();
		$("#wos_profile_content").hide();
		$("#wos_overlay_ie_wrap").hide();
		$("#wos_overlay_ie_fix").hide();
		$("#wos_overlay_profile_wrap").hide();
		$("#overlay_container").css({top: "0px", left:"0px"});
		$("#wos_overlay_profile_right").css({width: "100px", height:"100px"});
		$("#wos_overlay_profile_left").css({width: "100px", height:"100px"});
		$("#wos_overlay_profile").css({width: "100px", height:"100px"});
		$("#wos_overlay_profile_top").css({width: "100px"});
		$("#wos_overlay_profile_bottom").css({width: "100px"});
		$("#overlay_ie_fix").css({position:"relative", left:"0px"});
		woslightBoxVar = 0;
	}
