//document.title="Trammell Crow Company - Commercial Real Estate Services"
// JavaScript Document
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function handleEnter (event) {        
    if (window.event.keyCode == 13) 
        return false;
    else
        return true;
  }     

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}


function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    fas_off_over = newImage("images/fas_off-over.gif");
    fas_satz_off_over = newImage("images/fas_satz_off-over.gif");
    fas_uore_off_over = newImage("images/fas_uore_off-over.gif");
    fas_iire_off_over = newImage("images/fas_iire_off-over.gif");
    cs_off_over = newImage("images/cs_off-over.gif");
    cs_b_off_over = newImage("images/cs_b_off-over.gif");
    cs_pm_off_over = newImage("images/cs_pm_off-over.gif");
    cs_bm_off_over = newImage("images/cs_bm_off-over.gif");
    cs_dai_off_over = newImage("images/cs_dai_off-over.gif");
    p_off_over = newImage("images/p_off-over.gif");
    is_off_over = newImage("images/is_off-over.gif");
    prop_off_over = newImage("images/prop_off-over.gif");
    r_off_over = newImage("images/r_off-over.gif");
    preloadFlag = true;
  }
}

function getPageName(separator){
  if(separator==null) separator=":";
  var breadCrumbTable = document.getElementById('breadCrumbTable');
  var rtnVal = "";
  if(breadCrumbTable)
  {
    var links=breadCrumbTable.getElementsByTagName('a');
    if(links)
      for(i=0; i< links.length;i++)
        rtnVal+=separator+links[i].innerHTML;
  }
  if(rtnVal=="")
    return document.title;
  else
    return rtnVal.substring(separator.length,rtnVal.length);
}

function addFavorite() {
  if(window.external)//IE
    window.external.AddFavorite(window.location.href,'Trammell Crow Company - ' + getPageName(' - '))
  else if(window.sidebar)//FF
    window.sidebar.addPanel('Trammell Crow Company - ' + getPageName(' - '), window.location.href,"");
}

function getAllSheets() {//returns all stylesheets in page
    if( !window.ScriptEngine && navigator.__ice_version ) { return document.styleSheets; }
    if( document.getElementsByTagName ) { var Lt = document.getElementsByTagName('link'), St = document.getElementsByTagName('style');
    } else if( document.styleSheets && document.all ) { var Lt = document.all.tags('LINK'), St = document.all.tags('STYLE');
    } else { return []; } for( var x = 0, os = []; Lt[x]; x++ ) {
        var rel = Lt[x].rel ? Lt[x].rel : Lt[x].getAttribute ? Lt[x].getAttribute('rel') : '';
        if( typeof( rel ) == 'string' && rel.toLowerCase().indexOf('style') + 1 ) { os[os.length] = Lt[x]; }
    } for( var x = 0; St[x]; x++ ) { os[os.length] = St[x]; } return os;
}
function changeStyle() {//sets the visibility of a stylesheet
    window.userHasChosen = window.MWJss;
    for( var x = 0, ss = getAllSheets(); ss[x]; x++ ) {
        if( ss[x].title ) { ss[x].disabled = true; }
        for( var y = 0; y < arguments.length; y++ ) { if( ss[x].title == arguments[y] ) { ss[x].disabled = false; } }
} }
function rememberStyle( cookieName, cookieLife ) {//stores the enabled attribute of stylesheets in a cookie
    for( var viewUsed = false, ss = getAllSheets(), x = 0; window.MWJss && MWJss[x] && ss[x]; x++ ) { if( ss[x].disabled != MWJss[x] ) { viewUsed = true; break; } }
    for( var x = 0, outLine = '', doneYet = []; ss[x]; x++ ) {
        if( ss[x].title && ss[x].disabled == false && !doneYet[ss[x].title] ) { doneYet[ss[x].title] = true; outLine += ( outLine ? ' MWJ ' : '' ) + escape( ss[x].title ); } }
    if( ss.length ) { document.cookie = escape( cookieName ) + '=' + escape( outLine ) + ( cookieLife ? ';expires=' + new Date( ( new Date() ).getTime() + ( cookieLife * 86400000 ) ).toGMTString() : '' ) + ';path=/'; }
}
function useStyleAgain( cookieName ) {//loads the enabled attribute of stylesheets in a cookie
    for( var x = 0; x < document.cookie.split( "; " ).length; x++ ) {
        var oneCookie = document.cookie.split( "; " )[x].split( "=" );
        if( oneCookie[0] == escape( cookieName ) ) {
            var styleStrings = unescape( oneCookie[1] ).split( " MWJ " );
            for( var y = 0, funcStr = ''; styleStrings[y]; y++ ) { funcStr += ( y ? ',' : '' ) + 'unescape( styleStrings[' + y + '] )'; }
            eval( 'changeStyle(' + funcStr + ');' ); break;
    } } window.MWJss = []; for( var ss = getAllSheets(), x = 0; ss[x]; x++ ) { MWJss[x] = ss[x].disabled; }
}
function swapSheets(showTitle, hideTitle){//swaps the enables properties for two stylesheets
    for( var x = 0, ss = getAllSheets(); ss[x]; x++ ) { if(ss[x].title==showTitle) ss[x].disabled=false; if(ss[x].title==hideTitle) ss[x].disabled=true;}
}
function increaseFontSize(){
  swapSheets('LargeFont','StandardFont')
  rememberStyle('styleTestStore',10);
}
function decreaseFontSize(){
  swapSheets('StandardFont','LargeFont');
  rememberStyle('styleTestStore',10);
}

