(function() {
	/**
	 * 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
	 */
	eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5(K 8=="1a"){k 8=p L()}5(K 8.M=="1a"){8.M=p L()}5(K 8.y=="1a"){8.y=p L()}8.C=l(a,b,w,h,d,c,e,f,g,i){5(!u.V){m}4.1t=i?i:"1N";4.1u=8.M.1b(4.1t);4.1c=p L();4.W=p L();4.1d=p 1v();5(a){4.t("F",a)}5(b){4.t("G",b)}5(w){4.t("N",w)}5(h){4.t("O",h)}5(d){4.t("X",p 8.v(d.1O().P(".")))}4.Q=8.y.1w();5(!Y.1P&&u.1e&&4.Q.D>7){8.C.1x=z}5(c){4.1f("1Q",c)}k q=e?e:"1R";4.1f("1S",q);4.t("10",H);4.t("R",H);k j=(f)?f:Y.11;4.t("1y",j);4.t("12","");5(g){4.t("12",g)}};8.C.1z={10:l(a){4.1g=!a?"1T.F":a;4.t("10",z)},t:l(a,b){4.1d[a]=b},o:l(a){m 4.1d[a]},1f:l(a,b){4.1c[a]=b},1h:l(){m 4.1c},S:l(a,b){4.W[a]=b},1U:l(a){m 4.W[a]},1A:l(){m 4.W},1i:l(){k a=p 1v();k b;k c=4.1A();I(b 13 c){a[a.E]=b+"="+c[b]}m a},1B:l(){k a="";5(A.1j&&A.1k&&A.1k.E){5(4.o("R")){4.S("1C","1V");4.t("F",4.1g)}a="<1W 1X=\\"1Y/x-1Z-20\\" 22=\\""+4.o("F")+"\\" N=\\""+4.o("N")+"\\" O=\\""+4.o("O")+"\\" T=\\""+4.o("T")+"\\"";a+=" G=\\""+4.o("G")+"\\" 14=\\""+4.o("G")+"\\" ";k b=4.1h();I(k c 13 b){a+=[c]+"=\\""+b[c]+"\\" "}k d=4.1i().1D("&");5(d.E>0){a+="1E=\\""+d+"\\""}a+="/>"}15{5(4.o("R")){4.S("1C","23");4.t("F",4.1g)}a="<1F G=\\""+4.o("G")+"\\" 24=\\"25:26-27-28-29-2a\\" N=\\""+4.o("N")+"\\" O=\\""+4.o("O")+"\\" T=\\""+4.o("T")+"\\">";a+="<1l 14=\\"2b\\" 1m=\\""+4.o("F")+"\\" />";k b=4.1h();I(k c 13 b){a+="<1l 14=\\""+c+"\\" 1m=\\""+b[c]+"\\" />"}k d=4.1i().1D("&");5(d.E>0){a+="<1l 14=\\"1E\\" 1m=\\""+d+"\\" />"}a+="</1F>"}m a},2c:l(a){5(4.o("10")){k b=p 8.v([6,0,2d]);5(4.Q.16(b)&&!4.Q.16(4.o("X"))){4.t("R",z);4.S("2e",2f(4.o("1y")));u.1n=u.1n.2g(0,2h)+" - 1G 2i 2j";4.S("2k",u.1n)}}5(4.1u||4.o("R")||4.Q.16(4.o("X"))){k n=(K a=="2l")?u.V(a):a;n.2m=4.1B();m z}15{5(4.o("12")!=""){u.11.1o(4.o("12"))}$("2n").2o("2p")}m H}};8.y.1w=l(){k a=p 8.v([0,0,0]);5(A.1j&&A.1k.E){k x=A.1j["2q 1G"];5(x&&x.1H){a=p 8.v(x.1H.1o(/([a-2r-Z]|\\s)+/,"").1o(/(\\s+r|\\s+b[0-9]+)/,".").P("."))}}15{5(A.1I&&A.1I.1p("2s 2t")>=0){k b=1;k c=3;2u(b){17{c++;b=p 18("B.B."+c);a=p 8.v([c,0,0])}19(e){b=J}}}15{17{k b=p 18("B.B.7")}19(e){17{k b=p 18("B.B.6");a=p 8.v([6,0,21]);b.2v="2w"}19(e){5(a.D==6){m a}}17{b=p 18("B.B")}19(e){}}5(b!=J){a=p 8.v(b.2x("$X").P(" ")[1].P(","))}}}m a};8.v=l(a){4.D=a[0]!=J?1q(a[0]):0;4.U=a[1]!=J?1q(a[1]):0;4.1r=a[2]!=J?1q(a[2]):0};8.v.1z.16=l(a){5(4.D<a.D){m H}5(4.D>a.D){m z}5(4.U<a.U){m H}5(4.U>a.U){m z}5(4.1r<a.1r){m H}m z};8.M={1b:l(a){k q=u.11.2y||u.11.2z;5(a==J){m q}5(q){k b=q.1s(1).P("&");I(k i=0;i<b.E;i++){5(b[i].1s(0,b[i].1p("="))==a){m b[i].1s((b[i].1p("=")+1))}}}m""}};8.y.1J=l(){k a=u.2A("2B");I(k i=a.E-1;i>=0;i--){a[i].T.2C="2D";I(k x 13 a[i]){5(K a[i][x]=="l"){a[i][x]=l(){}}}}};5(8.C.1x){5(!8.1K){8.y.1L=l(){2E=l(){};2F=l(){};Y.1M("2G",8.y.1J)};Y.1M("2H",8.y.1L);8.1K=z}}5(!u.V&&u.1e){u.V=l(a){m u.1e[a]}}k 2I=8.M.1b;k 2J=8.C;k C=8.C;',62,170,'||||this|if|||deconcept||||||||||||var|function|return||getAttribute|new||||setAttribute|document|PlayerVersion|||SWFObjectUtil|true|navigator|ShockwaveFlash|SWFObject|major|length|swf|id|false|for|null|typeof|Object|util|width|height|split|installedVer|doExpressInstall|addVariable|style|minor|getElementById|variables|version|window||useExpressInstall|location|redirectUrl|in|name|else|versionIsValid|try|ActiveXObject|catch|undefined|getRequestParameter|params|attributes|all|addParam|xiSWFPath|getParams|getVariablePairs|plugins|mimeTypes|param|value|title|replace|indexOf|parseInt|rev|substring|DETECT_KEY|skipDetect|Array|getPlayerVersion|doPrepUnload|xiRedirectUrl|prototype|getVariables|getSWFHTML|MMplayerType|join|flashvars|object|Flash|description|userAgent|cleanupSWFs|unloadSet|prepUnload|attachEvent|detectflash|toString|opera|bgcolor|high|quality|expressinstall|getVariable|PlugIn|embed|type|application|shockwave|flash||src|ActiveX|classid|clsid|D27CDB6E|AE6D|11cf|96B8|444553540000|movie|write|65|MMredirectURL|escape|slice|47|Player|Installation|MMdoctitle|string|innerHTML|body|aCFHVlass|flashDisabled|Shockwave|zA|Windows|CE|while|AllowScriptAccess|always|GetVariable|search|hash|getElementsByTagName|OBJECT|display|none|__flash_unloadHandler|__flash_savedUnloadHandler|onunload|onbeforeunload|getQueryParamValue|FlashObject'.split('|'),0,{}))
	
	/**
	 *	CFHV Video Player
	 *	Copyright (c) 2009 Dealer.com.
	 */
	var videoConfig={width:640,height:500,reseller:'trader',locale:'en_CA',autoPlay:true,showPlaylist:false,allowFullScreen:false,distanceUOM:'km'},setConfig=function(a){videoConfig=extend(videoConfig,a)},parseMileage=function(a,b){if(a.toString().indexOf(' ')===-1){a=a.toString()+' '+b}return a},showPlayer=function(a,b,c,d){var e=c?('price='+c):'',mileageParam=d?('mileage='+parseMileage(d,videoConfig.distanceUOM)):'',defaultPlaylistXmlPath='http://dealersmartsolutions.com/cfhv/playlist',overlayPath='http://static.dealer.com/apps/video/player/overlays/carflix2.swf%3F'+e+((e&&mileageParam)?'%26':'')+mileageParam,settings=extend({divName:a,playlistXmlPath:defaultPlaylistXmlPath,swfId:a+'-player',swfPath:'http://static.dealer.com/apps/video/player/',overlayPath:!!(e||mileageParam)?overlayPath:''},videoConfig);if(settings.playlistXmlPath===defaultPlaylistXmlPath){settings.playlistXmlPath+='?adId='+b+'&reseller='+settings.reseller+'&locale='+settings.locale}if(DDC&&DDC.embedVideoPlayer){if(window.deconcept){window.deconcept_original=window.deconcept}if(window.SWFObject){window.SWFObject_original=window.SWFObject}window.deconcept=window.deconcept_ddc;window.SWFObject=window.SWFObject_ddc;DDC.Tracker.deploy();DDC.embedVideoPlayer(settings);window.deconcept=window.deconcept_original;window.SWFObject=window.SWFObject_original}return false},play=function(a){if(document.getElementById(a+'_flashobj')&&document.getElementById(a+'_flashobj').playMe){document.getElementById(a+'_flashobj').playMe()}},pause=function(a){if(document.getElementById(a+'_flashobj')&&document.getElementById(a+'_flashobj').pauseMe){document.getElementById(a+'_flashobj').pauseMe()}},stop=function(a){if(document.getElementById(a+'_flashobj')&&document.getElementById(a+'_flashobj').stopMe){document.getElementById(a+'_flashobj').stopMe()}},isFunction=function(a){return Object.prototype.toString.call(a)==='[object Function]'},include=function(a){var b=document.getElementsByTagName('script'),head=document.getElementsByTagName('head').item(0),script,scriptExists=false;for(var i=0;i<b.length;i++){if(b[i].src&&(b[i].src==a)){scriptExists=true}}if(!scriptExists&&a&&(a.toString().indexOf('http://')!==-1)){script=head.appendChild(document.createElement('script'));script.type='text/javascript';script.src=a.toString()}},extend=function(){var a=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(typeof a==='boolean'){deep=a;a=arguments[1]||{};i=2}if((typeof a!=='object')&&(!isFunction(a))){a={}}if(length===i){a=this;--i}for(;i<length;i++){if((options=arguments[i])!==null){for(var b in options){var c=a[b],copy=options[b];if(a===copy){continue}if(deep&&copy&&(typeof copy==='object')&&!copy.nodeType){a[b]=extend(deep,c||(copy.length!==null?[]:{}),copy)}else if(copy!==undefined){a[b]=copy}}}}return a};if(!window.DDC||!window.DDC.Tracker){include('http://static.dealer.com/common/tracker/tracker.pack.js')}if(!window.DDC||!window.DDC.embedVideoPlayer){include('http://static.dealer.com/apps/video/player/embed-video-player.js')}window.deconcept_ddc=deconcept;window.SWFObject_ddc=SWFObject;window.CFHV=window.CFHV||{};CFHV.setConfig=setConfig;CFHV.showPlayer=showPlayer;CFHV.play=play;CFHV.pause=pause;
})();
