app.newspanel = {
	
	clickNews : function(e){
		var targ = sb.events.target(e);
		
		if(targ.nodeName == 'A'){
			sb.events.stopAndPrevent(e);
			
			
			var id = targ.href.match(/\d*$/);
			app.navi.visit('videoviewer', function(){ 
//				app.videoviewer.unwatched.flip(id);
				
				
				//KLUDGE: Insted of passing function vars and running upon completion
				//I'm timing the run of the following functions since they all have dependencies
				//I may have to send down the markup for the video player with the 
				//code of the site.  It would require a fix in both videoplayer and videomanager
				//that gets 'videoplayer' from a prexisiting node.							
				app.videoviewer.unwatched.flip(id);	
				app.timer = new sb.utils.timer({ 
					seconds : 1.5,
					handler : function(){ 								
						app.videoviewer.setSelected($('#lid_' + id));				
						app.videoviewer.getDetails(id);
						this.end();
					}
					
				}).begin();			
								
			});
		}
	},
	
	init : function(){
		if(app.news){app.news.event('click', this.clickNews);}
	}
	
};