var galleryName = "lightbox";
var purchased = "";//filmstrip,cube,rollover4x5,iScroll,iScrollFlow,lightbox,slideshow,mirrored,photographs";
var flashWidth = 500;
var flashHeight = 500;
var embedRef = "http://www.adoregallery.com/demo/embed_example.html";


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var urlToSend = window.location;
var pathToSend = location.pathname;
var adoreDir = '';

var flashContent = '' +
'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="600" id="banner" align="middle">' +
'<param name="allowScriptAccess" value="always" />' +
'<param name="movie" value="http://www.adoregallery.com/adore/gallery/galleries/adore_gallery_finalpack_secure_test.swf" />' +
'<param name="quality" value="high" />' +
'<param name="wmode" value="transparent" />' +
'<param name="FlashVars" value="adoreDir=' + adoreDir + '&galleryName=' + galleryName + '&urlToSend='+ urlToSend +'&pathToSend='+ pathToSend +'&purchased='+ purchased +'&flashWidth='+ flashWidth +'&flashHeight='+ flashHeight +'&embedRef='+embedRef+'" />' +
'<param name="bgcolor" value="#ffffff" />' +
'<embed src="http://www.adoregallery.com/adore/gallery/galleries/adore_gallery_finalpack_secure_test.swf" FlashVars="adoreDir=' + adoreDir + '&galleryName=' + galleryName + '&urlToSend='+ urlToSend +'&purchased='+ purchased +'&pathToSend='+ pathToSend +'&flashWidth='+ flashWidth +'&flashHeight='+ flashHeight +'&embedRef='+embedRef+'" quality="high" wmode="transparent" bgcolor="#ffffff" width="800" height="600" name="banner.swf" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
'</object>';

var alternateContent = '<font color="#FFFFFF">This content requires the Adobe Flash Player. ' +
'<a href=http://www.adobe.com/go/getflash/>Get Flash</a></font>';

// Version check based upon the values entered in "Globals"
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

// Check to see if the version meets the requirements for playback
if (hasRequestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed

	document.write(flashContent);

} else {  // flash is too old or we can't detect the plugin

	document.write(alternateContent);  // insert non-flash content
}

