﻿// JScript File

function insertFlash(section,path,base,width,height) {
  //  var navCookie;


//    navCookie = getFlashCookie();
	if (section == undefined){
		section = "Home";
	}
	
  // section = 'section=' + getFlashCookie();
	
   if (DetectFlashVer(8, 0, 0) && section != 'Gaming' && section !=  'Meeting') {
   
        strContent = '<tr><td align="center"><object id="flashMovie" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
        + ' width="'+width+'" height="'+height+'"'
        + ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">'
        + ' <param name="movie" value="'+path+'experience.swf?section=' + section +'" />'
        + ' <param name="quality" value="high" />'
        + ' <param name="scale" value="noscale" />'
        + ' <param name="base" value="'+base+'" />'
        + ' <param name="allowScriptAccess" value="always" />'
		+ ' <param name="wmode" value="transparent" />'
        + ' <embed src="'+path+'experience.swf?section=' + section +'" width="'+width+'" height="'+height+'" base="'+base+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"'
        + ' type="application/x-shockwave-flash" allowScriptAccess="always" scale="noscale" name="flashObject" wmode="transparent"></embed></object></td></tr>';
        document.write(unescape(strContent));
      
        
    } else {
        if (DetectFlashVer(7, 0, 0) || DetectFlashVer(8, 0, 0)) {
             strContent = '<tr><td align="center"><object id="flashMovie" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
            + ' width="'+width+'" height="'+height+'"'
            + ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">'
            + ' <param name="movie" value="'+path+'hubFlash7.swf?section=' + section +'" />'
            + ' <param name="quality" value="high" />'
            + ' <param name="scale" value="noscale" />'
            + ' <param name="base" value="'+base+'" />'
            + ' <param name="allowScriptAccess" value="always" />'
			+ ' <param name="wmode" value="transparent" />'
            + ' <embed src="'+path+'hubFlash7.swf?section=' + section +'" width="'+width+'" height="'+height+'" base="'+base+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"'
            + ' type="application/x-shockwave-flash" allowScriptAccess="always" scale="noscale" name="flashObject" wmode="transparent"></embed></object></td></tr>';
            document.write(unescape(strContent));
        }
    }
}


function insertFlashGallery(path,base,width,height) {

strContent = '<table class="NoPrint" width="495" border="0" cellpadding="1" cellspacing="0" bgcolor="#606060">'
+ '<tr><td><table width="493" height="223" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"><tr><td>'
+ '<object id="MgmExperience" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'

+ ' width="'+width+'" height="'+height+'"'

+ ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">'

+ ' <param name="movie" value="'+path+'" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="base" value="'+base+'" />'

+ ' <embed src="'+path+'" width="'+width+'" height="'+height+'" base="'+base+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"'

+ ' type="application/x-shockwave-flash" allowScriptAccess="always" scale="noscale" name="MgmExperience"></embed>'

+ '</object>'

+ '</td></tr></table></tr></table>';
document.write(strContent);
}