var inited = 0;
function popup(name,tw,th,myfile,scroll,title) {
  w = open("",name,"scrollbars="+scroll+",width="+tw+",height="+th+",resizable=no,status=no,location=no,toolbar=no,menubar=no");
  w.document.writeln('<html><head>');
  w.document.writeln('<title>' + title + '</title>');
  w.document.writeln('<link rel="stylesheet" type="text/css" href="global.css">');
  w.document.writeln('<link rel="stylesheet" type="text/css" href="layout.css">');
  w.document.writeln('</head>');
  w.document.writeln('<body style=\"margin: 0;\" onblur="self.close();" onload="self.focus();">');
  w.document.writeln('<div align=\"center\">' +myfile+ '</div>');
  w.document.writeln('</body></html>');
  w.document.close();
  return false;
}

/* thanks joakim stai */
 jQuery.fn.defuscate = function() {
   return this.each(function(){
     var email = String($(this).html()).replace(/\s*\(.+\)\s*/, "@");
     $(this).before('<a href="mailto:' + email + '">' + email + "</a>").remove();
   });

};

$(document).ready(function() {
   $("#george-email").defuscate();
   $("#info-email").defuscate();
   $("#pancho-email").defuscate();
   $("#scott-email").defuscate();
});


jQuery().ready(function(){
		jQuery('#navigation').accordion({
			active: false,
			header: '.head',
			navigation: true,
			event: 'mouseover',
			//fillSpace: true,
			animated: 'easeslide'
		});
});