function resizeContentIntro() {
	var browser = new Browser();
	var windowWidth = browser.getViewWidth(true);
	var windowHeight = browser.getViewHeight(false);
	var obj = document.getElementById('content-intro');
	//obj.style.width = windowWidth + "px";
	obj.style.height = (windowHeight - 55 - 0) + "px";
	//alert(windowWidth + "x" + windowHeight);
}

function resizeContent() {
	var browser = new Browser();
	var windowWidth = browser.getViewWidth(true);
	var windowHeight = browser.getViewHeight(false);
	var obj = document.getElementById('content');
	//obj.style.width = windowWidth + "px";
	obj.style.height = (windowHeight - 96 - 0) + "px";
	//alert(windowWidth + "x" + windowHeight);
}

function doPopup(url) {
	var windowHandle = window.open(url, 'popupwindow', 'width=600,height=400');
	windowHandle.focus();
}
function doSuppPopup(url) {
	var windowHandle = window.open(url, 'popupwindow', 'width=500,height=450');
	windowHandle.focus();
}

function embedFlash(swfURL, width, height) {

	// var swfURL               = '<%= sound %>';		// URL of SWF to be played
	var id                   = 'flashcontent';		// specifies the id of the element to be replaced with Flash object code
	//var width                = '5';				// flash object width
	//var height               = '5';				// flash object height
	var version              = '9'				// minimum supported flash player version (major or major.minor.release format)
								// 9.0.28 is the earliest version that support full-screen mode
								// 9.0.116 is the earliest version that buffers while paused and doesn't dump the buffer on pause
								// 10.0.45 is the first version known to have a decompression bug

	var expressInstallSwfURL = '/site/include/common/expressinstall.swf';		

	var flashvars            = false;			// flashvars are specified in params below

	var params = { };
	params.play              = 'true';
	params.menu              = 'false';
	params.loop              = 'false';
	params.quality           = 'high';
	params.scale             = 'showall';
	//params.salign          = '';
	params.wmode             = 'transparent';		// transparent may preclude full screen on older flash players
	params.bgcolor           = '#ffffff';
	//params.base            = '';
	params.swliveconnect     = 'false';
	//params.flashvars         = '';
	params.devicefont        = 'false';
	params.allowscriptaccess = 'sameDomain';
	//params.seamlesstabbing = '';
	params.allowfullscreen   = 'false';
	//params.allownetworking = '';

	var attributes = { };
	attributes.id            = 'flash';
	attributes.name          = 'swf';
	attributes.styleclass    = 'flash';
	//attributes.align       = '';

	var callbackFn           = onFlashEmbed;

	swfobject.embedSWF(swfURL, id, width, height, version, expressInstallSwfURL, flashvars, params, attributes, callbackFn);

}

function onFlashEmbed() {
	// called after flash is successfully embedded
}

