function getEmbedPlayer(selected, usernumber, contentnumber, contentlocation, playsecond, width, height) {
	var tag;

	var aURI = decomposeURI(document.location);
	var domainURI = aURI.scheme + '://' + aURI.authority;

	switch(selected) {
	case 1:
		tag = '<script language="JavaScript" src="' + domainURI  + '/player/chobirich_embed.js"></script><script language="JavaScript" type="text/JavaScript">var po = new PeeVeePlayer("'+contentlocation+'", '+playsecond+', '+width+', '+height+', '+usernumber+', '+contentnumber+' );  po.write();</script>';
		break;
	case 2:
		tag = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" id="pluginplayer" align="middle"><param name="allowScriptAccess" value="always" /><param name="movie" value="' + domainURI  + '/player/pluginplayer_chobirichi.swf?' + 'video_id='+contentlocation+'&PlayerType=Embeded" /><param name="quality" value="high" /><param name="bgcolor" value="#cccccc" /><embed src="' + domainURI  + '/player/pluginplayer_chobirichi.swf?' + 'video_id='+contentlocation+'&PlayerType=Embeded" quality="high" bgcolor="#cccccc" width="'+width+'" height="'+height+'" name="pluginplayer" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';
		tag += '<img src="http://vision.chobirich.com/externalcounter.jspx?Usernumber='+usernumber+'&Contentnumber='+contentnumber+'">';
		break;
	case 3:
		tag = '<a href="' + domainURI  + '/viewvideo.jspx?Movie='+contentlocation+'" target="_blank">動画はこちらへ</a>';
		break;
	case 4:
		tag = '[[embed(' + domainURI  + '/player/pluginplayer_chobirichi.swf?video_id=' + contentlocation + '&PlayerType=Embeded,1,' + width + ',' + height + ', '+usernumber+', '+contentnumber+' )]]';
		break;
	case 5:
		tag  = '<embed src="' + domainURI  + '/player/pluginplayer_chobirichi.swf?video_id='+contentlocation+'&PlayerType=Embeded" quality="high" bgcolor="#cccccc" width="'+width+'" height="'+height+'" name="pluginplayer" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
		tag += '<img src="http://vision.chobirich.com/externalcounter.jspx?Usernumber='+usernumber+'&Contentnumber='+contentnumber+'">';
		break;
		case 6:
		tag = '<a href="'+ domainURI + '/pmviewvideo.jspx?rt=1&p0=${friendsdisapproveurl} +"><img src="http://vision.chobirich.com/img/userimg/${inv_name}peevee${friendsdisapproveurl}_1.jpg" width="100"縲�height="75" /></a><br /><a href="http://vision.chobirich.com/pmviewvideo.jspx?rt=1&p0=${friendsdisapproveurl}">蜍慕判縲�${friendsapproveurl} 縲阪�ｯ縺薙■繧�&nbsp;&raquo;</a>';
		break;
	default:
		break;
	} 
	return tag;
}
