<!--
	function getWindowHeight() 
	{
		var windowHeight = 0;
		if (typeof(window.innerHeight) == 'number') 
			windowHeight = window.innerHeight;
		else 
		{
			if (document.documentElement && document.documentElement.clientHeight) 
				windowHeight = document.documentElement.clientHeight;
			else 
				if (document.body && document.body.clientHeight) 
					windowHeight = document.body.clientHeight;
		}
		return windowHeight;
	}
	
	function setFooter() 
	{
		/*if (document.getElementById) 
		{
			var windowHeight = getWindowHeight();
			if (windowHeight > 0) 
			{
				var logo = 0;
				var pgeHdr = document.getElementById('page_hdr').offsetHeight;

				var contentHeight = document.getElementById('content').offsetHeight;
				contentHeight = contentHeight + logo + pgeHdr;

				var footerElement = document.getElementById('footer');						
				var footerHeight  = footerElement.offsetHeight + 5;
				
				if (windowHeight - (contentHeight + footerHeight) >= 0) 
				{
					footerElement.style.position = 'absolute';
					footerElement.style.left = 10 + 'px';
					footerElement.style.top = (windowHeight - footerHeight) + 'px';
				}
				else 
					footerElement.style.position = 'static';
			}
		}*/
	}
	
	window.onload = function() 
	{
		setFooter();
	}

	function OpenWindow(linkAddress)
	{
		window.open(linkAddress, "Betting", "width=600,height=470,resizable,scrollbars");
	}

	function pop(theURL,winName,features)
	{
		window.open(theURL,winName,features);
	}

	function gotoContact(){
		//alert("Display Contact Info:");
		window.opener.location.href ="../../../t/forms/contactUs.aspx";
		window.close();
	}
	
	function changeParameter(url, paramName, paramValue) {
		newParam = paramName + "=" + paramValue;

		var newUrl;
		start = url.indexOf(paramName + "=");
		
		if (start == -1) {
			// not found:
			newUrl = url + "&" + newParam;
		} else {
			// found:
			currentParam = url.substr(start); 
			end = currentParam.indexOf("&");
			if (end != -1) {
				currentParam = url.substr(start, end); 
			}
			newUrl = url.replace(currentParam, newParam);
		}
		return newUrl;	
	}

	function selOddsFormatOnChange(object) {
		newUrl = changeParameter(document.location.href, "setOddsFormat", object.value);
		document.location.href = newUrl;
	}

//-->
