(function($){$.fn.socshare=function(custom){var notie6=window.XMLHttpRequest;if(notie6){var defaults={socstyle:'/socstyle.css',topbuttondiv:'.topbutton',plusbuttondiv:'.plusbutton',title:'<strong>Share, Bookmark, Email, or Print</strong> this page.',highlight:true,highlightpop:true,blanktarget:true,stickybutton:false,shareurl:'',sharetitle:'',fburl:'http://www.facebook.com/pages/pages/Keystroke-Spy-Software/271040339582885',mainurl:'http://www.keystrokespysoftware.com/',fbAction:'like',fbcolorscheme:'light',tweetText:'',tweetVia:'Keystroke_Spy',tweetRelated:'Keystroke_Spy',tweetButton:'Tweet',overlay:true,overlayopacity:0.3,overlaycolor:'#000',speedin:300,speedout:300};var settings=$.extend({},defaults,custom);var sharethisbutton='<b class="socshare"><img class="moreshare" title="Share This!" alt="Share This!" height="20px" src="/images/trans.gif" width="93px" /></b>';$(sharethisbutton).appendTo(settings.topbuttondiv);var sharethisbutton='<div class="plusbuttonfloat"><div class="socbutton"><b class="socshare"><img class="moreshare" title="Share This!" alt="Share This!" height="20px" src="/images/trans.gif" width="93px" /></b></div></div>';$(sharethisbutton).appendTo(settings.plusbuttondiv);$("head").prepend('<link href="'+settings.socstyle+'" rel="stylesheet" type="text/css" />');$("body").prepend('<div id="fb-root"></div>');var socshare_box=['<div id="socshare_box">','<div id="socshare_top"><div id="socshare_close" title="close window"><a href="javascript:void(0);" class="socshare_close"><img class="close" src="/images/trans.gif" height="30" width="30" alt="close window" /></a></div></div>','<div id="socshare_middle">','<div id="socshare_title">'+settings.title+'</div>','<div id="socshare_main"></div>','</div>','<div id="socshare_bottom"></div>','</div>'];overlay=$('<div id="socshare-overlay" class="socshare_close"></div>');if(settings.overlay){overlay.css({'background-color':settings.overlaycolour,'opacity':settings.overlayopacity});}else{overlay.css({'opacity':'0.0'});}
$('body').append(socshare_box.join(''),overlay);if(settings.stickybutton){var jbutton=$('<a href="javascript:void(0);" id="socshare_button" class="socshare" title="Share and Bookmark this page!"><img class="sharebutton" src="/images/trans.gif" alt="Share and Bookmark" height="108px" width="48px"/></a>');$('body').append(jbutton).fadeIn(settings.speedin);}
$('.socshare_close').click(function(){$('#socshare_box').fadeOut(settings.speedout);overlay.fadeOut(settings.speedout);});$('.socshare').click(function(){$("#socshare_box").css({"top":$(window).height()/2-$("#socshare_box").height()/2+"px","left":$(window).width()/2-$("#socshare_box").width()/2+"px"});$('#socshare_box').fadeIn(settings.speedin);overlay.fadeIn(settings.speedin);});$(window).resize(function(){$("#socshare_box").css({"top":$(window).height()/2-$("#socshare_box").height()/2+"px","left":$(window).width()/2-$("#socshare_box").width()/2+"px"});});var socshare_keywords;function socshare_metakeywords(){if(!socshare_keywords){metaCollection=document.getElementsByTagName('meta');for(i=0;i<metaCollection.length;i++){nameAttribute=metaCollection[i].name.search(/keywords/);if(nameAttribute!=-1){socshare_keywords=metaCollection[i].content;return socshare_keywords;}}}else{return socshare_keywords;}}
var socshare_description;function socshare_metadescription(){if(!socshare_description){metaCollection=document.getElementsByTagName('meta');for(i=0;i<metaCollection.length;i++){nameAttribute=metaCollection[i].name.search(/description/);if(nameAttribute!=-1){socshare_description=metaCollection[i].content;return socshare_description;}}}else{return socshare_description;}}
function socshare_url(){if(settings.shareurl){return settings.shareurl;}else{return document.location.href.replace("#","");}}
function socshare_title(){if(settings.sharetitle){return settings.sharetitle;}else{return document.title;}}
function soctweet_title(){if(settings.tweetText){return settings.tweetText;}else{return document.title;}}
function encodeURL(string){if(string){return encodeURIComponent(string);}
return"";}
function fb_url(){if(settings.fburl){return settings.fburl;}else{return document.location.href.replace("#","");}}
var sites=[['Facebook','Send to Facebook','http://www.facebook.com/sharer.php?u={url}&amp;t={title}'],['Twitter','Tweet This','http://twitter.com/share?text={title}&amp;url={url}'],['LinkedIn','Send to LinkedIn','http://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={description}&source='],['StumbleUpon','Send to StumbleUpon','http://www.stumbleupon.com/submit?url={url}&amp;title={title}'],['Digg','Digg This','http://digg.com/submit?phase=2&amp;url={url}&amp;title={title}'],['Reddit','Send to Reddit','http://reddit.com/submit?url={url}&amp;title={title}'],['Favorites','Add to Favorites','javascript:void(0);" onClick="bookmark_us();" target="_self'],['Email','Email to Friends','mailto:?subject=Check this out - {title}&body= Thought you might like this : %0D%0A %0D%0A {title} - {url} %0D%0A %0D%0A {description}'],['Print','Print this page','javascript:void(0);" onClick="print_page();" target="_self']];for(var w=0,length=sites.length;w<length;w++){var site=sites[w],url=site[2],url=url.replace(/{title}/g,encodeURL(socshare_title())),url=url.replace(/{url}/g,encodeURL(socshare_url())),url=url.replace(/{keywords}/g,encodeURL(socshare_metakeywords())),url=url.replace(/{description}/g,encodeURL(socshare_metadescription()));if(site[0]!='Favorites'&&site[0]!='Email'&&site[0]!='Print'){var target=settings.blanktarget?'rel="external"':'';}
else{var target='';}
var sharelink='<a href="'+url+'" title="'+site[1]+'" '+target+'><img class="'+site[0]+'" src="/images/trans.gif" alt="'+site[0]+'" height="30" width="30" align="absmiddle" />&nbsp;&nbsp;'+site[0]+'</a>';$(sharelink).appendTo('#socshare_main');}
var regshare='<div class="socgoogle"><g:plusone size="medium" href="'+settings.mainurl+'"></g:plusone></div>';regshare+='<div class="soctwitter"><a href="https://twitter.com/share?url='+encodeURL(socshare_url())+'&amp;text='+encodeURL(soctweet_title())+'&amp;related='+encodeURL(settings.tweetRelated)+'&amp;via='+encodeURL(settings.tweetVia)+'&amp;counturl='+encodeURL(settings.mainurl)+'" class="twitter-share-button">Tweet</a></div>';regshare+='<div class="socfacebook"><div class="fb-like" data-href="'+encodeURL(fb_url())+'" data-action="'+settings.fbAction+'" data-colorscheme="'+settings.fbcolorscheme+'" data-send="false" data-layout="button_count" data-width="97" data-show-faces="false"></div></div>';$(regshare).prependTo('.plusbuttonfloat');var sharelink='<div class="socpopup"><div class="fb-like" data-href="'+encodeURL(fb_url())+'" data-action="'+settings.fbAction+'" data-colorscheme="'+settings.fbcolorscheme+'" data-send="false" data-layout="button_count" data-width="152" data-show-faces="false"></div></div>';sharelink+='<div class="socpopup"><a href="https://twitter.com/share?url='+encodeURL(socshare_url())+'&amp;text='+encodeURL(soctweet_title())+'&amp;related='+encodeURL(settings.tweetRelated)+'&amp;via='+encodeURL(settings.tweetVia)+'&amp;counturl='+encodeURL(settings.mainurl)+'" class="twitter-share-button">Tweet</a></div>';sharelink+='<div class="socpopup"><g:plusone size="medium" href="'+settings.mainurl+'"></g:plusone></div>';$(sharelink).appendTo('#socshare_main');if(settings.highlight){$("#socshare_main a").fadeTo("fast",0.7).hover(function(){$(this).fadeTo("fast",1.0);},function(){$(this).fadeTo("fast",0.7);});}
if(settings.highlightpop){$(".socpopup").fadeTo("fast",0.7).hover(function(){$(this).fadeTo("fast",1.0);},function(){$(this).fadeTo("fast",0.7);});}
return this;}};})(jQuery);function print_page(){$z1('#socshare-overlay').fadeOut('slow');$z1('#socshare_box').fadeOut('slow',function(){window.print();});}
function bookmark_us(){alert('Press ctrl + D to bookmark this page');}
(function(){var po=document.createElement('script');po.type='text/javascript';po.async=true;po.src='https://apis.google.com/js/plusone.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s);})();(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"));(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}
js=d.createElement(s);js.id=id;js.src="https://connect.facebook.net/en_US/all.js#xfbml=1";fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));var $zexternal=jQuery.noConflict();$zexternal(document).ready(function(){$zexternal('a[rel*=external]').live('click',function(){window.open($zexternal(this).attr('href'));return false;});});
