// JavaScript Document
function boomUpgrade(info) {
	if (info == 'version'){
		document.write('2.7.3');
	} else if (info == 'date'){
		document.write('August 25, 2008');
	} else if (info == 'products'){
		document.write('28');
	}
}
function showSpeedBump(newURL) {
  var resp = confirm("You are now leaving the BOOM! by ENVISION web site. Citi does not provide, and is not responsible for, the product, service, or overall Web Site content available at the external Internet Web Site. The Citi privacy policies do not apply.");
  if (resp) {
    //window.location = newURL;
    window.open (newURL);
  }
}
function showSpeedBump2(newURL) {
  var resp = confirm("You are now leaving the BOOM! by ENVISION web site. The Citi privacy policies do not apply.");
  if (resp) {
    //window.location = newURL;
    window.open (newURL);
  }
}
function thirdParty(url, text) {
	var title ="Citi has provided this tool as a convenience to you and makes no guarantees or warranties regarding the accuracy of the information provided. Please note the tool is provided by a 3rd-party website whose privacy policy and security practices may differ from Citi standards.";
	document.write('<span class="thirdParty"><a href="'+url+'" target="_blank" title="'+title+'"><img src="images/3rdparty.gif" alt="Third Party" title="'+title+'" width="8" height="8">'+text+'</a></span>');
}
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!--  Author: www.cgiscript.net  -->

<!-- Begin
// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
}
function todaysDate(){
// Get today's current date.
var now = new Date();
// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
var today =  days[now.getDay()] + " " +
         months[now.getMonth()] + " " +
         date + ", " +
         (fourdigits(now.getYear())) ;


// Print out the data.
document.write(today);
}
//
function centerWindow(url) {
	// Set the window height to 100 pixels less than screen height
	winH = screen.height-100;
	// Use the window height to set the window width to a 4:3 aspect ratio.
	winW = Math.round((winH/3)*4);
	winTop= (screen.height/2)-((winH/2)+35);
	winLeft=(screen.width/2)-(winW/2);
	// Open the window without the web controls (address bar, toolbar, etc.)
	window.open(url, 'demo', 'width='+winW+',height='+winH+',top='+winTop+',left='+winLeft+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no');
//window.open("javascript:window.open('"+url+"','demo','width="+winW+",height="+winH+",top='+((screen.height/2)-("+((winH/2)+35)+"))+',left='+((screen.width/2)-("+winW/2+"))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);");
}

function letterSize(url) {
	// Set the window height to 100 pixels less than screen height
	winH = screen.height-100;
	// Use the window height to set the window width to a 4:3 aspect ratio.
	winW = Math.round((winH/11)*8.5);
	winTop= (screen.height/2)-((winH/2)+35);
	winLeft=(screen.width/2)-(winW/2);
	// Open the window without the web controls (address bar, toolbar, etc.)
	window.open(url, 'letterSize', 'width='+winW+',height='+winH+',top='+winTop+',left='+winLeft+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no');
//window.open("javascript:window.open('"+url+"','demo','width="+winW+",height="+winH+",top='+((screen.height/2)-("+((winH/2)+35)+"))+',left='+((screen.width/2)-("+winW/2+"))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);");
}

function newBrowser(url) {
	// Set the window height to 180 pixels less than screen height
	winH = screen.height-180;
	// Use the window height to set the window width to a 4:3 aspect ratio.
	winW = Math.round((winH/3)*4);
	winTop= (screen.height/2)-((winH/2)+60);
	winLeft=(screen.width/2)-(winW/2);
	// Open the window without the web controls (address bar, toolbar, etc.)
	window.open(url, 'demo', 'width='+winW+',height='+winH+',top='+winTop+',left='+winLeft+',toolbar=no,scrollbars=no,resizable=yes,menubar=yes,status=yes,directories=yes,location=yes');
//window.open("javascript:window.open('"+url+"','demo','width="+winW+",height="+winH+",top='+((screen.height/2)-("+((winH/2)+35)+"))+',left='+((screen.width/2)-("+winW/2+"))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);");
}
function flashWindow(url, setW, setH) {
	winTop= (screen.height/2)-((setH/2)+35);
	winLeft=(screen.width/2)-(setW/2);
	// Open the window without the web controls (address bar, toolbar, etc.)
	window.open(url, '_blank', 'width='+setW+',height='+setH+',top='+winTop+',left='+winLeft+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no');
}
function legalTable(){
	document.write('<table border="0" cellpadding="8" cellspacing="0" class="legalText"><tr><td>&copy;2011  Envision Real Estate Software, Inc.  BOOM! by Envision is a registered trademark of Envision Real Estate Software, Inc. Citi, Arc Design, Citi and Arc Design and Citi Never Sleeps are registered service marks of Citigroup Inc.</td></tr></table>');
}


function loadXmlDoc(xmlFile, cbFun)
{
   var xdoc;

   if( window.ActiveXObject && /Win/.test(navigator.userAgent) )
   {
      xdoc = new ActiveXObject("Microsoft.XMLDOM");

      xdoc.async = false;
      xdoc.load(xmlFile);

      cbFun(xdoc);

      return true;
   }
   else if( document.implementation && document.implementation.createDocument )
   {
      xdoc = document.implementation.createDocument("", "", null);
      xdoc.load(xmlFile);

      xdoc.onload = function()
      {
         cbFun(xdoc);
      }

      return true;
   }
   else
   {
      return false;
   }
}
function movie640x480(movie){
AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','640','height','480','menu','false','align','top','bgcolor','#FFFFFF','src','../boom/flash/'+movie+'','quality','best','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','../boom/flash/'+movie);
}
