function generatePlayerWrapper(xiteplayerParams){	
	if(xiteplayerParams[1] == ''){
		//defaults to artistxite.com
		xiteplayerParams[1] = 'artistxite.com';
	}

	if(!window.axLoadedJsFiles){
	 	window.axFinishedLoaded=false;
		var host = xiteplayerParams[1];

		window.axLoadedJsFiles = true;
		attachScript("http://"+host+"/playlists/swfobject.js");
		attachScript("http://"+host+"/xp/xiteplayer2.js");
	}
	
	if(! window.axFinishedLoaded){
		var self = this;
		setTimeout(function(){
			self.generatePlayerWrapper(xiteplayerParams);
		}, 200);
		return;
	}

	var divId=xiteplayerParams[2];

    try {
      displayGetFlashInfo(divId);
    } catch( anError ) {
      var theId= 'ax_player_span_' + xiteplayerParams[3];
      var theSpan=document.getElementById(theId);
      var aNewDiv = document.createElement("div");
      aNewDiv.id=divId;
      theSpan.appendChild(aNewDiv);
    }

	generatePlayer2(xiteplayerParams);
}

function attachScript(sURL) {
	var script=document.createElement("SCRIPT");
	script.src=sURL;
	var head=document.getElementsByTagName("HEAD")[0];
	if(head){
		head.appendChild(script);
		return;
	}
	var body=document.getElementsByTagName("BODY")[0];
	if(body){
		body.appendChild(script);
	}
	
}
