//page parameters
var img = company + '/' + ecat;

// flash arguments
var movieWidth = 760;
var movieHeight = 475;
var movieBgc='ffffff';

// build url
var args = 'serverUrl=' + S7Config.isRoot; 
args += '&image=' + img;
args += '&backgroundColor=0x' + movieBgc;
args += '&hotSpotFillColor=0x000000';
args += '&hotSpotFillAlpha=20';
args += '&infoServerUrl=./info.html%3fitem=';
args += '&feedback=false';
args += '&print=true';
args += '&config=' + company + '/' + config;
args += '&enlarge=false';
args += '&contentRoot=' +S7Config.skinsRoot;
args += '&instanceName=' + instance;
args += '&logo2=false';
args +=  ID;
args +=  stateID;
args += '&eventLog=javascript:s7Tag(%22$1$%22)';	// references CMSupport.js

//if (S7Config.isVersion != "2.7")
//	args += '&logo=/demo/logo.png';
//add additional viewer customization parameters here

if (!flashOk)
    document.write('An update for the Flash player is required. <a href="http://www.macromedia.com/go/getflashplayer">Click here</a> to get a recent version and then try again<br><br><br>');
else
{
    // load flash
    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
    document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" ');
    document.write(' ID="ZoomMX" WIDTH="'+movieWidth+'" HEIGHT="'+movieHeight+'" ALIGN="">');
    document.write(' <PARAM NAME=movie VALUE="http://s7d2.scene7.com/is-viewers/flash/genericbrochure.swf?'+args+'">' );
    document.write(' <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noscale> <PARAM NAME=salign VALUE=LT> <PARAM NAME=bgcolor VALUE=#'+movieBgc+'> <PARAM NAME=allowScriptAccess VALUE=always> <PARAM NAME=wmode VALUE=transparent>'); 
    document.write(' <EMBED allowScriptAccess="always" src="http://s7d2.scene7.com/is-viewers/flash/genericbrochure.swf?'+args+'"');
    document.write(' QUALITY="high" BGCOLOR="#'+movieBgc+'" WIDTH="'+movieWidth+'" HEIGHT="'+movieHeight+'" SWLIVECONNECT="true"');
    document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
    document.write(' </EMBED></OBJECT>');
}

