
  function tweet_read(num) {
    var login  = 'sanmassi';
    var apiKey = 'R_053d3de8707105904e846e4a27fb9495'; // ← bitly API Key 
    bitly = 'http://api.bit.ly/shorten'         
        + '?version=2.0.1&format=json&callback=callback'        
        + '&login=' + login
        + '&apiKey=' + apiKey + '&longUrl=';
    var urls = 'http://news.brokore.com/content_UTF/Read.jsp?num='+num;
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = bitly + encodeURIComponent(urls) ;
    document.body.appendChild(script);
  }

  function tweet_imgread(num) {    
    var login  = 'sanmassi';
    var apiKey = 'R_053d3de8707105904e846e4a27fb9495'; // ← bitly API Key 
    bitly = 'http://api.bit.ly/shorten'
        + '?version=2.0.1&format=json&callback=callback2'
        + '&login=' + login
        + '&apiKey=' + apiKey + '&longUrl=';
    var urls = 'http://news.brokore.com/content_UTF/ImgRead.jsp?num='+num;
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = bitly + encodeURIComponent(urls) ;
    document.body.appendChild(script);
  } 
  function callback(bitlyResponse) {
    var title = document.title;
   var urls = 'http://news.brokore.com/content_UTF/Read.jsp?num='+num;
    var url = 'http://twitter.com/home/?status='
        + encodeURIComponent(
             title + ' '
               + bitlyResponse.results[urls]['shortUrl']
          );
    url = url +' '+"%23bro_news";
    //window.open(url, '_blank','width=550 height=450');
    //window.open(url, '_blank');
  }
  function callback2(bitlyResponse) {
    var title = document.title;
   var urls = 'http://news.brokore.com/content_UTF/ImgRead.jsp?num='+num;
    var url = 'http://twitter.com/home/?status='
        + encodeURIComponent(
             title + ' '
               + bitlyResponse.results[urls]['shortUrl']
          );
    url = url +' '+"%23bro_news";
    //window.open(url, '_blank','width=550 height=450');
    //window.open(url, '_blank');
  } 
  function twitt_read(num){
    //tweet_read(num);
    var title = document.title;
    //var num = document.list.num.value;
    var urls = 'http://news.brokore.com/content_UTF/Read.jsp?num='+num;
    var url = 'http://twitter.com/share?count=horizontal&original_referer='
    //var url = 'http://twitter.com/share?count=horizontal'
	+ encodeURIComponent(urls)
        + '&text='
	+ encodeURIComponent(title);
    url = url +' '+"%23bro_news";
    window.open(url, 'share',['width=632','height=456','location=yes','resizable=yes','toolbar=no','menubar=no','scrollbars=no','status=no'].join(','));
  }

  function twitt_imgread(num){
    //tweet_imgread(num); 
    var title = document.title;
    //var num = document.list.num.value;
    var urls = 'http://news.brokore.com/content_UTF/ImgRead.jsp?num='+num;
    var url = 'http://twitter.com/share?count=horizontal&original_referer='
        + encodeURIComponent(urls)
        + '&text='
        + encodeURIComponent(title);
    url = url +' '+"%23bro_news";
    window.open(url, 'share',['width=632','height=456','location=yes','resizable=yes','toolbar=no','menubar=no','scrollbars=no','status=no'].join(','));
  }

  function facebook(){
	var title = document.title;
	var url = 'http://www.facebook.com/share.php?u='
	+ location.href 
	+ '&t='
	+ encodeURIComponent(
		title);
	 window.open(url, '_blank','width=550 height=450');

  }
  function facebook_read(num){
        var title = document.title;
        var urls = 'http://news.brokore.com/content_UTF/Read.jsp?num='+num;
        var url = 'http://www.facebook.com/share.php?u='
        + urls
        + '&t='
        + encodeURIComponent(
                title);
         window.open(url, '_blank','width=550 height=450');
  }
  function facebook_imgread(num){
        var title = document.title;
        var urls = 'http://news.brokore.com/content_UTF/ImgRead.jsp?num='+num;
        var url = 'http://www.facebook.com/share.php?u='
        + urls
        + '&t='
        + encodeURIComponent(
                title);
         window.open(url, '_blank','width=550 height=450');

  }
  function mixi_read(num){
        var title = document.title;
        var apikey = "12d3802ffd77444f253b2546992375a5442efaaa";
	 var urls = 'http://news.brokore.com/content_UTF/Read.jsp?num='+num;
        var url = 'http://mixi.jp/share.pl?u='
        +  encodeURIComponent(urls)
        + '&k='
        + encodeURIComponent(
                apikey);
         window.open(url,'share',['width=632','height=456','location=yes','resizable=yes','toolbar=no','menubar=no','scrollbars=no','status=no'].join(','));

  }

  function mixi_imgread(num){
        var title = document.title; 
        var apikey = "12d3802ffd77444f253b2546992375a5442efaaa";
	var urls = 'http://news.brokore.com/content_UTF/ImgRead.jsp?num='+num;
        var url = 'http://mixi.jp/share.pl?u='
        +  encodeURIComponent(urls)
        + '&k=' 
        + encodeURIComponent(  
                apikey);
         window.open(url,'share',['width=632','height=456','location=yes','resizable=yes','toolbar=no','menubar=no','scrollbars=no','status=no'].join(','));
    
  }
  //-->

