function setCopy(txt){
     if(window.clipboardData){
		window.clipboardData.clearData();
		window.clipboardData.setData("Text", txt);
		alert('已經複製到剪貼簿，您可以使用（Ctrl+V或滑鼠右鍵）貼上功能。');

     }else if(navigator.userAgent.indexOf("Opera") != -1){
		window.location = txt;

     }else if(window.netscape){
          try {
               netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
          } catch (e) {
               alert("被瀏覽器拒絕！\n請在瀏覽器地址欄輸入'about:config'\n然后將'signed.applets.codebase_principal_support'設置為'true'");
          }
          var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
          if (!clip)
               return;
          var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
          if (!trans)
               return;
          trans.addDataFlavor('text/unicode');
          var str = new Object();
          var len = new Object();
          var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
          var copytext = txt;
          str.data = copytext;
          trans.setTransferData("text/unicode",str,copytext.length*2);
          var clipid = Components.interfaces.nsIClipboard;
          if (!clip)
               return false;
          clip.setData(trans,null,clipid.kGlobalClipboard);
          alert('已經複製到剪貼簿，您可以使用（Ctrl+V或滑鼠右鍵）貼上功能。');
     }
}
	document.writeln("<\!-- Sina Album Plugin -->");
	document.writeln("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://blog.sina.com.tw/webservice/module/album/album.css\" />");
	document.writeln("<div class=\"album\">");
	document.writeln("<table width=\"200\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.writeln("<tr>");
	document.writeln("<td class=\"albflash\">");
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"180\" height=\"190\">");
	document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.writeln("<param name=\"loop\" value=\"false\" />");
	document.writeln("<param name=\"menu\" value=\"false\" />");
	document.writeln("<param name=\"scale\" value=\"noscale\" />");
	document.writeln("<param name=\"wmode\" value=\"transparent\" />");
	document.writeln("<param name=\"bgcolor\" value=\"#ffffff\" />");
	document.writeln("<param name=\"movie\" value=\"" + "http://blog.sina.com.tw/" + "webservice/module/album/album.swf?x=" + "http%3A%2F%2Fblog.sina.com.tw%2Fwebservice%2Fmodule%2Falbum%2Falbum.xml.php%3Fblog_id%3D986" + "\" />");
	document.writeln("<param name=\"quality\" value=\"high\" />");
	document.writeln("<embed src=\"" + "http://blog.sina.com.tw/" + "webservice/module/album/album.swf?x=" + "http%3A%2F%2Fblog.sina.com.tw%2Fwebservice%2Fmodule%2Falbum%2Falbum.xml.php%3Fblog_id%3D986" + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"180\" height=\"190\" scale=\"noscale\"  wmode=\"transparent\"></embed>");
	document.writeln("</object>");

	document.writeln("</td>");
	document.writeln("</tr>");
	//document.writeln("<tr>");
	//document.writeln("<td class=\"adbs\" width=\"200\" height=\"70\" onclick=\"javascript:window.open('http://twsina.allyes.com/main/adfclick?db=twsina&bid=1471,11929,20969&cid=0,0,0&sid=160049&advid=401&camid=1610&show=ignore&url=http://www.ooommm.com/clubmed/reurl.php?id=1','_blank');\" style=\"cursor:hand;\"><img src=\"http://blog.sina.com.tw/webservice/module/album/ad180x50_080422.gif\" border=\"0\" /></td>");
	//document.writeln("</tr>");
	document.writeln("</table>");
	document.writeln("<div align=\"right\">");
	document.writeln("<a href=\"javascript:setCopy(document.getElementById('albumContent').value);\">複製語法</a>");
	document.writeln("<div style=\"display:none\">");
	document.writeln("<textarea id=\"albumContent\">");
	document.writeln("&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;http://blog.sina.com.tw/webservice/module/album/album.js.php?blog_id=986&quot;&gt;&lt;/script&gt;");
	document.writeln("</textarea>");
	document.writeln("</div>");
	document.writeln("</div>");
	document.writeln("</div>");
