
/* OnlineOpinion v4.1.4 patch 8 */
/* 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(func){if(!document.getElementById|!document.getElementsByTagName)return;var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func}else{window.onload=function(){oldonload();func(); }}},SafeAddOnUnLoadEvent:function(func){if(!document.getElementById|!document.getElementsByTagName)return;var oldonunload=window.onunload;if(typeof window.onunload!='function'){window.onunload=func}else{window.onunload=function(){func();oldonunload()}}},popup:function(url,wname,wfeatures){attachClickEvent(); var wpopup=window.open(url,wname,wfeatures);if(typeof wpopup=='undefined'){if(document.all){document.getElementById("test").href=url;document.getElementById("test").click()}else{var newWindow=window.open(url,'_blank');newWindow.focus()}};return false},walkAnchors:function(node,depth,internal_links_re,ooObj){var MAX_NODES=1000;var count=0;while(node&&depth>0){count++;if(count>=MAX_NODES){var handler=function(){OnlineOpinion.util.walkAnchors(node,depth,internal_links_re,ooObj)};setTimeout(handler,50);return}if(node.tagName=="A"||node.tagName=="AREA"){if(internal_links_re.test(node.href)){node.onmousedown=function(){ooObj.Preferences.Plugins.Events.poX=0}}}if(node.tagName=="INPUT"){if(node.type=="submit"||node.type=="image"){node.onmousedown=function(){ooObj.Preferences.Plugins.Events.poX=0}}}if(node.tagName=="FORM"){if(typeof node.onsubmit!='function'){node.onsubmit=function(){ooObj.Preferences.Plugins.Events.poX=0}}else{var oldonsubmit=node.onsubmit;node.onsubmit=function(){ooObj.Preferences.Plugins.Events.poX=0;oldonsubmit()}}}if(node.nodeType==1){var skipre=/^(script|style|textarea)/i;if(!skipre.test(node.tagName)&&node.childNodes.length>0){node=node.childNodes[0];depth++;continue}}if(node.nextSibling){node=node.nextSibling}else{while(depth>0){node=node.parentNode;depth--;if(node==null)break;if(node.nextSibling){node=node.nextSibling;break}}}}}};OnlineOpinion.cookie=function(){this.cookie_name='oo_r';this.expiration=24*60*60*1000;this.rhex=function(num){var hex_chr='0123456789abcdef',_s='';for(var j=0;j<=3;j++)_s+=hex_chr.charAt((num>>(j*8+4))&0x0F)+hex_chr.charAt((num>>(j*8))&0x0F);return _s};this.str2blks_MD5=function(_s){var nblk=((_s.length+8)>>6)+1,blks=new Array(nblk*16);var i=0;for(;i<nblk*16;i++)blks[i]=0;for(i=0;i<_s.length;i++)blks[i>>2]|=_s.charCodeAt(i)<<((i%4)*8);blks[i>>2]|=0x80<<((i%4)*8);blks[nblk*16-2]=_s.length*8;return blks};this._fSa=function(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF),msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF)};this.rol=function(num,cnt){return(num<<cnt)|(num>>>(32-cnt))};this.cmn=function(q,a,b,x,s,t){return this._fSa(this.rol(this._fSa(this._fSa(a,q),this._fSa(x,t)),s),b)};this._fF=function(a,b,c,d,x,s){return this.cmn((b&c)|((~b)&d),a,0,x,s,0)};this._fG=function(a,b,c,d,x,s){return this.cmn((b&c)|(b&d)|(c&d),a,0,x,s,1518500249)};this._fH=function(a,b,c,d,x,s){return this.cmn(b^c^d,a,0,x,s,1859775393)};this._MD4=function(_s){var x=this.str2blks_MD5(_s),a=1732584193,b=-271733879,c=-1732584194,d=271733878;for(var i=0;i<x.length;i+=16){var olda=a,oldb=b,oldc=c,oldd=d;a=this._fF(a,b,c,d,x[i+0],3);d=this._fF(d,a,b,c,x[i+1],7);c=this._fF(c,d,a,b,x[i+2],11);b=this._fF(b,c,d,a,x[i+3],19);a=this._fF(a,b,c,d,x[i+4],3);d=this._fF(d,a,b,c,x[i+5],7);c=this._fF(c,d,a,b,x[i+6],11);b=this._fF(b,c,d,a,x[i+7],19);a=this._fF(a,b,c,d,x[i+8],3);d=this._fF(d,a,b,c,x[i+9],7);c=this._fF(c,d,a,b,x[i+10],11);b=this._fF(b,c,d,a,x[i+11],19);a=this._fF(a,b,c,d,x[i+12],3);d=this._fF(d,a,b,c,x[i+13],7);c=this._fF(c,d,a,b,x[i+14],11);b=this._fF(b,c,d,a,x[i+15],19);a=this._fG(a,b,c,d,x[i+0],3);d=this._fG(d,a,b,c,x[i+4],5);c=this._fG(c,d,a,b,x[i+8],9);b=this._fG(b,c,d,a,x[i+12],13);a=this._fG(a,b,c,d,x[i+1],3);d=this._fG(d,a,b,c,x[i+5],5);c=this._fG(c,d,a,b,x[i+9],9);b=this._fG(b,c,d,a,x[i+13],13);a=this._fG(a,b,c,d,x[i+2],3);d=this._fG(d,a,b,c,x[i+6],5);c=this._fG(c,d,a,b,x[i+10],9);b=this._fG(b,c,d,a,x[i+14],13);a=this._fG(a,b,c,d,x[i+3],3);d=this._fG(d,a,b,c,x[i+7],5);c=this._fG(c,d,a,b,x[i+11],9);b=this._fG(b,c,d,a,x[i+15],13);a=this._fH(a,b,c,d,x[i+0],3);d=this._fH(d,a,b,c,x[i+8],9);c=this._fH(c,d,a,b,x[i+4],11);b=this._fH(b,c,d,a,x[i+12],15);a=this._fH(a,b,c,d,x[i+2],3);d=this._fH(d,a,b,c,x[i+10],9);c=this._fH(c,d,a,b,x[i+6],11);b=this._fH(b,c,d,a,x[i+14],15);a=this._fH(a,b,c,d,x[i+1],3);d=this._fH(d,a,b,c,x[i+9],9);c=this._fH(c,d,a,b,x[i+5],11);b=this._fH(b,c,d,a,x[i+13],15);a=this._fH(a,b,c,d,x[i+3],3);d=this._fH(d,a,b,c,x[i+11],9);c=this._fH(c,d,a,b,x[i+7],11);b=this._fH(b,c,d,a,x[i+15],15);a=this._fSa(a,olda);b=this._fSa(b,oldb);c=this._fSa(c,oldc);d=this._fSa(d,oldd)}return this.rhex(a)+this.rhex(b)+this.rhex(c)+this.rhex(d)};this.read=function(n){var neq=n+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(neq)==0)return unescape(c.substring(neq.length,c.length))}return null};this.write=function(n,v){document.cookie=n+'='+v+';path=/;expires='+(new Date((new Date()).getTime()+this.expiration)).toGMTString()};this.matchurl=function(u,type){var i=0,c=this.read(this.cookie_name);if(type=='domain')u=/(:\/\/)[\w\d\:\.]+/g.exec(u)[0].replace('://','');n=this._MD4(u);if(c==null)return false;while(i<c.length){j=i+n.length;if(c.substring(i,j)==n){return(unescape(c.substring(j+1,j+2))==1)}i++}return false};this.tagurl=function(u,type){if(type=='domain')u=/(:\/\/)[\w\d\:\.]+/g.exec(u)[0].replace('://','');var prev_val="";if(this.read(this.cookie_name)!=null){prev_val=this.read(this.cookie_name).replace(eval('/'+escape(this._MD4(u))+'~1:/g'),'')}this.write(this.cookie_name,prev_val+(prev_val!=''?':':'')+escape(this._MD4(u))+'~1')}};OnlineOpinion.ocode=function(name){this.name=name;function rematch(val,restr){var re=new RegExp(restr);var m=re.exec(val);if(m==null||m==''){return''}else{var s="";for(i=0;i<m.length;i++){s=s+m[i]}return s}};this._fC=function(_u){_aT=this._sp+',\\/,\\.,-,_,'+this._rp+',%2F,%2E,%2D,%5F';_aA=_aT.split(',');for(i=0;i<5;i++){eval('_u=_u.replace(/'+_aA[i]+'/g,_aA[i+5])')}return _u};this._browser=function(){this.engine=null;this.version=null;var useragent=navigator.userAgent.toLowerCase();if(window.ActiveXObject){this.engine='ie';this.version=rematch(useragent,"msie\\s[0-9]\.[0-9]+").replace('msie ','')}else{if(window.opera){this.engine='opera';this.version=rematch(useragent,"opera.[0-9]\.[0-9]+").replace('opera','').replace('/','')}else{if(document.childNodes&&!document.all&&!navigator.taintEnabled){if(rematch(useragent,"applewebkit\/[0-9]+")!=null){this.engine='webkit';this.version=rematch(useragent,"applewebkit\/[0-9]+").replace('applewebkit/','')}else{this.engine='khtml';this.version=rematch(useragent,"khtml\/[0-9]\.[0-9]\.[0-9]+").replace('khtml/','')}}else if(document.getBoxObjectFor!=null){this.engine='gecko';this.version=rematch(useragent,"gecko/[0-9]+").replace('gecko/','')}}}};this.serialize=function(obj,option){var str_out='',inc=0;for(var i in obj){if(typeof obj[i]!='function'&&typeof obj[i]!='undefined'&&obj[i]!=null&&obj[i]!=''){if(option==0){str_out+=(inc==0?'':'&')+i+'='+escape(obj[i])}else{if(option==1){str_out+=(inc==0?'':'|')+escape(obj[i])}}inc++}}return str_out};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(){if(Math.random()>=1.0-this.Preferences.Plugins.Events.poE){this.show();this.Preferences.Plugins.Events.poX=0.0}};this.onExit=function(){if(Math.random()>=1.0-this.Preferences.Plugins.Events.poX)this.show()};this.OnClick=function(){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.init=function(){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(onclick_func){this.init();var b=new this._browser();var d=document;var de=d.documentElement;var db=d.body;var w=window;var divID=this.Preferences.Render.main_div_id;var bVersion=parseFloat(b.version);var compliant=d.compatMode=='CSS1Compat';var sObj=compliant?de:db;if(b.engine=="webkit"){sObj=db}if(b.engine==null||b.version==null||isNaN(parseInt(b.version,10))||(b.engine=='ie'&&parseFloat(b.version)<6)||(b.engine=='opera'&&parseInt(b.version,10)<8)||(b.engine=='gecko'&&parseInt(b.version,10)<20041107))return false;var mainDivObj=d.getElementById(divID);if(mainDivObj==null){if(this.Preferences.Render.type=='floating'){mainDivObj=db.appendChild(d.createElement("div"));mainDivObj.id=divID}}if(mainDivObj.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}var olUpObj=mainDivObj.appendChild(d.createElement("div"));olUpObj.id=this.Preferences.Render.up_div_id;var olOverObj=mainDivObj.appendChild(d.createElement("div"));olOverObj.id=this.Preferences.Render.over_div_id;olOverObj.style.display='none';olUpObj.onmouseover=function(){d.getElementById(olOverObj.id).style.display='block';document.getElementById(olUpObj.id).style.display='none'};olOverObj.onmouseout=function(){d.getElementById(olOverObj.id).style.display='none';document.getElementById(olUpObj.id).style.display='block'};var ooImg=olUpObj.appendChild(d.createElement("img"));ooImg.src=this.Preferences.Render.img_path;var fbText=olUpObj.appendChild(d.createElement("span"));fbText.id=this.Preferences.Render.feedback_span_id;fbText.innerHTML=this.Preferences.Render.feedback_html;var feedback_text=null;if(this.Preferences.Render.div_alt_text){feedback_text=this.Preferences.Render.div_alt_text}else{if(document.all){feedback_text=fbText.innerText}else{feedback_text=fbText.textContent}}mainDivObj.alt=feedback_text;mainDivObj.title=feedback_text;olOverObj.innerHTML=this.Preferences.Render.click_html}if(this.Preferences.Render.type=='static'){mainDivObj.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 mdoStyle=mainDivObj.style;var _this=this;if(this.Preferences.Render.float_style=="rightOfContent"){function getRightOfContent(){return contentDiv.offsetWidth+contentDiv.offsetLeft+1}var contentDiv=d.getElementById(_this.Preferences.Render.main_content_id||"content");if(contentDiv==null){contentDiv=db.firstChild;while(contentDiv&&contentDiv.nodeType!=Node.ELEMENT_NODE){contentDiv=contentDiv.nextSibling}}function fixBackground(){if(_this.Preferences.Render.fix_background){db.style.backgroundAttachment="scroll";var margin=null;if(document.defaultView&&document.defaultView.getComputedStyle){margin=parseInt(document.defaultView.getComputedStyle(contentDiv,null).getPropertyValue("margin-left"),10)}else{margin=parseInt(contentDiv.currentStyle.marginLeft,10)}if(isNaN(margin)||margin==0){margin=contentDiv.offsetLeft||0}db.style.backgroundPosition=(Math.floor(contentDiv.scrollWidth*-0.5)-2+margin)+'px 0'}}}var ieSux=function(e){if(_this.Preferences.Render.float_style=='fixed'){mdoStyle.left=sObj.scrollLeft+sObj.clientWidth-mainDivObj.clientWidth}else if(_this.Preferences.Render.float_style=="rightOfContent"){mdoStyle.left=getRightOfContent()+'px'}mdoStyle.top=sObj.scrollTop+sObj.clientHeight-mainDivObj.clientHeight;if(e==null||e.type=='load')mdoStyle.visibility='visible';if(e==null||e.type=='load'||e.type=='resize')fixBackground()};if(b.engine=='ie'&&(bVersion<7||!compliant)){mdoStyle.position='absolute';function mapEvents(target,events){for(var idx=0;idx<events.length;idx++){var curevent=events[idx];target.attachEvent("on"+curevent,ieSux)}};mapEvents(mainDivObj,["mouseover","mouseout"]);mapEvents(w,["resize","scroll","load"])}else{mdoStyle.position='fixed';if(this.Preferences.Render.float_style=='fixed'){mdoStyle.right='0px';mdoStyle.bottom='0px'}else if(this.Preferences.Render.float_style=="rightOfContent"){var rightOfContent=getRightOfContent()-sObj.scrollLeft+'px';mdoStyle.bottom='0px';mdoStyle.left=rightOfContent;var gutter=d.createElement("div");db.replaceChild(gutter,mainDivObj);gutter.appendChild(mainDivObj);gutter.style.position="absolute";gutter.style.width=mainDivObj.offsetWidth+'px';gutter.style.left=rightOfContent;gutter.style.top='0px';gutter.style.height=sObj.scrollHeight+'px';fixBackground();var resizeMove=function(e){var right=getRightOfContent();mdoStyle.left=right-sObj.scrollLeft+'px';if(e.type=='resize'){gutter.style.left=right+'px';fixBackground()}};if(b.engine=='ie'){w.attachEvent("onresize",resizeMove);w.attachEvent("onscroll",resizeMove)}else{w.addEventListener("resize",resizeMove,false);w.addEventListener("scroll",resizeMove,false)}}mainDivObj.style.visibility='visible'}}mainDivObj.onclick=onclick_func;try{if(this.Preferences.Plugins.CardOnPage.enabled==true){var onPageCCdiv=db.appendChild(d.createElement("div"));onPageCCdiv.id=this.Preferences.Plugins.CardOnPage.div_id;var onPageCCiframe=onPageCCdiv.appendChild(d.createElement("iframe"));onPageCCiframe.id=this.Preferences.Plugins.CardOnPage.iframe_id;var W=(b.engine=='webkit')?w.innerWidth:(b.engine=='opera'?db.clientWidth:de.clientWidth);var H=(b.engine=='webkit')?w.innerHeight:(b.engine=='opera'?db.clientHeight:de.clientHeight);var wx=585,hy=400;onPageCCdiv.style.left=parseInt((W-wx)/2,10)+'px';onPageCCdiv.style.top=parseInt((H-hy)/2,10)+'px';if(b.engine=='ie'&&bVersion<7)onPageCCdiv.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(alt_referer){var location=window.location.href;if(alt_referer)location=alt_referer;var rewriter=this.Preferences.Plugins.URLRewrite;if(rewriter&&rewriter.active==true){this.Metrics.core.referer=location.replace(rewriter.regex_search_pattern,rewriter.regex_replace_pattern)}else{this.Metrics.core.referer=location}};this.post=function(){this.Metrics.core.time2=(new Date()).getTime();var mainDivObj=document.getElementById(this.Preferences.Render.main_div_id);var JSONP=mainDivObj.appendChild(document.createElement("script"));var odata=this.serialize(this.Metrics.core,0)+'&custom_var='+this.serialize(this.Metrics.custom,1);var elements=document.forms[this.Preferences.Render.main_div_id+'_form'].elements;var formdata=[];for(idx=0;idx<elements.length;idx++){var curElement=elements[idx];try{var name=curElement.name;if(name!=undefined&&curElement.value!=undefined){switch(curElement.type){case"radio":if(curElement.checked)formdata.push(curElement.name+'='+encodeURIComponent(curElement.value));break;case"checkbox":if(curElement.checked)formdata.push(curElement.name+'='+encodeURIComponent(curElement.value));break;default:formdata.push(curElement.name+'='+encodeURIComponent(curElement.value))}}}catch(e){}}var cdata=formdata.join('&');var osignature=this.Cookie!=null?this.Cookie._MD4(odata):"";JSONP.src="https://secure.opinionlab.com/rate36s.asp?"+odata+"&"+cdata+"&signature="+osignature;if(this.Preferences.Persistence.enabled){var mainFormDiv=document.getElementById(this.Preferences.Render.main_div_id+"_form");mainFormDiv.style.display='none'}if(this.Preferences.Render.ty_html!=''){var TYDivObj=document.getElementById(this.Preferences.Render.ty_div_id);TYDivObj.innerHTML=this.Preferences.Render.ty_html;TYDivObj.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();}};