//Custom Font with Cufon
Cufon.replace('#navigation ul li a em, #sub-navigation ul li a em, #sub-navigation ul li a.hover em, .latest-news p a, .portfolio-btn, #footer ul li  a',{fontFamily: 'Myriad Roman', hover: true});
Cufon.replace('.latest-news h2, .latest-news p, .text-holder h2, .text-holder p, #footer ul li, .contact-us h2, .contact-us p, .apps h2, .apps ul li p',{fontFamily: 'Myriad Roman'});


//jQuery Functions
$(function(){
	
	//PNG fix for ie6
	if($.browser.msie && $.browser.version.substr(0,1) == 6){
		DD_belatedPNG.fix('.iphone, #navigation, #navigation ul li a img, #sidebar, .latest-news, #sub-navigation ul li a img');
	}	
	
	//Hover Efect for Subpage
	$("#sub-navigation ul li ").hover(function(){
		$(this).find('a').addClass('hover');
		Cufon.replace('#sub-navigation ul li a em', {fontFamily: 'Myriad Roman', hover: true});
	},
	function(){
		$(this).find('a').removeClass('hover');
		Cufon.replace('#sub-navigation ul li a em', {fontFamily: 'Myriad Roman', hover: true});
	});
	
	var h = $(document).height();
	var new_h = h - 142;
	$('#sidebar.subpage').css('height', new_h);
});


