                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                if(!window.__td){window.__MT=100;window.__ti=0;window.__td=[];window.__td.length=window.__MT;window.__noTrace=false;}



if(typeof(vp)=="undefined")
{
var vp={};
}

if(typeof vp.controls=="undefined")
{
vp.controls={};
}




vp.controls.ColorSelector=function $vpfn_lbecM$4pX8GZmNYzwa_Yrw18$28(sId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.id=sId;

this.clickHandlers=new Array();







this.setHandler=function $vpfn_E6uVcmvXvA7GNsWk6KvEzw30$22(sSwatchBoxId,iColor,fnHandler)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.clickHandlers[sSwatchBoxId]=fnHandler;
};





this.updatePresentation=function $vpfn_JdGJtK7sQUzNscgdXIuLVQ39$30(sSwatchBoxId,iColor)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
return;
};






this.click=function $vpfn_pc9ejbsdWLB3YeuPpoPJnw49$17(sSwatchBoxId,iColor)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
this.updatePresentation(sSwatchBoxId,iColor);


var f=this.clickHandlers[sSwatchBoxId];
if(f!=undefined)
{
f(iColor,sId);
}
};
};




vp.controls.ColorSelectorManager=new(function $vpfn_YN19tGOV97wJOLUD5s$_EA65$40()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}

this.selectors=new Array();





this.registerSelector=function $vpfn_AIpdalcSKgdZsw4pOtR8tQ74$25(sId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(this.selectors[sId]==undefined)
{
this.selectors[sId]=new vp.controls.ColorSelector(sId);
}
return this.selectors[sId];
};







this.registerSwatch=function $vpfn_8nPX0O4kVZm2gS3uV7DTIg89$23(sId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(this.selectors[sId]==undefined)
{
this.selectors[sId]=new vp.controls.ColorSelectorSwatch(sId);
}
return this.selectors[sId];
};






this.getSelector=function $vpfn_i6g7RAWR5Ne2vWtBLC2tDw103$20(sId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
return this.selectors[sId];
};
})();


