/* OnlineOpinion v4.1.5.3 */
/* 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 f=window.open(c,'_c');f.focus()}};return false},walkAnchors:function(c,d,a,b){var f=1000;var g=0;while(c&&d>0){g++;if(g>=f){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 m=c.onsubmit;c.onsubmit=function(){b.Preferences.Plugins.Events.poX=0;m()}}}if(c.nodeType==1){var k=/^(script|style|textarea)/i;if(!k.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,f,g){return this._3(this.rol(this._3(this._3(d,c),this._3(b,g)),f),a)};this._0=function(c,d,a,b,f,g){return this.cmn((d&a)|((~d)&b),c,0,f,g,0)};this._1=function(c,d,a,b,f,g){return this.cmn((d&a)|(d&b)|(a&b),c,0,f,g,1518500249)};this._2=function(c,d,a,b,f,g){return this.cmn(d^a^b,c,0,f,g,1859775393)};this._5=function(c){var d=this.str2blks_MD5(c),a=1732584193,b=-271733879,f=-1732584194,g=271733878;for(var h=0;h<d.length;h+=16){var m=a,k=b,p=f,r=g;a=this._0(a,b,f,g,d[h+0],3);g=this._0(g,a,b,f,d[h+1],7);f=this._0(f,g,a,b,d[h+2],11);b=this._0(b,f,g,a,d[h+3],19);a=this._0(a,b,f,g,d[h+4],3);g=this._0(g,a,b,f,d[h+5],7);f=this._0(f,g,a,b,d[h+6],11);b=this._0(b,f,g,a,d[h+7],19);a=this._0(a,b,f,g,d[h+8],3);g=this._0(g,a,b,f,d[h+9],7);f=this._0(f,g,a,b,d[h+10],11);b=this._0(b,f,g,a,d[h+11],19);a=this._0(a,b,f,g,d[h+12],3);g=this._0(g,a,b,f,d[h+13],7);f=this._0(f,g,a,b,d[h+14],11);b=this._0(b,f,g,a,d[h+15],19);a=this._1(a,b,f,g,d[h+0],3);g=this._1(g,a,b,f,d[h+4],5);f=this._1(f,g,a,b,d[h+8],9);b=this._1(b,f,g,a,d[h+12],13);a=this._1(a,b,f,g,d[h+1],3);g=this._1(g,a,b,f,d[h+5],5);f=this._1(f,g,a,b,d[h+9],9);b=this._1(b,f,g,a,d[h+13],13);a=this._1(a,b,f,g,d[h+2],3);g=this._1(g,a,b,f,d[h+6],5);f=this._1(f,g,a,b,d[h+10],9);b=this._1(b,f,g,a,d[h+14],13);a=this._1(a,b,f,g,d[h+3],3);g=this._1(g,a,b,f,d[h+7],5);f=this._1(f,g,a,b,d[h+11],9);b=this._1(b,f,g,a,d[h+15],13);a=this._2(a,b,f,g,d[h+0],3);g=this._2(g,a,b,f,d[h+8],9);f=this._2(f,g,a,b,d[h+4],11);b=this._2(b,f,g,a,d[h+12],15);a=this._2(a,b,f,g,d[h+2],3);g=this._2(g,a,b,f,d[h+10],9);f=this._2(f,g,a,b,d[h+6],11);b=this._2(b,f,g,a,d[h+14],15);a=this._2(a,b,f,g,d[h+1],3);g=this._2(g,a,b,f,d[h+9],9);f=this._2(f,g,a,b,d[h+5],11);b=this._2(b,f,g,a,d[h+13],15);a=this._2(a,b,f,g,d[h+3],3);g=this._2(g,a,b,f,d[h+11],9);f=this._2(f,g,a,b,d[h+7],11);b=this._2(b,f,g,a,d[h+15],15);a=this._3(a,m);b=this._3(b,k);f=this._3(f,p);g=this._3(g,r)}return this.rhex(a)+this.rhex(b)+this.rhex(f)+this.rhex(g)};this.read=function(c){var d=c+"=";var a=document.cookie.split(';');for(var b=0;b<a.length;b++){var f=a[b];while(f.charAt(0)==' ')f=f.substring(1,f.length);if(f.indexOf(d)==0)return unescape(f.substring(d.length,f.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=window.location.hostname;n=this._5(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=window.location.hostname;var a="";if(this.read(this.cookie_name)!=null){a=this.read(this.cookie_name).replace(eval('/'+escape(this._5(c))+'~1:/g'),'')}this.write(this.cookie_name,a+(a!=''?':':'')+escape(this._5(c))+'~1')}};function unescapeHTML(c){var d=document.createElement('div'),a='';d.innerHTML=c.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,'');for(var b=0;b<d.childNodes.length;b++){a=a+d.childNodes[b].nodeValue}return a}OnlineOpinion.onPageCCSubmitted=false;OnlineOpinion.instanceCount=0;OnlineOpinion.renderOnPageCC=function(b,f,g){var h=document.getElementById(b),m=h.contentDocument||h.contentWindow.document;m.open();m.write(unescapeHTML(cc_html).replace("resize(_d('_e'));",''));var k=window.setInterval(function(){if(m.body){if(!window.opera)m.close();window.clearInterval(k);var c=m.body,d=m||frames[b].document,a=document.getElementById(f);h.style.height=(c.scrollHeight+1)+'px';c.style.border="none";a.style.display='block';a.style.visibility='visible';d.getElementById('CommentCard').onsubmit=function(){a.style.display='none';document.getElementById('onlineopinion_cc_overlay').style.display='none';OnlineOpinion.onPageCCSubmitted=true;document.body.removeChild(document.getElementById(g));h.id='';a.id=''}}},1000)};OnlineOpinion.ocode=function(K){this.name=K;OnlineOpinion.instanceCount++;this.instanceNum=OnlineOpinion.instanceCount;function B(c,d){var a=new RegExp(d);var b=a.exec(c);if(b==null||b==''){return''}else{var f="";for(i=0;i<b.length;i++){f=f+b[i]}return f}};this._f=function(c){_9=this._g+',\\/,\\.,-,_,'+this._h+',%2F,%2E,%2D,%5F';_6=_9.split(',');for(i=0;i<5;i++){eval('_a=_a.replace(/'+_6[i]+'/g,_6[i+5])')}return c};this._7=function(){this.engine=null;this.version=null;var c=navigator.userAgent.toLowerCase();if(window.ActiveXObject){this.engine='ie';this.version=B(c,"msie\\s[0-9]\.[0-9]+").replace('msie ','')}else{if(window.opera){this.engine='opera';this.version=B(c,"opera.[0-9]\.[0-9]+").replace('opera','').replace('/','')}else{if(document.childNodes&&!document.all&&!navigator.taintEnabled){if(B(c,"applewebkit\/[0-9]+")!=null){this.engine='webkit';this.version=B(c,"applewebkit\/[0-9]+").replace('applewebkit/','')}else{this.engine='khtml';this.version=B(c,"khtml\/[0-9]\.[0-9]\.[0-9]+").replace('khtml/','')}}else if(document.getBoxObjectFor!=null){this.engine='gecko';this.version=B(c,"gecko/[0-9]+").replace('gecko/','')}}}};this.serialize=function(c,d){var a='',b=0;for(var f in c){if(typeof c[f]!='function'&&typeof c[f]!='undefined'&&c[f]!=null&&c[f]!=''){if(d==0){a+=(b==0?'':'&')+f+'='+escape(c[f])}else{if(d==1){a+=(b==0?'':'|')+escape(c[f])}}b++}}return a};this._8=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',img_path:'onlineopinion/oo_black.gif',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,onEntryDelay:0,poX:0.0,poC:{id:'',value:0.0},clickDelay:0,poWC:0.0};this.onEntry=function(){this._4();if(Math.random()>=1.0-this.Preferences.Plugins.Events.poE){if(this.Preferences.Plugins.Events.onEntryDelay){thisObj=this;setTimeout(function(){thisObj.show()},this.Preferences.Plugins.Events.onEntryDelay*1000)}else{this.show()}this.Preferences.Plugins.Events.poX=0.0}};this.onExit=function(){this._4();if(Math.random()>=1.0-this.Preferences.Plugins.Events.poX)this.show()};this.OnClick=function(){this._4();if(this.Preferences.Render.type=='inline'){this.show()}else if(Math.random()>=1.0-this.Preferences.Plugins.Events.poC){if(this.Preferences.Plugins.Events.clickDelay){thisObj=this;setTimeout(function(){thisObj.show()},this.Preferences.Plugins.Events.clickDelay*1000)}else{this.show()}this.Preferences.Plugins.Events.poX=0.0;this.Preferences.Plugins.Events.poC=0.0}};this.Preferences.Plugins.URLRewrite={active:false,full_url_rewrite:null,regex_search_pattern:'',regex_replace_pattern:''};this.Preferences.Plugins.CardOnPage={enabled:false};this._4=function(){if(this._8)return true;this._8=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(f){this._4();this.Preferences.Render.main_div_id=this.Preferences.Render.main_div_id||'oo_feedback_'+this.instanceNum;var g=new this._7(),h=document,m=h.documentElement,k=h.body,p=window,r=this.Preferences.Render.main_div_id,w=parseFloat(g.version),y=h.compatMode=='CSS1Compat',q=y?m:k,C=document.createDocumentFragment();if(g.engine=="webkit"){q=k}if(g.engine==null||g.version==null||isNaN(parseInt(g.version,10))||(g.engine=='ie'&&parseFloat(g.version)<6)||(g.engine=='opera'&&parseInt(g.version,10)<8)||(g.engine=='gecko'&&parseInt(g.version,10)<20041107))return false;var l=h.getElementById(r);if(l==null){if(this.Preferences.Render.type=='floating'){l=h.createElement("div");l.id=r;l.className='oo_feedback_float'}}if(l.childNodes.length==0){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}k.appendChild(l);var t=C.appendChild(h.createElement("div"));t.className='olUp';var z=C.appendChild(h.createElement("div"));z.className='olOver';if(g.engine=='ie'&&g.version<7){t.onmouseover=(function(c,d){return function(){d.style.display='block';c.style.display='none'}})(t,z);z.onmouseout=(function(c,d){return function(){c.style.display='block';d.style.display='none'}})(t,z)}if(this.Preferences.Render.img_path){var F=t.appendChild(h.createElement("img"));F.src=this.Preferences.Render.img_path}var D=t.appendChild(h.createElement("span"));D.className='fbText';D.innerHTML=this.Preferences.Render.feedback_html;var E=null;if(this.Preferences.Render.div_alt_text){E=this.Preferences.Render.div_alt_text}else{if(document.all){E=D.innerText}else{E=D.textContent}}l.alt=E;l.title=E;z.innerHTML=this.Preferences.Render.click_html}if(this.Preferences.Render.type=='static'){l.innerHTML=this.Preferences.Render.main_html}}l.appendChild(C);if(this.Preferences.Render.type=='floating'){if(!this.Preferences.Render.float_style)this.Preferences.Render.float_style='fixed';var o=l.style,G=this,u=this.Preferences.Render.float_style;if(u.match(/Content/)){var s=h.getElementById(G.Preferences.Render.main_content_id||"content");if(s==null){s=k.firstChild;while(s&&s.nodeType!=1){s=s.nextSibling}}function A(){return s.offsetWidth+s.offsetLeft+1}function H(){if(G.Preferences.Render.fix_background){k.style.backgroundAttachment="scroll";var c=null;if(document.defaultView&&document.defaultView.getComputedStyle){c=parseInt(document.defaultView.getComputedStyle(s,null).getPropertyValue("margin-left"),10)}else{c=parseInt(s.currentStyle.marginLeft,10)}if(isNaN(c)||c==0){c=s.offsetLeft||0}k.style.backgroundPosition=(Math.floor(s.scrollWidth*-0.5)-2+c)+'px 0'}}}var I=function(c){if(u.match(/^fixed/)){var d=q.scrollLeft+q.clientWidth-l.clientWidth;if(u=="fixedPreserveContent"&&d<A()){d=A()+'px'}else if(u=="fixedContentMax"&&(s.offsetWidth+l.clientWidth)<q.clientWidth){d=A()+'px'}o.left=d}else if(u=="rightOfContent"){o.left=A()+'px'}o.top=q.scrollTop+q.clientHeight-l.clientHeight;var a=c==null||c.type=='load';if(a)o.visibility='visible';if(a||c.type=='resize')H()};if(g.engine=='ie'&&(w<7||!y)){o.position='absolute';function J(c,d){for(var a=0;a<d.length;a++){var b=d[a];c.attachEvent("on"+b,I)}};J(l,["mouseover","mouseout"]);J(p,["resize","scroll"]);I()}else{o.position='fixed';var x=null;if(u.match(/^fixed/)){o.right='0px';o.bottom='0px';if(u=="fixedContentMax"){var L=s.offsetWidth+l.offsetWidth;x=function(c){if(q.clientWidth>L){o.left=A()-q.scrollLeft+'px';o.right=null}else{o.left=null;o.right='0px'}}}}else if(u=="rightOfContent"){var M=A()-q.scrollLeft+'px';o.bottom='0px';o.left=M}if(u.match(/Content$/)){var N=u=="fixedPreserveContent";var v=h.createElement("div");k.replaceChild(v,l);v.appendChild(l);v.style.position="absolute";v.style.width=l.offsetWidth+'px';v.style.right='0px';v.style.top='0px';v.style.height=q.scrollHeight+'px';x=function(c){var d=A();var a=false;if(N){var b=q.offsetWidth-l.offsetWidth;if(b<=d)a=true}else{a=true}if(a){o.left=d-q.scrollLeft+'px';if(c==null||c.type=='resize'){v.style.left=d+'px';H()}}else{v.style.right='0px';v.style.left=null;o.right="0px";o.left=null}}}if(x){if(g.engine=='ie'){p.attachEvent("onresize",x);p.attachEvent("onscroll",x)}else{p.addEventListener("resize",x,false);p.addEventListener("scroll",x,false)}x()}l.style.visibility='visible'}}l.onclick=f;return true};this.launchCC=function(){if(this.Cookie.matchurl(this.Metrics.core.referer,this.Preferences.Persistence.cookie_type)!=1){if(this.Preferences.Plugins.CardOnPage.enabled==true){if(this.Preferences.Plugins.CardOnPage.shown&&!OnlineOpinion.onPageCCSubmitted){var c=document.getElementById('onlineopinion_cc_div_'+this.instanceNum).style.display='block';var d=document.getElementById('onlineopinion_cc_overlay').style.display='block';d.onclick=this.hideCC(c,d)}else{var a=new this._7(),b=parseFloat(a.version),f=document,g=document.body,h=f.documentElement,m=window,k=g.appendChild(f.createElement("div")),p=k.appendChild(f.createElement("iframe")),r=f.getElementById("onlineopinion_cc_overlay")||g.appendChild(f.createElement("div")),w=f.createElement("a"),y=document.createElement("script");OnlineOpinion.CCcount++;r.id="onlineopinion_cc_overlay";k.id='onlineopinion_cc_div_'+this.instanceNum;k.className='onlineopinion_cc_div';p.id='onlineopinion_iframe_'+this.instanceNum;p.className='onlineopinion_cc_frame';p.setAttribute("frameborder","0");if((a.engine=='ie'&&b>=7)||a.engine=='opera'){var q=f.createElement("div"),C=f.createElement("div"),l=f.createElement("div"),t=f.createDocumentFragment();q.className='onlineopinion_cc_shadow';C.className='onlineopinion_cc_shadow_top';l.className='onlineopinion_cc_shadow_bottom';t.appendChild(q);t.appendChild(C);t.appendChild(l);k.appendChild(t)}w.id='onlineopinion_cc_close_link_'+this.instanceNum;w.onclick=this.hideCC(k,r);w.href="javascript:void(0)";w.className="onlineopinion_cc_closelink";w.title=this.Preferences.Plugins.CardOnPage.close_link;k.insertBefore(w,p);var z=(a.engine=='webkit')?m.innerWidth:(a.engine=='opera'?g.clientWidth:h.clientWidth),F=(a.engine=='webkit')?m.innerHeight:(a.engine=='opera'?g.clientHeight:h.clientHeight),D=535;k.style.left=parseInt((z-D)/2,10)+'px';y.id='onlineopinion_cc_jsonp_'+this.instanceNum;y.src='https://secure.opinionlab.com/ccc01/comment_card_json.asp?'+(this.Preferences.Render.type=='asm'?'asm=1&':'')+this.serialize(this.Metrics.core,0)+'&custom_var='+this.serialize(this.Metrics.custom,1)+'&jsonp='+escape('OnlineOpinion.renderOnPageCC("'+p.id+'","'+k.id+'","'+y.id+'")');document.body.appendChild(y);if(a.engine=='ie'&&b<7){k.style.position='absolute';r.style.position='absolute';r.style.height=document.documentElement.clientHeight+'px';r.style.width=document.documentElement.clientWidth+'px'}k.style.visibility='hidden';k.style.display='block';r.style.display='block';this.Preferences.Plugins.CardOnPage.shown=true;OnlineOpinion.onPageCCSubmitted=false}}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))}}};this.hideCC=function(c,d){return function(){c.style.display='none';d.style.display='none'}};this.show=function(){this._4();this.Metrics.core.time2=(new Date()).getTime();this.launchCC();if(this.Preferences.Persistence.enabled){var c=document.getElementById(this.Preferences.Render.main_div_id);if(c)c.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=this.Preferences.Plugins.URLRewrite.full_url_rewrite||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 f=[];for(idx=0;idx<b.length;idx++){var g=b[idx];try{var h=g.name;if(h!=undefined&&g.value!=undefined){switch(g.type){case"radio":if(g.checked)f.push(g.name+'='+encodeURIComponent(g.value));break;case"checkbox":if(g.checked)f.push(g.name+'='+encodeURIComponent(g.value));break;default:f.push(g.name+'='+encodeURIComponent(g.value))}}}catch(e){}}var m=f.join('&');var k=this.Cookie!=null?this.Cookie._5(a):"";d.src="https://secure.opinionlab.com/rate36s.asp?"+a+"&"+m+"&signature="+k;if(this.Preferences.Persistence.enabled){var p=document.getElementById(this.Preferences.Render.main_div_id+"_b");p.style.display='none'}if(this.Preferences.Render.ty_html!=''){var r=document.getElementById(this.Preferences.Render.ty_div_id);r.innerHTML=this.Preferences.Render.ty_html;r.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()}};