		function switchGroupStyle(sGroupClass,sRemoveClass,sAddClass){
			$(sGroupClass).each(function(){
				$(this).removeClass(sRemoveClass);
				$(this).addClass(sAddClass);					
			})			
		}
		
		function switchStyle(sId,sRemoveClass,sAddClass){
			$(sId).removeClass(sRemoveClass);
			$(sId).addClass(sAddClass);
		}
		
		function changeView(bOverrideSwitch){			
			//$.browser.mozilla
			//alert(myBrowser);
			if (myBrowser == 'Android' || myBrowser == 'iPhone'){
				switchStyle("#top-bar","top-bar","top-bar-mobile");
			}
			//alert('Ive been called');
			if($(window).width() < 800 && (sView != 'MOBILE' || sView != 'CRUNCH')){	// Mobile View
				
					
				//alert(bOverrideSwitch);
				bZoomChartFlag = true;
				//alert(bZoomChartFlag);
				if($(window).width() < 310 && (sView != 'CRUNCH' || bOverrideSwitch == true)){ // CRUNCH TIME
					sView = 'CRUNCH';
					document.getElementById('logo').style.left="10px";
					
					for(var i=1;i<5;i++){
						zoomChart(i,"#graph"+i);
					}					
					switchStyle("#top-bar-left","top-bar-left-mobile","top-bar-left-mobile-crunch");
					switchStyle("#phone","phone-div-mobile","phone-div-mobile-crunch");
					switchStyle("#logo","logo-div-mobile","logo-div-mobile-crunch");
					
					switchStyle("#top-bar-left","top-bar-left","top-bar-left-mobile-crunch");
					switchStyle("#phone","phone-div","phone-div-mobile-crunch");
					switchStyle("#logo","logo-div","logo-div-mobile-crunch");
					
					$(".first-fixed-spacer").height(250);
					iSectionPadding = 300;
					
					if (myBrowser == 'Android' || myBrowser == 'iPhone'){
						iSectionPadding -= 190;
					}
					
					$('.spacer').height(0);
					$('#footer-spacer').height(10);
					$('.fixed-spacer').height(0);
												
					$("#webkit_movie_wrapper-video").width(320);
					$("#webkit_movie_wrapper-embed").width(320);
					$("#webkit_movie_wrapper-object").width(320);				
					$("#webkit_movie_wrapper-video").height(101);
					$("#webkit_movie_wrapper-embed").height(101);
					$("#webkit_movie_wrapper-object").height(101);				
					
					
					$("#firefox_movie_wrapper").width(320);
					$("#firefox_movie_wrapper").height(101);
					
					$("#firefox_movie_wrapper-video").width(320);
					$("#firefox_movie_wrapper-video").height(101);
					
					$("#firefox_movie_wrapper-embed").width(320);
					$("#firefox_movie_wrapper-embed").height(101);
					
					$("section").removeClass("section-body");
	
					switchStyle("#top-bar-left","top-bar-left","top-bar-left-mobile");
					switchStyle("#top-bar-right","top-bar-right","top-bar-right-mobile");
					switchStyle("#slide-navigation","slide-navigation","slide-navigation-mobile");
					switchStyle("#itl1","info_tab_left","info_tab_left-mobile");
					switchStyle("#itr1","info_tab_right","info_tab_right-mobile");
					switchStyle("#itl2","info_tab_left","info_tab_left-mobile");
					switchStyle("#itr2","info_tab_right","info_tab_right-mobile");				
					switchStyle("#itl3","info_tab_left","info_tab_left-mobile");
					switchStyle("#itr3","info_tab_right","info_tab_right-mobile");				
					switchStyle("#itl4","info_tab_left","info_tab_left-mobile");
					switchStyle("#itr4","info_tab_right","info_tab_right-mobile");				
					switchStyle("#itl5","info_tab_left","info_tab_left-mobile");
					switchStyle("#itr5","info_tab_right","info_tab_right-mobile");				
					switchStyle("#slider","slider","slider-mobile");
					switchStyle("#burned-logo","burned-logo","burned-logo-mobile");
					switchStyle("#burned-logo-crop","burned-logo-crop","burned-logo-crop-mobile");				
					switchStyle("#slogan","slogan","slogan-mobile");
					
					switchGroupStyle(".slider-li","slider-li","slider-li-mobile");
					switchGroupStyle(".map","map","map-mobile");
					switchGroupStyle(".contact-feedback","contact-feedback","contact-feedback-mobile");
					switchGroupStyle(".contact-info-right","contact-info-right","contact-info-right-mobile");
					switchGroupStyle(".why-us-content-left","why-us-content-left","why-us-content-left-mobile");
					switchGroupStyle(".why-us-content-right","why-us-content-right","why-us-content-right-mobile");
					switchGroupStyle(".section-header","section-header","section-header-mobile");
					switchGroupStyle(".section-subheader","section-subheader","section-subheader-mobile");					
				}
				else if ((sView != 'MOBILE' || bOverrideSwitch == true) && $(window).width() > 309){
					sView = 'MOBILE';
					document.getElementById('logo').style.left="10px";
					
					for(var i=1;i<5;i++){
						zoomChart(i,"#graph"+i);
					}
					switchStyle("#top-bar-left","top-bar-left-mobile-crunch","top-bar-left-mobile");
					switchStyle("#phone","phone-div-mobile-crunch","phone-div-mobile");
					switchStyle("#logo","logo-div-mobile-crunch","logo-div-mobile");

					$(".first-fixed-spacer").height(165);
					iSectionPadding = 190;
			
					if (myBrowser == 'Android' || myBrowser == 'iPhone'){
						iSectionPadding -= 190;
					}
					
					$('.spacer').height(0);
					$('#footer-spacer').height(10);
					$('.fixed-spacer').height(0);
												
					$("#webkit_movie_wrapper-video").width(320);
					$("#webkit_movie_wrapper-embed").width(320);
					$("#webkit_movie_wrapper-object").width(320);				
					$("#webkit_movie_wrapper-video").height(101);
					$("#webkit_movie_wrapper-embed").height(101);
					$("#webkit_movie_wrapper-object").height(101);				
					
					
					$("#firefox_movie_wrapper").width(320);
					$("#firefox_movie_wrapper").height(101);
					
					$("#firefox_movie_wrapper-video").width(320);
					$("#firefox_movie_wrapper-video").height(101);
					
					$("#firefox_movie_wrapper-embed").width(320);
					$("#firefox_movie_wrapper-embed").height(101);
					
					$("section").removeClass("section-body");
	
					switchStyle("#top-bar-left","top-bar-left","top-bar-left-mobile");
					switchStyle("#top-bar-right","top-bar-right","top-bar-right-mobile");
					switchStyle("#slide-navigation","slide-navigation","slide-navigation-mobile");
					switchStyle("#itl1","info_tab_left","info_tab_left-mobile");
					switchStyle("#itr1","info_tab_right","info_tab_right-mobile");
					switchStyle("#itl2","info_tab_left","info_tab_left-mobile");
					switchStyle("#itr2","info_tab_right","info_tab_right-mobile");				
					switchStyle("#itl3","info_tab_left","info_tab_left-mobile");
					switchStyle("#itr3","info_tab_right","info_tab_right-mobile");				
					switchStyle("#itl4","info_tab_left","info_tab_left-mobile");
					switchStyle("#itr4","info_tab_right","info_tab_right-mobile");				
					switchStyle("#itl5","info_tab_left","info_tab_left-mobile");
					switchStyle("#itr5","info_tab_right","info_tab_right-mobile");				
					switchStyle("#slider","slider","slider-mobile");
					switchStyle("#burned-logo","burned-logo","burned-logo-mobile");
					switchStyle("#burned-logo-crop","burned-logo-crop","burned-logo-crop-mobile");				
					switchStyle("#slogan","slogan","slogan-mobile");
					
					switchGroupStyle(".slider-li","slider-li","slider-li-mobile");
					switchGroupStyle(".map","map","map-mobile");
					switchGroupStyle(".contact-feedback","contact-feedback","contact-feedback-mobile");
					switchGroupStyle(".contact-info-right","contact-info-right","contact-info-right-mobile");
					switchGroupStyle(".why-us-content-left","why-us-content-left","why-us-content-left-mobile");
					switchGroupStyle(".why-us-content-right","why-us-content-right","why-us-content-right-mobile");
					switchGroupStyle(".section-subheader","section-subheader","section-subheader-mobile");
					switchGroupStyle(".section-header","section-header","section-header-mobile");
					
					//$("#section-subheader2").removeClass("section-subheader");
					//$("#section-subheader2").addClass("section-subheader-mobile");

					//$("#section-subheader1").removeClass("section-subheader");
					//$("#section-subheader1").addClass("section-subheader-mobile");					
					
					//switchStyle("#section-subheader2","section-subheader","section-subheader-mobile");
					//switchStyle("#section-subheader3","section-subheader","section-subheader-mobile");

				}
				

			}
			else if (sView == 'DESKTOP'){ // constant resizing elements on desktop view
				var iBurnedHeaderLogoCrop = $(window).width() / 2.85;
				document.getElementById('burned-logo-crop').style.clip="rect(0px, "+iBurnedHeaderLogoCrop+"px, 135px, 0px)";
				
				var iLogoXPos = ($(window).width() / 2) - 400;
				document.getElementById('logo').style.left=iLogoXPos+"px";
				
				iSectionPadding = 20;
				iSpacerHeight = $(window).height() - 500;				
				var iFooterSpacer = (iSpacerHeight - 250);
				
				$('.spacer').height(iSpacerHeight);				
				$('#footer-spacer').height(iFooterSpacer);
			}
			else if (sView != 'DESKTOP'){ // Desktop View
				sView = 'DESKTOP';
				var iBurnedHeaderLogoCrop = $(window).width() / 2.85;
				document.getElementById('burned-logo-crop').style.clip="rect(0px, "+iBurnedHeaderLogoCrop+"px, 135px, 0px)";
				
				var iLogoXPos = ($(window).width() / 2) - 400;
				document.getElementById('logo').style.left=iLogoXPos+"px";
				
				iSectionPadding = 20;
				iSpacerHeight = $(window).height() - 500;				
				var iFooterSpacer = (iSpacerHeight - 250);
				if(bZoomChartFlag == true){					
					resetCharts();
					//alert(bZoomChartFlag);
				}
				
				switchStyle("#top-bar-left","top-bar-left-mobile-crunch","top-bar-left");
				switchStyle("#phone","phone-div-mobile-crunch","phone-div");
				switchStyle("#logo","logo-div-mobile-crunch","logo-div");
				
				
				$('.spacer').height(iSpacerHeight);				
				$('#footer-spacer').height(iFooterSpacer);
				$(".first-fixed-spacer").height(96);
				$(".fixed-spacer").height(96);			
				$("#webkit_movie_wrapper-video").width(760);
				$("#webkit_movie_wrapper-embed").width(760);
				$("#webkit_movie_wrapper-object").width(760);
				$("#webkit_movie_wrapper-video").height(250);
				$("#webkit_movie_wrapper-embed").height(250);
				$("#webkit_movie_wrapper-object").height(250);
				
				$("#firefox_movie_wrapper").width(760);
				$("#firefox_movie_wrapper").height(250);
				
				$("#firefox_movie_wrapper-video").width(760);
				$("#firefox_movie_wrapper-video").height(270);
				
				$("#firefox_movie_wrapper-embed").width(760);
				$("#firefox_movie_wrapper-embed").height(250);
				
				$("section").addClass("section-body");
				
				switchStyle("#top-bar-right","top-bar-right-mobile","top-bar-right");
				switchStyle("#top-bar-left","top-bar-left-mobile","top-bar-left");
				switchStyle("#slide-navigation","slide-navigation-mobile","slide-navigation");
				switchStyle("#itl1","info_tab_left-mobile","info_tab_left");
				switchStyle("#itr1","info_tab_right-mobile","info_tab_right");
				switchStyle("#itl2","info_tab_left-mobile","info_tab_left");
				switchStyle("#itr2","info_tab_right-mobile","info_tab_right");
				switchStyle("#itl3","info_tab_left-mobile","info_tab_left");
				switchStyle("#itr3","info_tab_right-mobile","info_tab_right");
				switchStyle("#itl4","info_tab_left-mobile","info_tab_left");
				switchStyle("#itr4","info_tab_right-mobile","info_tab_right");
				switchStyle("#itl5","info_tab_left-mobile","info_tab_left");
				switchStyle("#itr5","info_tab_right-mobile","info_tab_right");
				switchStyle("#slider","slider-mobile","slider");				
				switchStyle("#burned-logo","burned-logo-mobile","burned-logo");
				switchStyle("#burned-logo-crop","burned-logo-crop-mobile","burned-logo-crop");
				switchStyle("#logo","logo-div-mobile","logo-div");
				switchStyle("#phone","phone-div-mobile","phone-div");
				switchStyle("#slogan","slogan-mobile","slogan");
				
				switchGroupStyle(".slider-li-mobile","slider-li-mobile","slider-li");
				switchGroupStyle(".map-mobile","map-mobile","map");
				switchGroupStyle(".contact-feedback-mobile","contact-feedback-mobile","contact-feedback");
				switchGroupStyle(".contact-info-right-mobile","contact-info-right-mobile","contact-info-right");
				switchGroupStyle(".why-us-content-left-mobile","why-us-content-left-mobile","why-us-content-left");
				switchGroupStyle(".why-us-content-right-mobile","why-us-content-right-mobile","why-us-content-right");
				switchGroupStyle(".section-header-mobile","section-header-mobile","section-header");
				switchGroupStyle(".section-subheader-mobile","section-subheader-mobile","section-subheader");
			}
		}
