<!--
function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
  return -1;
}
// -->

<!--
  var startImg = getQueryVariable("startImg");
  //alert(startImg);
// -->


// JavaScript Document
<!--
	// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
	var hasProductInstall = DetectFlashVer(6, 0, 65);
	
	// Version check based upon the values defined in globals
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	
	// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
	if ( hasProductInstall && !hasReqestedVersion ) {
		// MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
		// This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
		// DO NOT MODIFY THE FOLLOWING FOUR LINES
		// Location visited after installation is complete if installation is required
		var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
		var MMredirectURL = window.location;
		document.title = document.title.slice(0, 47) + " - Flash Player Installation";
		var MMdoctitle = document.title;
	
		AC_FL_RunContent(
			"src", "playerProductInstall",
			"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
			'width','620',
			'height','520',
			"align", "middle",
			"id", "detectionExample",
			"quality", "high",
			"name", "detectionExample",
			"allowScriptAccess","sameDomain",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	} else if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		AC_FL_RunContent(				
				'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
				'flashvars','livePreview=false&baseRefUrl=&groupxml=resources/mediaGroupData/group.xml&stylexml=resources/styles/style.xml&localText=resources/localization/localText.xml&startImg='+startImg,
				'width', '100%',
				'height', '600',
				'src', 'resources/gallery',
				'quality', 'high',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'align', 'middle',
				'play', 'true',
				'loop', 'true',
				'scale', 'showall',
				'wmode', 'window',
				'devicefont', 'false',
				'id', 'gallery',
				"bgcolor", "#17161A",
				'name', 'gallery',
				'menu', 'true',
				'allowScriptAccess','sameDomain',
				'movie', 'resources/gallery',
				'salign', ''
		);
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<h2>This page requires Flash Player 8 to be installed. </h2>'
					+ '<a href="http://www.adobe.com/go/getflashplayer" target="_blank"><img src="../../images/getFlashBadge.jpg" alt="Get Flash Player" /></a>'
					+ '<p>Zanderography Web Design is located at 200 Granite. St., Frisco, CO 80443. ph. 610.533.9662 fx.970-668-4390</p>'
					+ '<img src="../../images/galleries.jpg" alt="Zanderography - Fine Art Photography Galleries in Breckenridge, Colorado" width="620" height="520" usemap="#links" />'
							+ '<map name="links" id="links">'
									+ '<area shape="rect" coords="9,52,307,280" href="gallery/abstract/index.html" alt="Fine Art Photography - Abstract" />'
									+ '<area shape="rect" coords="311,52,607,281" href="gallery/places/index.html" alt="Gallery Photography - Places" />'
									+ '<area shape="rect" coords="8,289,309,514" href="gallery/people/index.html" alt="Nathan Zander Portrait Gallery" />'
									+ '<area shape="rect" coords="312,291,608,513" href="gallery/monochrome/index.html" alt="Fine Art Black and White Photography Gallery" />'
						+ '</map>'			
				+ '</noscript>';
		document.write(alternateContent);  // insert non-flash content
	}
	// -->