// FULL SCREEN
if( location.href.split('/').pop() === "index.php" || location.href.split('/').pop() === "" ){ self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight); }

// NAV
$("nav ul #config").hover(
 function(){
  $(this).animate({width:"110px"},{queue:false, duration:"normal"});
  $("#sub").animate({opacity:"show"},"fast");
 }, 
 function(){
  $(this).animate({width:"36px"},{queue:false, duration:"normal"});
  $("#sub").animate({opacity:"hide"},"fast");
});

$("#content q").click(function(e){					 
 $("#b blockquote").html( $(this).next().html() ).hide().fadeIn('fast');
 e.stopPropagation();
 return false;				
});

$('a[href^="mailto:"]').each(function(){
 this.href = this.href.replace('(O)', '@').replace(/\(o\)/g, '.');
 this.innerHTML = this.href.replace('mailto:', ''); // Set link text
});

$("#focus").focus();
if( $("textarea").length === 1 ){ $("textarea").elastic(); }

// Tool Tip Directions nw | n | ne | w | e | sw | s | se
$(".nw").tipsy({ gravity:'nw', fade:true });
$(".n").tipsy({ gravity:'n', fade:true });
$(".ne").tipsy({ gravity:'ne', fade:true });
$(".w").tipsy({ gravity:'w', fade:true });
$(".e").tipsy({ gravity:'e', fade:true });
$(".sw").tipsy({ gravity:'sw', fade:true });
$(".s").tipsy({ gravity:'s', fade:true });
$(".se").tipsy({ gravity:'se', fade:true });
