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/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 );
item["current"] = true;
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/8xnoayJrWLhnETkbm-u4fkPLfs9vhGCeJjQtfTyVW9k/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzQvMS80LzkyNjI4NDE0LzhkYzQwMDhjOGRkMGViZWViZWQ3YjI3MDhlNmFhOTg0LmpwZWc";
item["url"] = "mylistings-92628414.property";
item["desc"] = "$748,000 : 307 1858 W 5TH Avenue Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/92628414/img/ribbon/custom-banner?txt=Sold&c=0xF80000";
item["recipLogo"] = "";
item["attribution"] = "Listed by RE/MAX Crest Realty and RE/MAX Select Properties";
mrp_slideroll_images_50893.push( item );
var item = {};
item["img"] = new Image();
item["img"].src = "https://iss-cdn.myrealpage.com/2ygNrPPnKQbPfGI-cT1gucVwXfkZF-hi4ArxK1BQfoI/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzgvMy82LzkyMzcwNjM4L2E2NDI3MWUwMTRhMTYyYjliN2NkODkwNTk3MGIzNmQ3LmpwZWc";
item["url"] = "mylistings-92370638.property";
item["desc"] = "$699,000 : 106 1868 W 5TH Avenue Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/92370638/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/1BsSDnJe3qNAirW-s-aErbzZUd-9NRHrpytGGLZL3q4/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzcvNS8yLzkyMTQ3MjU3LzEwZDI3YmU3ZWEwMmVmY2FjZmMzZjdkZjQ3YmNkMzVlLmpwZWc";
item["url"] = "mylistings-92147257.property";
item["desc"] = "$649,000 : 556 168 W 1ST Avenue Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/92147257/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/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/d20Jjo4IxpxpM8RSCQT31ooA0wjEg10hLS6IKuLqmRE/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzEvNi85LzkxODQxOTYxLzFkZTZmNDRhMjdiYmYwZjFlODE0N2RmNTM5OWVlMWViLmpwZWc";
item["url"] = "mylistings-91841961.property";
item["desc"] = "$699,000 : 500 1226 HAMILTON Street Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/91841961/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/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/32i2wCxCI6VeS8Z8v2A2-IL03pcZHXNYILG_FIyyoqU/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzAvMi8zLzkzNDEwMzIwLzM3ZmYwMGNlZDllODljNTAxZWM2NDhkZmRlMmE5OTA4LmpwZw";
item["url"] = "mylistings-93410320.property";
item["desc"] = "$[***] /mth : xxx 2288 West Broadway Vancouver";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/93410320/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/vTI5lLmcDdxenq7v93C1XZ9a65j1yO10ndmqvpAcScw/rs:auto:0:0:0/g:sm/aHR0cDovL3MzLmFtYXpvbmF3cy5jb20vbXJwLWxpc3RpbmdzLzgvOS8wLzg5NDcxMDk4LzFjZDMyNzQwZDliNGM4ZjRlODQxMjM5ZTkxZGZjOWNhLmpwZWc";
item["url"] = "mylistings-89471098.property";
item["desc"] = "$475,000 : 2702 1188 PINETREE Way Coquitlam";
item["banner"] = "//res.myrealpage.com/wps/rest/29049/l/showcase/89471098/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/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 );
document.write( "