// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.
if (!useRedirect) {    // if dynamic embedding is turned on
  if(hasRightVersion && (navigator.userAgent.toLowerCase().indexOf("netscape6/") < 0) && (isWin || navigator.userAgent.toLowerCase().indexOf("msie") < 0)) {  // if we've detected an acceptable version
  	document.write("<div id=\"bannerLayer\" style=\"position:absolute; left:0px; top:157px; width:590px; height:148px; z-index:5;  overflow: visible; visibility: visible; padding:0; margin:0;\">");
	document.write("<div style=\"float:right;display:inline;\">");
	document.write("<div name=\"flashButtons\" id=\"flashButtons\" style=\"background:url(images/flash-buttons2.gif);width:175px;height:148px;\">"); 
	document.write("<a href=\"javascript:void(0)\" id=\"watch-video\" onclick=\"openVideo();hideSelectedforflash()\" onmouseover=\"window.status='Click to watch video';return true\"><i>Watch  Video</i></a>");
	document.write("<a href=\"javascript:void(0)\" id=\"watch-slides\"  onclick=\"openSlideShow();hideSelectedforflash()\" onmouseover=\"window.status='Click to view slideshow';return true\"><i>Watch Slideshow</i></a>");
	document.write("<a href=\"http://www.flickr.com/groups/princess-lodges-group/\" target=\"_blank\"id=\"watch-photo\"  onmouseover=\"window.status='Click to view guest photos';return true\"><i>Guest Photo Library</i></a>  </div> ");	
	document.write("</div></div>");
  } else {  // flash is too old or we can't detect the plugin
    // NOTE: height, width are required!
  }
}

//note: uncomment the MM_showHideLayers('hide-selected','','hide'); when you need to have flyout banner
function openSlideShow() {
	writeSlideCode(slideshowTags);
	MM_showHideLayers('slideshowLayer','','show');
	MM_showHideLayers('headerBg','','hide');
	MM_showHideLayers('features','','hide');
	//MM_showHideLayers('hide-selected','','hide');
	
}

function closeSlideShow() {
	document.getElementById('slideLayerObject').innerHTML = '';
	MM_showHideLayers('slideshowLayer','','hide');
	MM_showHideLayers('headerBg','','show');
	MM_showHideLayers('features','','show');
	//MM_showHideLayers('hide-selected','','hide');
	
}


function openVideo() {
	writeFlashCode(oeTags); 
	MM_showHideLayers('flashLayer','','show');
	MM_showHideLayers('headerBg','','hide');
	MM_showHideLayers('features','','hide');
	//MM_showHideLayers('hide-selected','','hide');

}
function closeVideo() {
  	document.getElementById('flashLayerObject').innerHTML = '';
	MM_showHideLayers('flashLayer','','hide');
	MM_showHideLayers('headerBg','','show');
	MM_showHideLayers('features','','show');
	//MM_showHideLayers('hide-selected','','hide');
	
}

