                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

if(!window.__td){window.__MT=100;window.__ti=0;window.__td=[];window.__td.length=__MT;window.__noTrace=false;}
switchSkins=function(strElementId)
{var oElement=vp.ui.get(strElementId);var unselectedSkin=vp.http.parseJSON(oElement.getAttribute("unactive-skin-data"));var oStylizedContainer;for(i=0;i<oElement.childNodes.length;i++)
{oStylizedContainer=oElement.childNodes[i];if(oStylizedContainer&&oStylizedContainer.getAttribute&&oStylizedContainer.getAttribute("skin-data")!==null)
{break;}}
if(!oStylizedContainer)
{alert('waa wa wee wah!');}
oElement.setAttribute("unactive-skin-data",oStylizedContainer.getAttribute("skin-data"));var selectedSkin=vp.http.parseJSON(oStylizedContainer.getAttribute("skin-data"));oStylizedContainer.setAttribute("skin-data",vp.http.serializeJSON(unselectedSkin));vp.controls.StylizedContainer.rerender(oStylizedContainer);};updateKit=function(sectionElementId,kitId){var detailsLink=vp.ui.get("aVhubDetails{0}".format(sectionElementId));for(i=0;i<detailsLink.childNodes.length;i++)
{if(detailsLink.childNodes[i].nodeName=='A')
{var detailsUrl=new vp.web.URL(detailsLink.childNodes[i].href);detailsUrl.setItem("kit_id",kitId);detailsLink.childNodes[i].href=detailsUrl.toString();}}
var getStartedLink=vp.ui.get("aVhubTeaserGetStarted{0}".format(sectionElementId));var startedUrl=new vp.web.URL(getStartedLink.href);startedUrl.setItem("kit_id",kitId);getStartedLink.href=startedUrl.toString();};updateSampleCopy=function(e){e=vp.events.getEvent(e);value=e.target.value;categoryHandler=function(){if(this.attributes["category"].value==this.attributes["current-category"].value){this.style.display='block';}
else{this.style.display='none';}};$('.category-section').attr("current-category",value);$('.category-section').each(categoryHandler);};openOptInPop=function(iProfileQuestionId,sTitle,bSkipToThanks){var signUpUrl;if(bSkipToThanks){signUpUrl="/offer-sign-up.aspx?pq={0}&thanks=1".format(iProfileQuestionId);}
else{signUpUrl="/offer-sign-up.aspx?pq={0}&email={1}".format(iProfileQuestionId,document.frmPage.email.value);}
signUpUrl+="&version="+(new Date()).valueOf();var dialog=vp.dialog.IFrameDialog.open("optIn",sTitle,signUpUrl,vp.dialog.chrome.Primary,425,300,{scrollType:'DIALOG_SCROLL_TYPE_NONE'});};optInCheckForSubmit=function(e){e=vp.events.getEvent(e);var submitBtn=vp.ui.get('optInSubmit');if(e.keyCode==13&&submitBtn){submitBtn.click();vp.events.cancel(e);}};if(typeof vp=="undefined"){var vp={};}
if(typeof vp.vhub=="undefined"){vp.vhub={};}
vp.vhub.slideTime=7500;vp.vhub.marqueeSlides=new Array();vp.vhub.currentSlide=0;vp.vhub.slideMarquee=function vhub_slideMarquee(){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(vp.vhub.marqueeSlides.length>1){vp.ui.get('imgVhubMarquee').src=vp.vhub.marqueeSlides[vp.vhub.currentSlide];vp.vhub.currentSlide++;if(vp.vhub.currentSlide==vp.vhub.marqueeSlides.length){vp.vhub.currentSlide=0;}
setTimeout("vp.vhub.slideMarquee()",vp.vhub.slideTime);}};