
$(document).ready(function(){
	var main = new Array();
	
	main.push($("#leftNavPart"));
	main.push($("#contentPart"));
	main.push($("#footerPart"));
	
	$("#leftNavPart").remove();
	$("#contentPart").remove();
	$("#footerPart").remove();
	
	$("#headerPart").after("<div id='bodyPart' style='background-color:#EFE3BC;width:1000px;height:auto;'>");
	
	$("#bodyPart").append(main[0]);
	$("#bodyPart").append(main[1]);
	$("#bodyPart").append(main[2]);
	
	var img = $("#noSpace img");
	$("#noSpace").empty();
	$("#noSpace").append(img);
	
	if(home == true)
	{
	
		var items = new Array();
		for(i=1;i<6;i++) {
			items.push($("div #GroupImage"+i));
		}

		$("#AnimatedThese").replaceWith("<ul id='AnimatedThese'></ul>");
		for(i=1;i<6;i++) {
			$("#AnimatedThese").append(items[i-1]);
			$("div #GroupImage"+i).replaceWith("<li>"+$("#GroupImage"+i).html()+"</li>");
		}

		$("#AnimatedThese").animatedinnerfade(
			{
				timeout:  10000,
				speed: 'normal',					
				type: 'sequence', 
				containerheight: '466px', 
				containerwidth: '530px', 
				animationSpeed: 0,
				animationtype: 'fade',
				bgFrame: 'none',
				controlBox: 'show',
				controlBoxClass: 'mycontrolboxclass',
				controlButtonsPath: '/store/Brandwidth/img/rotator',
				displayTitle: 'no'
			}
		);
		
		$("body").prepend("<div id='flashconfetti' style='overflow:hidden;'><object class='confetti' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='1200' height='1000' id='confetti' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='wmode' value='transparent' /><param name='allowFullScreen' value='false' /><param name='movie' value='../_Images/confetti.swf' /><param name='scale' value='default'/><param name='quality' value='high' /><param name='bgcolor' value='#ffffff' /><embed src='../_Images/confetti.swf' quality='high' scale='default' wmode='transparent' bgcolor='#ffffff' width='1200' height='1000' name='confetti' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></div>");
		$("#nl_holder").append($("#nlsignup table"));
		$("#nlsignup table").empty();
		$("#contentPart").after("<div id='footer_fix'>"+$("#footer_cell").html()+"</div>");
		$("#footer_cell").empty();
		$("#contentPart").css("min-height", "0");
		$("#contentPart").css("height", "532px");
		$("#bottom_foot").css("background-color", "transparent");
	}
	
	

});
