var flashvars = {};
var params = {};
params.bgcolor = "FFFFFF";
var attributes = {};
attributes.id = "flash";
swfobject.embedSWF("bpl.swf", "altContent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);

var flashW;
var flashH;

window.onload = sizeFlash;
window.onresize = sizeFlash;

function setFlashSize( w, h ){
	flashW = w;
	flashH = h;
	sizeFlash();
}

function getHeight() {
	var myHeight = 0;
	if( typeof( window.innerHeight ) == 'number' ) myHeight = window.innerHeight;
	else if( document.documentElement && document.documentElement.clientHeight ) myHeight = document.documentElement.clientHeight;
	else if( document.body && document.body.clientHeight ) myHeight = document.body.clientHeight;
	return myHeight;
}

function getWidth() {
	var myWidth = 0;
	if( typeof( window.innerWidth ) == 'number' ) myWidth = window.innerWidth;
	else if( document.documentElement && document.documentElement.clientWidth ) myWidth = document.documentElement.clientWidth;
	else if( document.body && document.body.clientWidth ) myWidth = document.body.clientWidth;
	return myWidth;
}

function sizeFlash(){
	try{
		var flashDiv = document.getElementById( 'flash' );

		var tW = Math.max( flashW, getWidth() );
		document.getElementById( 'flash' ).style.width = tW + 'px';
		
		var tH = Math.max( flashH, getHeight() );
		flashDiv.style.height = tH + 'px';
	}catch( err ) {}
}

function trackPage( pageName ){
	//alert( pageTracker + ' pageTracker._trackPageview(' + pageName + ')' );
	pageTracker._trackPageview( p );
}