(function(){
	var site = 'http://re.xianguo.com/';
	//var site = 'http://myhot.txianguo.com/';
	var f=(typeof defaultFeedUrl=='string')?defaultFeedUrl:'';
	var i=((typeof defaultItemUrl=='string') && (defaultItemUrl!='WEB_URL')) ?defaultItemUrl:'';
	if(cT && cT == 1){
		height = 39; 
		width = 44;
	}else{
		height = 22;
		if(!tDigg){
			width = 90;
		}
		else
		{
			dcTDigg = decodeURIComponent(tDigg);
			if(dcTDigg){
				width = 65+12*(dcTDigg.length);
			}else{
				width = 90;
			}
		} 
	}
	var srcStr = site+"diggButtonInterface.php?pageName=initDiggButton&defaultFeedUrl="+ encodeURIComponent(f) 
		+ (i?("&defaultItemUrl=" + encodeURIComponent(i)):'')
		+ (cT?('&cT='+encodeURIComponent(cT)):'')
		+ (nc?('&nc=' + encodeURIComponent(nc)):'')
		+ (nBgc?('&nBgc=' + encodeURIComponent(nBgc)):'')
		+ (nBorder?('&nBorder=' + encodeURIComponent(nBorder)):'')
		+ (tc?('&tc=' + encodeURIComponent(tc)):'')
		+ (tBgc?('&tBgc=' + encodeURIComponent(tBgc)):'')
		+ (tBorder?('&tBorder=' + encodeURIComponent(tBorder)):'')
		+ (tDigg?('&tDigg=' + encodeURIComponent(tDigg)):'')
		+ (tDugg?('&tDugg=' + encodeURIComponent(tDugg)):'');
	//src = encodeURIComponent(srcStr);
	
	document.write("<iframe src='"+ srcStr
		+"' height="+height+' width='+width+" frameborder='0' scrolling='no' name='xianguo_digg_frame'></iframe>");
})()
