$(document).ready(function(){if(document.getElementById("pg-tag")){var D=new Array("galactica","heroes","lost","prison-break","house");var B=new Array("heroes");var A=document.location.href.substr(document.location.href.lastIndexOf("/")+1);for(i=0;i<D.length;i++){if(A==D[i]){var C=document.getElementById("head");if(!document.styleSheets[0].addRule){$(C).hide("slow",function(){$(C).attr("style","background: transparent url(http://todoseries.com/images/todoseries/cabeceras/"+A+".jpg) no-repeat");$(C).show("slow")})}else{C.style.background="transparent url(http://todoseries.com/images/todoseries/cabeceras/"+A+".jpg) no-repeat"}}}for(i=0;i<B.length;i++){if(A==B[i]){var E=document.getElementById("page");E.style.background="transparent url(http://todoseries.com/images/todoseries/fondos/"+A+".gif) no-repeat bottom right"}}}if(document.getElementById("pg-default")||document.getElementById("pg-tag")||document.getElementById("pg-autor")||document.getElementById("pg-archivo")){$("#posts li.post").each(function(G){var F=this;$(this).find("li.category a").each(function(J){var H=$(this).text();if(H.indexOf("spoilers")>-1){$(F).find("img, div.entry-summary, a.read").hide();var I=document.createElement("img");I.setAttribute("src","http://todoseries.com/images/todoseries/spoiler.jpg");I.setAttribute("alt","Aviso!! Spoiler!!");I.setAttribute("title","Haz click para ver el texto!!");I.style.margin="30px 100px";I.style.width="372px";I.style.height="78px";I.style.border="0";I.style.cursor="pointer";$(I).click(function(){$(this).parent("li").find("img, div.entry-summary, a.read").show("slow");$(this).remove()});$(F).find("div.entry-summary").before($(I))}})})}});