function playClip(videoPlayeId, clipId) {
  playerObj = document.getElementById(videoPlayeId);
	if (playerObj && clipId != '') {
    var playerObjSrc = String(playerObj.src);
    // set the clip id
    if(playerObjSrc.indexOf('clipId') == -1) {
//alert('no clipId');
      playerObj.src += '&clipId=' + clipId;
    } else {
//alert('has clipId');
      playerObj.src = playerObj.src.replace(/clipId=\d+/, 'clipId=' + clipId);       
    }  
    // set audo play
    if(playerObjSrc.indexOf('autoStart') == -1) {
      playerObj.src += '&autoStart=true';
    } else {
      playerObj.src = playerObj.src.replace(/autoStart=false/, 'autoStart=true');       
    }      
  } else {
	  // nothing will happen if the browser cannot create the video player iframe object
//    alert('no video player available');
  }
}
