Array.prototype.indexOf=function(a){for(var b=0;b<this.length;b++){if(this[b]==a)return b}return-1};Array.prototype.contains=function(a){return this.indexOf(a)!=-1};String.prototype.trim=function(){return this.replace(/^\s*|\s*$/g,'')};String.prototype.endsWith=function(a){var b=new RegExp(a+'$');return b.test(this)};String.prototype.startsWith=function(a){var b=new RegExp('^'+a);return b.test(this)};Date.prototype.toShortDateString=function(){return(this.getMonth()+1)+'/'+this.getDate()+'/'+this.getFullYear()};Date.prototype.toShortTimeString=function(){var t=new Date(this.toShortDateString());var d=this.getTime()-t.getTime();var m=Math.floor(d / 1000 / 60);var h=Math.floor(m/60);var z=h>11?'PM':'AM';m=m-(h*60);if(m<10)m='0'+m;if(h>12)h=h-12;if(h==0)h=12;return h+':'+m+' '+z};Date.prototype.getFullDayName=function(){var a=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];return a[this.getDay()]};Date.prototype.getShortDayName=function(){var a=this.getFullDayName();var b=a=='Thursday'?4:3;return a.substring(0,b)};Date.prototype.getFullMonthName=function(){var a=['January','February','March','April','May','June','July','August','September','October','November','December'];return a[this.getMonth()]};Date.prototype.getShortMonthName=function(){var a=this.getFullMonthName();return a.substring(0,3)};if(!reliance)var reliance={};if(!reliance.loader){reliance.loader={};(function(){var aA=0;var aB={};var aC='http://www.mikesoldit.com/scripts/';var aD='http://www.mikesoldit.com/scripts/';var aE=[];var aF=0;function A(a){return':'+a};function B(a,b,c){aB[A(a)]=new M(a,b,c)};function C(a,b){if(reliance.loader.loadFailureOccured())return;var c=aB[A(a)];if(!c)return E('[reliance.loader:Exception] Module not found: '+a);var d=a.split(/\./);var e=reliance;for(var f=0;f<d.length;f++){if(!e[d[f]]&&f<d.length-1)e[d[f]]={};e=e[d[f]]}if(!aE.contains(a)){aE.push(a);document.write('<'+'script type="text/javascript" src="'+c.initialize(b)+'"><'+'/script>')}}function D(a){if(window.addEventListener){window.addEventListener('load',a,false)}else if(window.attachEvent){window.attachEvent('onload',a)}else{window['onload']=a}};function E(a){var b=new Error(a);b.toString=function(){return this.message};throw b;};function F(a,b){for(var c=0;c<b.length;c++)G(a+'.'+b[c][0],b[c][1])};function G(a,b){var c=a.split(/\./);var d=window;for(var e=0;e<c.length-1;e++){if(!d[c[e]])d[c[e]]={};d=d[c[e]]}d[c[c.length-1]]=b};function H(){if(aA==0&&document.cookie.match(/(?:sessionclientid=|client=.+?&clientid=)(\d+)/i))aA=RegExp.$1;return aA};function I(a,b){if(isNaN(a)||a==0)return;aA=parseInt(a);document.cookie='sessionclientid='+aA+'; path=/';if(!b||b.toString()!='true')return;var c=new Date();c.setTime(c.getTime()+(365*864e5));document.cookie='client=companyid='+reliance.loader.serviceID()+'&clientid='+aA+'; expires='+c.toGMTString()+'; path=/'};function J(){var a=new Date();a.setTime(a.getTime()+(-1*864e5));document.cookie='sessionclientid=; expires='+a.toGMTString()+'; path=/';document.cookie='client=; expires='+a.toGMTString()+'; path=/'};function K(){return H()>0||aF>0};function L(a){if(isNaN(a)||a==0)return;aF=parseInt(a)};function M(a,b,c){this.a=a;this.b=b;this.c=c||false};M.prototype.initialize=function(a){var b=this.a.split(/\./);var c=reliance;for(var d=0;d<b.length;d++){if(!c[b[d]])c[b[d]]={};c=c[b[d]]}c[b[b.length-1]]={};var e=[];if(this.c)e.push('companyid='+reliance.loader.serviceID()+'&amp;accountid='+reliance.loader.accountID());if(a)for(var f in a)e.push(f+'='+a[f]);return this.b+(e.length>0?'?'+e.join('&amp;'):'')};function Z(a,b,c){};B('googleMapsForEnterprise',aC+'GoogleMapsForEnterprise.jsx');B('browser',aC+'reliance.browser.js');B('common',aC+'reliance.common.js');B('controls',aC+'reliance.controls.js');B('controls.calendars',aC+'reliance.controls.calendars.js');B('controls.FileUpload',aD+'reliance.controls.FileUpload.jsx');B('controls.Grid',aC+'reliance.controls.Grid.js');B('controls.SuggestionField',aC+'reliance.controls.SuggestionField.js');B('domUtilities',aC+'reliance.domUtilities.js');B('event',aC+'reliance.event.js');B('history',aC+'reliance.history.js');B('httpRequest',aC+'reliance.httpRequest.js');B('log',aC+'reliance.log.js');B('mapping',aC+'reliance.mapping.jsx',true);B('mapping.Map',aC+'reliance.mapping.Map.jsx',true);B('mapping.MapSideBar',aC+'reliance.mapping.MapSideBar.js');B('mapping.QuickSearch',aC+'reliance.mapping.QuickSearch.js');B('mapping.QuickSearchAdvanced',aC+'reliance.mapping.QuickSearchAdvanced.js');B('mapping.QuickSearchAdvancedVertical',aC+'reliance.mapping.QuickSearchAdvancedVertical.js');B('mapping.Search',aC+'reliance.mapping.Search.js');B('mapping.SearchNoMap',aC+'reliance.mapping.SearchNoMap.js');B('mapping.SearchLocalization',aC+'reliance.mapping.SearchLocalization.js');B('mapping.StaticMap',aC+'reliance.mapping.StaticMap.js');B('mapping.SoldSearch',aC+'reliance.mapping.SoldSearch.js');B('mapping.ForeclosureSearch',aC+'reliance.mapping.ForeclosureSearch.js');B('pageMask',aC+'reliance.pageMask.js');B('platform',aC+'reliance.platform.js');B('SearchCriteriaManager',aC+'reliance.SearchCriteriaManager.js');B('utilities',aC+'reliance.utilities.js');B('utilities.Message',aC+'reliance.utilities.Message.js');B('xDomainHttpRequest',aC+'reliance.xDomainHttpRequest.js');B('resources.swfupload',aD+'resources/swfupload.js');B('FlashObject',aC+'deconcept.FlashObject.js');F('reliance',[['load',C],['setOnLoadCallback',D],['throwError',E],['APPLICATION_TYPE_UNDEFINED',0],['APPLICATION_TYPE_REALESTATE',1],['APPLICATION_TYPE_BUILDER',2],['APPLICATION_TYPE_MOBILEREALESTATE',3]]);F('reliance.loader',[['isValidReferer',function(){return true}],['refererIPAddress',function(){return'255.255.255.255'}],['loadFailureOccured',function(){return false}],['serviceID',function(){return 224}],['isLive',function(){return true}],['isExternal',function(){return false}],['smartHost',function(){return'www.mikesoldit.com'}],['proxyHost',function(){return'www.mikesoldit.com'}],['mediaPath',function(){return'http://content.mediastg.net/media'}],['staticPath',function(){return'http://content.mediastg.net/static'}],['primaryCompanyDomain',function(){return'remax-michigan.com'}],['siteDirectory',function(){return window.location.pathname.match(/^\/(cyberhomes|homeseekers)\/(?:.|$)/i)!=null?RegExp.$1:'remaxmi'}],['accountID',function(){return 0}],['primaryAccountDomain',function(){return'remax-michigan.com'}],['sessionID',function(){return'182709319509224168'}],['getClientID',H],['setClientID',I],['clearClientID',J],['isClientLoggedIn',K],['setIntranetAccountID',L],['version',function(){return 1}],['applicationType',function(){return reliance.APPLICATION_TYPE_REALESTATE}],['isTermMlsBanned',function(){return false}],['listingIdentifierLabel',function(){return'MLS'}],['isRemax',function(){return true}]]);G('reliance_exportSymbols',F);G('onerror',Z)})();reliance.load('event');reliance.load('browser')}