function InsertFlashPhotos()
{
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="501" height="188" id="photos" align="top">\n');
  document.write('<param name="allowFullScreen" value="false" />\n');
  document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
  document.write('<param name="movie" value="photos.swf" />\n');
  document.write('<param name="quality" value="high" />\n');
  document.write('<param name="bgcolor" value="#d2d2d2" />\n');
  document.write('<param name="play" value="true" />\n');
  document.write('<param name="wmode" value="v" />\n');
  document.write('<embed src="photos.swf" quality="high" bgcolor="#d2d2d2" wmode="opaque" play="true" width="501" height="188" name="photos" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowFullScreen="false" />\n');
  document.write('</object>\n');
}

function positionMainLayers() {
	if (document.layers) {
            document.layer1Welcome.style.top="17px";
            document.layer3VirtualTours.style.top="17px";
            document.layer1Welcome.style.left="17px";
            document.layer3VirtualTours.style.left="17px";
            document.layer1Welcome.style.visibility="visible";
            document.layer1Welcome.style.zIndex="2";
            document.layer2FlashPhotos.style.visibility="visible";
            document.layer2FlashPhotos.style.zIndex="3";
        }
        if (document.all) {
             document.all.layer1Welcome.style.top="17px";
             document.all.layer3VirtualTours.style.top="17px";
             document.all.layer1Welcome.style.left="17px";
             document.all.layer3VirtualTours.style.left="17px";
             document.all.layer1Welcome.style.visibility="visible";
             document.all.layer1Welcome.style.zIndex="2";
             document.all.layer2FlashPhotos.style.visibility="visible";
             document.all.layer2FlashPhotos.style.zIndex="3";
        }
        if (!document.all && document.getElementById) {
             document.getElementById("layer1Welcome").style.top="17px";
             document.getElementById("layer3VirtualTours").style.top="17px";
             document.getElementById("layer1Welcome").style.left="17px";
             document.getElementById("layer3VirtualTours").style.left="17px";
             document.getElementById("layer1Welcome").style.visibility="visible";
             document.getElementById("layer1Welcome").style.zIndex="2";
             document.getElementById("layer2FlashPhotos").style.visibility="visible";
             document.getElementById("layer2FlashPhotos").style.zIndex="3";
    }
}
	
var win= null;
function NewWindow(mypage,myname,w,h,scroll){
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	var settings ='height='+h+',';
	settings +='width='+w+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars='+scroll+',';
	settings +='resizable=no';
	win=window.open(mypage,myname,settings);
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
function MM_openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}
var win= null;
function NewWindowWithScroll(mypage,myname,w,h,scroll){
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	var settings ='height='+h+',';
	settings +='width='+w+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars='+scroll+',';
	settings +='resizable=no';
	win=window.open(mypage,myname,settings);
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
function MM_openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}
function MM_openBrWindow(theURL,winName,features) {
	window.open(domain_url,winName,features);
}

function showLegalMsg () {
	alert ("ATTENTION REALTORS:\n\nThe Model Unit Virtual Tour, Photo Gallery, and Virtual Tours\nwere produced exclusively for the developers of The Peninsula.\nIf you are a Buyer's Agent, you may link to this page for your\nprospective buyers to view.\n\nThird party REALTORS working on behalf of unit owners at\nThe Peninsula ARE NOT permitted to link to or use this page\nfor the purposes of marketing a unit.\n\nINTERESTED IN HAVING YOUR OWN VIRTUAL TOUR PRODUCED?\nFor Virtual Tour information & pricing, contact the photographer\nat 904.485.6249 or on the web at www.se360tours.com.\n\nCopyright © SouthEast360Tours.com. All Rights Reserved.");
}

function showAboutMsg () {
	alert ("ABOUT THIS WEBSITE:\n\nThe Model Unit Virtual Tour, Photo Gallery, and Virtual Tours\nwere produced by SouthEast360Tours.com.\n\nCopyright © SouthEast360Tours.com. All Rights Reserved.");
}

function maximize() {
   	window.moveTo(0,0)
   	window.resizeTo(screen.availWidth, screen.availHeight)
}

function PlayFlashMusic()
{
	var flashMovie=getFlashMovieObject("bgmusic");
	flashMovie.Play();
	//embed.nativeProperty.anotherNativeMethod();
}

function RewindFlashMusic()
{
	var flashMovie=getFlashMovieObject("bgmusic");
	flashMovie.Rewind();
}

function StopFlashMusic()
{
	var flashMovie=getFlashMovieObject("bgmusic");
	flashMovie.StopPlay();
}

function PlayFlashAudio()
{
	var flashMovie=getFlashMovieObject("audio");
	flashMovie.Play();
	//embed.nativeProperty.anotherNativeMethod();
}

function RewindFlashAudio()
{
	var flashMovie=getFlashMovieObject("audio");
	flashMovie.Rewind();
}

function StopFlashAudio()
{
	var flashMovie=getFlashMovieObject("audio");
	flashMovie.StopPlay();
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}
