function putWMPlayer(geoLoc) {

	var query=window.location.search.substring(1);
	var pairs=query.split("&");
	var pos=-1;
	var strTitle="Bloomberg Live Radio";
	var strSource="http://www.bloomberg.com/streams/audio/radio_live.asx";
	var elT = document.getElementById('divClipTitle');
	var elP = document.getElementById('divPlayer');
	var queryClip = "";

	for (var ii=0; ii<pairs.length; ii++) {
		pos=pairs[ii].indexOf('=');
		if (pos > -1) {
			if (pairs[ii].substring(0,pos) == "clipName") {
				strTitle = URLDecode(pairs[ii].substring(pos+1));
			}
			if (pairs[ii].substring(0,pos) == "clip") {
				queryClip = URLDecode(pairs[ii].substring(pos+1));
				// if ( strSource.match("radio_live.asx") ) {
				if ( queryClip.match("radio_live") ) {
					if (geoLoc.country!="US" || (geoLoc.country=="US" && 
						geoLoc.region!="NY" && geoLoc.region!="NJ" && 
						geoLoc.region!="CT")) {
						strSource = "http://www.bloomberg.com/streams/audio/radio_live_a.asx";
					}
				}
			}
		} else {
			if (geoLoc.country!="US" || (geoLoc.country=="US" && 
				geoLoc.region!="NY" && geoLoc.region!="NJ" && 
				geoLoc.region!="CT")) {
				strSource = "http://www.bloomberg.com/streams/audio/radio_live_a.asx";
			}
		}
	}
	var Playr = '<object id="mediaPlayer" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" standby="Loading..." type="video/x-ms-asf" width="306" height="68"><param name="fileName" value="' + strSource + '"><param name="autoStart" value="true"><param name="autosize" value="true"><param name="showdisplay" value="false"><param name="showstatusbar" value="true"><param name="showcontrols" value="true"><embed type="application/x-mplayer2" showcontrols="1" showstatusbar="1" width="306" height="68" src="' + strSource + '" autostart="1"></embed><object>';
	if( strTitle ) {
		if (elT) {
			if ( elT.innerHTML != strTitle )
				elT.innerHTML = strTitle;
		}
	}
	if (elP) {
		if ( elP.innerHTML != strTitle )
			elP.innerHTML = Playr;
	}
}