function outputFlashExt(flashFilePath,xmlFilePath,color, fwidth, fheight, imageFilePath, iwidth, iheight, setImageHeight) {    
    document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
    document.write('CODEBASE="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"');
    document.write('WIDTH="'+ fwidth + '" HEIGHT="' + fheight + '" NAME="sw" ID="sw" style="visibility:hidden;">');
    document.write('<PARAM NAME="Movie" VALUE="' + flashFilePath + '">');
    document.write('<PARAM NAME="FlashVars" VALUE="xmlFile=' + xmlFilePath + '">');
    document.write('<PARAM NAME="quality" VALUE="high">');
    document.write('<PARAM NAME="WMODE" VALUE="transparent">'); 
    document.write('<PARAM NAME="bgcolor" VALUE="' + color + '">');
    if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
    {
       document.write('<EMBED SRC="' + flashFilePath + '" FlashVars="xmlFile=' + xmlFilePath + '" WIDTH="'+ fwidth + '" HEIGHT="' + fheight + '" QUALITY="high" type="application/x-shockwave-flash" WMODE="transparent"/>');             
    }
    else {
       if (setImageHeight=true)
            document.write('<IMG SRC="' + imageFilePath + '" WIDTH="'+ iwidth + '" HEIGHT="'+ iheight + '" ALT="Non-Shockwave Welcome">');
       else
            document.write('<IMG SRC="' + imageFilePath + '" WIDTH="'+ iwidth + '" ALT="Non-Shockwave Welcome">');
    }
     document.write('</OBJECT>');
}

function outputFlash(flashFilePath,color, fwidth, fheight, imageFilePath, iwidth, iheight, setImageHeight) {
    //alert (flashFilePath);
    // <!-- begin the OBJECT tag, which will be understood by ActiveX-capable browsers -->
    document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
    document.write('CODEBASE="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"');
    document.write('WIDTH="'+ fwidth + '" HEIGHT="' + fheight + '" NAME="sw" ID="sw" style="visibility:hidden;border:0;padding:0;margin:0;">');
    document.write('<PARAM NAME="Movie" VALUE="' + flashFilePath + '">');    
    document.write('<PARAM NAME="WMODE" VALUE="transparent">'); 
    document.write('<PARAM NAME="quality" VALUE="high">');
    document.write('<PARAM NAME="bgcolor" VALUE="' + color + '">');
    // if ((navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("Mac") == -1 &&   navigator.appVersion.indexOf("3.1") == -1) || (navigator.plugins && navigator.plugins["Shockwave Flash"])|| navigator.plugins["Shockwave Flash 2.0"])
    //If this browser understands the mimeTypes property and recognizes the MIME Type //"application/x-shockwave-flash"...
    if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
    {

       //...write out the following <EMBED> tag into the document.
       //document.write('<EMBED SRC="' + flashFilePath + '" WIDTH="'+ fwidth + '" HEIGHT="' + fheight + '" QUALITY="high">');
       document.write('<EMBED SRC="' + flashFilePath + '" WIDTH="'+ fwidth + '" HEIGHT="' + fheight + '" QUALITY="high" type="application/x-shockwave-flash" WMODE="transparent" />');             
    }
    //Otherwise,...
    else {

       //...write out the following <IMG> tag into the document. The image need
       //not be the same size as the Flash Player movie, but it may help you lay out the
       //page if you can predict the size of the object reliably.
       if (setImageHeight=true)
            document.write('<IMG SRC="' + imageFilePath + '" WIDTH="'+ iwidth + '" HEIGHT="'+ iheight + '" ALT="Non-Shockwave Welcome">');
       else
            document.write('<IMG SRC="' + imageFilePath + '" WIDTH="'+ iwidth + '" ALT="Non-Shockwave Welcome">');
    }
    //<!-- Close the OBJECT tag. --> 
     document.write('</OBJECT>');
} //end outputFlash()

function showFlash()
{
    //shows all object tags
    var oObject = window.document.body.getElementsByTagName("OBJECT");

    for (var i=0;i<oObject.length;i++)
    {
        oObject[i].style.visibility="";
    }
}

function loadThis() {
    window.location.reload();
}

function loadSSCookie(){ useStyleAgain('styleTestStore'); }
function setSSCookie(){ rememberStyle('styleTestStore',10); }

function loadHandler()
{
    //timer=setTimeout('loadThis()',900000);
    loadSSCookie();
    showFlash();
}

var tcc_server_url;
window.onload=loadHandler;
/*
if(document.body.addEventListener)
{
    //document.body.addEventListener("onload",loadSSCookie, false);
    //document.body.addEventListener("onload",showFlash, false);

	document.addEventListener("DOMContentLoaded",loadHandler,false);
  }
else
    {
      //onload set timeout to reload page on interval for stock quote.  15 min = 900000 millisec
  document.body.onload=loadHandler;

   }
   */
   
//-->
