$(document).ready(function() {
				var states2 = new Object();
	        states2 = { "AK": "Pacific Northwest", "AL": "South", "AR": "South", "AZ": "Southwest", "CA": "Southwest", "CO": "Pacific Northwest", "CT": "Northeast", "DC": "Northeast", "DE": "Northeast", "FL": "South", "GA": "South", "HI": "Southwest", "IA": "Midwest", "ID": "Pacific Northwest", "IL": "Midwest", "IN": "Midwest", "KS": "Midwest", "KY": "Midwest", "LA": "South", "MA": "Northeast", "MD": "Northeast", "ME": "Northeast", "MI": "Midwest", "MN": "Midwest", "MO": "Midwest", "MS": "South", "MT": "Pacific Northwest", "NC": "South", "ND": "Midwest", "NE": "Midwest", "NH": "Northeast", "NJ": "Northeast", "NM": "Southwest", "NV": "Southwest", "NY": "Northeast", "OH": "Midwest", "OK": "Southwest", "OR": "Pacific Northwest", "PA": "Northeast", "RI": "Northeast", "SC": "South", "SD": "Midwest", "TN": "South", "TX": "Southwest", "UT": "Pacific Northwest", "VA": "Northeast", "VT": "Northeast", "WA": "Pacific Northwest", "WI": "Midwest", "WV": "Northeast", "WY": "Pacific Northwest" };
	        var region = "";
	        var season = "winter"; // season must be one of the following: "spring", "summer", "fall", "winter"
			var flashvars2 = {};
			
	        var theImg = "images/intro_still.jpg";
	        var theAlt = "Start Right Start Here Idea House";
	        var dayOrNight = "day";

	        if (google.loader.ClientLocation == null) region = "Midwest";
	        else region = states2[google.loader.ClientLocation.address.region];

	        var now = new Date();
	        var hrs = now.getHours();
	        
			if (hrs < 6 || hrs > 19) dayOrNight = "night";
			flashvars2.region = region;
	        
			if (document.cookie.search('seen_flash') > 0) flashvars2._visited = '1';
	        else flashvars2._visited = '0';
	        
			
	        flashvars2.season = season;
	        flashvars2._xmlPath = '/flash/xml/IdeaHouse.xml';
	        
	        
			
			
	        
			
			if (flashvars2._visited == '0'){
				switch ( region ) {
					case "Northeast":
						switch ( season ) {
							case "spring":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Northeast/spring/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Northeast/spring/night/init.jpg";
										break;
								}
								break;
							case "summer":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Northeast/summer/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Northeast/summer/night/init.jpg";
										break;
								}
								break;
							case "fall":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Northeast/fall/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Northeast/fall/night/init.jpg";
										break;
								}
								break;
							case "winter":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Northeast/winter/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Northeast/winter/night/init.jpg";
										break;
								}
								break;
						}
						break;
					case "South":
						switch ( season ) {
							case "spring":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/South/spring/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/South/spring/night/init.jpg";
										break; 
								}
								break;
							case "summer":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/South/summer/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/South/summer/night/init.jpg";
										break;
								}
								break;
							case "fall":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/South/fall/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/South/fall/night/init.jpg";
										break;
								}
								break;
							case "winter":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/South/winter/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/South/winter/night/init.jpg";
										break;
								}
								break;
						}
						break;
					case "Southwest":
						switch ( season ) {
							case "spring":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Southwest/spring/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Southwest/spring/night/init.jpg";
										break;
								}
								break;
							case "summer":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Southwest/summer/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Southwest/summer/night/init.jpg";
										break;
								}
								break;
							case "fall":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Southwest/fall/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Southwest/fall/night/init.jpg";
										break;
								}
								break;
							case "winter":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Southwest/winter/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Southwest/winter/night/init.jpg";
										break;
								}
								break;
						}
						break;
					case "Pacific Northwest":
						switch ( season ) {
							case "spring":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Pacific Northwest/spring/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Pacific Northwest/spring/night/init.jpg";
										break;
								}
								break;
							case "summer":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Pacific Northwest/summer/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Pacific Northwest/summer/night/init.jpg";
										break;
								}
								break;
							case "fall":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Pacific Northwest/fall/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Pacific Northwest/fall/night/init.jpg";
										break;
								}
								break;
							case "winter":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Pacific Northwest/winter/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Pacific Northwest/winter/night/init.jpg";
										break;
								}
								break;
						}
						break;
					case "Midwest":
						switch ( season ) {
							case "spring":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Midwest/spring/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Midwest/spring/night/init.jpg";
										break;
								}
								break;
							case "summer":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Midwest/summer/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Midwest/summer/night/init.jpg";
										break;
								}
								break;
							case "fall":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Midwest/fall/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Midwest/fall/night/init.jpg";
										break;
								}
								break;
							case "winter":
								switch ( dayOrNight ) {
									case "day":
										theImg = "/FlashAssets/Midwest/winter/day/init.jpg";
										break;
									case "night":
										theImg = "/FlashAssets/Midwest/winter/night/init.jpg";
										break;
								}
								break;
						}
						break;
				}
				theAlt = region + ' ' + season + ' Idea House';
				$('<img/>', { 'id': 'preimg', 'src': theImg, 'alt': theAlt, 'style': 'width:971px;height:560px' }).appendTo('#flashPreHolder');
			} else {
				toggleAfterLoad();
			}
			
			var params2 = {};
	        params2.wmode = "transparent";
			params2.allowScriptAccess = "always";
			
			var attributes2 = {};
	        attributes2.id = "flashContent";
			attributes2.allowScriptAccess = "sameDomain";
			
			swfobject.embedSWF("/flash/IDEA_HOUSE.swf", "flashArea", "972", "560", "10.0.0", false, flashvars2, params2, attributes2);
			
			document.cookie = 'seen_flash = 1;'
	    });
		
		function toggleAfterLoad(){
			if(!$.browser.mozilla) {
				var a = setTimeout(function(){
					$('#flashPreHolder').css('display','none');	
					
					$('#hidden').removeClass('statHeight');
					$('#hidden').addClass('varHeight');
					
					$('#hidden').css('overflow','visible');
					$('#hidden').css('width','971px');
				}, 100);
			} else {
				var a = setTimeout(function(){
					$('#flashPreHolder').css('width','0px').css('height','0px');	
					$('#hidden').css('width','980px').css('height','560px');
				}, 100);
			}
		}
