//game flash resize 

function cascadedstyle(el, cssproperty, csspropertyNS)
{
	if (el.currentStyle) //if IE5+
	return el.currentStyle[cssproperty]
	else if (window.getComputedStyle)
	{ //if NS6+
		var elstyle=window.getComputedStyle(el, "")
		return elstyle.getPropertyValue(csspropertyNS)
	}
}

function resize()
{
	var width = document.body.clientWidth - parseInt(cascadedstyle(document.getElementById('sidebar'), "width", "width")) - 70;
	var height = 550 * width / 796;
	document.getElementById('footer').style.width = width + "px";
	document.getElementById('blackjack').width = width;
	document.getElementById('blackjack').height = height;
}

//End game flash resize


function reportAnalyzer(path)
{
  if (typeof path == 'string')
  {
//    Add optimizer version combination:
//    pageTracker._trackPageview(path + getAnalyzerCombination());
    
//    OR send the regular path:
    pageTracker._trackPageview(path);
  }
  else
  {
    pageTracker._trackPageview();
  }
}

function addANID(aObj, anid)
{
  if (typeof aObj.href == 'string')
  {
    var sign = aObj.href.indexOf('?') > 0 ? '&' : '?';
//    Add optimizer version combination:
//    aObj.href = aObj.href + sign + 'anid=' + anid + getANIDCombination();
    
//    OR add regular ANID:
    aObj.href = aObj.href + sign + 'anid=' + anid;
  }
}

