/* Copyright 2001-2010 Terence M. Bandoian.  All rights reserved. */

var fbcoa = null; var fbcoal = 0; var fbcil = false; var fbcci = -1; var fbcam = false; var fbcac = 0; var fbcai = null; var fbcipl = 0; var fbcipt = 0; var fbcipw = 0; var fbciph = 0; var fbccpl = 0; var fbccpt = 0; var fbccpw = 0; var fbccph = 0; var fbida = null; var fbidp = null; var fbidm = null; var fbis0 = ''; var fbica1 = new Image(); var fbica2 = new Image(); var fbicpl1 = new Image(); var fbicpl2 = new Image(); var fbicnl1 = new Image(); var fbicnl2 = new Image(); var fbml = "Loading images..."; var fbma1 = "Click to start slide show."; var fbma2 = "Click to stop slide show."; var fbmn = "Click for next image."; var fbwc = null; function SlideShow() {} function fbfr() { fbfa2(); fbfa3(); window.location.reload(); } function fbo( s, b, w, h, l, i, c ) { this.n = 'fbi' + fbcoal; this.s = s; this.b = b; this.w = w; this.h = h; this.oi = fbcoal; this.il = fboil; this.li = fboli; this.sp = fbosp; this.sl = fbosl; this.hl = fbohl; l.id = this.n + 'l'; i.name = this.n; c.id = this.n + 'c'; if ( fbcoal == 0 ) { i.src = this.s; this.ls = 2; } else { i.src = fbis0; i.width = w; i.height = h; this.ls = 0; } this.l = l; this.i = i; this.c = c; if ( fbcoa == null ) fbcoa = new Array( this ); else fbcoa[ fbcoal ] = this; fbcoal = fbcoa.length; } function fboil() { return(( this.ls == 2 ) && ( this.i.complete == true )); } function fboli() { if ( this.ls == 0 ) { if ( is_ie5up ) { this.ls = 1; this.i.onload = fbfeil1; this.i.src = this.s; } else if ( is_nav6up ) { this.ls = 2; this.i.src = this.s; } else if ( is_nav4 ) { this.ls = 1; this.l.document.write( '<img src="' + this.s + '" name="' + this.n + '" border="' + this.b + '" width="' + this.w + '" height="' + this.h + '" hspace="0" vspace="0" onLoad="fbfeil2(' + this.oi + ')">' ); this.l.document.close(); this.i = this.l.document.images[ this.n ]; } } } function fbosp() { fbfpi( this.l ); fbfpc( this.c ); } function fbosl() { if ( is_ie5up || is_nav6up ) { if ( this.il() ) this.l.style.visibility = "visible"; this.c.style.visibility = "visible"; } else if ( is_nav4 ) { if ( this.il() ) this.l.visibility = "show"; this.c.visibility = "show"; } } function fbohl() { if ( is_ie5up || is_nav6up ) { this.l.style.visibility = "hidden"; this.c.style.visibility = "hidden"; } else if ( is_nav4 ) { this.l.visibility = "hide"; this.c.visibility = "hide"; } } function fbfi() { var n; var e; if ( fbcoa == null ) return; fbfscip(); fbfsccp(); for ( n = 0; n < fbcoal; n++ ) fbcoa[ n ].sp(); fbida = document.images[ 'sauto' ]; if ( is_ie5up || is_nav6up ) { e = document.getElementById( 'fbipl' ); fbfpi( e ); e.style.zIndex = 2; e.style.visibility = "visible"; fbidp = document.images[ 'fbip' ]; e = document.images[ 'fbic' ]; if ( e != null ) e.onclick = fbfecc; } else if ( is_nav4 ) { e = document.layers[ 'fbipl' ]; fbfpi( e ); e.zIndex = 2; e.visibility = "show"; fbidp = e.document.images[ 'fbip' ]; } if ( fbcci < 0 ) { fbfim(); fbfa1(); } } function fbfscip() { var e; if ( is_ie5up || is_nav6up ) { e = document.images[ 'fbih' ]; fbciph = e.height; e = document.images[ 'fbiw' ]; fbciph += e.height; fbcipw = e.width; fbcipl = 0; fbcipt = 0; while ( e != null ) { fbcipl += e.offsetLeft; fbcipt += e.offsetTop; e = e.offsetParent; } } else if ( is_nav4 ) { e = document.images[ 'fbih' ]; fbciph = e.height; e = document.images[ 'fbiw' ]; fbciph += e.height; fbcipw = e.width; fbcipl = e.x; fbcipt = e.y; } } function fbfpi( e ) { var l; var t; e.style.display = 'block'; if ( is_ie5up || is_nav6up ) { if (( e.offsetWidth > fbcipw ) || ( e.offsetHeight > fbciph )) { l = fbcipl; t = fbcipt; e.style.clip = 'rect(0px ' + fbcipw + 'px ' + fbciph + 'px 0px)'; } else { l = fbcipl + Math.floor(( fbcipw - e.offsetWidth + 1 ) / 2 ); t = fbcipt + Math.floor(( fbciph - e.offsetHeight + 1 ) / 2 ); } e.style.left = l + 'px'; e.style.top = t + 'px'; } else if ( is_nav4 ) { if ( e.clip.width > fbcipw ) e.clip.width = fbcipw; if ( e.clip.height > fbciph ) e.clip.height = fbciph; l = fbcipl + Math.floor(( fbcipw - e.clip.width + 1 ) / 2 ); t = fbcipt + Math.floor(( fbciph - e.clip.height + 1 ) / 2 ); e.moveTo( l, t ); } } function fbfsccp() { var e; var b; var r; if ( is_ie5up || is_nav6up ) { e = document.images[ 'fbct' ]; fbccpt = e.height; while ( e != null ) { fbccpt += e.offsetTop; e = e.offsetParent; } e = document.images[ 'fbcb' ]; b = 0; while ( e != null ) { b += e.offsetTop; e = e.offsetParent; } fbccph = b - fbccpt; e = document.images[ 'fbcl' ]; fbccpl = e.width; while ( e != null ) { fbccpl += e.offsetLeft; e = e.offsetParent; } e = document.images[ 'fbcr' ]; r = 0; while ( e != null ) { r += e.offsetLeft; e = e.offsetParent; } fbccpw = r - fbccpl; } else if ( is_nav4 ) { e = document.images[ 'fbct' ]; fbccpt = e.y + e.height; e = document.images[ 'fbcl' ]; fbccpl = e.x + e.width; e = document.images[ 'fbcr' ]; r = e.x; fbccpw = r - fbccpl; } } function fbfpc( e ) { var l; e.style.display = 'block'; if ( is_ie5up || is_nav6up ) { if ( e.offsetWidth > fbccpw ) { l = fbccpl; e.style.clip = 'rect(0px ' + fbccpw + 'px ' + fbccph + 'px 0px)'; } else { l = fbccpl + Math.floor(( fbccpw - e.offsetWidth + 1 ) / 2 ); } e.style.left = l + 'px'; e.style.top = fbccpt + 'px'; } else if ( is_nav4 ) { if ( e.clip.width > fbccpw ) { e.clip.width = fbccpw; l = fbccpl; } else { l = fbccpl + Math.floor(( fbccpw - e.clip.width + 1 ) / 2 ); } e.moveTo( l, fbccpt ); } } function fbfim() { if ( is_ie5up || is_nav6up ) { fbidm = document.images[ "fbcb" ]; fbfsm(); } } function fbfcm() { if ( is_ie5up || is_nav6up ) { var al = fbidm.al; var at = fbidm.at; fbfsm(); if (( al != fbidm.al ) || ( at != fbidm.at )) fbfi(); } } function fbfsm() { var e = fbidm; fbidm.al = 0; fbidm.at = 0; while ( e != null ) { fbidm.al += e.offsetLeft; fbidm.at += e.offsetTop; e = e.offsetParent; } } function fbfa() { return( fbcci >= 0 ); } function fbfeac() { if ( fbcci < 0 ) { window.status = fbml; } else if ( !fbcam ) { fbfa1(); window.status = fbma2; } else { fbfa2(); window.status = fbma1; } if ( is_nav4 ) return fbcam; return false; } function fbfeao1() { if ( fbcci < 0 ) window.status = fbml; else if ( !fbcam ) window.status = fbma1; else window.status = fbma2; return true; } function fbfeao2() { window.status = window.defaultStatus; return true; } function fbfepc() { if ( !fbcam ) { fbfri( 1 ); if ( is_ie5up || is_nav6up ) fbidp.title = ''; } else { fbfa2(); } window.status = fbmn; return false; } function fbfepo1() { if ( !fbcam ) { if ( is_ie5up || is_nav6up ) fbidp.title = fbmn; window.status = fbmn; } else { window.status = fbma2; } return true; } function fbfepo2() { window.status = window.defaultStatus; return true; } function fbfeil1() { var i; for ( i=0; i<fbcoal; i++ ) { if ( fbcoa[ i ].i == this ) { fbcoa[ i ].ls = 2; break; } } } function fbfeil2( i ) { fbcoa[ i ].ls = 2; } function fbfa1() { if ( fbcci < 0 ) { fbcci = 0; fbcac = 0; fbfri( 0 ); } else { fbcac = 10; } if ( is_ie5up || is_nav6up ) { fbida.src = fbica2.src; fbida.title = fbma2; fbidp.title = fbma2; } if ( fbcai == null ) fbcai = window.setInterval( fbfai, 500 ); fbcam = true; } function fbfa2() { if ( is_ie5up || is_nav6up ) { fbida.src = fbica1.src; fbida.title = fbma1; fbidp.title = fbmn; } fbcam = false; } function fbfa3() { if ( fbcai != null ) { window.clearInterval( fbcai ); fbcai = null; } } function fbfai() { fbfcm(); if (( fbcam ) && ( ++fbcac >= 6 )) { if ( fbfri( 1 ) ) fbcac = 0; else fbcac = 10; } else if ( !fbcil ) { fbfri( 0 ); } } function fbfri( d ) { var oi = fbcci; if ( fbcci < 0 ) return false; fbcci += d; if ( fbcci < 0 ) fbcci = fbcoal - 1; else if ( fbcci >= fbcoal ) fbcci = 0; if (( fbcam ) && ( !fbcoa[ fbcci ].il() )) { fbcci = oi; return false; } if ( oi != fbcci ) fbcoa[ oi ].hl(); fbcoa[ fbcci ].sl(); if ( !fbcil ) fbcil = fbfpl( fbcci + 1 ); return true; } function fbfpl( s ) { var i; if ( s < fbcoal ) fbcoa[ s ].li(); for ( i=0; i<fbcoal; i++ ) { if ( !fbcoa[ i ].il() ) { fbcoa[ i ].li(); return false; } } return true; } if ( is_ie5up || is_nav6up ) { window.onload = fbfi; window.onresize = fbfi; } else if ( is_nav4 ) { window.onLoad = fbfi; window.onResize = fbfr; } function fbfecc() { if ( fbcci >= 0 ) { if (( fbwc == null ) || ( fbwc.closed )) { fbwc = window.open( '', 'ListingAgentCaptureWindow', 'directories=no' + ',location=no' + ',menubar=no' + ',toolbar=yes' + ',personalbar=no' + ',status=yes' + ',scrollbars=yes' + ',width=' + (fbidp.width + 36) + ',height=' + (fbidp.height + 30) + ',resizable=yes' + ',left=0' + ',top=0' ); } if ( fbwc != null ) { var i = fbcoa[ fbcci ].i; fbwc.document.open( 'text/html', 'replace' ); fbwc.document.write( '<img src="' + i.src + '"' + ' border="0"' + ' width="' + i.width + '"' + ' height="' + i.height + '">' ); fbwc.document.close(); fbwc.focus(); } } }

/* Copyright 2001-2010 Terence M. Bandoian.  All rights reserved. */