if('undefined'==typeof(console)){console={"log":function(str){},"debug":function(str){}}}var Gravatar={"profile_stack":{},"profile_map":{},"overTimeout":false,"outTimeout":false,"stopOver":false,"active_grav":false,"active_hash":false,"active_id":false,"active_grav_clone":false,"profile_cb":null,"stats_queue":[],"throbber":null,"has_bg":false,"disabled":false,"url_prefix":'http://www/',"disable":function(){Gravatar.disabled=true;Gravatar.hide_card();var d=new Date(2100,1,1,1,1,1);Gravatar.stat('disable');if(-1==window.location.host.search(/wordpress.com/i)){document.cookie='nohovercard=1; expires='+d.toUTCString()+';'}else{document.cookie='nohovercard=1; expires='+d.toUTCString()+'; domain=.wordpress.com; path=/'}},"mouseOut":function(e){e.stopImmediatePropagation();Gravatar.stopOver=true;Gravatar.outTimeout=setTimeout(function(){Gravatar.hide_card()},300)},"init":function(container,noGrav){var ca=document.cookie.split(';'),i,c;for(i=0;ijQuery(window).width()+jQuery(window).scrollLeft()){left=grav_pos.left-(card_width+grav_space);grav_pos_class='pos-left'}var top_offset=grav_height*.25;jQuery('#'+card_id).removeClass('pos-right pos-left').addClass(grav_pos_class).css({'top':(top-top_offset)+'px','left':left+'px'});var arrow_offset=(grav_height/2);if(arrow_offset>card_height){arrow_offset=card_height/2}if(arrow_offset>(card_height/2)-6){arrow_offset=(card_height/2)-6}if(arrow_offset>53){arrow_offset=53}if(this.has_bg){arrow_offset=arrow_offset-8}if(arrow_offset<0){arrow_offset=0}var css={'height':((grav_height*1.5)+top_offset)+'px'};if('pos-right'==grav_pos_class){css['right']='auto';css['left']='-7px';css['background-position']='0px '+arrow_offset+'px'}else{css['right']='-10px';css['left']='auto';css['background-position']='0px '+arrow_offset+'px'}jQuery('#'+card_id+' .grav-cardarrow').css(css)}card_el.stop().css({opacity:0}).show().animate({opacity:1},150,'linear',function(){jQuery(this).css({opacity:'auto'});jQuery(this).stop();grav_resize.init(card_id);grav_gallery.init(card_id);var date=new Date();var qp='http';if('https:'==window.location.protocol){qp+='s'}var url=qp+'://pixel.quantserve.com/pixel/p-18-mFEk4J448M.gif?labels=type.gravatar.hovercard&rand='+Math.random().toString()+'-'+date.getTime();var img=new Image(1,1);img.src=url})},"build_card":function(hash,profile){Object.size=function(obj){var size=0,key;for(key in obj){if(obj.hasOwnProperty(key)){size++}}return size};GProfile.init(profile);var urls=GProfile.get('urls');var photos=GProfile.get('photos');var services=GProfile.get('accounts');var limit=100;if(Object.size(urls)>3){limit+=90}else{limit+=10+(20*Object.size(urls))}if(Object.size(services)>0){limit+=30}var description=GProfile.get('aboutMe');description=description.replace(/<[^>]+>/ig,'');description=description.toString().substr(0,limit);if(limit==description.length){description+=''}var card_class='grav-inner';if(Gravatar.my_hash&&hash==Gravatar.my_hash){card_class+=' grav-is-user';if(!description.length){description="

Want a better profile? Click here.

"}}if(description.length){card_class+=' gcard-about'}name=GProfile.get('displayName');if(!name.length){name=GProfile.get('preferredUsername')}var card='

'+name+'

'+description+'

';if(Object.size(urls)||Object.size(services)){card_class+=' gcard-links'}card+=' ';if(Object.size(services)){card_class+=' gcard-services'}card+='
    ';var services_out=0;for(var s in services){if(!services[s]['url']){continue}if(services_out>=6){break}card+='';services_out++}card+='
';card+='
';if(Object.size(photos)>1){card_class+=' gcard-gallery'}card+='';card+='
';card+='

Turn off hovercards

';card+='
';jQuery('body').append(jQuery(card));jQuery('#profile-'+hash+' .grav-inner').addClass(card_class);this.has_bg=false;var bg=GProfile.get('profileBackground');if(Object.size(bg)){this.has_bg=true;var bg_css={padding:'8px 0'};if(bg.color){bg_css['background-color']=bg.color}if(bg.url){bg_css['background-image']='url('+bg.url+')'}if(bg.position){bg_css['background-position']=bg.position}if(bg.repeat){bg_css['background-repeat']=bg.repeat}jQuery('#profile-'+hash).css(bg_css)}if(!jQuery('#profile-'+hash+' .gcard-links').length&&!jQuery('#profile-'+hash+' .gcard-services').length){jQuery('#profile-'+hash+' .grav-rightcol').css({'width':'auto'})}if(!jQuery('#profile-'+hash+' .gcard-about').length){jQuery('#profile-'+hash+' .grav-leftcol').css({'width':'auto'})}if(jQuery.isFunction(Gravatar.profile_cb)){Gravatar.loaded_js(hash,'profile-'+hash)}jQuery('#profile-'+hash+' .grav-gallery img').click(function(){Gravatar.stat('click_photo')});jQuery('#profile-'+hash+' a.grav-extra-comments').click(function(e){return Gravatar.stat('click_comment',e)});jQuery('#profile-'+hash+' a.grav-extra-likes').click(function(e){return Gravatar.stat('click_like',e)});jQuery('#profile-'+hash+' .grav-links a').click(function(e){return Gravatar.stat('click_link',e)});jQuery('#profile-'+hash+' .grav-services a').click(function(e){return Gravatar.stat('click_service',e)});jQuery('#profile-'+hash+' h4 a').click(function(e){return Gravatar.stat('to_profile',e)});jQuery('#profile-'+hash+' .grav-tag a').click(function(e){if(3==e.which||2==e.button||e.altKey||e.metaKey||e.ctrlKey){e.preventDefault();e.stopImmediatePropagation();Gravatar.stat('egg');return Gravatar.whee()}return Gravatar.stat('to_gravatar',e)}).bind('contextmenu',function(e){e.preventDefault();e.stopImmediatePropagation();Gravatar.stat('egg');return Gravatar.whee()});jQuery('#profile-'+hash+' a.grav-edit-profile').click(function(e){return Gravatar.stat('click_edit_profile',e)})},"tilt_gravatar":function(){this.active_grav=jQuery('img#'+this.active_id);if(jQuery('img#grav-clone-'+this.active_hash).length){return}this.active_grav_clone=this.active_grav.clone().attr('id','grav-clone-'+this.active_hash).addClass('grav-clone');var top=this.active_grav.offset().top+parseInt(this.active_grav.css('padding-top'),10),left=this.active_grav.offset().left+parseInt(this.active_grav.css('padding-left'),10);var fancyCSS={'-webkit-box-shadow':'0 0 4px #aaa','-moz-box-shadow':'0 0 4px #aaa','box-shadow':'0 0 4px #aaa','border-width':'2px 2px '+(this.active_grav.height()/5)+'px 2px','border-color':'#fff','border-style':'solid','padding':'0px'};if(jQuery.browser.msie&&9>jQuery.browser.version){fancyCSS['filter']="progid:DXImageTransform.Microsoft.Glow(Color='#aaaaaa', strength='2'";top-=2;left-=2}if(-1==navigator.appVersion.indexOf('Win')){fancyCSS['-webkit-transform']='rotate(-4deg) scale(1.3)';fancyCSS['-moz-transform']='rotate(-4deg) scale(1.3)';fancyCSS['-o-transform']='rotate(-4deg) scale(1.3)';fancyCSS['transform']='rotate(-4deg) scale(1.3)';if(jQuery.browser.msie&&9>jQuery.browser.version){fancyCSS['filter']="progid:DXImageTransform.Microsoft.Matrix(M11='1.29683327', M12='0.0906834159', M21='-0.0906834159', M22='1.29683327', SizingMethod='auto expand') "+fancyCSS['filter'];top-=3;left-=4}}else{top-=1;left-=1}if(this.active_grav.hasClass('grav-hijack')){var aWrap=''}else{var aWrap=this.active_grav.parents('a:first').clone(true).empty()}var appendix=this.active_grav_clone.css(fancyCSS).wrap(aWrap).parent().css({'position':'absolute','top':top+'px','left':left+'px','z-index':15,'border':'none','text-decoration':'none'});jQuery('body').append(appendix);this.active_grav_clone.removeClass('grav-hashed')},"untilt_gravatar":function(){jQuery('img.grav-clone, a.grav-clone-a').remove();Gravatar.hide_throbber()},"show_throbber":function(){if(!Gravatar.throbber){Gravatar.throbber=jQuery('
.
')}jQuery('body').append(Gravatar.throbber);var offset=jQuery('#'+Gravatar.active_id).offset();Gravatar.throbber.css({top:offset.top+2+'px',left:offset.left+1+'px'})},"hide_throbber":function(){if(!Gravatar.throbber){return}Gravatar.throbber.remove()},"fetch_profile_by_email":function(email){return this.fetch_profile_by_hash(this.md5(email))},"fetch_profile_by_hash":function(hash,dom_id){this.profile_map['g'+hash]=dom_id;if(this.profile_stack['g'+hash]&&'object'==typeof(this.profile_stack['g'+hash])){return this.profile_stack['g'+hash]}this.profile_stack['g'+hash]='fetching';Gravatar.stat('fetch');this.load_js(this.url_prefix+'.gravatar.com/'+hash+'.json?callback=Gravatar.fetch_profile_callback',function(){Gravatar.fetch_profile_error(hash,dom_id)})},"fetch_profile_callback":function(profile){if(!profile||'object'!=typeof(profile)){return}this.profile_stack['g'+profile.entry[0].hash]=profile;this.notify(profile.entry[0].hash)},"fetch_profile_error":function(hash,dom_id){Gravatar.stat('profile_404');Gravatar.profile_map['g'+hash]=false;var grav=jQuery('#'+dom_id);if(grav.parent('a[href="http://gravatar.com/'+hash+'"]').size()){grav.unwrap()}if(dom_id==Gravatar.active_id){Gravatar.hide_card()}},"listen":function(key,callback){if(!this.notify_stack){this.notify_stack={}}key='g'+key;if(!this.notify_stack[key]){this.notify_stack[key]=[]}for(a=0;a";new_css+="";jQuery('head').append(new_css)},"md5":function(str){return hex_md5(str)},"autofill":function(email,map){if(!email.length||-1==email.indexOf('@')){return}this.autofill_map=map;hash=this.md5(email);if("undefined"==typeof(this.profile_stack['g'+hash])){this.listen(hash,'autofill_data');this.fetch_profile_by_hash(hash)}else{this.autofill_data(hash)}},"autofill_data":function(hash){GProfile.init(this.profile_stack['g'+hash]);for(var m in this.autofill_map){switch(m){case'url':link=GProfile.get('urls');jQuery('#'+this.autofill_map[m]).val(link[0]['value']);break;case'urls':links=GProfile.get('urls');links_str='';for(l=0;l10){Gravatar.send_stats()}},"send_stats":function(cb){if(!document.images){return}var stats=Gravatar.stats_queue;if(!stats.length){return}var date=new Date();Gravatar.stats_queue=[];url_prefix='http://stats/';if('https:'==window.location.protocol)url_prefix='https://ssl-stats/';var url=url_prefix+'.wordpress.com/g.gif?v=wpcom&x_grav-hover='+stats.join(',')+'&rand='+Math.random().toString()+'-'+date.getTime();var img=new Image(1,1);if(jQuery.isFunction(cb)){img.onload=cb}img.src=url}};var GProfile={"data":{},"init":function(data){if('fetching'==data){return false}if('undefined'==typeof(data.entry[0])){return false}GProfile.data=data.entry[0]},"get":function(attr){if(-1!=attr.indexOf('.')){parts=attr.split(/\./);if(GProfile.data[parts[0]]){if(GProfile.data[parts[0]][parts[1]]){return GProfile.data[parts[0]][parts[1]]}for(i=0,s=GProfile.data[parts[0]].length;i').attr('src',grav_resize.current_image+'&size=400').load(function(){jQuery('#'+grav_resize.card_id+' .grav-tag a').css('background-position','22px 0')});var the_clone=el.clone();the_clone.css({'position':'absolute','top':grav_resize.orig_top,'left':grav_resize.orig_left,'background-color':'#333','width':grav_resize.orig_width,'height':grav_resize.orig_height,'border-color':'#555'});the_clone.appendTo(el.parent());var horiz_padding=0;var vert_padding=0;var border_width=6;var card=jQuery('#'+grav_resize.card_id+' .grav-inner');if(el.width()>el.height()){var ratio=el.height()/el.width();var width=card.outerWidth();var height=(width*ratio);var vert_padding=(card.outerHeight()-height)/2;if(height>card.outerHeight()){var ratio=el.width()/el.height();var height=card.outerHeight();var width=(height*ratio);var horiz_padding=(card.outerWidth()-width)/2}}else{var ratio=el.width()/el.height();var height=card.outerHeight();var width=(height*ratio);var horiz_padding=(card.outerWidth()-width)/2}the_clone.stop().animate({'top':0,'left':0,'width':width-border_width+'px','height':height-border_width+'px','z-index':99,'padding-left':horiz_padding+'px','padding-right':horiz_padding+'px','padding-top':vert_padding+'px','padding-bottom':vert_padding+'px'},250,function(){the_clone.addClass('grav-large');the_clone.attr('src',fullsize.attr('src'));the_clone.parent().append('
X
');jQuery('.grav-large-close').hide().fadeIn(100)});jQuery('#'+grav_resize.card_id+' .grav-gallery img').unbind('click');jQuery('.grav-large-close').live('click',function(){grav_resize.reduce(the_clone)});jQuery(the_clone).click(function(){grav_resize.reduce(the_clone)})},reduce:function(el){jQuery('.grav-large-close').remove();el.stop().animate({'top':grav_resize.orig_top,'left':grav_resize.orig_left,'width':grav_resize.orig_width,'height':grav_resize.orig_height,'padding-left':0,'padding-right':0,'padding-top':0,'padding-bottom':0},250,function(){jQuery('img.grav-large').remove();grav_resize.bind_enlarge(grav_resize.card_id);grav_resize.current_image=false})},bind_enlarge:function(){jQuery('#'+grav_resize.card_id+' .grav-gallery img').parent('a').click(function(e){if(jQuery.browser.msie&&jQuery.browser.version<9.0)return;e.preventDefault();if(grav_resize.current_image){return}var img=jQuery(this).find('img').not('.grav-large');var position=img.position();grav_resize.orig_width=img.width();grav_resize.orig_height=img.height();grav_resize.orig_top=position.top;grav_resize.orig_left=position.left;grav_resize.enlarge(img)})}};var grav_gallery={orig_left:0,pos:0,init:function(card){grav_gallery.bind_arrows(card,true);jQuery('#'+card+' .grav-gallery').mouseover(function(){grav_gallery.bind_arrows(card,false)})},bind_arrows:function(card,reset){var gallery_el=jQuery('#'+card+' .grav-gallery ul');if(!gallery_el.size()){return}grav_gallery.orig_left=gallery_el.css('margin-left').replace('px','');grav_gallery.pos=gallery_el.find('li:last').position();jQuery('#'+card+' a.grav-gallery-next').live('click',function(){if(grav_gallery.pos.left>275){gallery_el.animate({'margin-left':parseFloat(grav_gallery.orig_left)-314+'px'},300,function(){grav_gallery.highlight_arrows(card,false)})}return false});jQuery('#'+card+' a.grav-gallery-prev').live('click',function(){if(0!=grav_gallery.orig_left){gallery_el.animate({'margin-left':parseFloat(grav_gallery.orig_left)+314+'px'},300,function(){grav_gallery.highlight_arrows(card,false)})}return false});if(reset){jQuery('#'+card+' .grav-gallery ul').css({'margin-left':0})}grav_gallery.highlight_arrows(card,true)},highlight_arrows:function(card){grav_gallery.orig_left=jQuery('#'+card+' .grav-gallery ul').css('margin-left').replace('px','');grav_gallery.last=jQuery('#'+card+' .grav-gallery ul li:last');if(grav_gallery.last.position().left<275){jQuery('#'+card+' a.grav-gallery-next').css({'background-position':'-39px 0'})}else{jQuery('#'+card+' a.grav-gallery-next').css({'background-position':'-26px 0'})}if(0!=grav_gallery.orig_left){jQuery('#'+card+' a.grav-gallery-prev').css({'background-position':'0 0'})}else{jQuery('#'+card+' a.grav-gallery-prev').css({'background-position':'-13px 0'})}}};var hexcase=0;var b64pad="";var chrsz=8;function hex_md5(s){return binl2hex(core_md5(str2binl(s),s.length*chrsz))}function b64_md5(s){return binl2b64(core_md5(str2binl(s),s.length*chrsz))}function str_md5(s){return binl2str(core_md5(str2binl(s),s.length*chrsz))}function hex_hmac_md5(a,b){return binl2hex(core_hmac_md5(a,b))}function b64_hmac_md5(a,b){return binl2b64(core_hmac_md5(a,b))}function str_hmac_md5(a,b){return binl2str(core_hmac_md5(a,b))}function md5_vm_test(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function core_md5(x,e){x[e>>5]|=0x80<<((e)%32);x[(((e+64)>>>9)<<4)+14]=e;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i16)c=core_md5(c,a.length*chrsz);var d=Array(16),opad=Array(16);for(var i=0;i<16;i++){d[i]=c[i]^0x36363636;opad[i]=c[i]^0x5C5C5C5C}var e=core_md5(d.concat(str2binl(b)),512+b.length*chrsz);return core_md5(opad.concat(e),512+128)}function safe_add(x,y){var a=(x&0xFFFF)+(y&0xFFFF);var b=(x>>16)+(y>>16)+(a>>16);return(b<<16)|(a&0xFFFF)}function bit_rol(a,b){return(a<>>(32-b))}function str2binl(a){var b=Array();var c=(1<>5]|=(a.charCodeAt(i/chrsz)&c)<<(i%32);return b}function binl2str(a){var b="";var c=(1<>5]>>>(i%32))&c);return b}function binl2hex(a){var b=hexcase?"0123456789ABCDEF":"0123456789abcdef";var c="";for(var i=0;i>2]>>((i%4)*8+4))&0xF)+b.charAt((a[i>>2]>>((i%4)*8))&0xF)}return c}function binl2b64(a){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var c="";for(var i=0;i>2]>>8*(i%4))&0xFF)<<16)|(((a[i+1>>2]>>8*((i+1)%4))&0xFF)<<8)|((a[i+2>>2]>>8*((i+2)%4))&0xFF);for(var j=0;j<4;j++){if(i*8+j*6>a.length*32)c+=b64pad;else c+=b.charAt((d>>6*(3-j))&0x3F)}}return c};