var Base_loc = "catalog.vdo3.com";
function launchVDO3_UPlayer(playerURL, openType, skinURI, contentURI, mediaProfile, mediaLanguageCode, mediaFormat, mediaQuality, liveContent, networkPrefix, slideSize) {
	dominio =  window.location.host;
	dominio = dominio.toLowerCase();
	if (dominio.indexOf("vdo3") < 0) {
    theURL ="http://" + Base_loc 
	}
	else {
    theURL = "";
	}
  theURL = theURL + playerURL;
  theURL = theURL + "?skinURI=" + skinURI; 
  theURL = theURL + "&contentURI=" + contentURI;
  if (mediaProfile != null) {
	  theURL = theURL + "&mediaProfile=" + mediaProfile;  
	  theURL = theURL + "&mediaLanguageCode=" + mediaLanguageCode;  
	  theURL = theURL + "&mediaFormat=" + mediaFormat;
	  theURL = theURL + "&mediaQuality=" + mediaQuality;  
	  theURL = theURL + "&liveContent=" + liveContent;
	  theURL = theURL + "&networkPrefix=" + networkPrefix;
  }	  
  if (slideSize != null) {
	  theURL = theURL + "&slideSize=" + slideSize;
  }
  winName = "VDO3_UPlayer";
  if (openType == "popup") {
    wMediaPlayer = window.open(theURL, winName, "toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no");
//    wMediaPlayer = window.open(theURL, winName, "toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, left=0,top=0,width=10,height=100");
  }
  else if (openType == "embed") {
    window.location = theURL;
  }
}

function odSkinPopUp(skinURI, contentURI, mediaProfile, mediaLanguageCode, mediaFormat, mediaQuality, liveContent, networkPrefix) { // v2.0
  launchVDO3_UPlayer("/viewerPopUp.htm", "popup", skinURI, contentURI, mediaProfile, mediaLanguageCode, mediaFormat, mediaQuality, liveContent, networkPrefix);
}

function odSkinEmbed(skinURI, contentURI, mediaProfile, mediaLanguageCode, mediaFormat, mediaQuality, liveContent, networkPrefix) { // v2.0
  launchVDO3_UPlayer("/viewerEmbed.htm", "embed", skinURI, contentURI, mediaProfile, mediaLanguageCode, mediaFormat, mediaQuality, liveContent, networkPrefix);
}

function odSkinPopUpVP(skinURI, contentURI, mediaProfile, mediaLanguageCode, mediaFormat, mediaQuality, liveContent, networkPrefix) { // v2.0
  launchVDO3_UPlayer("/viewerPopUpVP.cfm", "popup", skinURI, contentURI, mediaProfile, mediaLanguageCode, mediaFormat, mediaQuality, liveContent, networkPrefix);
}

function odSkinEmbedVP(skinURI, contentURI, mediaProfile, mediaLanguageCode, mediaFormat, mediaQuality, liveContent, networkPrefix) { // v2.0
  launchVDO3_UPlayer("/viewerEmbedVP.htm", "embed", skinURI, contentURI, mediaProfile, mediaLanguageCode, mediaFormat, mediaQuality, liveContent, networkPrefix);
}

function odSlidesPopUp(skinURI, contentURI, slideSize) { // v2.0
  launchVDO3_UPlayer("/viewerPopUpSlides.htm", "popup", skinURI, contentURI, null, null, null, null, null, null, slideSize);
}

