
var shareNiceConfig={"email":{"url":"mailto:?subject=%SHARE_TITLE%&body=%SHARE_URL%","icon":"icon-email.png"},"facebook.com":{"url":"http://www.facebook.com/sharer.php?u=%SHARE_URL%&t=%SHARE_TITLE%","icon":"facebook_com.png"},"twitter.com":{"url":"http://twitter.com/?status=%SHARE_URL%","icon":"twitter_com.png"},"plus.google.com":{"url":"https://plusone.google.com/_/+1/confirm?url=%SHARE_URL%","icon":"plus_google_com.png"},"google.com":{"url":"http://www.google.com/bookmarks/mark?op=add&bkmk=%SHARE_URL%","icon":"google_com.png"},"linkedin.com":{"url":"http://www.linkedin.com/shareArticle?mini=true&url=%SHARE_URL%","icon":"linkedin_com.png"},"reddit.com":{"url":"http://reddit.com/submit?url=%SHARE_URL%","icon":"reddit_com.png"},"digg.com":{"url":"http://digg.com/submit?phase=2&url=%SHARE_URL%","icon":"digg_com.png"},"stumbleupon.com":{"url":"http://www.stumbleupon.com/submit?url=%SHARE_URL%","icon":"stumbleupon_com.png"},"bit.ly":{"url":"https://bitly.com/?url=%SHARE_URL%","icon":"bit_ly.png"}};function shareNiceHide(){if(document.getElementById)document.getElementById("shareNice-wrapper").style.display="none"}var shareNiceTimeout=null;function shareNiceShow(iconSizeInt){if(shareNiceTimeout!=null){window.clearTimeout(shareNiceTimeout);shareNiceTimeout=null}if(document.getElementById){var shareLink=document.getElementById("shareNice-Link");var originalDim=GetTopLeft(shareLink);var shareWrapper=document.getElementById("shareNice-wrapper");shareWrapper.style.display="block";shareWrapper.style.top=originalDim.Top+(iconSizeInt-6)+"px";shareWrapper.style.left=originalDim.Left+"px"}}function getPageTitle(){return document.title}
function GetTopLeft(obj){var curleft=curtop=0;if(obj.offsetParent){do{curleft+=obj.offsetLeft;curtop+=obj.offsetTop}while(obj=obj.offsetParent)}return[curtop,curleft]}
function shareNiceLoad(){var shareNice=document.getElementById("shareNice");if(shareNice==null)return;shareNice.style.display="inline";var filter=null;var sattr=shareNice.getAttribute("services");if(sattr!=null){filter={};var a=sattr.split(",");for(var s in a)filter[a[s]]=1}var prot=window.location.protocol;var label="Share";var lattr=shareNice.getAttribute("share-label");if(lattr!=null)label=lattr;var cScheme="orange";var cSchemeAttr=shareNice.getAttribute("color-scheme");if(cSchemeAttr!=null)cScheme=cSchemeAttr;var iconSize="16";var iconSizeAttr=shareNice.getAttribute("icon-size");if(iconSizeAttr!=null&&iconSizeAttr=="32")iconSize=iconSizeAttr;var iconSizeInt=parseInt(iconSize);var iconImg="icon-share-"+cScheme+iconSize+".png";var labelTopPadding=0;var labelTopPaddingAttr=shareNice.getAttribute("label-topPadding");if(labelTopPaddingAttr!=null&&typeof parseInt(labelTopPaddingAttr)=="number")labelTopPadding=parseInt(labelTopPaddingAttr);var panelBottom="default";var panelBottomAttr=shareNice.getAttribute("panel-bottom");if(panelBottomAttr!=null&&panelBottomAttr=="plain")panelBottom=panelBottomAttr;var shareBoxHTML='<div><a href="" id="shareNice-Link" style="background: transparent url(http://ws.cf.wireshark.net/image/ws_share_navbar.png) 0 0 no-repeat; cursor: pointer; text-decoration: none; display: inline-block;"></a><span></span></div> <div id="shareNice-wrapper" style="position:absolute; display:none; padding: 0; margin:0px auto;"> <div id="shareNice-box"> <div id="shareNice-box-top" style="width: 216px; height: 14px; background: url('+
prot+'//sharenice.org/images/panel/share-box-top.png) no-repeat bottom center; margin-top: 10px;"></div> <div id="shareNice-box-body" style="width: 216px; background: url('+prot+'//sharenice.org/images/panel/share-box-body.png) repeat-y; margin: 0; padding: 0;"> <ul id="shareNice-socialLinks" style="margin: 0; padding: 1px 0 0 8px; list-style:none;">';if(shareNiceConfig!=null){var currentPage=window.location.href;var title=document.title;if(title.length<1)title=currentPage;for(var site in shareNiceConfig){if(filter!=null&&!filter[site])continue;var icon=site+".png";if(shareNiceConfig[site].icon!=null)icon=shareNiceConfig[site].icon;shareBoxHTML=shareBoxHTML+'<li style="margin: 0; float: left; display: inline; padding: 0 2px 0 2px;"><a href="'+shareNiceConfig[site].url.replace("%SHARE_URL%",currentPage).replace("%SHARE_TITLE%",title)+'" target="_blank" style="margin:0px; padding:0px;">'+'<img src="'+prot+"//sharenice.org/images/"+icon+'" style="border: 0" alt="'+site+'_icon" title="'+site+'" />'+"</a></li>"}}shareBoxHTML=shareBoxHTML+"</ul>";if(panelBottom=="default")shareBoxHTML=shareBoxHTML+'<a style="padding:0;margin:0;"href="http://sharenice.org/website/privacy">';shareBoxHTML=shareBoxHTML+'<div style="clear:both;"></div> </div> <div id="shareNice-box-bottom" style="width: 216px; height: 44px; background: url('+prot+"//sharenice.org/images/panel/share-box-bottom-"+panelBottom+'.png) no-repeat top center;"></div>';if(panelBottom=="default")shareBoxHTML=shareBoxHTML+"</a>";shareBoxHTML=shareBoxHTML+" </div> </div>";shareNice.innerHTML=shareBoxHTML;shareNice.onmouseover=function(){shareNiceShow(iconSizeInt)};shareNice.onmouseout=function(){shareNiceTimeout=window.setTimeout("shareNiceHide()",250)}}if(window.attachEvent)window.attachEvent("onload",shareNiceLoad);else if(window.addEventListener)window.addEventListener("load",shareNiceLoad,false);else document.addEventListener("load",shareNiceLoad,false);
