(function(){var iubv=window.iubv={speed:500,height:300,collapsed:true,width:300,themes:{blue:'iubvBlue',red:'iubvRed',light:'iubvLight',dark:'iubvDark'}};if((iubv.r=document.getElementById('iubv'))){iubv.cont=document.createElement('div');iubv.cont.id='iubv';iubv.speed=parseInt(iubv.r.getAttribute('data-speed'),10)||iubv.speed;iubv.height=parseInt(iubv.r.getAttribute('data-height'),10)||iubv.height;var width=parseInt(iubv.r.getAttribute('data-width'),10);var className=[];if(width==160){iubv.width=160;className[className.length]='iubv160';}
iubv.collapsed=iubv.r.getAttribute('data-collapsed')=='false'?false:true;var theme=iubv.r.getAttribute('data-theme');if(!theme||!iubv.themes[theme]){theme='blue';}
className[className.length]=iubv.themes[theme];iubv.cont.className=className.join(' ');iubv.dom=iubv.r.getAttribute('href');iubv.widget=iubv.dom+'/widget/';var par=iubv.r.parentNode;par.insertBefore(iubv.cont,iubv.r);var l=document.createElement('link');l.rel='stylesheet';l.type='text/css';l.media='screen';l.href=iubv.widget+'app.css';iubv.cont.appendChild(l);l=document.createElement('script');l.type='text/javascript';l.async=true;var now=new Date();l.src=iubv.widget+'app.js?c='+now.getFullYear()+now.getMonth()+now.getDate()+(parseInt(now.getHours()/6,10));iubv.cont.appendChild(l);}})();
