
$(document).ready(function()
{	
	Cufon.replace('h1, h2, h3, h4, h5', { fontFamily: 'ZurichBT' });
	Cufon.replace('#mainmenu', { fontFamily: 'ZurichBT' });
	//Cufon.replace('.submenu', { fontFamily: 'ZurichBT' });
	Cufon.now();
	
	$("#mainmenu li").each(function(){
		$(this).hover(
			function()
			{
				$(this).animate({ paddingTop: "7px" }, 200);
			},
			function()
			{
				$(this).animate({ paddingTop: "0px" }, 200);
			}
		)
	});
	
	$(".submenu li").each(function(){
		$(this).hover(
			function()
			{
				$(this).animate({ paddingLeft: "30px", opacity: .6 }, 200);
			},
			function()
			{
				$(this).animate({ paddingLeft: "20px", opacity: 1 }, 200);
			}
		)
	});
	
	$(".portfolio").hover(function(){
		$(this).animate({ opacity: .6}, 200);
	},
	function(){
		$(this).animate({ opacity: 1}, 200);
	});
	
	JQTWEET.loadTweets();
	
	$("a.blank").click(function(){
		$(this).attr("target", "_blank");
		
		return true;
	});
});


function portfolio() {
	
	$('.portfolio_image ul li').hover(function() {
		
		$(this).children('img').stop().animate({ opacity: .7 }, 400);
		$(this).children('div').stop().css({ display: 'block', opacity: 0 }).animate({ opacity: 1 }, 400);
		
	}, function() {
		
		$(this).children('img').stop().animate({ opacity: 1 }, 250);
		$(this).children('div').stop().animate({ opacity: 0 }, 250);
		
	});
	
}

