/* 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: "site_wrapper",	// Determines ID float style references as content
			float_style: "rightOfContent", 			// Can be set to "rightOfContent" or "fixedPreserveContent"
			img_path: '/resources/opinionlab/onlineopinionOO4S/oo_black.gif',
			feedback_html: 'Feedback',
			click_html: 'Click here to<br>rate this page'
		},
		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: 'Close Card'
			}
		}
}

function TLGetCookieV4(c_nameV4)
 {
    if (document.cookie.length > 0)
    {
        c_startV4 = document.cookie.indexOf(c_nameV4 + "=");
        if (c_startV4 != -1)
        {
            c_startV4 = c_startV4 + c_nameV4.length + 1;
            c_endV4 = document.cookie.indexOf(";", c_startV4);
            if (c_endV4 == -1) c_endV4 = document.cookie.length;
            return unescape(document.cookie.substring(c_startV4, c_endV4));
        }
    }
    return ""
};
var tleaf_V4 = TLGetCookieV4('PHPSESSID');

/* Configure Custom Variables to Accompany Survey (optional) */
oOobj1.Metrics.custom.TealeafID = tleaf_V4;
//oOobj1.Metrics.custom.PageTitle = PageTitle;
//oOobj1.Metrics.custom.originalURL = window.location.href;

/* Object Registration (REQUIRED for [+] Floating Icon) */
OnlineOpinion.util.SafeAddOnLoadEvent(function(){oOobj1.render(function(){oOobj1.show()})});

/*  OnlineOpinion v4.1.5, Copyright 2009 Opinionlab, Inc. */
