// OnlineOpinion v4.0
// This product and other products of OpinionLab, Inc. are protected by U.S. Patent No. 6606581, 6421724, 6785717 B1 and other patents pending.

var oOobj4 = new OnlineOpinion.ocode(); 

// Preferences for ASM
oOobj4.Preferences = {
		Persistence: {
			enabled: false, 	// Disapear onClick
			cookie_name: 'oo_asm',	// ASM cookie name (not to conflict with OO)
			cookie_page: true, 	// Remembers which page was served
			expiration: 777600000  // How long to remember each page was served (in millisecs) => 90 days
		},
		Render: {
			type: 'event'
		},
		Plugins: {
			URLRewrite: {
				active: true,
				regex_search_pattern: /:\/\/.*/g ,
				regex_replace_pattern: '://survey.digitalwpc.com/entrysurvey.html' // Static rewrite, no page
			},
			Events: {
				poE: 0.0,	// Probability on Entry
				poX: 0.0,	// Probability on Exit
				poX: 0.0, // Probability on Exit
				poC: 0.01,	// Probability on Click
				poWC: 0.0	// Probability on Browser Window/Tab Close
			}
		}
}

// Custom variables (optional)
// oOobj4.Metrics.custom.clientID = 1234;
// oOobj4.Metrics.custom.countryCode = 'usa';

// Call Back

// OnEntry
 OnlineOpinion.util.SafeAddOnLoadEvent(function(){oOobj4.init();oOobj4.onEntry()});

// OnExit
 OnlineOpinion.util.SafeAddOnUnLoadEvent(function() { oOobj4.onExit() });

// OnSiteExit
// OnlineOpinion.util.SafeAddOnLoadEvent(function(){oOobj4.init();oOobj4.onEntry();OnlineOpinion.util.walkAnchors(document.body, 10, /^(https:\/\/partner\.microsoft\.com)/i, oOobj4)});

 // OnClick = simply add >> onClick="oOobj4.OnClick()" to any obj on the page
// OnlineOpinion v4.0, Copyright 2008 Opinionlab, Inc.