var i,f;
var e=document.getElementById('tblMovie');
if(e){
 for(i=0;i<e.rows.length;i++){
  f=e.rows[i].cells[e.rows[i].cells.length-1]
  f.onclick=function(){setMovie(this)};
  f.style.cursor='pointer';
	if(window.location.search.indexOf('video')<0){
	 if(i==1){
    f.style.backgroundColor='#9F2200';
	  f.style.color='#FFFFFF'
		f.style.fontWeight='bold';
	 }
	}else{
	 if(f.id!='' && window.location.search.indexOf(f.id)>-1){
	  setMovie(f);
	 }
	}
 }
}
function setMovie(e){
 if(e.id=='')return false;
 var i,p;
 var f=document.getElementById('embMovie');
 if(f)f.src='http://www.youtube.com/v/'+e.id+'&hl=en&fs=1';
 if(navigator.appName.indexOf('Explorer')>-1){
  i=window.location.href;
  p=i.indexOf('video=');
  if(p>-1)i=i.substring(0,p-1);
  i=i+'&video='+e.id+'#video';
  window.location.href=i;
 }
 f=document.getElementById('tblMovie');
 for(i=0;i<f.rows.length;i++){
  p=f.rows[i].cells[f.rows[i].cells.length-1];
	p.style.backgroundColor='#FFFFFF';
	p.style.color='#9F2200';
	p.style.fontWeight='normal';
 }
 e.style.backgroundColor='#9F2200';
 e.style.color='#FFFFFF';
 e.style.fontWeight='bold';
}