var $config={sensitivity:3,interval:200,over:removeWhite,timeout:500,out:addWhite};var $tipopts={delay:500,extraClass:"custom-tooltip",track:true,showURL:false,id:"tooltip",fixPNG:true,top:-60,left:10,bodyHandler:function(){if($(this).siblings(".tip").html()){var $txt=$(this).siblings(".tip").html();}else{var $txt="";}
return $txt;}};var $ticker_config={sensitivity:3,interval:200,over:showNews,timeout:0,out:hideNews};var $first=0;var $speed=700;var $pause=10000;$(document).ready(function(){$("#poe-nav li.icon a").hoverIntent($config).tooltip($tipopts);$("#poe-nav li.poe-title a").hoverIntent($ticker_config);$interval=setInterval(removeFirstRssItem,$pause);});function removeWhite(){var $obg=$(this).attr("class");var $bg=$(this).attr("rel");$(this).attr("rel",$obg);$(this).addClass($bg,500).attr("class",$bg);togglePoeText();$(this).siblings(".mirror").fadeIn(500);}
function addWhite(){var $obg=$(this).attr("rel");var $bg=$(this).attr("class");$(this).attr("rel",$bg);$(this).attr("class",$obg);$(this).siblings(".mirror").toggle();togglePoeText();}
function showNews(){$(this).css({"backgroundColor":"#77297d"});togglePoeText();$(this).siblings(".poe-news").animate({"height":300},100).load("parsePoeRss.php");}
function hideNews(){$(this).animate({"backgroundColor":"#ffffff"},100);$("#poeticker").remove();$(this).siblings(".poe-news").slideUp(100);togglePoeText();}
function removeFirstRssItem(){$first=$("#poeticker li:first").html();$("#poeticker li:first").animate({"opacity":0,"height":0},$speed).fadeOut(100,function(){$(this).remove();});addLastRssItem($first);}
function addLastRssItem($first){$last="<li style=\"\">"+$first+"</li>";$("#poeticker").append($last);$("#poeticker li:last").animate({"opacity":1.0,"height":300},$speed).fadeIn(500);}
function togglePoeText(){$("#poe-text").toggle();}