function setFlashSize(flashWidth,flashHeight)
{
	var size = [0,0];
	if( typeof( window.innerWidth ) == 'number' ) {
		size = [window.innerWidth, window.innerHeight];
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		size = [document.documentElement.clientWidth, document.documentElement.clientHeight];
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		size = [document.body.clientWidth, document.body.clientHeight];
	}
	window.onresize = function() {
		document.getElementById("flashContainer").style.minWidth = flashWidth+"px";
		document.getElementById("flashContainer").style.minHeight = flashHeight+"px";
		document.getElementById("flashContainer").style.width = size[0] < flashWidth ? flashWidth+"px" : "100%";
		document.getElementById("flashContainer").style.height = size[1] < flashHeight ? flashHeight+"px" : "100%";
	};
	window.onload = function(){
		window.onresize();
	}
}

function getParamValueById(cid)
{
	var myQueryString = document.location.search;
	if (myQueryString[0] = '?')
	{
		myQueryString = myQueryString.substr(1, myQueryString.length - 1);
		var tab = myQueryString.split("&");
		for(var i = 0; i < tab.length; i++)
		{
			var keyValuePair = tab[i].split("=");
			if(keyValuePair[0] == cid)
			{
				return keyValuePair[1];
			}
		}
	}
	return null;
}
