function resize(w,h) {
	var myFlashObject		= document.getElementById("live_player");
	myFlashObject.width		= w;
	myFlashObject.height	= h;
}

function setWindowSize(w,h,debug) {
	if (parseInt(navigator.appVersion)>3) {
		self.resizeTo(w,h);		
	}
	void(0);
}

function collapse() {
	if (document.getElementById("live_player").style.display == 'none'){
      document.getElementById("live_player").style.display = 'block';
    } else {
      document.getElementById("live_player").style.display = 'none';
    }
	// This will collapse the player frame row, if one exists
	window.parent.document.body.rows = "0,*";
}

function getPageWidth() {
	return window.innerWidth != null ? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;
}

function getPageHeight() {
	return  window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ?  document.documentElement.clientHeight : document.body != null ? document.body.clientHeight : null;
}

