function playClip() {
	var links = document.getElementsByTagName('a');	
	for (i=0;i<links.length;i++) {
		var link = links[i];
		if (( link.getAttribute ( 'href' ) ) && ( link.getAttribute ( 'rel' ) == 'updateclip' ) ) {
			if(typeof(link.onclick) != 'function'){
				link.onclick = function() {
					document.getElementById('videoPlayerSwf').playVideo(this.getAttribute('href'),this.name);
					window.scrollTo(0,70);	
					playClip();
					this.className+='selected';
					return false;
				}		
			}
		}

		if(link.getAttribute ( 'class' ) == 'storyselected' || link.getAttribute ( 'className' ) == 'storyselected'){
			link.setAttribute ( 'class','story' );
			link.setAttribute ( 'className','story' )
		}

		if(link.getAttribute ( 'class' ) == 'qaselected' || link.getAttribute ( 'className' ) == 'qaselected'){
			link.setAttribute ( 'class','qa' );
			link.setAttribute ( 'className','qa' )
		}
	}
}

addLoadEvent(playClip);
