Cufon.replace('#nav a', { fontFamily: 'Museo Sans 500' }, {hover: true});
Cufon.replace('.fancylink a', { fontFamily: 'Museo Sans 500' }, {hover: true});
Cufon.replace('.mailme a', { fontFamily: 'Museo Sans 500' }, {hover: true});
Cufon.replace('.heading', { fontFamily: 'Museo Sans 500' });
Cufon.replace('.pageHeading', { fontFamily: 'Museo Sans 500' });
Cufon.replace('.mainHeading', { fontFamily: 'Museo 700' });
Cufon.replace('.colorText', { fontFamily: 'Museo Sans 500' });
Cufon.replace('h1', { fontFamily: 'Museo Sans 500' });
Cufon.replace('h2', { fontFamily: 'Museo Sans 500' });
Cufon.replace('h3', { fontFamily: 'Museo Sans 500' });
Cufon.replace('h4', { fontFamily: 'Museo Sans 500' });

var flashvars = {};
flashvars.xml = "lib/config.xml";
flashvars.font = "font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("lib/cu3er.swf", "cu3erContainer", "910", "400", "9", "expressInstall.swf", flashvars, attributes);

$(document).ready(function () {  
	$('#nav li a').removeClass('jquery');
    $('#nav li').append('<div class="hover"></div>');  
    $('#nav li').hover(  
    	function() {  
			$(this).children('div').fadeIn('700');   
        },   
        function() {  
			$(this).children('div').fadeOut('700');      
     	}).click (function () {  
        	$(this).addClass('selected');  
		}
	);
});

$(function(){
	var spt = $('span.mailme');
	var at = / at /;
	var dot = / dot /g;
	var addr = $(spt).text().replace(at,"@").replace(dot,".");
	$(spt).after('<a href="mailto:'+addr+'" title="Send an email">'+ addr +'</a>')
	.hover(function(){window.status="Send an Email!";}, function(){window.status="";});
	$(spt).remove();
});

$(function() {
  $(".button").hover(function() {
        $(this).attr("src", $(this).attr("src").split(".").join("O."));  // adds -hover to the name of the image
  }, function() {
        $(this).stop(true,false); // prevents the creation of stacked actions
        $(this).attr("src", $(this).attr("src").split("O.").join("."));  // removes -hover from the name of the image
  });
});

function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) { var anchor = anchors[i]; if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank"; } } window.onload = externalLinks;


