	var playerId = 'flv';
	var player;
	var d = new Date();
	var r = d.getTime();
	function playerReady(obj) {
		player =$('#' + playerId + '-object').get(0);
		$('#' + playerId + '-playlist').load('http://www.nwcraiders.com/xml/main_playlist2.aspx?r='+r, function(){																			
			$(this).find('li').each(function(i){
				if (i==0){
					 if (player){
						$(this).addClass('active');
						player.sendEvent("LOAD", {file:$(this).attr('base') + $(this).attr('id') + '.'+$(this).attr('format'),image:$(this).attr('base')+$(this).attr('id')+'.jpg'});
						player.sendEvent("PLAY","false");	 
					 }	
				}
				$(this).click(function(i){
					 if (player){
						$(this).parent().find('.active').removeClass('active');
						$(this).addClass('active');
						player.sendEvent("LOAD", {file:$(this).attr('base') + $(this).attr('id') + '.'+$(this).attr('format'),image:$(this).attr('base')+$(this).attr('id')+'.jpg'});
						player.sendEvent("PLAY","false");	 
						if (typeof(clicky) != 'undefined'){
							clicky.log($(this).attr('base') + $(this).attr('id') + '.'+$(this).attr('format'),'Video: ' + $(this).text(), 'pageview');
						}
					 }
				});
			});
		});
	};
	
	document.write('<div id="nav-dividor"></div><div class="player-canvas"><div id="' + playerId + '-canvas">Loading...</div><div id="' + playerId + '-playlist" class="playlist"></div><div onclick="openVideoLibrary();"><img width="190" height="25" alt="Open video library" border="0" src="http://www.nwcraiders.com/images/more_videos.gif"/></div></div>');
  	var swfObject = new SWFObject('http://www.nwcraiders.com/swf/player.swf?v=2.1',playerId + '-object','190','159','9','#ffffff');
  	swfObject.addParam('allowfullscreen','true');
  	swfObject.addParam('type','video');
  	swfObject.addParam('allowscriptaccess','always');
  	swfObject.addParam('wmode','opaque');
   	swfObject.addParam('allowdomain','nwcraiders.com');
  	//swfObject.addVariable('skin','http://www.nwcraiders.com/swf/nwcraiders.swf?v=1.2.1');
  	swfObject.addVariable('stretching', 'uniform');
  	swfObject.addVariable('backcolor', '#580000');
  	swfObject.addVariable('frontcolor', '#ffffff');
  	swfObject.addVariable('lightcolor', '#aa0000');
  	swfObject.addVariable('displayclick', 'fullscreen');
  	swfObject.write(playerId + '-canvas');