<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/hotson/public_html/js/swfdelivery.php</b> on line <b>26</b><br />
function getViewportSize() {
	var size = [0, 0];
	if (typeof window.innerWidth != "undefined") {
		size = [window.innerWidth, window.innerHeight];
	} else if (typeof document.documentElement != "undefined" && typeof document.documentElement.clientWidth != "undefined" && document.documentElement.clientWidth != 0) {
		size = [document.documentElement.clientWidth, document.documentElement.clientHeight];
	} else {
		size = [document.getElementsByTagName("body")[0].clientWidth, document.getElementsByTagName("body")[0].clientHeight];
	}
	return size;
}

function createFullBrowserFlash() {
	swfobject.createCSS("html", "height:100%;");
	swfobject.createCSS("body", "height:100%;");
	swfobject.createCSS("#flashContainer", "margin:0; width:100%; height:100%; min-width:1010px; min-height:610px;");
	window.onresize = function() {
		var el = document.getElementById("flashContainer");
		var size = getViewportSize();
		el.style.width = size[0] < 1010 ? "1010px" : "100%";
		el.style.height = size[1] < 610 ? "610px" : "100%";
	}
	window.onresize();
}

var flashvars = {};
var params = {id:'mainFlashMod',menu:'false',quality:'high'};
var attributes = {id:'mainFlashMod',menu:'false',quality:'high'};
swfobject.embedSWF('sites/hots/flash/hots_main.swf','noFlashDiv','100%','100%','8.0.0', false, flashvars, params, attributes);

if (swfobject.hasFlashPlayerVersion('8.0.0')) {
	swfobject.addDomLoadEvent(createFullBrowserFlash);
}
