Refer a Friend

.main-content .page-width{padding-left:1px;padding-right:1px;max-width:unset;}var frameWindow=document.getElementById(‘vl_iframe’).contentWindow;var eventMethod=window.addEventListener?’addEventListener’:’attachEvent’;var eventer=window[eventMethod];var messageEvent=eventMethod==’attachEvent’?’onmessage’:’message’;eventer(messageEvent,function(e){if(e.data&&e.data.action===’vl_height’&&e.data.height){document.getElementById(‘vl_iframe’).style.height=e.data.height+’px’}else if(e.data&&e.data.action===’vl_request_user’){sendUser();sendReferrer()}},!1);function sendUser(){if(!window.campaign){setTimeout(sendUser,200)}else if(!window.campaign.runStage||window.campaign.runStage===’preIdentify’){window.campaign.addHook(‘stageChange’,sendUser)}else if(window.campaign.runStage===’postIdentify’){frameWindow.postMessage({action:’vl_user’,campaign:{user:window.campaign.user}},’*’)}};function sendReferrer(){if(!window.campaign||!window.campaign.referrer){setTimeout(sendReferrer,200)}else{frameWindow.postMessage({action:’vl_referrer’,campaign:{referrer:window.campaign.referrer}},’*’)}};window.logoutVL=function(){if(window.campaign){campaign.logout({callback:function(){frameWindow.postMessage({action:’vl_logout’},’*’)}})}};