// JavaScript Document
$j(document).ready(function(){

	if (Ka.Info.PAGETYPE == 'Play' && Ka.Info.MEDIATYPE == 'VIDEO'){
		
		 var addMemberVideoTitle = setInterval
	    (
	    /* create an anonymous function to run the code */
	    function() {
	    /* check if the function '$' exists (since we need to use it) and that
	    the container has been loaded (second condition) */
	    if(typeof $!='undefined' && $('ka_contentContainer'))
	    {
	    /* add a new <div> to the contentContainer */
	    var NewTitle = document.createElement('div');
	    NewTitle.id = 'MemberVidTitle';
	    $('ka_contentContainer').appendChild(NewTitle);
		
		var h2Pos = $('ka_contentContainer').getElementsByTagName('h2')[0];
		h2Pos.id = 'VidTitle';
		
	    /* write the Title into the new <div> */
	    $('MemberVidTitle').innerHTML = "<span>Member's Video</span>";
		
		/* change the ordering */ 
		$('MemberVidTitle').parentNode.insertBefore($('MemberVidTitle'),$('VidTitle'));
		
	    clearInterval(addMemberVideoTitle);
	    }
	    },20
	    );
	}
});
