

           
// ***************************************************
// ***************************************************
// Display Feature
// ***************************************************
// ***************************************************
function showFeature( )
{
   try
   {
   
   	var xmlhttp;
   	if (window.XMLHttpRequest)
   	{
   		// code for IE7+, Firefox, Chrome, Opera, Safari
   		xmlhttp=new XMLHttpRequest();
         // xmlhttp.onreadystatechange = displayState; 
   	}
   	else if (window.ActiveXObject)
   	{
   		// code for IE6, IE5
   		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
         // xmlhttp.onload = displayState;
   	}
   	else
   	{
   		alert("Your browser does not support XMLHTTP.");
   	}       
   
   	var theRand;
   
   	theRand = Math.floor( Math.random() * 9999 );
   
      xmlhttp.open("GET","_mlsFeaturedProperty.cfm?" + theRand + "&rand=" + theRand ,true);
      
      xmlhttp.send(null);
      
   	
      //Send the proper header information along with the request
      // xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      // xmlhttp.setRequestHeader("Content-length", params.length);
      // xmlhttp.setRequestHeader("Connection", "close");
      
   
      // xmlhttp.send(null);
      
      var theResultsHTML;
   
   
   	xmlhttp.onreadystatechange=function() 
   	{
   		if (xmlhttp.readyState==4) 
   		{
   			theResultsHTML = xmlhttp.responseText;
            
            if ( document.getElementById("theSlidesInner") )
            {
               document.getElementById("theSlidesInner").innerHTML= "";
               document.getElementById("theSlidesInner").innerHTML= theResultsHTML;

               $( "#detailsBox" ).corner();

//               $('#theSlidesMainDisplay').fadeTo(3000, 0, function(){ postFeatureSlide(); } );
               $('#theSlidesMainDisplay').customFadeTo(3000, 0, function(){ postFeatureSlide(); } );
               // $('#theSlidesInner').fadeTo(3000, 0, function(){  $('#theSlidesInner').fadeTo(3000, 1); } );
    
   
//               $( "#thePicWrapper" ).corner();
//               $( "#thePicTrans" ).corner("bottom");
//               $( "#thePicFeaturedText" ).corner( "top" );

//               $( "#thePicCap" ).corner( "top" );
//               $( "#thePicTrans2" ).corner();
               


               xmlhttp = null;
            }
   
   		}   
   	}
   	
      //   xmlhttp.send(null);
      //	document.getElementById("mlsSearchResults").innerHTML= "";
      //	document.getElementById("mlsSearchResults").innerHTML= theResultsHTML;

   }
   catch( theError )
   {
      alert(theError);
   }


}



function postFeatureSlide()
{
   
  // alert("HEY!");

//   document.getElementById("theSlidesMainWrapper").innerHTML = 
//      '<div id="theSlidesMainDisplay" style="z-index:999;display:none;height:300px;width:787px;"></div>';

//   document.getElementById("theSlidesMainDisplay").innerHTML = document.getElementById("theSlidesInner").innerHTML;
//   document.getElementById("theSlidesMainDisplay").style.display= "block";

   
   
   
//   document.getElementById("theSlidesMainDisplay").style.display= "none";

   
 document.getElementById("theSlidesMainDisplay").innerHTML = document.getElementById("theSlidesInner").innerHTML;
$('#theSlidesMainDisplay').customFadeTo(1000, 1 );
   
   
   //   document.getElementById("theSlidesMainDisplay").innerHTML = document.getElementById("theSlidesInner").innerHTML;
//   document.getElementById("theSlidesMainDisplay").style.display= "block";
//   document.getElementById("theSlidesMainDisplay").innerHTML = document.getElementById("theSlidesInner").innerHTML;

}










