var wee_popup = {
	id : 'wee_a_winpop',
	title : '标题',
	message : '内容',
	url : 'http://www.guojianglong.com/haibao.html',

	init : function ()
	{
		var html = '<div id="' + this.id + '" style="float:left; width:252px;z-index:888; height:0px; position:fixed; *position:absolute; right:10px; bottom:0; margin:0; _bottom:-1px; overflow:hidden; display:none;"><table border="0" cellspacing="0" cellpadding="0"><tr><td><div style="float:left; width:240px; height:10px; text-align:right; padding:5px 12px 8px 0;"><a href="javascript:void(0)" onclick="wee_popup.tips_pop(); return false;"><img src="images/newc.gif" border="0" /></a></div></td></tr><tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="250" height="190"><param name="movie" value="/Flash/songhaoli.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed src="/Flash/songhaoli.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="250" height="190" wmode="transparent"></embed></object></td></tr></table></div>';

		var container = document.createElement ( 'div' );
		container.innerHTML = html;
		document.body.appendChild ( container );

		setTimeout ( "wee_popup.tips_pop ()", 500 );
	},

	tips_pop : function ()
	{
		var MsgPop = document.getElementById ( this.id );
		var popH = parseInt ( MsgPop.style.height );
		if ( popH == 0 )
		{
			MsgPop.style.display = "block";
			show = setInterval ( "wee_popup.change_h ( 'up' )", 2 );
		}
		else
		{
			hide = setInterval ( "wee_popup.change_h ( 'down' )", 2 );
		}
	},

	change_h : function ( str )
	{
		var MsgPop = document.getElementById ( this.id );
		var popH = parseInt ( MsgPop.style.height );
		if ( str == "up" )
		{
			if ( popH <= 210 )
			{
				MsgPop.style.height = ( popH + 4 ).toString () + "px";
			}
			else
			{
				clearInterval ( show );
			}
		}

		if ( str == "down" )
		{ 
			if ( popH >= 4 )
			{
				MsgPop.style.height = ( popH - 4 ).toString () + "px";
			}
			else
			{
				clearInterval(hide);
				MsgPop.style.display = "none";
			}
		}
	}
};
wee_popup.title = ' ';
wee_popup.message = ' ';


