var feed_widget_data=eval([{"id":"1243682","title":"Welcome to The Steve Wilkos Show's Web site","description":"www.SteveWilkos.com: The official Web site of The Steve Wilkos Show","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1243682&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/63043ac3032c7e850089cc5e9c5ef37b_large.jpg","pub_date":"2010-08-11 17:00:00","pub_ms":1281560400000},{"id":"1234329","title":"Who Killed This Baby?","description":"Watch this recap from July 26, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1234329&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/413d8e27032c7e8500c798091d14c3a6_large.jpg","pub_date":"2010-07-26 11:00:00","pub_ms":1280156400000},{"id":"1236210","title":"Are You Going To Step Up?","description":"Watch this recap from July 23, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1236210&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/7f64bc05032c7e8501ce784b635954cc_large.jpg","pub_date":"2010-07-23 09:00:00","pub_ms":1279890000000},{"id":"1234018","title":"Am I The Father?","description":"Watch this recap from July 21, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1234018&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/3c297750032c7e8500c798098d694f80_large.jpg","pub_date":"2010-07-21 11:00:00","pub_ms":1279724400000},{"id":"1234373","title":"Who's Abusing These Boys?","description":"Watch this recap from July 20, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1234373&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/416ace03032c7e8500c798092051ab84_large.jpg","pub_date":"2010-07-20 11:00:00","pub_ms":1279638000000},{"id":"1234372","title":"Steve's Mailbag: July 20, 2010","description":"Visit www.SteveWilkos.com and send your question or comment for a chance to hear Steve address it on TV!","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1234372&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/416a1fe2032c7e8500c79809988e1110_large.jpg","pub_date":"2010-07-20 10:00:00","pub_ms":1279634400000},{"id":"1239208","title":"My Mom Hoards Animals","description":"Watch this recap from July 16, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1239208&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/dc11b42d032c7e8500c837cdfbbc3ee1_large.jpg","pub_date":"2010-07-16 11:00:00","pub_ms":1279292400000},{"id":"1234375","title":"Steve, He's Crazy!","description":"Watch this recap from July 15, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1234375&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/418550c8032c7e8500c79809e3bd6762_large.jpg","pub_date":"2010-07-15 11:00:00","pub_ms":1279206000000},{"id":"1233806","title":"Am I Pregnant By My Abuser Again?","description":"Watch this recap from July 14, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1233806&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/37a50a49032c7e8500c79809e2ae1185_large.jpg","pub_date":"2010-07-14 11:00:00","pub_ms":1279119600000},{"id":"1234019","title":"I Did Not Molest My Child","description":"Watch this recap from July 13, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1234019&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/3c4cb5a1032c7e8500c798099783b58f_large.jpg","pub_date":"2010-07-13 11:00:00","pub_ms":1279033200000},{"id":"1234377","title":"I Party With My 16 Year Old","description":"Watch this recap from July 9, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1234377&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/418fce7c032c7e8500c79809e7980996_large.jpg","pub_date":"2010-07-09 11:00:00","pub_ms":1278687600000},{"id":"1234007","title":"Our Son Is A Sex Offender","description":"Watch this recap from July 8, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1234007&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/3c84c49c032c7e8500c79809a2523c8f_large.jpg","pub_date":"2010-07-08 11:00:00","pub_ms":1278601200000},{"id":"1233627","title":"Firefighter Turned Prostitute","description":"Watch this recap from July 7, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1233627&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/28344570032c7e8500c798093f9cf6a9_large.jpg","pub_date":"2010-07-07 11:00:00","pub_ms":1278514800000},{"id":"1233438","title":"Why Do You Want To Be With This Guy?","description":"Watch this recap from July 6, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1233438&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/22e59ff2032c7e8500c7980925edd31c_large.jpg","pub_date":"2010-07-06 11:15:00","pub_ms":1278429300000},{"id":"1233681","title":"Steve's Mailbag: July 6, 2010","description":"Visit www.SteveWilkos.com and send your question or comment for a chance to hear Steve address it on TV!","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1233681&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/283861d5032c7e8500c798095273f1c2_large.jpg","pub_date":"2010-07-06 11:00:00","pub_ms":1278428400000},{"id":"1234176","title":"You Better Not Fail That Test!","description":"Watch this recap from July 2, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1234176&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/3d77079f032c7e8500c7980991e613ea_large.jpg","pub_date":"2010-07-02 11:00:00","pub_ms":1278082800000},{"id":"1234177","title":"You Beat My Pregnant Daughter!","description":"Watch this recap from July 1, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1234177&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/3d778809032c7e8500c79809ce1d615a_large.jpg","pub_date":"2010-07-01 11:00:00","pub_ms":1277996400000},{"id":"1229679","title":"You Slept with Your Daughter's Molester?","description":"Watch this recap from May 26, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1229679&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/bc6c10a8032c7e8500c79809b79dd4d7_large.jpg","pub_date":"2010-05-26 11:00:00","pub_ms":1274886000000},{"id":"1230665","title":"May 26, 2010","description":"You Slept with Your Daughter's Molester?","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1230665&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/cf970b7c032c7e8500c79809970df172_large.jpg","pub_date":"2010-05-26 08:00:00","pub_ms":1274875200000},{"id":"1229620","title":"You've Waited 17 Years, Here's Your Results","description":"Watch this recap from May 25, 2010","link":{"0":"http:\/\/video.stevewilkos.com\/player\/?id=1229620&dst=rss|steve%20wilkos|"},"thumbnail":"http:\/\/video.nbcuni.com\/stevewilkos\/thumb\/bb9bc6c1032c7e8500c798094d47edc2_large.jpg","pub_date":"2010-05-25 11:00:00","pub_ms":1274799600000}]); var feed_widget_params={'div_id':'feed_fullpage_widget','type':'fullpage','width':500,'height':425,'start_id':1173292};function FeedWidget() { this.div_id='feed_widget'; this.feed_data=null; this.video_script_base='http://video.nbcuni.com/framework/'; this.video_script_name='FrameworkManager.js?include=EmbeddedPlayerManager'; this.video_width=330; this.video_height=300; this.widget_type='accordion'; this.timeouts=null; this.at_video_index=0; this.start_id=null; this.config_id=21008; var args=[]; if(typeof(arguments[0])=='object') { args=arguments[0]; } if(window.feed_widget_params) { args=window.feed_widget_params; } if(typeof(args)=='object') { for(var j in args) { var value=args[j]; switch(j) { case 'data': this.feed_data=value; break; case 'type': this.widget_type=value; break; case 'width': case 'height': var p=parseInt(value); if(p>0) { if(j=='width'){this.video_width=p;} else{this.video_height=p;} } break; case 'script': this.video_script=value; break; case 'script_name': this.video_script_name=value; break; case 'div_id': this.div_id=value; break; case 'start_id': this.start_id=parseInt(value); break; case 'config_id': this.config_id=value; break; } } } if(window.feed_widget_data && this.feed_data===null) { this.feed_data=window.feed_widget_data; } this.at_video_index=this.id_in_data(this.start_id); if(this.at_video_index===false) { this.start_id=this.feed_data[0].id; this.at_video_index=0; } this.add_video_script(); var self=this; $(document).ready(function(){ self.build_widget(); self.bind_links(); }); } FeedWidget.prototype.get_current_video_id = function() { var at=arguments[0]?arguments[0]:this.at_video_index; if(this.feed_data.length>at) { return this.feed_data[at].id; } else { return ''; } }; FeedWidget.prototype.bind_links = function() { var self=this; if(this.widget_type=='accordion') { $('#'+this.div_id+' ul li a.widget_button').unbind(); $('#'+this.div_id+' ul li a.watch_video_button').unbind(); $('#'+this.div_id+' ul li a.watch_video_button').bind('click',function(e){self.play_video(e);}); $('#'+this.div_id+' ul li a.widget_button').bind('click',function(e){self.show_video_data(e);}); } else if(this.widget_type=='fullpage') { $('#'+this.div_id+' ul.image_items_list li a').unbind(); $('#'+this.div_id+' #go_left').unbind(); $('#'+this.div_id+' #go_right').unbind(); $('#'+this.div_id+' ul.image_items_list li a').bind('click',function(e){self.play_video(e);}); $('#'+this.div_id+' #go_left').bind('click',function(e){self.move_list('left',1);}); $('#'+this.div_id+' #go_right').bind('click',function(e){self.move_list('right',1);}); } }; FeedWidget.prototype.move_list = function(direction,amount) { $('#'+this.div_id+' #go_left').removeClass('disabled'); $('#'+this.div_id+' #go_right').removeClass('disabled'); var width=parseInt($('#'+this.div_id+' ul.image_items_list li').width())+parseInt($('#'+this.div_id+' ul.image_items_list li').css('margin-left'))+parseInt($('#'+this.div_id+' ul.image_items_list li').css('margin-right')); var moved=width*amount; var pos=parseInt($('#'+this.div_id+' ul.image_items_list').css('left')); var container_width=parseInt($('#'+this.div_id+' div#image_list').width()); var num=this.feed_data.length; var max_pos=(num*width)-container_width; var newpos=0; if(direction=='left') { newpos=pos-moved; } else { newpos=pos+moved; } if(newpos<-max_pos) { newpos=-(max_pos); //disable left $('#'+this.div_id+' #go_left').addClass('disabled'); } if(newpos>=0) { newpos=0; $('#'+this.div_id+' #go_right').addClass('disabled'); } $('#'+this.div_id+' ul.image_items_list').animate({'left':newpos}); }; FeedWidget.prototype._get_event_id = function(e) { var id=''; if(typeof(e)=='object') { if($.browser.msie) { id=e.target.id; } else { id=e.currentTarget.id; } } else { id=e; } return id; }; FeedWidget.prototype.show_video_data = function(e) { var id=this._get_event_id(e).replace(/\D/g,''); this.bind_links(); $('#show_'+id).unbind(); $('#'+this.div_id+' dd').slideUp(); var self=this; $('#desc_'+id).slideDown(function(){ $('#'+self.div_id+' a.widget_button').removeClass('selected'); $('#show_'+id).addClass('selected'); }); }; FeedWidget.prototype.play_video = function(e) { var link_id=''; var video_id=''; link_id=this._get_event_id(e); video_id=link_id.replace(/\D/g,''); embeddedPlayerManager.getPlayer().playVideo(video_id); this.at_video_index=this.id_in_data(video_id); if($('#video_description').length > 0) { $('#video_description').html(this.feed_data[this.at_video_index].description); } /*if($('#video_date').length > 0) { $('#video_date').html(this.format_date(this.feed_data[this.at_video_index].pub_ms)); }*/ if($('#video_title').length > 0) { $('#video_title').html(this.feed_data[this.at_video_index].title); } }; FeedWidget.prototype.format_date = function(ms) { var d=new Date(); d.setTime(ms); var h=d.getHours(); var ampm='AM'; if(h===0) { h=12; } else if(h>12) { h-=12; ampm='PM'; } return d.getMonth()+'/'+d.getDay()+'/'+d.getFullYear()+' '+h+':'+d.getMinutes()+' '+ampm; }; FeedWidget.prototype.set_width_height = function() { if(arguments.length==2) { this.video_width=arguments[0]; this.video_height=arguments[1]; } else if(arguments.length==1) { this.video_width=parseInt(arguments[0].replace(/^.*w:(\d+).*$/,'$1')); this.video_height=parseInt(arguments[0].replace(/^.*h:(\d+).*$/,'$1')); } }; FeedWidget.prototype.build_widget = function() { switch(this.widget_type) { case 'accordion': this.build_accordion_widget(); break; case 'fullpage': this.build_fullpage_widget(); break; } }; FeedWidget.prototype.build_fullpage_widget = function() { $('#'+this.div_id).html('
<>
'); if(this.feed_data.length) { var list=''; $('#video_description').html(this.feed_data[this.at_video_index].description); $('#video_title').html(this.feed_data[this.at_video_index].title); $('#video_date').html(this.format_date(this.feed_data[this.at_video_index].pub_ms)); for(var i=0;i'; var thumb_link=''+thumb+''; list+='
  • '+thumb_link+'
  • '+"\n"; } $('#'+this.div_id+' ul').html(list); if($.browser.msie) { $('#'+this.div_id+' ul a').attr('href','javascript:;'); $('#'+this.div_id+' #go_left').attr('href','javascript:;'); $('#'+this.div_id+' #go_right').attr('href','javascript:;'); } this.initialize_video_player(); this.move_list('left',(this.at_video_index)); var vid='videos'; if(this.feed_data.length==1){vid='video';} $($('#'+this.div_id+' #video_count')).html((this.feed_data.length)+' '+vid); } }; FeedWidget.prototype.build_accordion_widget = function() { $('#'+this.div_id).html('
    '); if(this.feed_data.length) { var list=''; for(var i=0;iWatch Video'; var thumb=''; var desc='
    '+this.feed_data[i].description+'
    '; if(title_length < 34) var b=''+this.feed_data[i].title+''; else var b=''+this.feed_data[i].title.substr(0,33)+'...'; var dd='
    '+thumb+wv+'
    '+desc; list+='
  • '+b+'
    '+dd+'
  • '+"\n"; } $('#'+this.div_id+' ul').html(list); if($.browser.msie) { $('#'+this.div_id+' ul a').attr('href','#'); } this.initialize_accordion_video_player(); this.show_video_data(this.feed_data[0].id); } }; FeedWidget.prototype.id_in_data = function(id) { for(var i=0;i'); } };