function Cang(url, name)
{
	if(url) url = 'http://www.keaiku.com/' + url;
	else url = document.location.href;

	if(name) name += ' 可爱酷 KeaiKu.COM';
	else name = document.title;

	if(document.all) window.external.AddFavorite(url, name);
}

function Cang_qq()
{
	window.open('http://shuqian.qq.com/post?from=3&title=' + encodeURIComponent(document.title) + '&uri=' + encodeURIComponent(document.location.href) + '&jumpback=2&noui=1','favit','width=600,height=400,left=200,top=180,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');
}

function Cang_qzone(title, content, swf, W, H)
{
	var tStr = content;
	if(swf) tStr += '[M][flash,' + W + ',' + H + ']' + swf + '[/flash][/M]';
	var tUrl = 'content=' + escape(tStr) + '&title=' + escape(title) + '&category=' + escape('Flash搞笑');
	tUrl = 'http://88888.qzone.qq.com/addNewBlog?' + tUrl;
	window.open(tUrl, '_blank', '');
}

function Cang_baidu()
{
	window.open('http://cang.baidu.com/do/add?it='+encodeURIComponent(document.title.substring(0,76))+'&iu='+encodeURIComponent(location.href)+'&fr=ien#nw=1','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');
}

function makeSwf(url, W, H)
{
	var tB = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" align="center"';
	tB += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"';
	tB += ' style="width: ' + W + 'px; height: ' + H + 'px">';
	tB += '<param name="movie" value="' + url + '" />';
	tB += '<param name="allowNetworking" value="internal" />';
	tB += '<param name="allowScriptaccess" value="never" />';
	tB += '<param name="quality" value="high" />';
	tB += '<embed src="' + url + '" allowNetworking="internal" allowScriptaccess="never" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"';
	tB += ' type="application/x-shockwave-flash" style="width: ' + W + 'px; height: ' + H + 'px">';
	tB +='  </embed></object>';
	return tB;
}

function showPlayer(url, W, H)
{
	var tB = makeSwf('http://swf.keaiku.com/' + url, W, H);
	document.write(tB);
}

function showFlash(url, W, H)
{
	var tB = makeSwf(url, W, H);
	document.write(tB);
}

function bbimg(o)
{
	if(o.width>600){o.resized=true;o.style.width=600;}
}