function getFlashMovieObject(a){if(window.document[a]){return window.document[a]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[a]){return document.embeds[a]}}else{return document.getElementById(a)}}function change_page(b,a){$j("#series_loader").css("display","inline");$j.get("/series_ajax.php",{page:b,series_id:a},function(c){var d=$j("#program_list");if(!d.length){var d=$j("<div />").attr("id","program_list").appendTo("#series_programs")}d.html(c);highlight_object("clip_"+watching_clip)},"html");return false}function switch_to(e,d,f,b){var a=getFlashMovieObject(player_object_name);watching_clip=e;try{a.switch_to_clip(e,b,0)}catch(c){}highlight_object(d,f);return false}function highlight_object(a,d){var b="";if(typeof a=="object"){b=a.toString()}else{b=a}if(typeof d=="undefined"){d=0}if(b.indexOf("chapter_")===0){return false}$j("#"+last_highlighted_object).removeClass("highlighted");var c=$j("#"+b);if(c.length){c.addClass("highlighted");last_highlighted_object=b;current_clip_url=c.attr("href");$j("#program_watch_full").attr("href",current_clip_url);$j("#program_replies").attr("href",current_clip_url);$j("#program_add_thoughts").attr("href",current_clip_url)}$j("#replycount").text(d)}function go_to_current_url(){window.location=current_clip_url}function isJSReady(){return true};