/* OnlineOpinion v4.1.7 */
/* 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 oOobj2 = new OnlineOpinion.ocode(); 

/* OnlineOpinion Object Preferences */
oOobj2.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: 'inline'
		},
		Plugins: {
			/* Configure URL Rewrite (optional) */
			URLRewrite: {
				active: false,
				regex_search_pattern: '' ,
				regex_replace_pattern: '',
				full_url_rewrite: ''
			},
			/* Configure Embedded Comment Card (optional) */
			CardOnPage: {
				enabled: false,
				close_link: ''
			}
		}
}

function tltgetCookie(name) {
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1) {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1) {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}

/* Configure Custom Variables to Accompany Survey (optional) */
oOobj2.Metrics.custom.WTID = tltgetCookie('WEBTRENDS_ID');

/*  OnlineOpinion v4.1.7, Copyright 2010 Opinionlab, Inc. */