// Open different flash movies depending on the user's screen resolution (using swfObject)

function CheckResolution(){
	if (document.documentElement && document.documentElement.scrollTop)
	theWidth = document.documentElement.clientWidth;
	else
   theWidth = document.body.clientWidth;	
	if (theWidth < 800){
	so = new SWFObject("../common/flash/foundation_banner300.swf", "small", "300", "85", "8", "#FFFFFF");
	} else if (800 < theWidth && theWidth < 1000) {
	so = new SWFObject("../common/flash/foundation_banner450.swf", "middle", "450", "123", "8", "#FFFFFF");
	} else if (theWidth > 1000) {
	so = new SWFObject("../common/flash/foundation_banner600b.swf", "big", "640", "180", "8", "#FFFFFF");
   	}

}
function CheckResolution_img(){
	if (document.documentElement && document.documentElement.scrollTop)
	theWidth = document.documentElement.clientWidth;
	else
   theWidth = document.body.clientWidth;	
	if (theWidth < 800){
	document.write("<img src='../common/images/banner_small.jpg' />");
	} else if (800 < theWidth && theWidth < 1000) {
	document.write("<img src='../common/images/banner_middle.jpg' />");
	} else if (theWidth > 1000) {
	document.write("<img src='../common/images/banner_big.jpg' />");
   	}

}

