<!--
	document.write('<span id="paopao_layer" style="display:none">');
	document.write('<table width="135" border="0" cellpadding="0" cellspacing="0" background="/images/pp-iqq8.gif">');
	document.write('  <tr>');
	document.write('    <td width="135" height="8"></td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('    <td height="21">　　 <a href="#" class="link_paopao_text" onclick="return CopyOLEObj(imgIn);">复制到ＱＱ</a></td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('    <td height="21">　　 <a href="#" class="link_paopao_text" onclick="return Diy(imgIn);">我要制作QQ表情</a></td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('    <td height="21">　　 <a href="#" class="link_paopao_text" onclick="return SendToMobile(imgIn);">我要下载到手机</a></td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('    <td height="33"></td>');
	document.write('  </tr>');
	document.write('</table>');
	document.write('</span>');
	document.write('<div id="paopao_line"></div>');

	var imgs = document.images;
	var imgIn = null;
	var paopaoflag = false;
	var paopaotimer = false;

	for(i=0;i<imgs.length;i++)
	{
		if (imgs[i] && !imgs[i].src.match(/^http:\/\/[^\/]+\/(images|ad)/i))
		{
			Element.observe(imgs[i],'mouseover',showpaopao);
			Element.observe(imgs[i],'mouseout',hidepaopao);
		}
	}
	Element.observe('paopao_layer','mouseover',function() {paopaoflag = true;});
	Element.observe('paopao_layer','mouseout',hidepaopao);

	function showpaopao(event)
	{
		if (Event.element(event).getHeight()-$("paopao_layer").getHeight()<0)
		{
			//return false;
		}
		paopaoflag = true;
		imgIn = Event.element(event);
		var mxy = Position.positionedOffset(imgIn);
		var mx = mxy[0]+imgIn.getWidth()/2;
		var my = mxy[1]+imgIn.getHeight()/3-$("paopao_layer").getHeight();

		var mx1 = mxy[0]-2;
		var my1 = mxy[1]-2;

		Position.absolutize($("paopao_layer"));
		$("paopao_layer").setStyle({
			'z-index':2,
			display:'',
			top:my,
			left:mx
		});
		Position.absolutize($("paopao_line"));
		$("paopao_line").setStyle({
			width:imgIn.getWidth()+4,
			height:imgIn.getHeight()+4,
			display:'',
			top:my1,
			left:mx1
		});		
	}
	function hidepaopao()
	{
		if (paopaoflag)
		{
			paopaoflag = false;
			if (paopaotimer){clearTimeout(paopaotimer);paopaotimer=false;}
			paopaotimer=setTimeout("hidepaopaolayer()",300);
		}
	}
	function hidepaopaolayer()
	{
		if (paopaoflag)
		{
			return false;
		}
		paopaoflag = false;
		if (paopaotimer){clearTimeout(paopaotimer);paopaotimer=false;}
		$("paopao_layer").setStyle({
			display:'none'
		});
		$("paopao_line").setStyle({
			display:'none'
		});
	}
	function SendToMobile(obj)
	{
		if(obj)
		{
			if (obj.alt && obj.alt.length>0)
			{
				mmstitle = obj.alt;
			}
			else
			{
				mmstitle = "QQ表情"
			}
		    window.open("http://sendimg.ivansms.com/WebUse/WriteImg/tickdialog.asp?m=qq8877com&h="+escape(obj.src),"","width=800,height=520");
		}
		 return false;
	}
	function Diy(obj)
	{
		if(obj)
		{
			window.open("/diy.php?"+escape(obj.src));
		}
		 return false;
	}	
	function CopyOLEObj(obj)
	{
		if (!obj.tagName || obj.tagName == '') return false;
		if (typeof obj.contentEditable == 'undefined') return false;
		if (!document.body.createControlRange) return false;
		var ctrl = document.body.createControlRange();
		obj.contentEditable = true;
		ctrl.addElement(obj);
		ctrl.execCommand('Copy');
		obj.contentEditable = false;
		alert('复制好了，到QQ对话框里按Ctrl+V就可以发送啦！');
		return false;
	}
//-->