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";
}
}
var mrp_slideroll_images_50893 = [];
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/zBHaxKtNJeMFv3WDzdvCYZeV9GknB8uUe7cQYZse8ZM/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzUvNi8yLzEwNjI0OTI2NS82M2NkMTA4YzY5NjdmMjc3Mjc1OWExZjE0Y2FmYjVmMi5qcGVn";
item["url"] = "mylistings-106249265.property";
item["desc"] = "$499,000 : 2610 63 Keefer Place Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/106249265/img/ribbon/custom-banner?txt=For+Sale&c=#4a90e2";
item["recipLogo"] = "";
item["attribution"] = "Listed by Sutton Group-West Coast Realty";
mrp_slideroll_images_50893.push( item );
item["current"] = true;
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/ZdomrCfgzmpTnWJJ1pU7aRZW2c3UzVyipTekGT0Z5lI/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzYvMC85LzEwMDM1NzkwNi9jZDMxMDM1NjZmZjdkYzY4NWViNmI0NTY2Yzg4ZjY1YS5qcGc";
item["url"] = "mylistings-100357906.property";
item["desc"] = "$3,250 /mth : 345 Water Street Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/100357906/img/ribbon/custom-banner?txt=For+Rent&c=#1f993b";
item["recipLogo"] = "";
item["attribution"] = "RE/MAX CREST WESTSIDE (VANW7)";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/yGEOSKdKddSfkGviNAkvabi4UFRjwYfyVRmZ7YzzlAY/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzkvMC8zLzEwMTI1NTMwOS8zMTk1MjMxZjRkOTU4OWE5MjBiNmM4NDk4MWFjY2NjZC5qcGVn";
item["url"] = "mylistings-101255309.property";
item["desc"] = "$2,300 /mth : 6xx 1010 Howe Street Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/101255309/img/ribbon/custom-banner?txt=For+Rent&c=#1f993b";
item["recipLogo"] = "";
item["attribution"] = "Sutton Group - West Coast Realty";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/Pjn0Na5xmSrJ8uzff3zuocUnTGu7ciWd9oNU983-Kmo/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzkvNC85LzEwNTc3MTk0OS9kNDBkNjg5ODJiMDA1MWU4NWE3OTQxYTVhN2NiN2U3Ny5qcGVn";
item["url"] = "mylistings-105771949.property";
item["desc"] = " : 505 4675 Cambie Street Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/105771949/img/ribbon/custom-banner?txt=Sold&c=#d0021b";
item["recipLogo"] = "";
item["attribution"] = "Listed by Sutton Group-West Coast Realty";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/jtSc9qdKRCxDJ7wha4nEonUIk1d13ni1YurIAZetGQ4/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzcvMi8yLzEwNjI1MjIyNy9mODg5MjU0ZmM5N2M0NzA0ZTdjY2RjYzAzOTYzM2Q0Ny5qcGc";
item["url"] = "mylistings-106252227.property";
item["desc"] = "$[***] /month : xxx 2288 West Broadway Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/106252227/img/ribbon/custom-banner?txt=Rented&c=#d0021b";
item["recipLogo"] = "";
item["attribution"] = "Listed by RE/MAX CREST WESTSIDE (VANW7)";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/xykHHQJRHdCuSlY0mYPX-BkdvABWu-6o-G-7y8pahWc/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzAvMS8yLzEwNDk3NTIxMC8zNjZmMDlmNTA1ZWVjN2YyY2Q3Yzc1NDI0YjY5ODY0OS5qcGVn";
item["url"] = "mylistings-104975210.property";
item["desc"] = "$928,000 : 511 7169 14TH AVENUE, Burnaby BC V3N 0H6 Burnaby";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/104975210/img/ribbon/custom-banner?txt=Sold&c=#d0021b";
item["recipLogo"] = "";
item["attribution"] = "Listed by: Sutton Group-West Coast Realty";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/IXF171EVvBnNVe2uq0R36ZhVbWPvgnbIem0LJz1QbEM/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzQvMi85Lzc4OTE4OTI0LzE1ZTA3NjIyMmM4OTcyMzIyOWU0YjFhZDdmNjMzZDU4LmpwZw";
item["url"] = "mylistings-78918924.property";
item["desc"] = "$[***] /mth : 555 W 14TH AV Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/78918924/img/ribbon/custom-banner?txt=Rented&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "RE/MAX All Points Realty Grp.";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/VEk--eCIuN1sXJakk_Z5grfup_6u60efXbIf95Ivju4/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzEvNi8yLzEwMDk4NzI2MS8zMjkxOWE0ZmM4NjRhODgzZDZhMGFhOTI1YjA5NmJiOC5qcGVn";
item["url"] = "mylistings-100987261.property";
item["desc"] = "$4,498,000 : 868 YOUNETTE DRIVE West Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/100987261/img/ribbon/sold-banner";
item["recipLogo"] = "";
item["attribution"] = "Rennie & Associates Realty - Jason Soprovich";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/4Su-KwvsELtn7Rr1UaM38YtVlqPrcz1uOvDAOy6D2r8/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzIvMC82LzkxMzQxNjAyLzYzZTg1OGY0MDc5M2I5MTBjYzFlZDg3YWY1OWQ4NzE3LmpwZWc";
item["url"] = "mylistings-91341602.property";
item["desc"] = "$1,788,888 : 1201 1835 MORTON AVENUE Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/91341602/img/ribbon/custom-banner?txt=Sold&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "Macdonald Realty";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/uJq0OwvjQkVk4UVkCjU3pcllZ0mazPE4mCRTmLPhGOM/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzYvMS81LzEwNDk0MjUxNi9lNzRiMTgwNWUxY2YzMWM4NGE0MzMxNjhkZjRjNDI5Yi5qcGVn";
item["url"] = "mylistings-104942516.property";
item["desc"] = "$624,000 : 1101 1199 SEYMOUR STREET Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/104942516/img/ribbon/custom-banner?txt=Sold&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "Listed by RE/MAX Crest Realty";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/UFuVueGhlRWodRceb9QMcX7vVrZIiYzK4Oew7h1YTgM/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzkvOC8wLzgzNzgyMDg5LzNmMzI3ODRkODM0YTM3ZmY0MWVkYzQzNjkzOGIzYmVkLmpwZw";
item["url"] = "mylistings-83782089.property";
item["desc"] = "$[***] mth : 311 E 16 Avenue Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/83782089/img/ribbon/custom-banner?txt=Rented&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "Listed by RE/MAX CREST WESTSIDE (VANW7)";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/sv8uOaQ-4lZw7FAN3zFKJi4kr-KDNNXNe6DSCs0W5lk/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzQvMy8xLzkzMDAxMTM0Lzc2NDJjMTRjMzIyZDcwYmUxNTk1YzVhYTRhOTViMTQ1LmpwZWc";
item["url"] = "mylistings-93001134.property";
item["desc"] = "$2,199,000 : 2705 W 5TH AVENUE Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/93001134/img/ribbon/custom-banner?txt=Sold&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "One Percent Realty Ltd.";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/nROEByp6P11vsdipYB0zvBargwL2z9eCkiHAmN4odlI/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzQvNy8wLzgwODg1MDc0LzUwNjMwODhkZGYwNzVjZWU1YTI0ZmZhOTRmMjhhZjM5LkpQRw";
item["url"] = "mylistings-80885074.property";
item["desc"] = "$[***] / mth : Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/80885074/img/ribbon/custom-banner?txt=Rented&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "Listed by RE/MAX CREST WESTSIDE (VANW7)";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/K_0upXNqjmVHDFnp_coTG4YkXT_H1R9Y5DX8rOtzkk8/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzgvNi8wLzkzMTEzMDY4LzI5M2VkMTRkYmUyODU1N2RiYzdlOTFhODE2ZGFmYTAxLmpwZWc";
item["url"] = "mylistings-93113068.property";
item["desc"] = "$808,000 : 2509 6538 NELSON AVENUE Burnaby";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/93113068/img/ribbon/custom-banner?txt=Sold&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "Macdonald Realty Westmar";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/P846FfRcq0t-ZSMQiOaGYqWsqcd7tCyVJK7sbcmTk4M/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzAvNi8wLzkzMTEzMDYwLzQwN2Y0MGJlNWFiNmM2NWFmOTNlODQ2MmU2MzE4YTdlLmpwZw";
item["url"] = "mylistings-93113060.property";
item["desc"] = "$498,500 : 401 2173 W 6TH Avenue Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/93113060/img/ribbon/custom-banner?txt=Sold&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "RE/MAX CREST WESTSIDE (VANW7)";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/grpAhvUJ-rsQCHXuw0kbPHkCp7dKFTsXxyuwu7zgPHk/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzUvMC81LzEwNDk0MjUwNS8xNjQ2NDkxMjUzMzE2OWMxNTkwNDUwNDI3OWVhZTcyMy5qcGVn";
item["url"] = "mylistings-104942505.property";
item["desc"] = "$924,000 : 902 1165 BURNABY STREET Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/104942505/img/ribbon/sold-banner";
item["recipLogo"] = "";
item["attribution"] = "Listed by RE/MAX Crest Realty";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/Ri3r_Hgz8jIl8BL9y7Z-9U-_15O5UwYU9Na8fMeB3AM/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzUvMy85LzkxMDEzOTM1Lzk2MmE2ZjA5Nzc1NDdlZmU5MGM4YjlhMTcxMTAyOWI4LmpwZWc";
item["url"] = "mylistings-91013935.property";
item["desc"] = "$739,999 : 204 2638 ASH STREET Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/91013935/img/ribbon/custom-banner?txt=Sold&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "Birds Nest Properties";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/lPjY5y7HaAxWATAcEDzMX5Wpzrc8kBe07AnGpXz33WY/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzkvMi8yLzkwNDk3MjI5LzRmZDE1YTg5NTdiMTNhNTAwMzA2ODFhYmRlYzU2ZmYwLmpwZWc";
item["url"] = "mylistings-90497229.property";
item["desc"] = "$1,550,000 : 1545 TRAFALGAR STREET Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/90497229/img/ribbon/custom-banner?txt=Sold&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "Stilhavn Real Estate Services";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/vV73rsAsz5pRjgVGm0_OlkqUEAEpBQAHRRajoLgY1vw/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzMvNC85LzkwMjQzOTQzLzhmMDRiM2IyZGY0NWYyYzcxMzkxZWQ1MjliZjJjZjE0LmpwZWc";
item["url"] = "mylistings-90243943.property";
item["desc"] = "$1,399,000 : 1001 1171 JERVIS STREET Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/90243943/img/ribbon/custom-banner?txt=Sold&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "Oakwyn Realty Ltd.";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/DCA8d2a1k9gaC3S1Dw8BGdmd2bpMMdN82L7iwnKU2Bs/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzkvMy8zLzg0OTEwMzM5L2EzNGM4OGEwYzZkZmJjN2Y0ZDZiMTk3Mzk4MGQyNTJkLkpQRw";
item["url"] = "mylistings-84910339.property";
item["desc"] = "$3,342 /mth : 2805 583 Beach Crescent Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/84910339/img/ribbon/custom-banner?txt=Rented&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "Listed by RE/MAX CREST WESTSIDE (VANW7)";
mrp_slideroll_images_50893.push( item );
document.write( "