dom = document.domain;
if(dom=='www.7qiao.cn')
{
	vhref = location.href.replace(dom,"999911.cn");
	location.href = vhref;
}
function shoucang(serverType)
{
	switch(serverType)
	{
		case "yahoo":
			url = "http://myweb.cn.yahoo.com/popadd.html?url="+encodeURIComponent(document.location.href)+"&title="+encodeURIComponent(document.title);
			target="Yahoo";
			sFeatures = "scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes";
			break;
		case "baidu":
			url = "http://cang.baidu.com/do/add?it="+encodeURIComponent(document.title.substring(0,76))+"&iu="+encodeURIComponent(location.href)+"&fr=ien#nw=1";
			target="_blank";
			sFeatures = "scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes";
			break;
		case "qq":
			url = "http://shuqian.qq.com/post?from=3&title="+encodeURIComponent(document.title)+"&uri="+encodeURIComponent(document.location.href)+"&jumpback=2&noui=1";
			target="favit";
			sFeatures = "width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes";
			break;
		case "fav":
			bookmarkSite(document.title, document.location.href);
			break;
	}
	if(url)
		window.open(url,target,sFeatures);
}
function bookmarkSite(title, url)
{
	if (document.all)
	window.external.AddFavorite(url, title);
	else if (window.sidebar)
	window.sidebar.addPanel(title, url, "")
}
function p2p()
{
	if(window.navigator.userAgent.indexOf("Firefox")>=1)
	{
		alert('分享一个很好的游戏站，http://www.7qiao.cn/，按Ctrl+V复制告诉你朋友吧');
	}
	else
	{
		window.clipboardData.setData("Text",'分享一个很好的游戏站，http://www.7qiao.cn/');
		alert('网址已经复制到您的剪贴板中\r\n您可以使用Ctrl+v快捷键粘贴到需要的地方');
	}
}
window.status = "同时按下Ctrl+D键会有什么结果？";
