/*
 * ====================================================================================
 * ----------------------------------------------------------------------------------
 *  Premium URL Shortener  - https://gempixel.com/buy/short
 *  Copyright (c) KBRmedia - https://gempixel.com
 *  @since v1.0
 * ----------------------------------------------------------------------------------
 * ====================================================================================
 */ 
!function(){if(void 0===window.jQuery||window.jQuery.fn.jquery<"1.5"){var t=!1,e=document.createElement("script");e.src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js",e.onload=e.onreadystatechange=function(){t||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(t=!0,o())},document.getElementsByTagName("head")[0].appendChild(e)}else o();function o(){(window.myBookmarklet=function(){var t=jQuery("#gem_bookmarklet").attr("data-url"),e=jQuery("#gem_bookmarklet").attr("data-token");jQuery("body").append('<div id="gempixel-bookmarlet" style="z-index:99999 !important;box-shadow:0 5px 10px rgba(0,0,0,0.1) !important;font-family:arial !important;font-size:13px !important;background:#fff !important;position:fixed !important;border-radius:5px !important;color:#000 !important; padding-bottom: 5px !important;"><h2 style="border-bottom:1px solid #eee !important;margin:0 !important ;padding:10px !important;font-size:14px !important;color:#000 !important;">URL Shortener<a style="color:#000 !important;font-size:11px !important;text-align:right !important;text-decoration:none !important;float:right !important;margin-top:2px !important;" id="close" href="#close">(Close)</a></h2><form style="padding:10px !important;"><label for="gem-url">Short URL</label><input style="border-radius:3px !important;margin-top:10px !important;background:#fff !important;border:1px solid #32a0ee !important;width:250px !important;display:block !important;padding:5px 8px !important;" type="text" name="url" id="gem-url" value=""></form><a href="#tw" id="gem-twitter" style="display:inline-block !important; width:85px !important; padding: 8px !important; margin: 2px !important;margin-left:5px !important;text-decoration:none !important;color:#fff !important;background:#409DD5 !important;text-align:center !important;border-radius:2px;margin-bottom:10px;"  target="_blank">Tweet</a> <a href="#fb" id="gem-facebook"style="display:inline-block !important; width:85px !important; padding: 8px !important; margin: 2px !important;text-decoration:none !important;color:#fff !important;background:#3B5998 !important;text-align:center !important;border-radius:2px;" target="_blank">Share</a></div>'),jQuery("#gempixel-bookmarlet").css({top:"20px",left:.5*(jQuery(document).width()-jQuery("#gempixel-bookmarlet").width())}),jQuery("#gempixel-bookmarlet").slideDown("slow"),jQuery("#gempixel-bookmarlet #close").click(function(t){t.preventDefault(),jQuery("#gempixel-bookmarlet").remove()}),jQuery.getJSON(t+"/?&bookmark=true&callback=?",{url:document.URL,token:e},function(t){"0"==t.error?(jQuery("#gempixel-bookmarlet #gem-url").val(t.short).select(),jQuery("#gem-facebook").attr("href","https://www.facebook.com/sharer.php?u="+t.short),jQuery("#gem-twitter").attr("href","https://twitter.com/share?url="+t.short)):jQuery("#gempixel-bookmarlet #gem-url").val(t.msg)})})()}}();