<!--
//pop up that takes different parameters
// this will center the window within the browser and bring the window to focus
//javascript:popUpProps('test.html','winName','400','300',',menubar=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0');
var winProps;
function popUpProps(url, windowName, width, height, props)
{
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;
	var propsCentered = "width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + props;

	if(winProps == null || winProps.closed) {
		winProps = window.open(url, windowName, propsCentered);
		winProps.focus();
	} else {	
		winProps.close();
		winProps = window.open(url, windowName, propsCentered);
		winProps.focus();
	}
}


//ex flashEmbed('name', 'base.swf', 'swf/', 'serverLocation=1', '500', '400', '', '', 'high', '#FFFFFF', 'noscale', '0', 'window', 'sameDomain', '6,0,65,0');
function flashEmbed(name, movie, base, flashvars, width, height, align, salign, quality, bgcolor, scale, menu, wmode, allowScriptAccess, codebase)
{	
	var strEmbed = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + codebase + '" width="' + width + '" height="' + height + '" id="' + name + '">'
		+ '<param name="movie" value="' + movie + '">'
		+ '<param name="base" value="' + base + '">'
		+ '<param name="FlashVars" value="' + flashvars + '">'
		+ '<param name="quality" value="' + quality + '">'
		+ '<param name="bgcolor" value="' + bgcolor + '">'
		+ '<param name="scale" value="' + scale + '">'
		+ '<param name="align" value="' + align + '">'
		+ '<param name="scale" value="' + scale + '">'
		+ '<param name="salign" value="' + salign + '">'
		+ '<param name="wmode" value="' + wmode + '">'
		+ '<param name="allowScriptAccess" value="' + allowScriptAccess + '">'
		+ '<embed src="' + movie + '" base="' + base + '" '
		+ 'FlashVars="' + flashvars + '" quality="' + quality + '" bgcolor="' + bgcolor + '" '
		+ 'width="' + width + '" height="' + height + '" name="' + name + '" scale="' + scale + '" '
		+ 'align="' + align + '" salign="' + salign + '" menu="' + menu + '" '
		+ 'wmode="' + wmode + '" allowScriptAccess="' + allowScriptAccess + '" '
		+ 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>'
		+ '<\/object>';
		
		document.write(strEmbed);   // embed the Flash Content SWF
}


// -->