function	cocoVoteLoad(src,divFlg,divWidth,divHeight,tgt){
var	d=document;
if(window.opera){d.write('<scr'+'ipt type="text/javascript" charset="utf8" src="'+src+'"></scr'+'ipt>');return}
var	sbar=(src.match(/sidebar/))?true:false;
if (sbar) {
	if(!divWidth)divWidth="150";
	if(!divHeight)divHeight="232";
}
else {
	if(!divWidth)divWidth="300";
	if(!divHeight)divHeight="232";
}
var	NIFTYGETUNIQUEID=function(){var id="aexternal"+Math.floor(Math.random()*10000);if(!d.getElementById(id))return id;return NIFTYGETUNIQUEID();};
var	uniqid=NIFTYGETUNIQUEID();
var	own=null;
if (!tgt) {
	var own=(function(obj){while(obj){if(obj.nodeName.toLowerCase()=='script')break;obj=obj.lastChild};return obj})(d);
	if(!own)return;
}
var	div=null;
if(divFlg){
	div=d.createElement('div');
	var	st=div.style;
	st.width=divWidth;st.height=divHeight;
	with(st){margin=0;padding=0;display='block'}
	if (tgt) {
		tgt.appendChild(div);
	}
	else {
		own.parentNode.insertBefore(div,own);
	}
}
if(!src.match(/\/(\d+)\/(\d+)\//))return;
var	uid=RegExp.$1,qid=RegExp.$2;
setTimeout(function(){
	var	obj=d.createElement('object');
	obj.setAttribute('width',divWidth);
	obj.setAttribute('height',divHeight);
	with(obj){
		setAttribute('classid','clsid:d27cdb6e-ae6d-11cf-96b8-444553540000');
		setAttribute('codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0');
		setAttribute('id',uniqid);
	}
	var	addprm=function(name,value){var p=d.createElement('param');p.setAttribute('name',name);p.setAttribute('value',value);obj.appendChild(p)};
	addprm('movie','http://swf.vote.nifty.com/shared/vote'+((sbar)?'_sidebar':'')+'.swf');
	addprm('play','true');
	addprm('quality','high');
	addprm('FlashVars','uid='+uid+'&qid='+qid);
	addprm('allowScriptAccess','always');
	var emb=d.createElement('embed');
	emb.setAttribute('width',divWidth);
	emb.setAttribute('height',divHeight);
	with(emb){
		setAttribute('play','true');
		setAttribute('loop','true');
		setAttribute('quality','high');
		setAttribute('allowScriptAccess','always');
		setAttribute('pluginspage','http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash');
		setAttribute('FlashVars','uid='+uid+'&qid='+qid);
		setAttribute('src','http://swf.vote.nifty.com/shared/vote'+((sbar)?'_sidebar':'')+'.swf');
	}
	try{obj.appendChild(emb)}catch(e){delete obj;obj=emb};
	if(div){
		div.appendChild(obj);
	}
	else {
		if (tgt) {
			tgt.appendChild(obj);
		}
		else {
			own.parentNode.insertBefore(obj,own);
		}
	}
},1);
}	//	end of cocoVoteLoad()

