//--------------------------//
// Player MySpace			//
//--------------------------//
// Eezewean					//
// var plid=43706;			//
// var artid=4218577;		//
// var profilId=75675156;	//
//--------------------------//
// 10rue d\'la madeleine	//
// var plid=41424;			//
// var artid=1844196;		//
// var profilId=69814205;	//
//--------------------------//

if(profilId){
	var MusicPlayerControl = {
		Height : "345",
		Width : "450",
			TooltipUrl: "http://music.myspace.com/index.cfm?fuseaction=music.adtooltip&friendid="+profilId,
			AmazonLogoutFrameURL: "http://www.amazon.com/gp/dmusic/aws/iframe/sign-out.html/ref=dm_api_ifr_so",
			AmazonPrice: "http://music.myspace.com/index.cfm?fuseaction=music.purchaseOrder",
			JambaUrl1: "http://myspace-cxfe.jamster.com/cxfe/search.jsf",
			JambaUrl2: "http://myspace-cxfe.jamster.com/cxfe/search.jsf?locale=en_US&arttitle=",
		AllowJamba: true,
		AllowAmazonInPlace: true,
		SwfObjectDiv: "profile_mp3Player"
	};
	var fo = null;
	try {
		fo = new SWFObject("http://musicservices.myspace.com/Modules/MusicServices/Services/Embed.ashx/ptype=4,ap=1,plid="+plid+",artid="+artid+",skinid=17,profid="+profilId+",shuffle=1", "shell", "450", "345", "9.0.28", "#101010");
		fo.MP_getSWFHTML = function() {
			var swfNode = "";
			if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
				if (this.getAttribute("doExpressInstall")) {
					this.addVariable("MMplayerType", "PlugIn");
					this.setAttribute('swf', this.xiSWFPath);
				}
				swfNode = '<object style="visibility:visible;display:inherit;"><embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ (this.getAttribute('style') || "") +'"' + ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
				var params = this.getParams();
				for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }
				var pairs = this.getVariablePairs().join("&");
				if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
				swfNode += '/></object>';
			} else { // PC IE
				if (this.getAttribute("doExpressInstall")) {
					this.addVariable("MMplayerType", "ActiveX");
					this.setAttribute('swf', this.xiSWFPath);
				}
				swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ (this.getAttribute('style') || "") +'">';
				swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
				var params = this.getParams();
				for(var key in params) {
				swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
				}
				var pairs = this.getVariablePairs().join("&");
				if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
				swfNode += "</object>";
			}
			return swfNode;
		}

		fo.MP_write = function(elementId){
			if(this.getAttribute('useExpressInstall')) {
				// check to see if we need to do an express install
				var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);
				if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
					this.setAttribute('doExpressInstall', true);
					this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
					document.title = document.title.slice(0, 47) + " - Flash Player Installation";
					this.addVariable("MMdoctitle", document.title);
				}
			}
			if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){
				var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
				n.innerHTML = this.MP_getSWFHTML();
				return true;
			}else{
				if(this.getAttribute('redirectUrl') !== "") {
					document.location.replace(this.getAttribute('redirectUrl'));
				}
			}
			return false;
		}
	} catch (e) {
	}

	if (fo && fo.installedVer != undefined && fo.installedVer.major >= 9) {
		fo.addParam("allowScriptAccess", "always");
		fo.addParam("wmode", "transparent");
		fo.MP_write(MusicPlayerControl.SwfObjectDiv);
	} else {
		document.getElementById(MusicPlayerControl.SwfObjectDiv).style.backgroundColor = "#FFFFFF";
		document.getElementById(MusicPlayerControl.SwfObjectDiv).innerHTML = '<span style="color:#000000;"><blockquote>' + '<blockquote>Installer Flash maintenant.</a></blockquote>' + '</blockquote></span>';
	}
}