	//Custom survey launch for tmobile

	var survey = new VoviciWebInterceptSurvey();

	// This is the Nth visitor to invite. set to 1 if  you want every visitor invited
	survey.NthVisitorToInvite = 5;

	// An exit survey watcher can be launched instead of a survey itself
	//survey.SurveyUrl = "";
	survey.ExitSurveyUrl = "http://www.spasurveys.com/se.ashx?s=251137452FE653FF";

	// Take the survey immediately if popups are blocked
	survey.FailoverToLayerWhenPopupsBlocked = false;

	// We want to send the current URL in the survey invite
	survey.AddUrlParameter('&page', document.location.href);

	// REQUIRED if launcing an exit survey
	// This must match the name/path to the VoviciSurveyInvite.js on your
	// system so the watcher window and load it
	survey.WatcherJavascriptUrl = '/common/js/VoviciSurveyInvite.js';

	// Domains the cookie is valid for. Defaults to the current domain
	// Examples: www.example.com
	//	     example.com  (all subdomains too)
	// empty means the current domain
	survey.CookieDomain = '';

	// How long should the cookie last?
	// 0 or '' - Default is a session cookie and expires when you close the browser.
	// 'today' - for the rest of the day
	// number - Otherwise specify the number of minutes (1440 in a day)
	survey.CookieDuration = '43200';

	// Cookie Value.
	survey.CookieValue = "1";

	// The survey invite can be displayes as a 'popup' or a 'layer'
	survey.InviteStyle = 'layer';

	// if using a layer, the layer html, ids for the yes and no buttons, and size/position can be tuned
	survey.SurveyPromptDivInnerHtml = ''
		+ '<div id="VoviciSurveyPrompt" style="color:#5f5f5f;position:absolute;top:170px;left:40%;width:320px;height:228px;font-family:Arial, Helvetica, sans-serif;font-size:11px;padding:0;margin:0;z-index:8000;">'
		+ '<div style="background-image:url(/common/img/bg-image-top.gif);background-repeat:no-repeat;height:18px;"></div>'
		+ '<div style="background-image:url(/common/img/bg-image-mid.gif);background-repeat:no-repeat;background-color:#e4e4e4;border-left:#bfbfbf 1px solid;border-right:#686868 3px solid;min-height:150px;padding:0 10px 0 20px;">'
		+ '<div style="position:relative;color:#e20074;font-size:18px;font-weight:normal;margin:0;padding:0;line-height:normal;top:-6px;">What do you think?</div>'
		+ '<p style="margin:0;padding:6px 0 10px 0;">We&rsquo;d like to know what you think of our website. You can help us by filling in a short survey after your visit today. <br><br>The survey will only take a few minutes and should be completed after your visit.<br><br>Your answers will only be used to help improve this website and will remain completely anonymous. Thank you!</p>'
		+ '<p style="margin:0;padding:14px 0 0 0;">'
		+ '<button id="VoviciSurveyPromptYesButton" onclick="survey.CheckForInvite();" style="background-image:url(/common/img/btn_survey.gif);background-repeat:no-repeat;height:23px;width:100px;color:#ffffff;font-size:10px;font-weight:bold;border:none;margin-right:10px;">Yes</button>'
		+ '<button id="VoviciSurveyPromptNoButton" style="background-image:url(/common/img/btn_survey.gif);background-repeat:no-repeat;height:23px;width:100px;color:#ffffff;font-size:10px;font-weight:bold;border:none;">No, thanks</button>'
		+ '</p>'
		+ '</div>'
		+ '<div style="background-image:url(/common/img/bg-image-bot.gif);background-repeat:no-repeat;height:17px;"></div>'
		+ '</div>';

	// This needs to match the ids used in the SurveyPromptDivInnerHtml
	survey.SurveyPromptDivName = "VoviciSurveyPrompt";
	survey.SurveyPromptDivYesButtonId = "VoviciSurveyPromptYesButton";
	survey.SurveyPromptDivNoButtonId = "VoviciSurveyPromptNoButton";

	// Size the SurveyPromptDiv
	survey.SurveyPromptDivWidth = 320;
	survey.SurveyPromptDivHeight = 228;

	//Position the SurveyPromptDiv
	survey.SurveyPromptDivLeftOffset = 500;
	survey.SurveyPromptDivTopOffset = 150;

	// If SurveyInNewWindow is true, or launching an exit survey
	survey.SurveyWindowWidth = 785;
	survey.SurveyWindowHeight = 700;

	//Position the survey window
	survey.SurveyWindowLeftOffset = 100;
	survey.SurveyWindowTopOffset = 100;
	survey.SurveyWindowDecorationOptions = "scrollbars=yes, resizable=true, location=no, toolbar=no, menubar=no";

	// If we display the survey on a layer (when popups blocked)
	survey.SurveyFrameName = "VoviciSurveyFrameOuterDiv";
    survey.SurveyInnerFrameName = "VoviciSurveyFrameInnerDiv";
    survey.SurveyDisplayFrameInnerHtml = '<div id="' + survey.SurveyFrameName + '" style="background-color:#FFFFFF;border: 1px solid #000000;width:785px; height:700px">'
                + '  <div id="' + survey.SurveyPromptDivNoButtonId + '" style="text-align:right; color: black; font: normal 10px arial, helvetica, sans-serif;"><div style="text-align:left;"> Your browser is set to block the exit survey.  Please complete the survey now </div>[Close]</div>'
                + '<div id="' + survey.SurveyInnerFrameName + '" ></div>'
                + '</div>';

	// This kicks off the survey. It will load itself on window.onload
	//survey.DebuggingEnabled(true);
	
	survey.Load();
	//survey.TestLoad();

