jQuery(document).ready(function(){
	if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1)) {
		$('#footer').css("width","1200px");
	}
});
//CUFON
Cufon.replace('a.entry-title-black', { hover: true });
Cufon.replace('a.entry-title-gray', { hover: true });
Cufon.replace('a.entry-title', { hover: true });
Cufon.replace('.phototitle a', { hover: true });
Cufon('.phototitle a', { color: '#323434', hover: {	color: '#000' }	});

Cufon.replace('.slider1Image strong, .postdate, #sidebar h4.title, .phototitle');
Cufon.replace('h1, h2, h3, .cufon');

jQuery(function() {
	jQuery('.tip').tipsy({
		gravity: 'n', 
		fade: true, 
		title: 'rel'
	});
});

//FadeIn
jQuery(document).ready(function(){
	//Set opacity on each span to 0%
    jQuery(".hover").css({'opacity':'0'});
	jQuery('.fade a').hover(
		function() {
			jQuery(this).find('.hover').stop().fadeTo(400, 0.5);
		},
		function() {
			jQuery(this).find('.hover').stop().fadeTo(300, 0);
		}
	)
});

//Preload
jQuery(function(){
	    jQuery(".preload").preloadify({ delay: 20, imagedelay:200, mode: "sequence" });
		jQuery("#portfolio").preloadify({ delay: 20, imagedelay:200, mode: "sequence" });
	});
	
	
jQuery(function(){
	jQuery('a.new-window').click(function(){
	           window.open(this.href);
 		return false;
	 });
});


