function playVideo(x){var v=document.getElementById(x+"Video");if(v!=null&&v.paused){v.autoplay=!0;v.play()}}
function stopVideo(x){var v=document.getElementById(x+"Video");if(v!=null&&!v.paused){v.pause();v.currentTime=0}}
function anchorLnk(x){playVideo(x);var e=document.getElementById(x+"Modal");$(e).bind('hide',function(){stopVideo(x)})}
function anchorBtn(x){stopVideo(x)}