jQuery(function()
			{
				jQuery('.scroll-pane').jScrollPane({showArrows: true, verticalDragMinHeight: 19 , verticalDragMaxHeight : 19});
	
	jQuery('body').css('overflow-x', 'auto');
	var width = parseInt(jQuery('body').css("width"));
	var right = parseInt(jQuery('.page_img').css("right"))+(width)/2;
	jQuery('.post').hide();
	jQuery('.post').fadeIn();
	jQuery('.page_img').css("right","-"+(width)/2+"px");
	
	jQuery('.page_img').animate({
    right: '+='+right+''
  }, 500, function() {
    // Animation complete.
   
  });
  
/*
  if (navigator.userAgent.indexOf(' Safari/') > -1) {
  	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) { 
  	
  	}else{
			jQuery('#menu-main-menu li a').css("font-family", "Helvetica");
	}
  	
	}
*/
  

	  
	 
  jQuery('#menu-main-menu li a').live("click", function(e) {
  	
  		if(jQuery(this).parent().hasClass('facebook')){
  		
  		}else{
  			var url = jQuery(this).attr('href');
			e.preventDefault();
			jQuery('.post').fadeOut();
			jQuery('.page_img').fadeOut(100, function() {
   				document.location = url;
 		 	});
 		 }
 		
  
  });
  jQuery('h1.logo a').live("click", function(e) {
		var url = jQuery(this).attr('href');
		e.preventDefault();
		jQuery('.post').fadeOut();
		jQuery('.page_img').fadeOut(100, function() {
   				document.location = url;
 		 });
  
  });

});



