<!--
//Media Player Functions

function setMPContent(contentURL, contentTitle) {

/*
alert("inside setMPContent");
alert("host = " + location.host +
	"\n hostname = " + location.hostname +
	"\n href = " + location.href +
	"\n pathname = " + location.pathname +
	"\n port = " + location.port +
	"\n domain = " + document.domain +
	"\n url = " + document.url +
	"\n protocol = " + location.protocol);	
alert(contentURL + ", " + contentTitle);
*/

  if((contentURL != null) && (contentURL.indexOf("\.") != -1)) {

//    var siteURL = "http\:\/\/www\.frontninerecords\.com";
//    var siteURL = "http\:\/\/" + document.domain;

    var format = contentURL.substr((contentURL.indexOf("\.") + 1));

//alert("format = " + format);

    var siteDir = (format == "mov")? "\/video\/": "\/audio\/";

//alert("siteDir = " + siteDir);

//var urlStr = siteURL+"\/player\.html\?mediaFileName="+escape(contentURL);
//var urlStr = ("\.\/player\.html\?siteURL="+ escape(siteURL) + "\&siteDir=" + escape(siteDir) + "\&mediaFileName=" + escape(contentURL) + "\&mediaTitle=" + escape(contentTitle));
var urlStr = ("\.\/player\.html\?siteDir=" + escape(siteDir) + "\&mediaFileName=" + escape(contentURL) + "\&mediaTitle=" + escape(contentTitle));

//alert(urlStr);

location.href = urlStr;

//open MP window
//openWin(urlStr, 'playerWin', 'width=500,height=400,pageXOffset=0,top=0,pageYOffset=0,left=0,scrollbars=no,status=no,location=no, resizable=yes');

  }
  else {
    alert("ERROR\: A problem was encountered loading the selecting media\.  Please choose another link\.");
  }

}//end setMPContent()

//-->
