jQuery('.achievementbox').mouseover(function(){jQuery("div",this).show();})
jQuery('.achievementbox').mouseout(function(){jQuery("div",this).hide();})
function fBox(){$('#fbox').append('<iframe marginheight="0" marginwidth="0" src="http://www.facebook.com/connect/connect.php?id=51969956920&amp;connections=10" align="top" frameborder="0" width="300" height="250" scrolling="no" />');}$(fBox);importScriptPage('ShowHide/code.js','dev')
function UserNameReplace(){if(typeof(disableUsernameReplace)!='undefined'&&disableUsernameReplace||wgUserName==null)return;$("span.insertusername").html(wgUserName);}addOnloadHook(UserNameReplace);function cycleToNextItem(clickedEl){var list=$(clickedEl).parents('div.cycleMe').find('ul');var items=$(list).children();var numItems=items.length;var currIndex=-1;items.each(function(i,el){if($(el).is(':visible')){currIndex=i;}});var nextIndex=(currIndex+1)%numItems;$(items.get(currIndex)).fadeOut('slow',function(){$(items.get(nextIndex)).fadeIn()});}$(function(){$('div.cycleMe small a').unbind('click').click(function(ev){cycleToNextItem(this);ev.preventDefault();});});$(function(){$("#incontent_share").click(function(){WET.byStr("articleAction/incontent_share/"+wgPageName);});});$(document).ready(function(){if($('#control_form_edit').length){$('#control_edit').remove();}});function updatetimer(i){var now=new Date();var then=timers[i].eventdate;var diff=count=Math.floor((then.getTime()-now.
getTime())/1000);if(isNaN(diff)){timers[i].firstChild.nodeValue='** '+timers[i].eventdate+' **';return;}if(diff<0){diff=-diff;var tpm='';}else{var tpm='';}var left=(diff%60)+' seconds';diff=Math.floor(diff/60);if(diff>0)left=(diff%60)+' minutes, '+left;diff=Math.floor(diff/60);if(diff>0)left=(diff%24)+' hours, '+left;diff=Math.floor(diff/24);if(diff>0)left=diff+' days, '+left
timers[i].firstChild.nodeValue=tpm+left;timeouts[i]=setTimeout('updatetimer('+i+')',1000);}function checktimers(){var nocountdowns=getElementsByClassName(document,'span','nocountdown');for(var i in nocountdowns)nocountdowns[i].style.display='none'
var countdowns=getElementsByClassName(document,'span','countdown');for(var i in countdowns)countdowns[i].style.display='inline'
timers=getElementsByClassName(document,'span','countdowndate');timeouts=new Array();if(timers.length==0)return;for(var i in timers){timers[i].eventdate=new Date(timers[i].firstChild.nodeValue);updatetimer(i);}}addOnloadHook(checktimers);;mw.loader.state({"site":"ready"});

/* cache key: twilightsaga:resourceloader:filter:minify-js:7:6515ddc3d1191fd95573bd08f8d61e3c */