function showcasePositionImage( img, containerWidth, containerHeight, fill, autoHeight ) { var w = img.width; var h = img.height; var ratio = w/h; autoHeight = autoHeight || false; var imgW = 0; var imgH = 0; if( autoHeight || ratio >= 1 ) { // horizontal imgW = fill? containerWidth : Math.min( containerWidth, w ); //img.style.width = imgW + "px"; //img.style.height = "auto"; imgH = Math.floor( imgW / ratio ); } else { // vertical imgH = fill? containerHeight : Math.min( containerHeight, h ); //img.style.height = imgH + "px"; //img.style.width = "auto"; imgW = Math.floor( imgH * ratio ); } if( fill ) { if( autoHeight || imgW < containerWidth ) { imgW = containerWidth; imgH = Math.floor( imgW / ratio ); } if( imgH < containerHeight ) { imgH = containerHeight; imgW = Math.floor( imgH * ratio ); } } img.style.width = imgW + "px"; img.style.height = imgH + "px"; img.style.maxWidth = imgW + "px"; // counter-act some WP themes img.style.visibility = "visible"; // center it img.style.left = Math.floor( ( containerWidth - imgW ) / 2 ) + "px"; if( autoHeight ) { img.style.top = "0"; } else { img.style.top = Math.floor( ( containerHeight - imgH ) / 2 ) + "px"; } // special case for ddf if( img.closest('.region-DDF') ) { img.style.left = '0px'; img.style.top = '0px'; } } function showcaseAutoImage( img, margin, borderWidth, fill, autoHeight ) { if( img.parentNode.offsetWidth == 0 ) { setTimeout( function() { // f** IE showcaseAutoImage( img, margin, borderWidth, fill, autoHeight ); }, 100 ); return; } if( img.src && img.src.indexOf( "/progress" ) != -1 ) { return; } /* if( !img.width || !img.height ) { return; } */ /* // bill: in FF, the original "img" appears to have incorrect non-zero width // even though the image is not loaded var tempImage = new Image(); tempImage.src = img.src; if( tempImage.width == 0 || tempImage.height == 0 ) { if(img.onload ) { // already hooked up, no go? return; } img.onload = function() { showcaseAutoImage( this, margin, borderWidth, fill, autoHeight ); }; return; } */ img.style.margin = "0"; img.style.position = "absolute"; img.style.display = "block"; img.style.visibility = "visible"; var b = isNaN( borderWidth ) ? 1 : borderWidth; var inner = img.parentNode; var outer = img.parentNode.parentNode; var outerW = outer.offsetWidth; var outerH = outer.offsetHeight; var containerWidth = outerW - margin*2 - b*2; var containerHeight = outerH - margin*2 - b*2; inner.style.width = containerWidth + "px"; if( !autoHeight ) { inner.style.height = containerHeight + "px"; } inner.style.position = "absolute"; inner.style.left = margin + "px"; inner.style.top = margin + "px"; inner.style.overflow = "hidden"; // special case for ddf if( img.closest('.region-DDF') ) { img.style.left = '0px'; img.style.top = '0px'; } //inner.style.backgroundColor = "yellow"; if( outer.style.position != "absolute" ) { outer.style.position = "relative"; } if( img.src && img.src.indexOf( "/nophoto" ) != -1 ) { //img.onclick = null; //img.style.cursor = "default"; fill = false; } var progressElem = img.parentNode.querySelectorAll( ".progress" )[0]; if( progressElem ) { progressElem.parentNode.removeNode( progressElem ); } showcasePositionImage( img, containerWidth, containerHeight, fill, autoHeight ); if( autoHeight ) { var imgH = parseInt( img.style.height ); inner.style.height = imgH + "px"; outer.style.height = imgH + (margin*2) + "px"; } } document.write( "" ); document.write( "
" ); document.write( "
" ); document.write( "
" ); document.write( "" ); document.write( "
" ); document.write( "
Listed by Your Home Sold Guaranteed Realty Ltd.
" ); document.write( "
" ); document.write( "$1,200,000" ); document.write( "
" ); document.write( "
" ); document.write( "The property is available and is sold "as is, where is". Do a drive-by first. Sold as Lot Value Only. Centrally located and close to schools, shopping, and recreation centers. Convenient access to the Shops at Morgan Crossing, restaurants, and quick access to Hwy 99, White Rock, and the US border." ); document.write( "
" ); document.write( "
" ); document.write( "" ); document.write( "
" ); document.write( "
Listed by RE/MAX City Realty
" ); document.write( "
" ); document.write( "$1,198,000" ); document.write( "
" ); document.write( "
" ); document.write( "Welcome to this updated and well kept cottage style rancher + WORKSHOP on a large 11,892 sq ft private lot located in the Hazelmere area of South Surrey. Property is located off highway 15 and is within minutes to the Pacific Border Crossing. Home features 2 bedrooms and 1 bathroom with spacious living area. Detached WORKSHOP with 12ft ceilings, attic storage, 10 ft garage door, 60 amp sub panel and 220 outlets! No strata fees! Low property taxes ALR Zoning. Own your own property plus space for small business." ); document.write( "
" ); document.write( "
" ); document.write( "" ); document.write( "
" ); document.write( "
Listed by Engel & Volkers Vancouver (Branch)
" ); document.write( "
" ); document.write( "$1,249,900" ); document.write( "
" ); document.write( "
" ); document.write( "The charm of living on the East Beach, the ocean only steps away and a home with the white picket fence! Home has been updated, features Character and is move in ready. Enjoy the coffee shops, restaurants and promenade only 1/2 block away. This home is move in ready - roof within 6 years, Vinyl windows, new kitchen and appliances, bathroom has been all redone with a large walk in shower. Plus the charm of the Old World Fir hardwood floors in the main living areas, character arch ways and a Fireplace to enjoy. A separate Laundry room at the rear that opens up to a large covered deck area that is 14x11 and over looks the grassed rear yard and gardens. Yes, and a yard for a dog or have the kids playing there. No strata fees or rules, Lots of front yard parking. Future Multi Fam potential." ); document.write( "
" ); document.write( "
" ); document.write( "" ); document.write( "
" ); document.write( "
Listed by RE/MAX Bozz Realty
" ); document.write( "
" ); document.write( "$1,248,800" ); document.write( "
" ); document.write( "
" ); document.write( "This beautiful fully renovated rancher/bungalow is located in the heart of White Rock and sits on a fully fenced corner lot. It features 3 bedrooms, 2 bathroom & 1,258 sqft of living space. Extensive renovations include new flooring, new appliances, new fireplace, new insulation, new ceiling, new bathrooms, new kitchen countertops, new cabinets, new light fixtures, new paint (interior and exterior), new shower & bathtub, AC installed, gas hook up, newer furnace, hot water tank, newer roof, BBQ outside and much more. This home is close to the White Rock Pier, Peace Arch Elementary & Earl Marriott Secondary schools, restaurants, Semiahmoo & Windsor Square Shopping Center, and the Peace Arch Hospital. You never want to miss out on this! OPEN HOUSE SAT APR 6 from 2-4 PM!!!" ); document.write( "
" ); document.write( "
" ); document.write( "
" ); document.write( "
" ); document.write( "
" );