﻿var GenericFlashPlayer =
{
	InstallFlashObject : function(filename, width, height)
	{
		var flashvars = {} ;
		flashvars.vidFilename = filename ;
		flashvars.vidWidth = width ;
		flashvars.vidHeight = height ;
		var params = {} ;
		params.bgcolor = '#000000' ;
		params.quality = 'high' ;
		var attributes = {} ;
		try
		{
			var w = '' ;
			var h = '' ;
			w = width + 'px' ;
			h = (parseInt(height, 10) + 22) + 'px' ;
			w = w.replace('px', '') ;
			h = h.replace('px', '') ;
			swfobject.embedSWF('flash/New/GenericFlashPlayer.swf', 'divFlashHolder', w, h, '9.0.0', 'expressInstall.swf', flashvars, params, attributes);
		}
		catch (e)
		{
			alert(e.message) ;
		}
	}
} ;