/* OnlineOpinion v4.1.5 */
/* This product and other products of OpinionLab, Inc. are protected by U.S. Patent No. 6606581, 6421724, 6785717 B1 and other patents pending. */

/* Create new OnlineOpinion Object instance */
var oOobj1 = new OnlineOpinion.ocode(); 
/* OnlineOpinion Object Preferences */
oOobj1.Preferences = {
		/* Configure Object Persitence (REQUIRED) */
		Persistence: {
			enabled: true, 				// Disapear onClick
			cookie_name: 'oo_r',		// cookie name 
			cookie_type: 'page', 		// Remembers which page got rated
			expiration: 3600	 		// How long to remember each page got Rated (in secs)
		},
		/* Configure Object Parameters (REQUIRED) */
		Render: {
			type: 'floating',
			main_div_id: 'oo_feedback_float',
			main_content_id: "ExpHeader",		// Determines ID float style references as content
			float_style: "fixedPreserveContent", 			// Can be set to "rightOfContent" or "fixedPreserveContent"
			img_path: '/pubspec/scripts/include/opinionlab/oo_black.gif',
			feedback_html: 'Respons',
			click_html: 'Klik hier om ons respons te geven.'
		},
		Plugins: {
			/* Configure URL Rewrite (optional)  */
			URLRewrite: {
				active: true,
				regex_search_pattern: /(\/\/)|(\/[^\/]+?$)/g,
				regex_replace_pattern: function(m){switch(m){case '//':return '//nl-be.';default:return "/" + s_pageName + '.html';}},
				full_url_rewrite: ''
			},
			
			/* oOobj1.Preferences.Plugins.URLRewrite = {
				active: true,
				regex_search_pattern: /^(https?):\/\/([-a-zA-Z0-9.]+)\/(.*$)/i,
				regex_replace_pattern: '$1://$2/'
			};

			if (typeof(bIsCAFR) != 'undefined' && bIsCAFR) 
				oOobj1.Preferences.Plugins.URLRewrite.regex_replace_pattern = '$1://fr-CA.$2/'; */
				
			/* Configure Embedded Comment Card (optional) */
			CardOnPage: {
				enabled: false,
				close_link: ''
			}
		}
}


/* Configure Custom Variables to Accompany Survey (optional) */
// oOobj1.Metrics.custom.clientID = 1234;
// oOobj1.Metrics.custom.countryCode = 'usa';
// http://fr-BE.homepage.htmlextranet.opinionlab.com/clients/expedia/OO4S_be_float_fr.htm
// And what we need is:
// http://fr-BE.extranet.opinionlab.com/clients/expedia/OO4S_be_float_fr.htmhomepage.html

if (typeof(s_exp) != 'undefined') {
 oOobj1.Metrics.custom.t = s_exp.prop11;
 oOobj1.Metrics.custom.g = s_exp.prop12;
  // oOobj1.Preferences.Plugins.URLRewrite.regex_replace_pattern += s_exp.pageName + '.html';
} else {
 if (typeof(s_prop11) != 'undefined') {
   oOobj1.Metrics.custom.t = s_prop11;
 } else {
   oOobj1.Metrics.custom.t = '';
 }
 if (typeof(s_prop12) != 'undefined') {
   oOobj1.Metrics.custom.g = s_prop12;
 } else {
   oOobj1.Metrics.custom.g = '';
 }
 // if (typeof(s_pageName) != 'undefined') 
    // oOobj1.Preferences.Plugins.URLRewrite.regex_replace_pattern += s_pageName + '.html';
}

/* Object Registration (REQUIRED for [+] Floating Icon) */
OnlineOpinion.util.SafeAddOnLoadEvent(function(){oOobj1.render(function(){oOobj1.show()})});

/*  OnlineOpinion v4.1.5, Copyright 2009 Opinionlab, Inc. */