function getEmbedPlayer(selected, usernumber, contentnumber, contentlocation, playsecond, width, height, restrict, playertype, sdcontentnumber, ssl) {
	var tag;
	var aURI = decomposeURI(document.location);
	var scheme = aURI.scheme;
	if(ssl) scheme = 'https';
	var domainURI = scheme + '://' + aURI.authority;
	if(restrict == null) {
		restrict = 0;
	}
	
	var suffix;
	if(restrict == 0) {
		jsversion="v4";
		swfversion="v4";
		suffix = "";
		ext = ".swf";

		swfName= "/flash/peevee.swf";
		jsName = "/js/peeveeplugins.js";
		objName = "PeeVeePlayer";
		paramValue = '("' + contentlocation+ '", ' +playsecond+ ', ' + width + ', ' + height + '); ';
	} else {
		jsversion="v3r1";
		swfversion="v3";
		suffix = "_seel";
		ext = ".jspx";

		if(ssl)  jsversion += "s";

		swfName = "/pluginplayer" + swfversion + suffix + ext;
		jsName = "/img/plugin" + jsversion + ".js";
		objName = "PeeVeeObject";
		paramValue = '("' + contentlocation+'", ' + usernumber+', ' + contentnumber + ', ' + playsecond+', ' + width + ', ' + height + ', ' + restrict + '); ';
	}
	
	switch(selected) {
	case 1:
		tag = '<script language="JavaScript" src="' + domainURI  + jsName + '"></script><script language="JavaScript" type="text/JavaScript">var po = new ' + objName + paramValue + '  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  + swfName + '?' + 'video_id='+contentlocation+'" /><param name="quality" value="high" /><param name="bgcolor" value="#cccccc" /><embed src="' + domainURI  + swfName + '?' + 'video_id='+contentlocation+'" 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>';
		break;
	case 3:
		tag = '<a href="' + domainURI  + '/viewvideo.jspx?Movie='+contentlocation+'" target="_blank">動画はこちらへ</a>';
		break;
	case 4:
		tag = '[[embed(' + domainURI  + swfName + '?' + 'video_id='+contentlocation+',1,'+width+','+height+')]]';
		break;
	case 5:
		tag = '<embed src="' + domainURI  + swfName + '?' + 'video_id='+contentlocation+'" 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>';
		break;
		case 6:
		tag = '<a href="'+ domainURI + '/pmviewvideo.jspx?rt=1&p0=${friendsdisapproveurl} +"><img src="http://peevee.tv/img/userimg/${inv_name}peevee${friendsdisapproveurl}_1.jpg" width="100"　height="75" /></a><br /><a href="http://peevee.tv/pmviewvideo.jspx?rt=1&p0=${friendsdisapproveurl}">動画「${friendsapproveurl} 」はこちら&nbsp;&raquo;</a>';
		break;
	default:
		break;
	}
	return tag;
}

