// window opener
function windowOpener() {
window.open('','win','toolbar=yes,location=no,scrolling=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=500,height=400,top=20,left=20');
}
// write flash dynamically to overide the IE security settings - here's the function:
function EmbedFlash(strIDName, strMovie, strWidth, strHeight, strAlign, strQuality, strBGColor, strAllowScriptAccess, strWMode)
{
var strWModeEmbed = '';
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + strWidth + '" height="' + strHeight + '" id="' + strIDName + '" align="' + strAlign + '" VIEWASTEXT>\n');
document.write('<param name="allowScriptAccess" value="' + strAllowScriptAccess + '" />\n');
document.write('<param name="movie" value="' + strMovie + '" />\n');
document.write('<param name="quality" value="' + strQuality + '" />\n');
document.write('<param name="bgcolor" value="' + strBGColor + '" />\n');
if (strWMode != null)
{
document.write('<param name="wmode" value="' + strWMode + '" />\n');
strWModeEmbed = ' wmode="' + strWMode + '"'
}
document.write('<embed src="' + strMovie + '" quality="' + strQuality + '"' + strWModeEmbed + ' bgcolor="' + strBGColor + '" width="' + strWidth + '" height="' + strHeight + '" name="' + strIDName + '" align="' + strAlign + '" allowScriptAccess="' + strAllowScriptAccess + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
}
// write flash dynamically to overide the IE security settings - here are the variables:
function RunFooCorporate()
{
EmbedFlash('corporate_gallery', 'images/corporate_gallery.swf', '305', '200', 'middle', 'high', '#ffffff', 'sameDomain', null);
}
function RunFooPrivate()
{
EmbedFlash('private_gallery', 'images/private_gallery.swf', '305', '200', 'middle', 'high', '#ffffff', 'sameDomain', null);
}
