﻿var lkn={};lkn.allowedLabels=["follow-me","follow-us","follow","my-twitter"];lkn.defaultTop=78;lkn.defaultColor="#35ccff";lkn.isInArray=function(str,ar){if(ar.length<1)return;for(var i=0;i<ar.length;i++){if(ar[i]==str){return true;break;}}
return false;}
lkn.showbadge=function(){if(!window.XMLHttpRequest){return;}
if(document.getElementById('lknFollowBadge')){document.body.removeChild(document.getElementById('lknFollowBadge'));}
if(lkn.top<0||lkn.top>1000||isNaN(lkn.top)){lkn.top=lkn.defaultTop;}
if(!lkn.isInArray(lkn.label,lkn.allowedLabels)){lkn.label=lkn.allowedLabels[0];}
var validColorPattern=/^#([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?$/;if(!validColorPattern.test(lkn.color)||(lkn.color.length!=4&&lkn.color.length!=7)){lkn.color=lkn.defaultColor;};if(lkn.side!='l'){lkn.side='r';}
lkn.tabStyleCode='position:fixed;'+'top:'+lkn.top+'px;'+'width:30px;'+'height:119px;'+'z-index:8765;'+'cursor:pointer;'+'background:'+lkn.color+' url(images/linkedin_follow.png);'+'background-repeat:no-repeat;';lkn.aboutStyleCode='position:fixed;'+'top:'+(parseInt(lkn.top)+107)+'px;'+'width:10px;'+'height:11px;'+'z-index:9876;'+'cursor:pointer;'+'background-repeat:no-repeat;';if(lkn.side=='l'){lkn.tabStyleCode+='left:0; background-position:right top;';lkn.aboutStyleCode+='left:0;';}else{lkn.tabStyleCode+='right:0; background-position:left top;';lkn.aboutStyleCode+='right:0;';}
lknMainDiv=document.createElement('div');lknMainDiv.setAttribute('id','lknFollowBadge');document.body.appendChild(lknMainDiv);lknMainDiv.innerHTML='<div id="lknTab" style="'+lkn.tabStyleCode+'"></div><div id="lknAbout" style="'+lkn.aboutStyleCode+'"></div>'+'<style>#lknAbout{visibility:hidden;} #FollowBadge:hover #lknAbout{visibility:invisible;}</style>';document.getElementById('lknTab').onclick=function(){window.open('http://www.linkedin.com/company/planbase?trk=fc_badge');}
}
