function hex2num(C){if(C.charAt(0)=="#"){C=C.slice(1)}C=C.toUpperCase();var D=new Array(3);var A=0;for(var B=0;B<6;B+=2){c1=C.charAt(B);c2=C.charAt(B+1);D[A]=parseInt(c1+""+c2,16);A++}return(D)}function bgGradient(K,J){var C=new Array(3);var L=new Array(3);var B=new Array(3);var D=new Array(3);var A=0;var I=1;var M=2;C=hex2num("#"+K);L=hex2num("#"+J);var D=new Array(3);for(var G=0;G<3;G++){D[G]=(L[G]-C[G])/256}B=C;var F=document.getElementById("tpl_bg_gradx");if(F){F.style.visibility="hidden";F.innerHTML=""}else{F=document.createElement("div");F.style.visibility="hidden";F.style.top="0px";F.style.height="255px";F.style.position="absolute";F.style.left="0px";F.style.width="100%";F.id="tpl_bg_gradx"}var H="";for(var G=0;G<255;G++){for(var E=0;E<3;E++){B[E]=B[E]+D[E]}H+='
 
'}F.innerHTML=H;var N=document.getElementById("tpl_h_body");N.appendChild(F);F.style.visibility="visible"};
var loadInitialItems=function(C,A){var D=A[0];var B=A[1];_makeRequest(this,D,(B-D+1)*3,1)};var loadNextItems=function(C,A){var E=A[0];var B=A[1];var D=A[2];this.stopAutoPlay();if(!D){makeRequest(this,E,(B-E+1)*3)}};var loadPrevItems=function(C,A){var E=A[0];var B=A[1];var D=A[2];this.stopAutoPlay();if(!D){makeRequest(this,E,(B-E+1)*3)}};var handlePrevButtonState=function(D,B){var C=B[0];var F=B[1];var E=this.getProperty("orientation")=="vertical"?"up":"left";var A="http://mls.concepts.ca/module_images/arrow_blue_";if(C){F.src=A+E+".gif"}else{F.src=A+E+"_inactive.gif"}};var handleNextButtonState=function(E,C){var D=C[0];var A=C[1];var F=this.getProperty("orientation")=="vertical"?"down":"right";var B="http://mls.concepts.ca/module_images/arrow_blue_";if(D){A.src=B+F+".gif"}else{A.src=B+F+"_inactive.gif"}};var animItemsComplete=function(B,A){};var pageLoad=function(){var G=YAHOO.util.Dom.getElementsByClassName("carousel-component","div","tpl_h_main");kr=3;for(var D=0;D0){var L=Y._carouselElemID.substring(14);var T=document.getElementById("lgal_frame_"+L);T.style.display="";T.style.visibility="visible"}Y.setProperty("size",Q,true);if(Q==0){var L=Y._carouselElemID.substring(14);var T=document.getElementById("lgal_frame_"+L);T.style.display="none"}}var S=Z.split("|^");for(var a=0;a
'+O+""+Q+"
";return N};var H={success:I,failure:C,argument:[B,E,J,G],timeout:10000};var A="/rgal.php?mls=toronto&uid="+cuid+"&cid="+J._carouselElemID.substring(14)+"&lb="+B+"&nr="+E;if(G==1){A=A+"&f=1"}var F="data=";YAHOO.util.Connect.asyncRequest("POST",A,H,F)};
/**
* SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
*/
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="