// JavaScript Document

		
		function viewerIsLoggedIn() { return MySpace.ClientContext.IsLoggedIn; }
		function getDisplayFriendID() { return MySpace.ClientContext.DisplayFriendId; }
		function currentUserIsFriend() { return False; }
	
//window.setTimeout(function() { document.title = "MySpace.com - Mark Khoen"; }, 20);


    var MusicPlayerControl = {
	    Height : "299",
	    Width : "390",
		AllowJamba: false,
		AllowAmazonInPlace: false,
        SwfObjectDiv: "profile_mp3Player"
    };

    var fo = null;

    try {
        fo = new SWFObject("http://musicservices.myspace.com/Modules/MusicServices/Services/Embed.ashx/ptype=4,ap=1,plid=22624,artid=10396188,skinid=17,profid=261991176,shuffle=0", "shell", "390", "299", "9.0.28", ""); // background color - "#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 += '<param name="wmode" value="transparent" />';
				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>Hoppla! Zum Anhören musst du JavaScript aktivieren und Adobe Flash 9 oder höher installieren. <a href="http://www.macromedia.com/go/getflashplayer/" >Flash Player jetzt herunterladen!</a></blockquote>' + '</blockquote></span>';
    }
    


