   initClick: ->
     @$selector.on 'click', (e) =>
       e.preventDefault()
-      title = encodeURIComponent document.title
+      title = @settings.title ? encodeURIComponent(document.title)
       open "http://vk.com/share.php?url=#{@url}&title=#{title}", "_blank", "scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0"
  initClick: ->
    @$selector.on 'click', (e) =>
      e.preventDefault()
      summary = encodeURIComponent $("meta[property='og:description']").attr("content")
      image = encodeURIComponent $("meta[property='og:image']").attr("content")
      title = encodeURIComponent document.title
      params = "s=100&p[url]=#{@url}&p[title]=#{title}&p[summary]=#{summary}&p[images][0]=#{image}"
      open "http://www.facebook.com/sharer.php?m2w&#{params}", "_blank", "scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0"


  initClick: ->
    @$selector.on 'click', (e) =>
      e.preventDefault()
      title = @settings.title ? encodeURIComponent(document.title)
      open "http://ok.ru/dk?st.cmd=addShare&st._surl=#{@url}&title=#{title}", "_blank", "scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0"
    
class App.SocialGp extends App.SocialBase
