sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

/*
function imgtip(img_title, img_src)
{
		$('.imgtip').click(function()
		{
				var src = $(this).attr('rel');

				var ttitle = $(this).attr('title');

				$("#show").attr("src",src);

        var ssss = $("#show");
				var h_height = ssss.height();
				var w_width = ssss.width();

				//alert(h_height);

				$.weeboxs.open('<img src='+ src +' />',{
						height: h_height,
						width: w_width,
				    contentType:'text',
					  showButton: false,
					  boxid:'reg',
					  boxclass : 'fvzone',
					  title:'&nbsp;&nbsp;'+ ttitle +''
				});
		});
}
*/


function donate()
{
			var src = '<div id="donate">' +
								'<h2>真诚的感谢你们!</h2>'+
								'<p>不管你捐助的理由是什么，请给我们一点微薄的力量...<br />'+
								'</p>'+
								'<p><strong style="color:#ffc;font-size:18px;">捐助方式: </strong><strong style="color:#99CC33;">支付宝:pay[at]fvzone.com</strong><br />'+
								'捐助者名单(排名不分先后): (这个列表会不定期手动更新)'+
								'</p></div>';

		$('.donate').click(function()
		{
				$.weeboxs.open(src,{
						width:480,
						height:280,
				    contentType:'text',
					  showButton: false,
					  boxid:'reg',
					  boxclass : 'fvzone',
					  title:'&nbsp;&nbsp;捐助,支持我们！'
				});
		});
}


function welcomeinit(blog_url)
{
		//$.cookie('tip', null);
		var setip = $.cookie('tip');
		//alert(account);
		if(setip != 'true')
		{
			welcometip(blog_url);
		}
}

function welcometip(url)
{
	  var src = '<div id="welcometip">' +
				'<script type="text/javascript">' +
				'$(document).ready(function()' +
				'{' +
				'	$(".setip").click(function()' +
				'	{' +
				//'$.cookie("tip", "true", {expires: 7, path: "/", domain: "fvzone.com", secure: true});' +
				'		$.cookie("tip", "true");' +
				'	});' +
				'});' +
				'</script>' +
				'<p>' +
				'　　我们承接Web前台视觉设计、Web 标准优化、Flash设计以及WordPress和PHP程序建站服务。' +
				'你可以通过 <a href="'+ url +'/about">关于我们</a> 和 <a href="'+ url +'/cases">成功案例</a> 理解更多！' +
				'</p>' +
				'<p>' +
				'联系方式：' +
				'<br />' +
				'Emai:fvzone[at]gmail.com' +
				'<br />' +
				'Q　Q:79894390' +
				'<br />' +
				'Mobile:15182223008' +
				'</p>' +
				'<span><a class="setip" href="javascript:void(0);">不再显示此信息?</a></span>' +
				'</div>';

			$.weeboxs.open(src, {
					width:480,
					height:160,
					contentType:'text',
					showButton: false,
					boxid:'reg',
					boxclass : 'fvzone',
					title:'&nbsp;&nbsp;Hello, welcome your visitors！'
			});
	}

