

/* OnlineOpinion v4.1.4.13 */
/* This product and other products of OpinionLab, Inc. are protected by U.S. Patent No. 6606581, 6421724, 6785717 B1 and other patents pending. */
var OnlineOpinion=new Object();OnlineOpinion.util={SafeAddOnLoadEvent:function(c){if(!document.getElementById|!document.getElementsByTagName)return;var d=window.onload;if(typeof window.onload!='function'){window.onload=c}else{window.onload=function(){d();c()}}},SafeAddOnUnLoadEvent:function(c){if(!document.getElementById|!document.getElementsByTagName)return;var d=window.onunload;if(typeof window.onunload!='function'){window.onunload=c}else{window.onunload=function(){c();d()}}},popup:function(c,d,a){var b=window.open(c,d,a);if(typeof b=='undefined'){if(document.all){document.getElementById("test").href=c;document.getElementById("test").click()}else{var g=window.open(c,'_c');g.focus()}};return false},walkAnchors:function(c,d,a,b){var g=1000;var f=0;while(c&&d>0){f++;if(f>=g){var h=function(){OnlineOpinion.util.walkAnchors(c,d,a,b)};setTimeout(h,50);return}if(c.tagName=="A"||c.tagName=="AREA"){if(a.test(c.href)){c.onmousedown=function(){b.Preferences.Plugins.Events.poX=0}}}if(c.tagName=="INPUT"){if(c.type=="submit"||c.type=="image"){c.onmousedown=function(){b.Preferences.Plugins.Events.poX=0}}}if(c.tagName=="FORM"){if(typeof c.onsubmit!='function'){c.onsubmit=function(){b.Preferences.Plugins.Events.poX=0}}else{var t=c.onsubmit;c.onsubmit=function(){b.Preferences.Plugins.Events.poX=0;t()}}}if(c.nodeType==1){var m=/^(script|style|textarea)/i;if(!m.test(c.tagName)&&c.childNodes.length>0){c=c.childNodes[0];d++;continue}}if(c.nextSibling){c=c.nextSibling}else{while(d>0){c=c.parentNode;d--;if(c==null)break;if(c.nextSibling){c=c.nextSibling;break}}}}}};OnlineOpinion.cookie=function(){this.cookie_name='oo_r';this.expiration=24*60*60*1000;this.rhex=function(c){var d='0123456789abcdef',a='';for(var b=0;b<=3;b++)a+=d.charAt((c>>(b*8+4))&0x0F)+d.charAt((c>>(b*8))&0x0F);return a};this.str2blks_MD5=function(c){var d=((c.length+8)>>6)+1,a=new Array(d*16);var b=0;for(;b<d*16;b++)a[b]=0;for(b=0;b<c.length;b++)a[b>>2]|=c.charCodeAt(b)<<((b%4)*8);a[b>>2]|=0x80<<((b%4)*8);a[d*16-2]=c.length*8;return a};this._3=function(c,d){var a=(c&0xFFFF)+(d&0xFFFF),b=(c>>16)+(d>>16)+(a>>16);return(b<<16)|(a&0xFFFF)};this.rol=function(c,d){return(c<<d)|(c>>>(32-d))};this.cmn=function(c,d,a,b,g,f){return this._3(this.rol(this._3(this._3(d,c),this._3(b,f)),g),a)};this._0=function(c,d,a,b,g,f){return this.cmn((d&a)|((~d)&b),c,0,g,f,0)};this._1=function(c,d,a,b,g,f){return this.cmn((d&a)|(d&b)|(a&b),c,0,g,f,1518500249)};this._2=function(c,d,a,b,g,f){return this.cmn(d^a^b,c,0,g,f,1859775393)};this._4=function(c){var d=this.str2blks_MD5(c),a=1732584193,b=-271733879,g=-1732584194,f=271733878;for(var h=0;h<d.length;h+=16){var t=a,m=b,q=g,v=f;a=this._0(a,b,g,f,d[h+0],3);f=this._0(f,a,b,g,d[h+1],7);g=this._0(g,f,a,b,d[h+2],11);b=this._0(b,g,f,a,d[h+3],19);a=this._0(a,b,g,f,d[h+4],3);f=this._0(f,a,b,g,d[h+5],7);g=this._0(g,f,a,b,d[h+6],11);b=this._0(b,g,f,a,d[h+7],19);a=this._0(a,b,g,f,d[h+8],3);f=this._0(f,a,b,g,d[h+9],7);g=this._0(g,f,a,b,d[h+10],11);b=this._0(b,g,f,a,d[h+11],19);a=this._0(a,b,g,f,d[h+12],3);f=this._0(f,a,b,g,d[h+13],7);g=this._0(g,f,a,b,d[h+14],11);b=this._0(b,g,f,a,d[h+15],19);a=this._1(a,b,g,f,d[h+0],3);f=this._1(f,a,b,g,d[h+4],5);g=this._1(g,f,a,b,d[h+8],9);b=this._1(b,g,f,a,d[h+12],13);a=this._1(a,b,g,f,d[h+1],3);f=this._1(f,a,b,g,d[h+5],5);g=this._1(g,f,a,b,d[h+9],9);b=this._1(b,g,f,a,d[h+13],13);a=this._1(a,b,g,f,d[h+2],3);f=this._1(f,a,b,g,d[h+6],5);g=this._1(g,f,a,b,d[h+10],9);b=this._1(b,g,f,a,d[h+14],13);a=this._1(a,b,g,f,d[h+3],3);f=this._1(f,a,b,g,d[h+7],5);g=this._1(g,f,a,b,d[h+11],9);b=this._1(b,g,f,a,d[h+15],13);a=this._2(a,b,g,f,d[h+0],3);f=this._2(f,a,b,g,d[h+8],9);g=this._2(g,f,a,b,d[h+4],11);b=this._2(b,g,f,a,d[h+12],15);a=this._2(a,b,g,f,d[h+2],3);f=this._2(f,a,b,g,d[h+10],9);g=this._2(g,f,a,b,d[h+6],11);b=this._2(b,g,f,a,d[h+14],15);a=this._2(a,b,g,f,d[h+1],3);f=this._2(f,a,b,g,d[h+9],9);g=this._2(g,f,a,b,d[h+5],11);b=this._2(b,g,f,a,d[h+13],15);a=this._2(a,b,g,f,d[h+3],3);f=this._2(f,a,b,g,d[h+11],9);g=this._2(g,f,a,b,d[h+7],11);b=this._2(b,g,f,a,d[h+15],15);a=this._3(a,t);b=this._3(b,m);g=this._3(g,q);f=this._3(f,v)}return this.rhex(a)+this.rhex(b)+this.rhex(g)+this.rhex(f)};this.read=function(c){var d=c+"=";var a=document.cookie.split(';');for(var b=0;b<a.length;b++){var g=a[b];while(g.charAt(0)==' ')g=g.substring(1,g.length);if(g.indexOf(d)==0)return unescape(g.substring(d.length,g.length))}return null};this.write=function(c,d){document.cookie=c+'='+d+';path=/;expires='+(new Date((new Date()).getTime()+this.expiration)).toGMTString()};this.matchurl=function(c,d){var a=0,b=this.read(this.cookie_name);if(d=='domain')c=/(:\/\/)[\w\d\:\.]+/g.exec(c)[0].replace('://','');n=this._4(c);if(b==null)return false;while(a<b.length){j=a+n.length;if(b.substring(a,j)==n){return(unescape(b.substring(j+1,j+2))==1)}a++}return false};this.tagurl=function(c,d){if(d=='domain')c=/(:\/\/)[\w\d\:\.]+/g.exec(c)[0].replace('://','');var a="";if(this.read(this.cookie_name)!=null){a=this.read(this.cookie_name).replace(eval('/'+escape(this._4(c))+'~1:/g'),'')}this.write(this.cookie_name,a+(a!=''?':':'')+escape(this._4(c))+'~1')}};OnlineOpinion.ocode=function(J){this.name=J;function x(c,d){var a=new RegExp(d);var b=a.exec(c);if(b==null||b==''){return''}else{var g="";for(i=0;i<b.length;i++){g=g+b[i]}return g}};this._d=function(c){_8=this._e+',\\/,\\.,-,_,'+this._f+',%2F,%2E,%2D,%5F';_6=_8.split(',');for(i=0;i<5;i++){eval('_9=_9.replace(/'+_6[i]+'/g,_6[i+5])')}return c};this._a=function(){this.engine=null;this.version=null;var c=navigator.userAgent.toLowerCase();if(window.ActiveXObject){this.engine='ie';this.version=x(c,"msie\\s[0-9]\.[0-9]+").replace('msie ','')}else{if(window.opera){this.engine='opera';this.version=x(c,"opera.[0-9]\.[0-9]+").replace('opera','').replace('/','')}else{if(document.childNodes&&!document.all&&!navigator.taintEnabled){if(x(c,"applewebkit\/[0-9]+")!=null){this.engine='webkit';this.version=x(c,"applewebkit\/[0-9]+").replace('applewebkit/','')}else{this.engine='khtml';this.version=x(c,"khtml\/[0-9]\.[0-9]\.[0-9]+").replace('khtml/','')}}else if(document.getBoxObjectFor!=null){this.engine='gecko';this.version=x(c,"gecko/[0-9]+").replace('gecko/','')}}}};this.serialize=function(c,d){var a='',b=0;for(var g in c){if(typeof c[g]!='function'&&typeof c[g]!='undefined'&&c[g]!=null&&c[g]!=''){if(d==0){a+=(b==0?'':'&')+g+'='+escape(c[g])}else{if(d==1){a+=(b==0?'':'|')+escape(c[g])}}b++}}return a};this._7=false;this.Preferences=new Object();this.Preferences.Persistence={enabled:true,cookie_type:'page',cookie_name:'oo_r',expiration:24*60*60*1000};this.Preferences.Render={type:'floating',main_div_id:'oo_feedback_float',up_div_id:'olUp',over_div_id:'olOver',img_path:'onlineopinion/oo_black.gif',feedback_span_id:'fbText',feedback_html:'FEEDBACK',click_html:'Click here to<br>rate this page',ty_html:'',float_style:'fixed'};this.Metrics=new Object();this.Metrics.core={'width':screen.width,'height':screen.height,'referer':window.location.href,'prev':document.referrer,'time1':(new Date()).getTime(),'time2':null};this.Metrics.custom=new Object();this.Preferences.Plugins=new Object();this.Preferences.Plugins.Events={poE:0.0,poX:0.0,poC:{id:'',value:0.0},poWC:0.0};this.onEntry=function(){this._5();if(Math.random()>=1.0-this.Preferences.Plugins.Events.poE){this.show();this.Preferences.Plugins.Events.poX=0.0}};this.onExit=function(){this._5();if(Math.random()>=1.0-this.Preferences.Plugins.Events.poX)this.show()};this.OnClick=function(){this._5();if(Math.random()>=1.0-this.Preferences.Plugins.Events.poC){this.show();this.Preferences.Plugins.Events.poX=0.0;this.Preferences.Plugins.Events.poC=0.0}};this.Preferences.Plugins.URLRewrite={active:false,regex_search_pattern:'',regex_replace_pattern:''};this.Preferences.Plugins.CardOnPage={enabled:false,div_id:'onlineopinion_cc_window',iframe_id:'onlineopinion_cc_frame'};this._5=function(){if(this._7)return true;this._7=true;this.resetReferer();if(typeof OnlineOpinion.cookie!='undefined'&&this.Preferences.Persistence.cookie_type!=null){this.Cookie=new OnlineOpinion.cookie();if(typeof this.Preferences.Persistence.cookie_name!='undefined')this.Cookie.cookie_name=this.Preferences.Persistence.cookie_name;this.Cookie.expiration=1000*this.Preferences.Persistence.expiration;if(this.Cookie.matchurl(this.Metrics.core.referer,this.Preferences.Persistence.cookie_type)==1){this.Preferences.Plugins.Events.poX=0;this.Preferences.Plugins.Events.poE=0;return false}}else{this.Cookie=null}return true};this.render=function(g){this._5();var f=new this._a();var h=document;var t=h.documentElement;var m=h.body;var q=window;var v=this.Preferences.Render.main_div_id;var D=parseFloat(f.version);var E=h.compatMode=='CSS1Compat';var p=E?t:m;if(f.engine=="webkit"){p=m}if(f.engine==null||f.version==null||isNaN(parseInt(f.version,10))||(f.engine=='ie'&&parseFloat(f.version)<6)||(f.engine=='opera'&&parseInt(f.version,10)<8)||(f.engine=='gecko'&&parseInt(f.version,10)<20041107))return false;var k=h.getElementById(v);if(k==null){if(this.Preferences.Render.type=='floating'){k=h.createElement("div");k.id=v}}if(k.innerHTML==""){if(this.Preferences.Render.type=='floating'){if(this.Preferences.Persistence.enabled&&this.Preferences.Persistence.cookie_type!=null){if(this.Cookie.matchurl(this.Metrics.core.referer,this.Preferences.Persistence.cookie_type)==1)return false}m.appendChild(k);var y=k.appendChild(h.createElement("div"));y.id=this.Preferences.Render.up_div_id;var z=k.appendChild(h.createElement("div"));z.id=this.Preferences.Render.over_div_id;z.style.display='none';y.onmouseover=function(){h.getElementById(z.id).style.display='block';document.getElementById(y.id).style.display='none'};z.onmouseout=function(){h.getElementById(z.id).style.display='none';document.getElementById(y.id).style.display='block'};if(this.Preferences.Render.img_path){var K=y.appendChild(h.createElement("img"));K.src=this.Preferences.Render.img_path}var C=y.appendChild(h.createElement("span"));C.id=this.Preferences.Render.feedback_span_id;C.innerHTML=this.Preferences.Render.feedback_html;var A=null;if(this.Preferences.Render.div_alt_text){A=this.Preferences.Render.div_alt_text}else{if(document.all){A=C.innerText}else{A=C.textContent}}k.alt=A;k.title=A;z.innerHTML=this.Preferences.Render.click_html}if(this.Preferences.Render.type=='static'){k.innerHTML=this.Preferences.Render.main_html}}if(this.Preferences.Render.type=='floating'){if(!this.Preferences.Render.float_style)this.Preferences.Render.float_style='fixed';var l=k.style;var F=this;var r=this.Preferences.Render.float_style;if(r.match(/Content/)){var o=h.getElementById(F.Preferences.Render.main_content_id||"content");if(o==null){o=m.firstChild;while(o&&o.nodeType!=1){o=o.nextSibling}}function w(){return o.offsetWidth+o.offsetLeft+1}function G(){if(F.Preferences.Render.fix_background){m.style.backgroundAttachment="scroll";var c=null;if(document.defaultView&&document.defaultView.getComputedStyle){c=parseInt(document.defaultView.getComputedStyle(o,null).getPropertyValue("margin-left"),10)}else{c=parseInt(o.currentStyle.marginLeft,10)}if(isNaN(c)||c==0){c=o.offsetLeft||0}m.style.backgroundPosition=(Math.floor(o.scrollWidth*-0.5)-2+c)+'px 0'}}}var H=function(c){if(r.match(/^fixed/)){var d=p.scrollLeft+p.clientWidth-k.clientWidth;if(r=="fixedPreserveContent"&&d<w()){d=w()+'px'}else if(r=="fixedContentMax"&&(o.offsetWidth+k.clientWidth)<p.clientWidth){d=w()+'px'}l.left=d}else if(r=="rightOfContent"){l.left=w()+'px'}l.top=p.scrollTop+p.clientHeight-k.clientHeight;var a=c==null||c.type=='load';if(a)l.visibility='visible';if(a||c.type=='resize')G()};if(f.engine=='ie'&&(D<7||!E)){l.position='absolute';function I(c,d){for(var a=0;a<d.length;a++){var b=d[a];c.attachEvent("on"+b,H)}};I(k,["mouseover","mouseout"]);I(q,["resize","scroll"]);H()}else{l.position='fixed';var u=null;if(r.match(/^fixed/)){l.right='0px';l.bottom='0px';if(r=="fixedContentMax"){var L=o.offsetWidth+k.offsetWidth;u=function(c){if(p.clientWidth>L){l.left=w()-p.scrollLeft+'px';l.right=null}else{l.left=null;l.right='0px'}}}}else if(r=="rightOfContent"){var M=w()-p.scrollLeft+'px';l.bottom='0px';l.left=M}if(r.match(/Content$/)){var N=r=="fixedPreserveContent";var s=h.createElement("div");m.replaceChild(s,k);s.appendChild(k);s.style.position="absolute";s.style.width=k.offsetWidth+'px';s.style.right='0px';s.style.top='0px';s.style.height=p.scrollHeight+'px';u=function(c){var d=w();var a=false;if(N){var b=p.offsetWidth-k.offsetWidth;if(b<=d)a=true}else{a=true}if(a){l.left=d-p.scrollLeft+'px';if(c==null||c.type=='resize'){s.style.left=d+'px';G()}}else{s.style.right='0px';s.style.left=null;l.right="0px";l.left=null}}}if(u){if(f.engine=='ie'){q.attachEvent("onresize",u);q.attachEvent("onscroll",u)}else{q.addEventListener("resize",u,false);q.addEventListener("scroll",u,false)}u()}k.style.visibility='visible'}}k.onclick=g;try{if(this.Preferences.Plugins.CardOnPage.enabled==true){var B=m.appendChild(h.createElement("div"));B.id=this.Preferences.Plugins.CardOnPage.div_id;var O=B.appendChild(h.createElement("iframe"));O.id=this.Preferences.Plugins.CardOnPage.iframe_id;var P=(f.engine=='webkit')?q.innerWidth:(f.engine=='opera'?m.clientWidth:t.clientWidth);var Q=(f.engine=='webkit')?q.innerHeight:(f.engine=='opera'?m.clientHeight:t.clientHeight);var R=585,S=400;B.style.left=parseInt((P-R)/2,10)+'px';B.style.top=parseInt((Q-S)/2,10)+'px';if(f.engine=='ie'&&D<7)B.style.position='absolute'}}catch(e){}return true};this.launchCC=function(){try{if(this.Cookie.matchurl(this.Metrics.core.referer,this.Preferences.Persistence.cookie_type)!=1){if(this.Preferences.Plugins.CardOnPage.enabled==true){document.getElementById(this.Preferences.Plugins.CardOnPage.iframe_id).src='https://secure.opinionlab.com/ccc01/comment_card.asp?'+(this.Preferences.Render.type=='asm'?'asm=1&':'')+'static=1&'+this.serialize(this.Metrics.core,0)+'&custom_var='+this.serialize(this.Metrics.custom,1);document.getElementById(this.Preferences.Plugins.CardOnPage.div_id).style.display='block'}else{OnlineOpinion.util.popup('https://secure.opinionlab.com/ccc01/comment_card.asp?'+(this.Preferences.Render.type=='asm'?'asm=1&':'')+this.serialize(this.Metrics.core,0)+'&custom_var='+this.serialize(this.Metrics.custom,1),'OnlineOpinion','resizable=yes,copyhistory=yes,scrollbars='+(this.Preferences.Render.type=='asm'?'yes':'no')+',location=no,status=no,fullscreen=no,width=545,height=200,top='+parseInt((this.Metrics.core.height-200)/2,10)+',left='+parseInt((this.Metrics.core.width-545)/2,10))}}}catch(e){OnlineOpinion.util.popup('https://secure.opinionlab.com/ccc01/comment_card.asp?'+(this.Preferences.Render.type=='asm'?'asm=1&':'')+this.serialize(this.Metrics.core,0)+'&custom_var='+this.serialize(this.Metrics.custom,1),'OnlineOpinion','resizable=yes,copyhistory=yes,scrollbars='+(this.Preferences.Render.type=='asm'?'yes':'no')+',location=no,status=no,fullscreen=no,width=545,height=200,top='+parseInt((this.Metrics.core.height-200)/2,10)+',left='+parseInt((this.Metrics.core.width-545)/2,10))}};this.show=function(){this.Metrics.core.time2=(new Date()).getTime();this.launchCC();if(this.Preferences.Persistence.enabled){document.getElementById(this.Preferences.Render.main_div_id).style.display='none'}if(this.Cookie!=null&&this.Preferences.Persistence.cookie_type!=null){this.Cookie.tagurl(this.Metrics.core.referer,this.Preferences.Persistence.cookie_type)}this.resetReferer()};this.resetReferer=function(c){var d=window.location.href;if(c)d=c;var a=this.Preferences.Plugins.URLRewrite;if(a&&a.active==true){this.Metrics.core.referer=d.replace(a.regex_search_pattern,a.regex_replace_pattern)}else{this.Metrics.core.referer=d}};this.post=function(){this.Metrics.core.time2=(new Date()).getTime();var c=document.getElementById(this.Preferences.Render.main_div_id);var d=c.appendChild(document.createElement("script"));var a=this.serialize(this.Metrics.core,0)+'&custom_var='+this.serialize(this.Metrics.custom,1);var b=document.forms[this.Preferences.Render.main_div_id+'_b'].elements;var g=[];for(idx=0;idx<b.length;idx++){var f=b[idx];try{var h=f.name;if(h!=undefined&&f.value!=undefined){switch(f.type){case"radio":if(f.checked)g.push(f.name+'='+encodeURIComponent(f.value));break;case"checkbox":if(f.checked)g.push(f.name+'='+encodeURIComponent(f.value));break;default:g.push(f.name+'='+encodeURIComponent(f.value))}}}catch(e){}}var t=g.join('&');var m=this.Cookie!=null?this.Cookie._4(a):"";d.src="https://secure.opinionlab.com/rate36s.asp?"+a+"&"+t+"&signature="+m;if(this.Preferences.Persistence.enabled){var q=document.getElementById(this.Preferences.Render.main_div_id+"_b");q.style.display='none'}if(this.Preferences.Render.ty_html!=''){var v=document.getElementById(this.Preferences.Render.ty_div_id);v.innerHTML=this.Preferences.Render.ty_html;v.style.display='block'}if(this.Cookie!=null&&this.Preferences.Persistence.cookie_type!=null){this.Cookie.tagurl(this.Metrics.core.referer,this.Preferences.Persistence.cookie_type)}this.resetReferer()}};

