function doBrowserCheck(){
	
	var badBrowser = false;
	
	if(BrowserDetect.version != "an unknown version"){
		switch(BrowserDetect.browser){
			case "Firefox":	
				if(BrowserDetect.version < 1.5) badBrowser = true;
				break;
			case "Safari":	
				if(BrowserDetect.version < 2) badBrowser = true;
				break;
			case "Explorer":	
				if(BrowserDetect.version < 6) badBrowser = true;
				break;
			case "Mozilla":	
				if(BrowserDetect.version < 1) badBrowser = true;
				break;
			case "Opera":	
				if(BrowserDetect.version < 9) badBrowser = true;
				break;
			case "Netscape":	
				if(BrowserDetect.version < 8) badBrowser = true;
				break;
		}
	}
	
	if(badBrowser) location.href = "/podium/nonsupport.aspx";
}

function initFlash(){

	boolFlash = getQueryVariable("nf") < 0;

	var FOx = { movie:"/Flash/archer_hp_02_01_08.swf", wmode:"transparent", width:"100%", height:"100%",name:"home3", majorversion:"9", build:"0", xi:"false" , setcontainercss:"true", bgcolor:"#ffffff"};
	//CHECK FOR FLASH 8
	hasFlashNEEDED = UFO.hasFlashVersion(9);
	//VERSION 6.65 NEEDED FOR EXPRESS INSTALL		
	
	if(hasFlashNEEDED && boolFlash){
		M_object("non_flash_content").style.display = "none";
		M_object("flashcontent").style.display = "";
		UFO.create(FOx, "flashc");
	}else{
		M_object("non_flash_content").style.display = "";
	}
}
		
function getWinSize() {
	var myWidth = 0, myHeight = 0;
	
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	
	return {w:myWidth,h:myHeight}
}

function adjustFlashSize(id, wWidth, wHeight) {
  var winSizes = getWinSize();
 	//alert("resize"); 
  var flashObj = M_object(id);
  //alert(winSizes.w + "," + winSizes.h);
  //alert(wWidth +", "+wHeight);
  if(winSizes.w < wWidth) {
	 flashObj.style.width = wWidth + "px";
  } else {
	 flashObj.style.width = "100%";
  }
  
  if(winSizes.h < wHeight) {
	 flashObj.style.height = wHeight + "px";
  } else {
	 flashObj.style.height = "100%";
  }
  //alert(flashObj.style.width +", "+flashObj.style.height);
}